Postrix App

Docs

Connect your agent to Postrix

Postrix is an MCP server with an API key. Add it to your agent once, and the agent can prepare carousels and videos for your TikTok accounts. You review each post and send it out.

Before you start

  1. Create a Postrix account with your email. It is free for now.
  2. Connect TikTok. You log in on TikTok's own page and approve access. Postrix never sees your TikTok password.
  3. Create an API key in Settings. It is shown once, so copy it right away. You can revoke it at any time.
  4. Post what your agent prepares. Each post waits on the "From your agent" page of your dashboard. You open it, choose who can see it, and post or schedule it.

Connect over MCP

The server speaks MCP over Streamable HTTP at https://postrix.app/mcp. Your API key goes in the Authorization header as a Bearer token.

# in your terminal
claude mcp add --transport http postrix \
  https://postrix.app/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

The server answers plain JSON to each POST request. It keeps no session and opens no event stream, so there is nothing to reconnect after a pause.

Clients that need an OAuth sign-in instead of a key, such as claude.ai connectors, are not supported yet.

Tools

Each tool does one thing. Replies are short: what happened, what is waiting for you, and why something was refused.

list_accounts
See your connected TikTok accounts and whether each one can take posts right now.
add_media
Add one of your own images or videos from a URL. Postrix downloads it and gives back a media id.
create_upload_url
For agents with files on disk: get a one-time address to upload one of your own images or videos to.
create_post
Prepare a carousel or a video for you to review: title, caption, cover, the time you asked for, and whether you want it published or sent to TikTok drafts.
list_posts
See what is waiting for you, what you scheduled and what went out.
get_post
Check one post: its status, and the reason if it failed.
cancel_post
Pull a post back before it goes out.

A typical run: list_accounts, then add_media once for each image or for the video, then create_post with the media ids in slide order. Files that are not used in a post within 24 hours are removed.

add_media is for your own files: content you made or have the right to post. It takes a public https:// link on the standard port. Add files one after another: Postrix downloads up to two of your files at a time and answers busy to the rest. Links to private or local addresses are refused, and so are links that redirect there.

Who decides what

An agent prepares the content of a post: images or video, their order, the cover, the title, the caption, the time you asked for, the "AI-generated" label, and whether you want the post published or sent to TikTok drafts.

You do the rest, for every post. An agent can't choose who sees a post, can't turn on comments, Duet or Stitch, can't add music or promotional labels, and can't connect or remove accounts.

  • The post waits for you. A post from your agent gets the status waiting_for_approval and shows up on the "From your agent" page with every slide or the video, and the text. Nothing has been sent to TikTok.
  • You review and post. "Review and post" opens the same "Post to TikTok" screen you use for a post built by hand. You can edit the title and the caption. You choose who can see the post and what viewers can do; nothing is chosen for you. Then you press Post now, Schedule post or Send to TikTok drafts.
  • The agent's time and mode are a request. The time from publish_at is filled in on that screen, and the note at the top says whether the agent asked for a post or a draft. You keep it or change it.
  • TikTok drafts. A post you send to drafts lands in your TikTok inbox. You choose the sound and the privacy in the TikTok app and publish it yourself.

If an agent sends a field such as privacy_level, the call is refused with the reason, over MCP and over the REST API alike. You make that choice yourself on the posting screen. A misspelled or unknown field is refused too, so nothing is dropped silently.

Right before a scheduled post goes out, Postrix asks TikTok what the account can post. If the account can't post then, or the visibility you chose is no longer available, the post is stopped and marked as failed with the reason.

REST API

The same actions are available over plain HTTP at https://postrix.app/api/v1, with the same API key in the Authorization header. Requests and replies are JSON. Times are ISO 8601 with a UTC offset.

GET /api/v1/accounts
Connected accounts and whether each can take posts.
POST /api/v1/media
Add one of your own files. Send {"url": "https://..."} as JSON, or send the file itself as the request body (up to 95 MB; images up to 20 MB). The reply has the media id.
POST /api/v1/media/upload-url
Get a one-time upload address, valid for 15 minutes.
PUT /api/v1/uploads
Upload one file to that address. No API key is needed: the ticket in the address is the permission.
POST /api/v1/posts
Prepare a post from media ids; it then waits for you in the dashboard. Fields: account_id, media_ids, title, caption, cover_index, cover_seconds, publish_at, mode (publish or draft), ai_generated.
GET /api/v1/posts
List posts, newest first. Optional status, limit (up to 100) and offset.
GET /api/v1/posts/{id}
One post: its status, when it goes out, and the reason if it failed.
POST /api/v1/posts/{id}/cancel
Cancel a post that is waiting for you or scheduled. DELETE /api/v1/posts/{id} does the same.
# add an image from a URL, then prepare a carousel and ask for 9:00 UTC a week from now
curl -sS https://postrix.app/api/v1/media \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/slide-1.jpg"}'

curl -sS https://postrix.app/api/v1/posts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: slow-mornings-1" \
  -d '{"account_id": 1, "media_ids": [41, 42, 43], "title": "Slow mornings",
       "caption": "Five of them, ranked.", "publish_at": "2026-12-10T09:00:00Z"}'

Send an Idempotency-Key header when you create a post. If your script repeats the call with the same key and the same body, you get the same post back instead of a second one. Keys are remembered for 24 hours.

A post has one of these statuses: waiting_for_approval (prepared, waiting for you), scheduled, publishing, published, sent_to_drafts, failed, cancelled or draft. Every reply has a message in plain words. Errors look like {"error": {"code": "...", "message": "..."}}.

Send a User-Agent header that names your client. Most HTTP libraries do this for you, but the default one of Python's built-in urllib is blocked by our network provider and gets a 403 reply.

An agent can cancel only the posts created with an API key. Posts you made in the dashboard are listed, but an agent can't change them.

Limits

  • Up to 5 TikTok accounts in one Postrix account.
  • A carousel has up to 35 images: JPEG, PNG, WebP or HEIC, up to 20 MB each.
  • A video is MP4 or MOV, up to 200 MB, and as long as your TikTok account allows. Through the API, a video over 95 MB has to be added from a URL, and Postrix has about 35 seconds to download it.
  • A carousel title is up to 90 characters, a caption up to 4,000. A video has one caption of up to 2,200 characters and no title.
  • Posts can be scheduled up to 30 days ahead.
  • TikTok limits each account to around 15 posts a day through apps, shared across every tool you use, and to 5 unpublished drafts in 24 hours.
  • Each API key can make 120 requests a minute, and add 60 files a minute. Over the limit you get a 429 reply with a Retry-After header.
  • Up to 10 API keys in one Postrix account.

Help

Stuck, or found something that doesn't match this page? Write to [email protected]. The FAQ covers the common questions.