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

# Sharing verified stats across organizations

> When a creator has already connected her accounts for another organization, ask her to share her verified stats with yours, without connecting again.

A creator connects her Instagram, TikTok or YouTube accounts **once**. After that, any organization she works with can ask to see her verified stats, and she approves per platform. You don't need her to sign in to the platforms again, and she can stop sharing at any time.

This guide covers the API. See [Connect creator accounts with CreatorLink](https://docs.creatorcore.co/guides/creatorlink.md) for the first connection.

## How it works

1. You create a CreatorLink for the creator in your organization, tracking her channels as usual.
2. `GET /api/v2/creator-connects/{id}/access` returns `available` when she has already connected accounts elsewhere. It also tells you how she can prove it is her.
3. Either **request access** (if she has a phone on file she is texted a link; she approves on the hosted CreatorLink page), or run the approval in **your own UI** with an identity check.
4. Once she approves, the platforms you were granted show as `shared` and her verified stats appear in your organization.

## Before you start

* An [API key](https://docs.creatorcore.co/authentication.md) with the **Creators** operations (`creator_connects.*`).
* A CreatorLink for the creator (`POST /api/v2/creators/{id}/connect`) whose creator tracks a connected channel.

## Check what you can see

```bash theme={null}
curl https://beta.creatorcore.co/api/v2/creator-connects/<connect id>/access \
  -H "Authorization: Bearer $CREATORCORE_API_KEY"
```

`access.status` is one of:

| Status | Meaning |
| - | - |
| `none` | The creator hasn't connected accounts yet. Send her the CreatorLink `url`. |
| `available` | She has connected accounts. You can ask for access. |
| `pending` | You asked and are waiting. |
| `granted` | At least one platform is shared with you. |
| `revoked` | Sharing stopped. Stored values are frozen. |

Each entry of `access.platforms` has a `state`: `shared`, `expiring_soon`, `needs_reconnect`, `available`, `pending`, `revoked` or `not_connected`. For `revoked` and `needs_reconnect`, `asOf` is when the stats stopped updating. `access.approvedBy` shows who approved (name and role) when known.

## Option 1: request access

```bash theme={null}
curl -X POST https://beta.creatorcore.co/api/v2/creator-connects/<connect id>/access-requests \
  -H "Authorization: Bearer $CREATORCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "platforms": ["instagram"] }'
```

If she has a phone on file, she receives a text with a link to the CreatorLink page; otherwise send her the CreatorLink `url` yourself. She proves it is her and approves. Repeating the call returns the same pending request. Poll `access` (or check again later) to see it become `granted`. The body is optional: omit `platforms` to ask for everything she has connected.

## Option 2: run the approval in your own UI

**1. Start an identity check**

Use `access.verification.method`.

```bash theme={null}
curl -X POST https://beta.creatorcore.co/api/v2/creator-connects/<connect id>/identity-challenges \
  -H "Authorization: Bearer $CREATORCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "method": "sms" }'
```

* `sms` texts a code to the phone on file. Show `challenge.maskedDestination` (for example `•••• 4821`) so she knows where to look.
* `account_relink` is for creators with no phone on file. Send `platform` (and optionally an HTTPS `returnUrl`). Redirect her browser to `challenge.connectUrl`; she reconnects one of her accounts and comes back to your `returnUrl` with `status=verified`, `connectId` and `challengeId` (or `status=error` and a `code`).

**2. Verify it**

```bash theme={null}
curl -X POST https://beta.creatorcore.co/api/v2/creator-connects/<connect id>/identity-challenges/<challenge id>/verify \
  -H "Authorization: Bearer $CREATORCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "code": "123456" }'
```

For `account_relink`, send no body. Failures return 400 with a code: `identity_challenge_invalid_code`, `identity_challenge_expired`, `identity_challenge_too_many_attempts`, `identity_challenge_account_mismatch` or `identity_challenge_not_verified`. Too many codes requested returns 429 `rate_limited`; wait for `Retry-After`.

**3. Record her approval**

Only after she has agreed, in your UI, to share these platforms with you:

```bash theme={null}
curl -X POST https://beta.creatorcore.co/api/v2/creator-connects/<connect id>/grants \
  -H "Authorization: Bearer $CREATORCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "challengeId": "<challenge id>", "platforms": ["instagram"] }'
```

The challenge is single use. The response carries the `grant` and the updated `access`.

> [!WARNING]
>
> Show the creator who is asking and what they will see (audience demographics and post performance from her connected accounts) before you record the grant.

## Stop seeing a creator's stats

```bash theme={null}
curl -X DELETE https://beta.creatorcore.co/api/v2/creator-connects/<connect id>/grants \
  -H "Authorization: Bearer $CREATORCORE_API_KEY"
```

Use `/grants/{platform}` for one platform. The call is idempotent and returns 204. Your stored values are kept, frozen as of the moment you stopped (`asOf`). Other organizations the creator shares with are unaffected. The creator can also stop sharing with you herself; you then see `revoked`.

## Reference

* The API reference documents every request and response.
* Endpoints: `access`, `access-requests`, `identity-challenges`, `grants` under `/api/v2/creator-connects/{id}`.


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