# tiktornado developer docs

Schedule posts on your tiktornado TikTok accounts, read their stats and comments, and reply, with the REST API or the MCP server.

<Hero title="Build with tiktornado.">
Schedule posts on your TikTok accounts, read their stats and comments, and reply, from your own code or your AI agent.
</Hero>

<StartCards>
<StartCard href="/getting-started/quickstart" title="Build with the API" cta="Start building" art="api">
Plain JSON over HTTPS with one API key. Schedule your first post in a few minutes.
</StartCard>

<StartCard href="/mcp" title="Connect your agent with MCP" cta="Connect a client" art="mcp">
Add this server to Claude Code, Codex or Cursor and post from your agent.

<McpServer />
</StartCard>
</StartCards>

## Your first API request [#your-first-api-request]

Create a key on the [API and MCP page](https://app.tiktornado.com/api) of the tiktornado app, put it in `TIKTORNADO_API_KEY`, then list your accounts:

```bash
curl https://api.tiktornado.com/api/v1/accounts \
  -H "Authorization: Bearer $TIKTORNADO_API_KEY"
```

```json operation="GET /accounts" kind="response" status="200"
{
  "accounts": [
    { "id": "j971x2c4ajrq0w8sd5e8fxz3a57v2k8m", "username": "liftwithmaya", "status": "active" }
  ]
}
```

## How posting works [#how-posting-works]

<Steps>
<Step title="Upload the file">
`POST /uploads` gives you an upload link and a `mediaRef`. Send the file to the link with an HTTP `PUT`.
</Step>

<Step title="Schedule the post">
`POST /posts` with the account, the `mediaRef`, a caption and when it should go out: a time, now, or the account's next free posting time.
</Step>

<Step title="Follow it">
`GET /posts` shows its status until it is `published`. Then read its stats and comments, and reply.
</Step>
</Steps>

## Keep these close [#keep-these-close]

<Cards>
<Card title="API reference" href="/api-reference">
Every route, field and answer.
</Card>

<Card title="MCP tools" href="/mcp/tools">
What your agent can call.
</Card>

<Card title="Errors" href="/getting-started/errors">
Every `reason` and what to do about it.
</Card>

<Card title="Rate limits and pagination" href="/getting-started/rate-limits">
The limits, 429 answers and cursors.
</Card>

<Card title="Safe retries" href="/getting-started/idempotency">
The `Idempotency-Key` header.
</Card>

<Card title="Post settings" href="/posting/post-settings">
Music, cover, privacy and every other TikTok option.
</Card>

<Card title="OpenAPI spec" href="/openapi.json">
The whole API as one file, also as `/openapi.yaml`.
</Card>

<Card title="Changelog" href="/changelog">
What changed and when.
</Card>
</Cards>