Course modules

Create API keys and webhooks for other systems

Issue scoped API keys for the Cohort REST API, send event webhooks to tools like Zapier, and set who is emailed about website leads.

Advanced10 minFor: Owner / Admin· Last checked 2026-11-13
Video tutorial coming soon

The written steps below are complete. Producing the video? Use the video script tab — it follows these steps one for one.

The Developer page connects Cohort to your website, Zapier or your own systems. API keys let another system read or write data through the Cohort API at /api/v1; each key only gets the scopes you pick. Webhooks push events, such as a new prospect or a paid invoice, to a web address as they happen, signed so the receiver can trust them.

By the end you can

  • Create an API key with only the scopes it needs
  • Set up a webhook endpoint for chosen events
  • Set website lead notification recipients

Before you start

  • An Owner or Admin login
  • The address of the system that will receive webhooks, if you use them

Step by step

  1. 1

    Open Developer settings

    /settings

    In Settings, click Open Developer settings.

    You should see: A page titled Developer with API keys, Website integration, Webhooks and Recent webhook deliveries.

  2. 2

    Name a new key and pick scopes

    /settings/developer

    In API keys, type a Name (for example Marketing website) and click each scope it needs under Scopes (pick at least one), such as read:programs.

    You should see: The chosen scopes are highlighted.

  3. 3

    Create the key

    /settings/developer

    Click Create key.

    You should see: New key created with the full key and Copy it now — it won't be shown again.

  4. 4

    Copy and store the key

    /settings/developer

    Copy the key into your other system's settings, then click Dismiss.

    You should see: The key appears in the list with its start, scopes and never used.

  5. 5

    Create a webhook endpoint

    /settings/developer

    In Webhooks, type a Name and URL (https), click the events under Events to subscribe to (leave empty for all), and click Create endpoint.

    You should see: Endpoint created with Signing secret (store securely on your receiver):.

  6. 6

    Store the signing secret

    /settings/developer

    Copy the signing secret into your receiving system, then click Dismiss.

    You should see: The endpoint is listed as active with its events.

  7. 7

    Set lead notification emails

    /settings/developer

    In Website integration, type one email per line in Notification recipients and click Save.

    You should see: Saved. These people are emailed for every lead, trial or enrolment submitted from your website.

  8. 8

    Check deliveries

    /settings/developer

    Look at Recent webhook deliveries.

    You should see: The last 25 events sent, each marked succeeded or failed.

Tips

  • Send the key in the X-API-Key header. The API quickstart card at the bottom shows sample requests.
  • Never put an API key in public website code. Keep it on a server.
  • Click Revoke to switch a key off. Anything using it starts getting a 401 error.
  • Use Disable to pause a webhook without deleting it, and Enable to turn it back on.
  • Each webhook is signed with an X-Cohort-Signature header your receiver can check with the signing secret.

Troubleshooting

It says Pick at least one scope — keys with no scopes can't read or write any data.
Click at least one scope before creating the key.
It says Name and URL are required.
Give the webhook a name and a full https address.
It says Webhook URL must start with http:// or https://.
Type the full address, including https://.
A webhook shows consecutive failures.
The receiving system isn't answering. Check its address and that it's running, then watch Recent webhook deliveries.
I lost an API key.
Keys are only shown once. Revoke the old key and create a new one.

Related lessons

Finished this lesson?