> ## Documentation Index
> Fetch the complete documentation index at: https://docs.creatorcore.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhooks

> Receive signed events, including payout and recipient onboarding updates, at your own HTTPS endpoint.

Webhooks push events to a URL you control as they happen, so you don't have to poll. You register an endpoint, choose the events you want, verify each delivery's signature, and read a delivery log with the status of every attempt.

## Set up a webhook

**1. See what you can subscribe to**

```bash theme={null}
curl https://beta.creatorcore.co/api/v2/utilities/notifications/topics \
  -H "Authorization: Bearer $CREATORCORE_API_KEY"
```

Each entry has a `topic`. A topic ending in `%` matches every topic that starts with the same prefix.

**2. Register your endpoint**

```bash theme={null}
curl -X POST https://beta.creatorcore.co/api/v2/utilities/notifications/destinations \
  -H "Authorization: Bearer $CREATORCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "type": "webhook", "label": "Payments service", "config": { "url": "https://example.com/creatorcore/webhooks" } }'
```

The response includes `signingSecret`. **It is shown only once.** Store it with your other secrets; you need it to verify deliveries. If you lose it, rotate it (see below).

The URL must use HTTPS, must not contain a username or password, and must point at a public host.

**3. Subscribe to events**

```bash theme={null}
curl -X POST https://beta.creatorcore.co/api/v2/utilities/notifications/subscriptions \
  -H "Authorization: Bearer $CREATORCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "topic": "payouts:%", "destinationId": "<destination id>" }'
```

`payouts:%` subscribes to every payout event, including recipient onboarding. Subscribe to single topics, such as `payouts:completed`, or to `payouts:recipient:%` for onboarding only, to receive less.

**4. Send a test event**

```bash theme={null}
curl -X POST https://beta.creatorcore.co/api/v2/utilities/notifications/destinations/<destination id>/test \
  -H "Authorization: Bearer $CREATORCORE_API_KEY"
```

This sends a signed `notification.test` event to your endpoint and returns its delivery log entry.

### API key permissions

An API key can manage webhooks only when it is granted each operation by name. A key granted all operations (`*`) does not include them. Grant:

* `utilities.notifications.destinations.create`, `.update`, `.delete`, `.rotate_secret`, `.test`
* `utilities.notifications.subscriptions.create`, `.update`, `.delete`
* `utilities.notifications.list` and `utilities.notifications.read` to read the delivery log

API keys can manage `webhook` destinations only. Email, SMS and Slack destinations are managed by signed-in members.

Payout events need permission to read payouts. A key without `payouts.read` gets `403` when it subscribes a webhook to `payouts:…`, `payouts:%`, or `%`, and does not see payout events in the delivery log. The organization also needs the Payouts add-on.

Once a webhook is subscribed to payout events (`payouts:…`, `payouts:%`, or `%`, enabled or not), changing its URL, re-enabling it, rotating its secret, and re-enabling a payout subscription also need permission to read payouts; otherwise `403`. This applies to API keys and to signed-in members. Renaming, disabling, or deleting it does not.

Webhook destinations created by an API key belong to that key. If a different API key changes the URL or re-enables the destination, it becomes the owner instead. **Revoking or deleting the owner key disables them.** Rotating the key keeps them working with the new key. If the owner key loses `payouts.read`, payout deliveries to its webhooks stop and are logged as failed with `payout_access_revoked`.

If the owner key **expires**, nothing is dropped. New events are still recorded, and deliveries wait as `pending` with the error `destination_api_key_expired`. They are retried every hour without using up retry attempts. Extend the key's expiry and they are delivered. After 7 days of waiting they are marked `failed`, and you can redeliver them from the log once the key is valid again.

## Events

Every event below has a page in the API reference under **Webhooks**, with its full body schema and headers. For example, see [Payout completed](https://docs.creatorcore.co/api-reference/webhooks/payout-completed.md), [Payout recipient onboarded](https://docs.creatorcore.co/api-reference/webhooks/payout-recipient-onboarded.md), and [Test event](https://docs.creatorcore.co/api-reference/webhooks/test-event.md).

### Payouts

| Topic | When |
| - | - |
| `payouts:requested` | A payment request was filed. |
| `payouts:awaiting_recipient` | A payout was approved and is waiting for the recipient to finish onboarding. |
| `payouts:scheduled` | A payout is funded and will be sent later. `data.payout.releaseAt` is the time. |
| `payouts:created` | **Initiated.** The payout was approved and funded. Sent once per payout; it does not mean the money has left. |
| `payouts:pending` | **In transit.** The payout was sent and is on its way. This is the first event that means the money has left. |
| `payouts:completed` | **Processed.** Our payments partner processed the transfer. For US bank and wallet payouts the money has landed; international bank transfers and Cash App can take a few more business days. |
| `payouts:failed` | A payout failed; the funds return to the balance. |
| `payouts:reversed` | A completed payout was reversed. |
| `payouts:canceled` | A payout or request was canceled before it was sent, by your team or by CreatorCore support. The funds return to the balance. `data.deleted` is `true` when an unpaid request was removed. |
| `payouts:flagged` | A payout is held for review by our payments partner. |
| `payouts:rescheduled` | A scheduled payout's release time moved without a status change (for example, the recipient switched an instant payout back to standard). `data.previousReleaseAt` has the old time and `data.payout.releaseAt` the new one. |
| `payouts:deposit_credited` | Funds arrived on a payout balance. |
| `payouts:deposit_reversed` | A credited deposit was taken back. |
| `payouts:balance_hold` | Payouts were paused on the organization's balances. |
| `notification.test` | Sent by the test endpoint. Not subscribable. |

There are no separate "initiated", "sent" or "delivered" topics: `payouts:created` means initiated, `payouts:pending` means sent and on its way, and `payouts:completed` means our payments partner processed the transfer. For US bank and wallet payouts the money has landed by then; international bank transfers and Cash App can take a few more business days.

A payout that goes out later sends `payouts:created`, then `payouts:scheduled` (with `data.payout.releaseAt`), then `payouts:pending` when it is sent, then `payouts:completed`. `payouts:created` is not sent again when it leaves `scheduled`, so `payouts:pending` can carry `data.payout.previousStatus: "created"`.

A request being approved shows up as its status change, with `data.payout.previousStatus` set to `requested`: `payouts:created` (followed by `payouts:scheduled` if it goes out later), or `payouts:awaiting_recipient` if the recipient hasn't finished onboarding. In that case `payouts:created` follows once they have.

Payout status events also carry:

* `data.step`: why it moved, when the status alone doesn't say. `queued_for_release` (on `payouts:scheduled`: queued behind a large batch), `rescheduled` (on `payouts:rescheduled`). Otherwise `null`.
* `data.actor`: who moved it. `user` (a member of your organization), `recipient`, `system`, or `partner` (our payments partner). Never a person's id.

### CreatorLink

These follow a creator's connected social accounts (see [CreatorLink](https://docs.creatorcore.co/guides/creatorlink.md)). Events carry CreatorCore ids only: `data.creatorConnect.id`, `data.creator.id`, `data.platform` (`instagram`, `tiktok` or `youtube`), `data.username`, `data.reason` and `data.occurredAt`. Subscribe to `creator_connect:%` for all of them.

| Topic | When |
| - | - |
| `creator_connect:account_connected` | A creator connected an account (or reconnected one). Verified data starts syncing. |
| `creator_connect:account_disconnected` | A connected account stopped syncing: the creator disconnected it (`data.reason` is `creator_disconnected`), or it no longer exists (`account_removed`). Stored verified data is kept. |
| `creator_connect:needs_reconnect` | A connected account's access expired or was revoked (`data.reason` is `access_revoked`). The creator needs to reconnect it; stored verified data is kept. |

### Recipient onboarding

These follow a creator or partner from "invited to get paid" to "can be paid". They use the `payouts:` prefix, so they need the same payout permission, and a `payouts:%` subscription receives them. Subscribe to `payouts:recipient:%` for all of them.

| Topic | When |
| - | - |
| `payouts:recipient:invited` | An onboarding (get paid) link was issued. Issuing a new link sends it again. |
| `payouts:recipient:started` | The recipient opened their link for the first time. |
| `payouts:recipient:in_review` | Our payments partner is reviewing the recipient's identity. |
| `payouts:recipient:verified` | The recipient's identity is verified. |
| `payouts:recipient:method_added` | A payout method became usable: newly added, or fixed after it was invalid or needed action. |
| `payouts:recipient:method_action_required` | A payout method needs the recipient to act before it can be paid again. |
| `payouts:recipient:method_invalid` | A payout method can't receive money; the recipient needs to add another. |
| `payouts:recipient:onboarded` | Onboarding is complete and the recipient can be paid. Payouts in `awaiting_recipient` are released next (you get their own status events). |
| `payouts:recipient:disabled` | The recipient can't be paid: disabled or banned by our payments partner, or disabled in CreatorCore. |
| `payouts:recipient:reset` | The recipient's onboarding link was reset (whether or not they had finished onboarding), or a partner was disconnected. The old link no longer works and the recipient must onboard again. A link reset is always followed by `invited` for the new link. |

A typical creator sends `invited`, `started`, `verified`, `method_added`, then `onboarded`. Steps can be skipped: someone who already has a verified CreatorCore payout profile from another organization goes straight from `started` to `onboarded` (with a `verified` event when their profile is linked to yours).

Identity and payout-method events are about the person. If several of your creators or partners are paid to the same person, you get one event for each of them.

Webhooks can also subscribe to the other topics in the catalog, such as `campaigns:activity:%`. Their `data` is not typed yet; see [Other notification topics](https://docs.creatorcore.co/api-reference/webhooks/other-notification-topics.md).

## Payload

Every delivery is a `POST` with a JSON body:

```json theme={null}
{
  "id": "0b6e7c1a-2f7d-4a4e-9d55-1c7f3c2b8e10",
  "type": "payouts:completed",
  "createdAt": "2026-11-05T18:02:11.482Z",
  "organizationId": "5f0c…",
  "data": {
    "payout": {
      "id": "9a1e…",
      "routing": "partner",
      "status": "completed",
      "previousStatus": "pending",
      "amountMinor": 12500,
      "currency": "USD",
      "failureCode": null,
      "campaignId": "…",
      "activationId": "…",
      "completedAt": "2026-11-05T18:02:10.000Z",
      "createdAt": "2026-11-01T09:00:00.000Z",
      "updatedAt": "2026-11-05T18:02:10.000Z"
    }
  }
}
```

* `id` is the event ID. It stays the same on every retry of the same event.
* `type` is the topic.
* Payout `data` uses the same field names as [`GET /api/v2/pay/payout/{id}`](https://docs.creatorcore.co/api-reference/payouts/get-a-payout), with ids, statuses, amounts in minor units, and timestamps. It never contains payment-method, bank, card or tax details.
* `data.payout.routing` is how the payout is paid, with the same values as `routing` on the payout read: `partner` (sent through our payments partner, the licensed processor that moves the money), `internal` (to another organization's balance) or `off_platform` (paid outside CreatorCore, recorded only).
* `data.payout.failureCode` is set on `failed` and `reversed`, and on `pending` or `flagged` while a transfer error is open. Codes include `account_closed`, `invalid_account_details`, `insufficient_funds`, `temporarily_unavailable`, `http_503` and `unknown`. Failures on our payments partner's side use a `partner_` prefix, such as `partner_request_failed`, `partner_funding_failed` and `partner_blocked`, with `partner_error` for any other. "Partner" in `routing: "partner"` and in `partner_*` codes always means our payments partner, never a Partner (client) in your CreatorCore account. New codes can appear: treat an unknown one as a generic failure and show `failureMessage`.
* Recipient onboarding `data` is described below.
* Each topic's exact `data` schema is on its page under **Webhooks** in the [API reference](https://docs.creatorcore.co/api-reference/webhooks/payout-completed.md).

### Recipient onboarding payload

```json theme={null}
{
  "id": "4c1f…",
  "type": "payouts:recipient:onboarded",
  "createdAt": "2026-11-06T15:20:01.114Z",
  "organizationId": "5f0c…",
  "data": {
    "step": "onboarded",
    "occurredAt": "2026-11-06T15:20:01.090Z",
    "recipient": {
      "id": "7d2b…",
      "type": "creator",
      "status": "active",
      "previousStatus": "pending",
      "recipientId": "e81a…",
      "creatorProfileId": "c3f9…",
      "partnerId": null,
      "createdAt": "2026-11-01T09:00:00.000Z",
      "updatedAt": "2026-11-06T15:20:01.090Z"
    }
  }
}
```

* `step` is the last part of the topic.
* `recipient` uses the field names of [`GET /api/v2/pay/recipient/{id}`](https://docs.creatorcore.co/api-reference/payouts/get-a-recipient): `id` is your organization's recipient (one per creator or partner), and `recipientId` is the person or organization being paid. `status` is `pending`, `active` or `disabled`. `previousStatus` is the status before the event. It is set on events that changed `status` (`onboarded`, `disabled`) and always on `reset`, where it equals `status` if the link was reset before onboarding finished. Otherwise it is `null`.
* Identity events (`in_review`, `verified`, `disabled` from our payments partner) add `verification: { status, previousStatus }`, with our payments partner's status: `unverified`, `in_review`, `verified`, `disabled` or `banned`.
* Payout-method events add `method: { id, status, previousStatus, selected }`. `status` is `pending`, `active`, `invalid` or `action_required`; `selected` is `true` when it is the method you pay this recipient to.
* `invited` and `started` add `invite: { id, createdAt, expiresAt, openedAt }`. The link itself is never included.

Recipient data never contains names, email addresses, phone numbers, payment-method details (type, bank, account digits, handles), tax or identity documents, or our payments partner's ids.

Headers:

| Header | Value |
| - | - |
| `CreatorCore-Signature` | `t=<unix seconds>,v1=<signature>` |
| `CreatorCore-Event-Id` | Same as the body's `id` |
| `CreatorCore-Event-Type` | Same as the body's `type` |

## Verify the signature

`v1` is the hex HMAC-SHA256 of `<t>.<raw body>`, keyed with your signing secret. Verify it against the **raw** request body, before parsing JSON, and reject timestamps more than five minutes old.

```ts theme={null}
import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyCreatorCoreSignature(rawBody: string, header: string | null, secret: string): boolean {
  if (!header) return false;
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=", 2)));
  const t = Number(parts.t);
  if (!Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest();
  const given = Buffer.from(parts.v1 ?? "", "hex");
  return given.length === expected.length && timingSafeEqual(given, expected);
}
```

```python theme={null}
import hashlib, hmac, time

def verify_creatorcore_signature(raw_body: bytes, header: str | None, secret: str) -> bool:
    if not header:
        return False
    parts = dict(p.split("=", 1) for p in header.split(",") if "=" in p)
    try:
        t = int(parts.get("t", ""))
    except ValueError:
        return False
    if abs(time.time() - t) > 300:
        return False
    expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))
```

To replace a secret, call `POST /api/v2/utilities/notifications/destinations/{id}/rotate-secret`. The response contains the new secret, once, and every delivery after the call is signed with it.

## Retries and duplicates

Respond with any `2xx` status within 10 seconds to acknowledge a delivery. Anything else, a timeout, or a redirect counts as a failure (redirects are not followed). A failed delivery is retried after about 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours. After the sixth failed attempt it is marked `failed`.

Delivery is **at least once**: the same event can arrive more than once, and events can arrive out of order. Store the `id` of each event you process and skip ones you have already seen. Use `createdAt` or the payout's `updatedAt` to order them.

Disabled destinations receive nothing. Deleting a destination stops delivery; its past entries stay in the log.

## Delivery log

```bash theme={null}
curl "https://beta.creatorcore.co/api/v2/utilities/notifications?channel=webhook&destination_id=<destination id>&status=failed" \
  -H "Authorization: Bearer $CREATORCORE_API_KEY"
```

Each entry has `status` (`pending`, `processing`, `sent`, `failed`), `attempts`, `lastAttemptAt`, `lastResponseStatus`, `nextAttemptAt` (when a retry is due), and `error` (a short reason, including the start of your endpoint's response body for non-`2xx` replies). Filter with `channel`, `status`, `topic`, `destination_id`, and a `from` / `to` time window. Entries are kept for 90 days.

To retry a `failed` delivery, call `POST /api/v2/utilities/notifications/{id}/redeliver`. It is sent again with the same event `id` and a fresh retry schedule.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.