How it works
- You create a CreatorLink for a creator.
- When the creator clicks “Connect Instagram” (or TikTok, or YouTube) in your app, you ask CreatorCore for a connect URL and redirect their browser to it.
- The creator signs in on the platform and approves read-only access to their analytics.
- CreatorCore saves the connected account and sends the browser back to your
returnUrlwith the result. - You read the creator’s connection status and verified audience whenever you need them.
Before you start
- An API key with the Creators operations (
creators.connect.create,creator_connects.*,creators.verified_audience.read). - Your organization has audience demographics turned on.
- An HTTPS page in your app to return creators to, for example
https://app.example.com/creatorlink/done.
Run the flow
1
Create a CreatorLink
connect.id identifies the CreatorLink. Calling this again returns the same CreatorLink (and updates returnUrl if you send one). connect.url is the hosted CreatorLink page, if you’d rather send the creator there.2
Mint a connect URL when the creator clicks
url right away with a full-page redirect (not an iframe or pop-up). Mint a new URL for every click: each one is single use and expires around expiresAt. Never store it or send it by email.Pass returnUrl here to override the stored one for this and later connects.3
Handle the return
When the creator finishes, their browser lands on your
returnUrl with these query parameters added:The redirect only tells you the flow finished. Confirm the result from your server with
GET /api/v2/creator-connects/{id} before you rely on it.4
Read connection status
connect.platforms has one entry per platform:5
Read the verified audience
age, gender, countries and cities, each with a source: verified when the connected account reported it, or estimated when it didn’t and the public estimate fills in. asOf is when the verified data was last pulled. Platforms usually take up to 48 hours after connecting to report audience data.Connection statuses
When a platform is
expiring_soon or needs_reconnect, a new connect URL refreshes the existing account in place, so its history is kept. Send "reconnect": false to connect a different account instead.
Error codes
POST /api/v2/creator-connects/{id}/connect-url itself can return 503 with code connection_capacity_reached when new connections are temporarily unavailable.
Re-sync and disconnect
POST /api/v2/creator-connects/{id}/syncre-checks the creator’s accounts now and refreshes verified audience data that is out of date. It returns the updated CreatorLink.DELETE /api/v2/creator-connects/{id}/accounts/{platform}disconnects one platform. Verified data already stored is kept. It returns204whether or not the platform was connected.
Get notified
Subscribe a webhook tocreator_connect:% to hear about creator_connect:account_connected, creator_connect:account_disconnected and creator_connect:needs_reconnect without polling.