Import a post
curl --request POST \
--url https://beta.creatorcore.co/api/v2/posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"url": "<string>"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({url: '<string>'})
};
fetch('https://beta.creatorcore.co/api/v2/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/posts"
payload = { "url": "<string>" }
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,
"post": {
"link": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"globalPostId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tracker": true,
"refreshIntervalHours": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"post": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "tiktok",
"platformId": "<string>",
"shortcode": "<string>",
"type": "<string>",
"caption": "<string>",
"url": "<string>",
"thumbnailUrl": "<string>",
"publishedAt": "<string>",
"soundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"latestViews": 123,
"latestLikes": 123,
"latestComments": 123,
"latestShares": 123,
"refreshStatus": "<string>",
"lastRefreshedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
}Posts
Import a post
Imports a post into your organization catalog from a post URL.
POST
/
api
/
v2
/
posts
Import a post
curl --request POST \
--url https://beta.creatorcore.co/api/v2/posts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"url": "<string>"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({url: '<string>'})
};
fetch('https://beta.creatorcore.co/api/v2/posts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/posts"
payload = { "url": "<string>" }
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,
"post": {
"link": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"globalPostId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tracker": true,
"refreshIntervalHours": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"post": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "tiktok",
"platformId": "<string>",
"shortcode": "<string>",
"type": "<string>",
"caption": "<string>",
"url": "<string>",
"thumbnailUrl": "<string>",
"publishedAt": "<string>",
"soundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"latestViews": 123,
"latestLikes": 123,
"latestComments": 123,
"latestShares": 123,
"refreshStatus": "<string>",
"lastRefreshedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
}Authorizations
Was this page helpful?