Add posts to a campaign
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/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/campaigns/{cid}/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/campaigns/{cid}/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,
"queued": 123,
"mode": "inline",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resumed": true,
"campaignPostIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"added": 123,
"duplicates": 123,
"errors": [
"<string>"
]
}{
"success": true,
"queued": 123,
"mode": "inline",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resumed": true,
"campaignPostIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"added": 123,
"duplicates": 123,
"errors": [
"<string>"
]
}Campaign posts and stories
Add posts to a campaign
Adds one or more post URLs to the campaign. Batches of 20 or fewer collect via Junction in-request and return 200 with mode: "inline" (full post rows, no Fetching wait). Larger batches return 202 with mode: "queued", skeleton rows, and a jobId — hydration starts immediately in the request (after()); poll GET /api/v2/tasks/{id} until it finishes. If a URL was previously removed from the campaign, returns 409 campaign_post_excluded with remover details unless confirmExcluded is true.
POST
/
api
/
v2
/
campaigns
/
{cid}
/
posts
Add posts to a campaign
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/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/campaigns/{cid}/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/campaigns/{cid}/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,
"queued": 123,
"mode": "inline",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resumed": true,
"campaignPostIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"added": 123,
"duplicates": 123,
"errors": [
"<string>"
]
}{
"success": true,
"queued": 123,
"mode": "inline",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resumed": true,
"campaignPostIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"added": 123,
"duplicates": 123,
"errors": [
"<string>"
]
}Authorizations
Body
application/json
Response
Inline collect finished (≤20 URLs). Posts are linked with full metadata.
Was this page helpful?