> ## 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.

# Authentication

> Authenticate with organization API keys.

Send an organization API key as a bearer token, and your organization ID in the `X-CreatorCore-Organization-Id` header, on every request:

```
Authorization: Bearer cc_live_…
X-CreatorCore-Organization-Id: 4f7c1a2e-…
```

```bash theme={null}
curl "https://beta.creatorcore.co/api/v2/creators?limit=10" \
  -H "Authorization: Bearer $CREATORCORE_API_KEY" \
  -H "X-CreatorCore-Organization-Id: $CREATORCORE_ORGANIZATION_ID"
```

## Organization ID header

CreatorCore's network protection challenges automated traffic it doesn't recognize. The `X-CreatorCore-Organization-Id` header identifies your requests as API traffic for your organization so they reach the API.

* **Where to find it.** Your organization ID is shown when you create or rotate a key, and any time under **Settings → Integrations → API keys** (Integrations is in the Organization settings group). The create and rotate API responses also return it as `organizationId`.
* **Not a secret.** The organization ID only routes your traffic. It doesn't authenticate anything on its own: every request still needs a valid API key.
* **Stable.** It doesn't change when you create, rotate, or revoke keys.
* **Use your own.** Send the ID of the organization that owns the key.

> [!NOTE]
>
> Requests without the header may be challenged or blocked before they reach the API, depending on where they come from. That kind of response is not a CreatorCore JSON error. If you get an HTML page or an unexpected `403` from a server or script, check that the header is set.

## Organization API keys

Create and manage keys under **Settings → Integrations → API keys** in CreatorCore. Only organization admins can manage keys.

* **One organization per key.** A key acts on behalf of the organization that created it, and every request runs in that organization's context. The organization ID header doesn't switch organizations.
* **Environment prefixes.** Production keys start with `cc_live_` and only work against `https://beta.creatorcore.co`. Keys created in non-production environments start with `cc_test_` and only work there.
* **Revoke and rotate.** You can revoke or rotate a key at any time from the same settings page. Requests made with a revoked key fail with `401`.

## Operation grants

Each key is granted a set of **operation groups** (for example Creators, Campaigns, Lists, or Payouts). A key can call only the operations in its groups. A call outside those groups returns `403` with code `forbidden`.

Some operations can't be granted to API keys and need a signed-in user in the CreatorCore app:

* Managing API keys
* Organization settings, members, invites, roles, and branding
* Creating, changing, or deleting notification destinations and subscriptions

> [!NOTE]
>
> Some features are add-ons, Payouts for example. If your organization doesn't have one enabled, its endpoints return `403` with code `feature_disabled`, whatever the key's grants.

## Public endpoints

Endpoints under `/api/v2/public/…` serve shared resources by their public slug (shared lists, folders, casting calls, and media kit PDFs). They need no authentication and are what CreatorCore's public share pages use.

## Errors

| Status | Code | Meaning |
| - | - | - |
| `401` | `unauthorized` | The key is missing, invalid, revoked, or used in the wrong environment. |
| `403` | `forbidden` | The key is valid but isn't granted this operation. |
| `429` | `rate_limited` | The key is over its [rate limit](https://docs.creatorcore.co/guides/rate-limits.md). Wait the number of seconds in `Retry-After`. |
| `403` | `feature_disabled` | Your organization hasn't enabled the add-on this endpoint belongs to. |


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