Skip to content
Developers

    API reference

    Markdown
    The tiktornado REST API: base URL, authentication, requests, errors and limits.

    Base URL

    https://api.tiktornado.com/api/v1

    Your API key as a bearer token: Authorization: Bearer tt_..., with Bearer written exactly so. Create keys in the tiktornado app. The scopes each route needs are listed on the route.

    The tiktornado API lets your scripts and agents work with the TikTok accounts you have with tiktornado: list them, upload media, schedule, edit and cancel posts with every TikTok post setting, read post and daily stats, read comments and reply to them.

    Every post you make through the API is an ordinary tiktornado post. It shows in the tiktornado app and follows the same rules as a post made there.

    Authentication

    Send your API key in the Authorization header as a bearer token: Authorization: Bearer tt_.... Create keys in the tiktornado app, on the API and MCP page. A key is shown once, when you create it. It is tt_ followed by 43 letters, digits, - or _. A revoked key stops working at once.

    Each key has scopes. A route outside the key's scopes answers 403 with reason api_scope_missing.

    ScopeAllows
    accounts:readList accounts, and read each account's post options, music, places, posting times and next free time
    posts:readList posts
    posts:writeUpload links, schedule, edit and cancel posts, set posting times
    stats:readPost stats and daily stats
    comments:readRead a post's comments
    comments:writeReply to comments

    GET /key needs no scope.

    Requests and answers

    • Bodies are JSON, at most 64 KB. A body must have exactly the fields a route lists: an unknown field is refused with invalid_request, never ignored. A field sent as null is refused too, unless the route says it takes null.
    • Query parameters work the other way round: a route reads the ones it lists and ignores any other.
    • Ids are strings of letters and digits. An id that isn't yours answers 404, exactly like one that doesn't exist.
    • Times are ISO 8601. Times you send must carry a time zone (Z or an offset such as +02:00). Times we send are in UTC, for example 2026-12-02T15:00:00.000Z. Days are YYYY-MM-DD, in UTC.

    Pagination

    GET /posts and GET /posts/{postId}/comments answer a page and a nextCursor. Pass nextCursor back as cursor to get the next page. nextCursor is null on the last page. A page can hold fewer items than limit and still not be the last.

    Safe retries

    Every change that creates, edits or cancels something needs an Idempotency-Key header: a unique string you make up for that change, such as a UUID. If a request fails or times out, send it again with the same key and the same body: you get the first answer back, with the header Idempotent-Replayed: true, and the change is never made twice.

    • The same key with a different body or path answers 422 idempotency_key_reused.
    • A retry while the first request is still running answers 409 idempotency_in_progress. Wait a moment and try again.
    • Answers are kept for 24 hours, refusals included. A 429 or a 5xx answer is not kept, so retrying it runs the request again.
    • POST /uploads needs no key: a repeat simply gives you a new upload link.

    Errors

    Every error has the same shape: {"error": {"reason": "...", "message": "..."}}. reason is a stable code for your program to act on. message is a sentence you can show to a person. Each route lists the reasons it can answer. Treat any reason you don't know as a general failure of that request: new reasons may be added.

    StatusMeaning
    400The request can't be done as sent. The reason says why
    401The API key is missing, malformed or revoked
    403The key lacks the scope, or the subscription isn't active
    404The route, or the thing it names, doesn't exist or isn't yours
    409A request with the same Idempotency-Key is still running
    422The Idempotency-Key was already used for a different request
    429Too many requests. Wait the seconds in Retry-After
    500Something went wrong on our side
    503The service is briefly unavailable. Try again shortly

    When the subscription that bills an account isn't active, requests about that account answer 403 access_locked, and your other accounts keep working. When your whole account is locked, every request answers 403 access_locked.

    Rate limits

    Each API key can make about 120 requests a minute. On top of that there are limits per IP address and per key at our network edge, and limits per customer on work that reaches TikTok (uploads, posts, edits, replies and the account reads). Over any limit the answer is 429 with reason slow_down and a Retry-After header in seconds. Every limit refills within a minute. There are no other rate limit headers. Through the MCP server, every request to it counts once against the key's 120, and a tool call counts twice (the key check, then the call itself), so a key makes about 60 tool calls a minute.

    Saves to one account are fastest one at a time. Saves for different accounts can run in parallel.