Get bulk refresh status
curl --request GET \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/refresh/status \
--header 'Authorization: Bearer <token>' \
--header 'X-CreatorCore-Organization-Id: <api-key>'const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/refresh/status', 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/refresh/status"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"status": {
"phase": "idle",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refreshId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "campaign",
"taskStatus": "pending",
"total": 123,
"enqueued": 123,
"skippedInQueue": 123,
"skippedRecentlyFresh": 123,
"skippedUnavailable": 123,
"campaignPostCount": 123,
"refreshedSinceStart": 123,
"succeededCount": 123,
"failedCount": 123,
"skippedCount": 123,
"unavailableCount": 123,
"inFlight": 123,
"remaining": 123,
"drainTarget": 123,
"startedAt": "<string>",
"completedAt": "<string>",
"errorMessage": "<string>",
"startedByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedByName": "<string>",
"cooldown": {
"available": true,
"lastRefreshAt": "<string>",
"availableAt": "<string>",
"windowMinutes": 123
}
}
}Campaign posts and stories
Get bulk refresh status
Returns the campaign’s live refresh job (or its most recent one within 24 hours) with progress counts, who started it, and the cooldown state behind the Refresh Data button.
GET
/
api
/
v2
/
campaigns
/
{cid}
/
posts
/
refresh
/
status
Get bulk refresh status
curl --request GET \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/refresh/status \
--header 'Authorization: Bearer <token>' \
--header 'X-CreatorCore-Organization-Id: <api-key>'const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/refresh/status', 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/refresh/status"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"status": {
"phase": "idle",
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refreshId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "campaign",
"taskStatus": "pending",
"total": 123,
"enqueued": 123,
"skippedInQueue": 123,
"skippedRecentlyFresh": 123,
"skippedUnavailable": 123,
"campaignPostCount": 123,
"refreshedSinceStart": 123,
"succeededCount": 123,
"failedCount": 123,
"skippedCount": 123,
"unavailableCount": 123,
"inFlight": 123,
"remaining": 123,
"drainTarget": 123,
"startedAt": "<string>",
"completedAt": "<string>",
"errorMessage": "<string>",
"startedByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startedByName": "<string>",
"cooldown": {
"available": true,
"lastRefreshAt": "<string>",
"availableAt": "<string>",
"windowMinutes": 123
}
}
}Authorizations
Was this page helpful?