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/
LogoLogo
CloudflareSocial Media PostingTik Tok

Refresh Token: https://open.tiktokapis.com/v2/oauth/token/

||View as Markdown|
POST
/v2/oauth/token/
POST
/v2/oauth/token/
$curl -X POST https://graph.facebook.com/v2/oauth/token/ \
> -H "Content-Type: application/x-www-form-urlencoded" \
> -d "client_key=string" \
> -d "grant_type=string" \
> -d "client_secret=string" \
> -d "refresh_token=string"
200Social Media Posting_TikTok_Refresh Token: https://open.tiktokapis.com/v2/oauth/token/_example
1{
2 "scope": "user.info.basic,user.info.profile,video.publish,video.upload",
3 "open_id": "-000c0X4oTuwARKB_lOUgFXsD1eq9cjZuTpt",
4 "expires_in": 86400,
5 "token_type": "Bearer",
6 "access_token": "act.MhVkEz2Yaazqor7tX7U7s2Sdl3wHXoSArgNTFyQZxNvDZRLZbQeCTXRRMdE4!4618.s1",
7 "refresh_token": "rft.Tpl9xZ7lXKEsmLAlVQRMmZCHivY8D1hfYNfTCbq7UbB1ES29JpBtdVSiCh2J!4562.s1",
8 "refresh_expires_in": 31535902
9}
Was this page helpful?
Previous

  1. Upload Video: {Location}

Next

Get Upload Status: https://open.tiktokapis.com/v2/post/publish/status/fetch/

Built with

Request

This endpoint expects an object.
client_keystringRequired
{env.TIKTOK_CLIENT_KEY}
grant_typestringRequired
client_secretstringRequired
{env.TIKTOK_CLIEN_SECRET}
refresh_tokenstringRequired
{refresh_token}

Response headers

Pragmastring
Expiresstring
x-tt-logidstring
x-janus-infostring
Cache-Controlstring
Server-Timingstring
x-tt-trace-idstring
x-tt-trace-tagstring
x-tt-origin-idcstring
x-tt-trace-hoststring
X-Parent-Response-Timestring
x-origin-response-timestring
Access-Control-Allow-Originstring
Access-Control-Allow-Headersstring
Access-Control-Allow-Methodsstring
Access-Control-Expose-Headersstring
Access-Control-Allow-Credentialsstring

Response

OK
scopestring
open_idstring
expires_ininteger
token_typestring
access_tokenstring
refresh_tokenstring
refresh_expires_ininteger

Get Upload Status: https://open.tiktokapis.com/v2/post/publish/status/fetch/