Your API key. Create one in Ocoya. Authorization: Bearer <key> works too.
API Reference
Delete post
Deletes a post by Post id and cancels all schedules. If the post was already published, the published copy is deleted on every network it went to as well. Networks with no delete API (TikTok, Snapchat, Whop, Twitch) and any network that refused are reported in networkDeletes rather than failing the request, so the post is always deleted in Ocoya. A post that was synced from a network rather than published by Ocoya is only removed from Ocoya.
Delete post
curl --request DELETE \
--url https://www.app.ocoya.com/api/_public/v1/post/{postId} \
--header 'X-API-Key: <api-key>'{
"networkDeletes": [
{
"provider": "linkedin",
"providerName": "LinkedIn",
"socialProfileId": "clh49poxf008x8kov4ncbjty9",
"status": "deleted",
"message": "TikTok has no API for deleting a published post. Delete it in the TikTok app."
}
]
}Authorizations
Was this page helpful?