Keys and webhooks

For step-by-step API work across features, start with the developer toolbox and the API reference by feature.

Use this page when your own application needs to talk to creekX: making API keys, receiving signed events, or asking your system before someone may watch. Start with one key and one event. Your server describes its whole API at /openapi.json.

On this page

API keys and webhooks are under Developers, as in the screenshot. On a server installed before November 2026 and not yet upgraded, they are under Settings. The API reference below stays on this address.

Developers contains API recipes and API keys; private connection details are hidden
Open Developers for recipes, keys and webhooks. Connection details are hidden. Open full screenshot

Click: Developers

Keys for automation

  1. Make a key

    Open Developers, then Keys for automation, and choose Make a key. Name it after what uses it, for example "Nightly upload", and choose What it may do: a key may do what a person with that role may.

  2. Copy it now

    It is shown once. Copy it into your program.

  3. Send it with every request

    As the header X-CreekX-Key. For example:

    curl -H "X-CreekX-Key: YOUR-KEY" https://live.example.com/v1/channels

Make one key per program, so each can be revoked on its own. A revoked API key is refused on subsequent API authentication. The list shows who made each key and when it was last used. Keep keys on your application server, not in browser code.

The API

Your server describes its whole API at /openapi.json (for example https://live.example.com/openapi.json). Open it in any OpenAPI viewer, or generate a client for your language from it.

New to it? The REST API quick start walks one live through the API, from creating the stream to checking webhook signatures, with copyable requests and explained response shapes.

Webhooks

creekX posts events to your receiver. The receiver must authenticate each request, accept it durably and tolerate duplicate or late deliveries. Use a separate secret for each integration. Owner or admin access is needed to manage webhooks.

  1. Add a webhook

    Open Developers, then Webhooks, and choose Add webhook. Paste your system's https address.

  2. Choose what it is told

    For example: a channel goes on air or off air, a video is ready to play, a live's recording is saved, someone starts or stops watching.

  3. Copy the signing secret

    Shown once. Each event carries a CreekX-Signature header, t=…,v1=…. To check an event is really from your server, compute HMAC-SHA256 of <t>.<the request body> with the secret: it should equal v1.

  4. Send a test

    Choose Send a test, then inspect the delivery history. The test queues a ping event; accepted for delivery is different from delivered. Confirm a 2xx result and inspect your receiver’s saved event.

What your receiver needs to do

Check the signature first, on the exact bytes you received. Parsing the JSON and signing it again changes the bytes, and the check fails. Keep the whole signing secret, including its prefix, use a constant-time comparison, and refuse timestamps outside a window you choose.

The signed event has id, type, tenantId, occurredAt, sequence and event-specific data. Expect duplicates. Save a unique key such as (tenantId, id) and queue the work durably before you answer with a 2xx, so a retry never repeats a charge or a notification. CreekX-Delivery identifies one delivery and stays the same across its retries.

Failures retry after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours; seven failed attempts end in given_up. The default request timeout is 10 seconds. Redirects are not followed. Each attempt is signed with a fresh timestamp; delivery time and the original event time are different. Events may arrive out of order, and sequence numbers need not be consecutive within one workspace.

The API quick start contains copyable verification code and test and delivery-history requests. For receiver architecture and recovery, read Make streaming webhooks safe to retry.

Keep the different credentials separate

  • API key: authorizes your program’s API requests. Create a replacement, deploy it and revoke the old key after verifying the new one.
  • Stream key: authorizes an encoder. Rotating it refuses the old key on new connections; update each encoder. Do not assume it disconnects an established publisher.
  • Viewer token: authorizes playback for a stream and expiry. Revoke tokens with POST /v1/streams/{id}/tokens/revoke. Rotating the encoder key does not revoke these tokens.
  • Webhook signing secret: proves who sent an event. The current routes create, list, delete and test webhooks; they do not provide an in-place secret rotation endpoint. Plan a replacement subscription carefully and keep receiver deduplication active while subscriptions overlap.

Approval by your own system

For pay-per-view or members-only: in Settings, under Approval by your own system, give the address of your system. creekX then asks it when a publish or play connection is authorized. This is a synchronous access decision, separate from notification webhooks. The JSON question includes action, streamId, streamName, ip, protocol and at, signed with the approval callback’s secret. A 2xx approves; any other status, a timeout after 3 seconds or an unsafe address denies access. This fail-closed behaviour means your approval service must be available when viewers join. Do not apply an asynchronous webhook queue to that decision.

What to check before an event

  1. Test with the same API-key role that your application will use.
  2. Verify one real event, one duplicate and one failed receiver response.
  3. Check delivery history and confirm the receiver catches up after recovery.
  4. Keep an operational contact, safe logs and a way to reconcile current stream state.

Follow everyday server care and the troubleshooting guide. Never put API keys, webhook secrets or private viewer tokens in a public issue or screenshot.

Follow the build