Create a connect URL
curl --request POST \
--url https://beta.creatorcore.co/api/v2/creator-connects/{id}/connect-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://beta.creatorcore.co/api/v2/creator-connects/{id}/connect-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/creator-connects/{id}/connect-url"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"url": "<string>",
"expiresAt": "<string>",
"reconnect": true
}CreatorLink
Create a connect URL
Mints a URL that takes the creator to the platform’s sign-in and consent screen. Redirect the creator’s browser to url (a full-page redirect, not an iframe or pop-up). Mint one per click: the URL is single use and expires around expiresAt, so never store or email it.
When the creator finishes, CreatorCore saves the connected account and redirects the browser to your returnUrl (or the stored one, or the CreatorLink page when none is set) with these query parameters:
status:connectedorerrorplatform: the platformconnectId: the CreatorLink idcode(errors only):account_mismatch,permissions_incomplete,cancelled,unavailable,link_expired,not_linkedorconnection_failed
Don’t treat the redirect as proof: confirm with GET /api/v2/creator-connects/{id}. Returns 503 connection_capacity_reached when new connections are temporarily unavailable.
POST
/
api
/
v2
/
creator-connects
/
{id}
/
connect-url
Create a connect URL
curl --request POST \
--url https://beta.creatorcore.co/api/v2/creator-connects/{id}/connect-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '{}'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://beta.creatorcore.co/api/v2/creator-connects/{id}/connect-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/creator-connects/{id}/connect-url"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"url": "<string>",
"expiresAt": "<string>",
"reconnect": true
}Authorizations
Body
application/json
Response
Success
Was this page helpful?