Import a channel
curl --request POST \
--url https://beta.creatorcore.co/api/v2/channels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"url": "<string>",
"globalChannelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refreshIntervalHours": 1.25,
"creatorProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: '<string>',
globalChannelId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
refreshIntervalHours: 1.25,
creatorProfileId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://beta.creatorcore.co/api/v2/channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/channels"
payload = {
"url": "<string>",
"globalChannelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refreshIntervalHours": 1.25,
"creatorProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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,
"channel": {
"link": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"globalChannelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tracker": true,
"refreshIntervalHours": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"displayName": "<string>"
},
"channel": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "tiktok",
"platformId": "<string>",
"handle": "<string>",
"name": "<string>",
"avatarUrl": "<string>",
"bio": "<string>",
"url": "<string>",
"refreshStatus": "<string>",
"lastRefreshedAt": "<string>",
"nextRefreshAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
}Channels
Import a channel
Imports a social channel into your organization catalog from a profile URL or known channel identity. Importing by globalChannelId also adds the channel’s creator to your organization, and returns 409 with code creator_limit_reached when your organization is at its creator limit.
POST
/
api
/
v2
/
channels
Import a channel
curl --request POST \
--url https://beta.creatorcore.co/api/v2/channels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"url": "<string>",
"globalChannelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refreshIntervalHours": 1.25,
"creatorProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: '<string>',
globalChannelId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
refreshIntervalHours: 1.25,
creatorProfileId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://beta.creatorcore.co/api/v2/channels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/channels"
payload = {
"url": "<string>",
"globalChannelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refreshIntervalHours": 1.25,
"creatorProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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,
"channel": {
"link": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"globalChannelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tracker": true,
"refreshIntervalHours": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"displayName": "<string>"
},
"channel": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "tiktok",
"platformId": "<string>",
"handle": "<string>",
"name": "<string>",
"avatarUrl": "<string>",
"bio": "<string>",
"url": "<string>",
"refreshStatus": "<string>",
"lastRefreshedAt": "<string>",
"nextRefreshAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
}Authorizations
Body
application/json
Was this page helpful?