Developers

The CoreSync API

Connect your own systems to CoreSync. Read and update your subscribers, plans, payments, invoices and who is online, and get a webhook the moment something changes.

https://coresyncapi.avitechcloud.com/api/v1v1.0.1

What you can build#

The API works on your own ISP's data, with a key you create in your CoreSync admin. Some things ISPs build with it:

Base URL and formats#

Every request goes to https://coresyncapi.avitechcloud.com/api/v1 over HTTPS. Requests and responses are JSON.

ThingHow it looks
Field namessnake_case, for example subscriber_code
TimesISO 8601 in UTC, for example 2026-11-25T09:00:00Z. Dates are YYYY-MM-DD.
Money{"amount": "1500.00", "currency": "KES"}. The amount is a string, so it never loses a cent.
Phone numbersE.164 in answers (+254712345678). Any common format is accepted in requests.
Listspage and size in, {items, total, page, size} out. See Pagination.
Errorsapplication/problem+json with a stable code. See Errors.
SpecificationOpenAPI 3.1 at /api/v1/openapi.json, no key needed.

Key ideas#

API key
A secret starting cs_live_, sent in the X-API-Key header. It belongs to your ISP and acts only on your ISP's data. More
Scopes
What a key may try: read, subscribers:write, payments:write, webhooks:write, or write for all three writes.
Permissions
A key never does more than the person who created it. Their current role is checked on every call.
Idempotency key
A unique string you send when you record a payment or add a webhook, so a retry never does it twice. More
Webhooks
Signed events CoreSync POSTs to your HTTPS URL: payments, suspensions, reactivations and dropped sessions. More
Rate limit
Each key may make 120 requests a minute unless you set another limit. More

Your first five minutes#

  1. Create a key

    In your CoreSync admin, open Settings → API access, click New key, tick read and copy the key. It is shown once. How

  2. Check it works

    Shell
    curl https://coresyncapi.avitechcloud.com/api/v1/account \
      -H "X-API-Key: $CORESYNC_API_KEY"
  3. Find a subscriber by phone

    Shell
    curl -G https://coresyncapi.avitechcloud.com/api/v1/subscribers/lookup \
      --data-urlencode "phone=+254712345678" \
      -H "X-API-Key: $CORESYNC_API_KEY"
  4. Do the rest in your language

    The quickstart does the same in JavaScript and Python, and records a payment safely.

Good to know#

There is no test mode yet. Every key works on your live data. While you build, use a key with only read, and try writes on a subscriber you set up for testing.

  • Call the API from your server. Never put a key in a web page or a mobile app: anyone who has it can act as you.
  • The API covers what your staff do every day. Setting up routers, OLTs and plans is still done in the CoreSync admin.
  • v1 only gains things. Nothing you build on it will break without a new version. Versioning
NextQuickstart →

Stuck, or missing something? Tell us what you're building.

hello@coresyncisp.com