curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/{pid}/refresh \
--header 'Authorization: Bearer <token>' \
--header 'X-CreatorCore-Organization-Id: <api-key>'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/{pid}/refresh', 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/{pid}/refresh"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"queued": 123,
"outcome": "refreshed",
"error": "<string>"
}Refresh a campaign post
Refreshes metrics for a single post immediately and responds once the refresh finishes. outcome reports the result (refreshed, failed, in_progress, paused, unavailable); error explains any non-success outcome. Every attempt starts the post’s manual-refresh cooldown (30 minutes by default), including one that fails or finds the post unavailable. A request inside that cooldown returns 409 manual_refresh_cooldown with details.availableAt, when the post can be refreshed again. The post is refreshed whenever it was last refreshed and whatever its refresh schedule, including a post past its refresh window or paused as unavailable. If a refresh of the post is already running, the request waits for that run instead of starting a second one. Story posts and posts on platforms without refresh support return 400. Organizations with refresh turned off get 409 org_refresh_stopped.
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/{pid}/refresh \
--header 'Authorization: Bearer <token>' \
--header 'X-CreatorCore-Organization-Id: <api-key>'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/{pid}/refresh', 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/{pid}/refresh"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"queued": 123,
"outcome": "refreshed",
"error": "<string>"
}Authorizations
Was this page helpful?