For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Cloudflare
    • GETpayload example
    • POSThttps://social-media-posting-dev.deao.workers.dev/post
        • POSTRefresh Token: https://open.tiktokapis.com/v2/oauth/token/
        • POSTGet Upload Status: https://open.tiktokapis.com/v2/post/publish/status/fetch/
          • POSTDirect Post Image: https://open.tiktokapis.com/v2/post/publish/content/init/
LogoLogo
CloudflareSocial Media PostingTik TokImage

Direct Post Image: https://open.tiktokapis.com/v2/post/publish/content/init/

||View as Markdown|
POST
/v2/post/publish/content/init/
POST
/v2/post/publish/content/init/
$curl -X POST https://graph.facebook.com/v2/post/publish/content/init/ \
> -H "Content-Type: application/json" \
> -d "{
> \"post_info\": {
> \"title\": \"New Release!\", //{title}
> \"description\": \"Stream 'Success' in Spotify: https://musicca.st\", //{message}
> \"disable_comment\": false,
> \"privacy_level\": \"SELF_ONLY\",
> \"auto_add_music\": true
> },
> \"source_info\": {
> \"source\": \"PULL_FROM_URL\",
> \"photo_images\": [
> \"https://musicca.st/cdn-cgi/image/format=jpeg/https://og-image-generator-dev.deao.workers.dev/4:5?title=Chasing+viral+moments+is+killing+your+music+career.+Here%27s+what+works+now.&image=https%3A%2F%2Fwww.macworld.com%2Fwp-content%2Fuploads%2F2023%2F08%2Fapple-music-discovery-station.jpg%3Fquality%3D50%26strip%3Dall&logo=https%3A%2F%2Fmusiccast.odoo.com%2Fweb%2Fimage%2F3338&author=Sam&cta=https%3A%2F%2Fmusiccast.odoo.com%2Fweb%2Fimage%2F3343\",
> \"https://musicca.st/cdn-cgi/image/format=jpeg/https://og-image-generator-dev.deao.workers.dev/4:5?title=Chasing+viral+moments+is+killing+your+music+career.+Here%27s+what+works+now.&image=https%3A%2F%2Fwww.macworld.com%2Fwp-content%2Fuploads%2F2023%2F08%2Fapple-music-discovery-station.jpg%3Fquality%3D50%26strip%3Dall&logo=https%3A%2F%2Fmusiccast.odoo.com%2Fweb%2Fimage%2F3338&author=Sam&cta=https%3A%2F%2Fmusiccast.odoo.com%2Fweb%2Fimage%2F3343\" // {asset_url}
> ]
> },
> \"post_mode\": \"DIRECT_POST\",
> \"media_type\": \"PHOTO\"
>}"
200Social Media Posting_TikTok_Image_Direct Post Image: https://open.tiktokapis.com/v2/post/publish/content/init/_example
1{
2 "data": {
3 "publish_id": "p_pub_url~v2.7619810959422720007"
4 },
5 "error": {
6 "code": "ok",
7 "log_id": "20260322044848FD4042A3F675F0B98F37",
8 "message": ""
9 }
10}
Was this page helpful?
Previous

1. Initialize Upload: https://open.tiktokapis.com/v2/post/publish/video/init/

Next

Create Post: https://api.x.com/2/tweets

Built with

Request

This endpoint expects a string.

Response headers

Pragmastring
Expiresstring
X-Tt-Logidstring
X-Janus-Infostring
Cache-Controlstring
Server-Timingstring
x-tt-trace-idstring
x-tt-trace-tagstring
x-tt-trace-hoststring
X-Origin-Response-Timestring
Access-Control-Expose-Headersstring

Response

OK
dataobject
errorobject
  1. Initialize Upload: https://open.tiktokapis.com/v2/post/publish/video/init/

Create Post: https://api.x.com/2/tweets