User manual / Your team and settings

API keys and webhooks

Let another system read your data or make changes with an API key, and get told when things happen with a webhook.

Owners & admins
All guides
On this page

What it's for#

The CoreSync API lets another system work with your ISP's data: a call-centre tool, an accounting package or a bot such as crew.bot. It can read subscribers, plans, sessions, invoices and payments. With the right key, it can also record payments, suspend, reactivate or change plans.

Everything is in Settings → API access. The top card shows your Base URL and the link to the full specification.

The API access tab with the base URL, one active key showing only its first and last characters, and a webhook endpoint
Permission needed:View Settings

Create a key#

  1. Press New key.
  2. Give it a Name, such as the system that will use it. The name shows as the actor on everything the key does, for example on a subscriber's timeline.
  3. Under What it may do, tick only the scopes it needs.
    The New API key dialog with a name, the scope list, an optional expiry date and a request limit
  4. If you need them, set Expires (optional) and Requests per minute.
  5. Press Create key. Copy the key from Copy your key now and store it safely, then press I have copied it.
ScopeLets the key
readRead subscribers, plans, sessions, invoices, payments and webhooks.
subscribers:writeSuspend, reactivate and change a subscriber's plan.
payments:writeRecord a payment against a subscriber. This moves money.
webhooks:writeCreate, change, delete and test webhook endpoints.
writeAll the write scopes above, and any added later.
Permission needed:Edit Settings
The key is shown only once. CoreSync keeps only a fingerprint of it. Lose it and you'll need to make a new one.

A key never does more than you#

A key acts with the permissions of the person who made it, as they are right now. So:

  • You can only tick scopes your own role allows. The others say You do not have the permission behind this scope.
  • If your role loses a permission later, your keys lose it too.
  • If you're deactivated, your keys stop working.

Make keys for long-running integrations from an account that will stay, such as the owner's.

Revoke a key#

Press Revoke on the key, then Revoke again to confirm. Anything using it stops working at once. This can't be undone. Revoked and expired keys move to the list below, with who revoked them and when.

Revoke a key as soon as you stop using an integration, or if you think someone else has seen it.

Permission needed:Edit Settings

Add a webhook#

A webhook makes CoreSync tell your system when something happens, instead of your system asking all the time.

  1. Under Webhooks, press Add endpoint.
  2. Type the URL. It must be HTTPS and reachable from the internet.
  3. Tick the Events you want: payment.received, subscriber.suspended, subscriber.reactivated or session.down.
  4. Press Save. Copy the signing secret from Copy the signing secret now. Your system uses it to check each event really came from CoreSync.
  5. Press Send a test event, then Deliveries to see whether it arrived.

Failed deliveries are retried 5 times. After 20 failures in a row, CoreSync switches the endpoint off. Fix the problem, then press Edit, turn Active back on and press Save.

Permission needed:Edit Settings

For your developer#

Everything else, including endpoints, examples, signatures and error codes, is in the developer documentation at /developers.

Common mistakes#

  • Ticking every scope. A key that only reads should only have read.
  • Making the key from a staff account that will leave. When that person is deactivated, the key stops.
  • Pasting the key into chat or email. Anyone with the key can act as you. Store it like a password.
  • Ignoring a switched-off endpoint. Check Deliveries to see why it failed.
Still stuck? Open the AI assistant in CoreSync and describe what you see, or email hello@coresyncisp.com. Screenshots on this page come from Amani Link, our demo ISP, so the names and numbers are made up.