Rackpost API
Post videos to your Rackpost accounts from your own tools, scripts and AI agents. You need one API key.
Base URL
Every request goes to one address.
https://rackpost.app/api/v1Authentication
Send your key in a header. Create or replace it in Settings. A missing or old key gets 401.
Authorization: Bearer <key>Media
Send video_url (a public MP4 link) or upload the MP4 as video, up to 4 MB. Bigger files, up to 500 MB, go through uploads.
Quickstart
- 1
Copy your API key
Open Settings, go to API and copy your key. It is shown only once, so store it somewhere safe.
- 2
Send your first post
Name the account, add a caption, and point to your video. Leave out
scheduled_atto post now.curl https://rackpost.app/api/v1/posts \ -H "Authorization: Bearer $RACKPOST_API_KEY" \ -F account=yourhandle \ -F caption="Behind the scenes #bts" \ -F video_url=https://example.com/video.mp4
- 3
Check the status
List your posts to see which are scheduled and which are live.
curl https://rackpost.app/api/v1/posts \ -H "Authorization: Bearer $RACKPOST_API_KEY"
Accounts and posting
An account moves from setup to pending to active. You choose its TikTok profile, our team puts it on TikTok, and posting opens. An account can post once its stage is active ("ready": true over MCP), and stays open after that, also while a later profile change is being made.
Account stages
setupYouNo TikTok profile chosen yet. Posting is closed. Next: Choose the username, display name, bio and photo on the account's setup page in the dashboard.
pendingRackpost teamOur team is putting your chosen profile on TikTok, within 6 hours. Posting is closed until then. Next: Nothing. We email you when posting opens.
activeYouThe profile is live on TikTok. Posting is open. Next: Post now or schedule a post.
A post moves from queued to sending to sent to posted, or ends as failed or cancelled. A posted video deleted from TikTok on the dashboard ends as deleted.
Post statuses
queuedSaved, waiting to go to our posting partner. Can still be changed or cancelled.
sendingBeing uploaded to our posting partner.
sentWith our posting partner. It goes live on TikTok at scheduled_at, or within minutes when posted now.
postedLive on TikTok.
failedDid not post. error says why. Our team is alerted and checks it. If error points at your media or caption, fix it and create a new post. Questions: hello@rackpost.app.
cancelledCancelled. It will not post.
deletedDeleted from TikTok.
Where your data lives
Accounts and postsThe Rackpost database.
Uploaded videos and photosRackpost storage.
PublishingEach post goes through our posting partner to TikTok.
Endpoints
/api/v1/postsCreate a post
Posts a video or a photo post to one of your accounts, now or at a set time. Send multipart/form-data or JSON. Give exactly one of video, upload_id, video_url or photo_upload_ids. Answers 202 with the post.
Body parameters
accountstring, requiredThe account's handle (@yourhandle) or id. Your ids are listed in Settings, under API.
captionstring, requiredThe caption exactly as it should post, 1 to 2200 characters. description is accepted as an older name.
titlestringA short label for the post, up to 150 characters. Left out, the caption's first line is used.
videofileAn MP4 file of up to 4 MB, in multipart/form-data.
upload_idstringThe upload_id from uploads, for an MP4 of up to 500 MB on the same account.
video_urlstringA public https link to an MP4.
photo_upload_idsarrayFor a photo post: the upload_ids from the photos upload, in posting order. JSON only.
auto_musicbooleanPhoto posts only. false posts it without music. Default true.
scheduled_atstringWhen to post: ISO 8601 with a time zone, 5 minutes to 90 days ahead. Left out, the post goes out now.
Example request
curl https://rackpost.app/api/v1/posts \
-H "Authorization: Bearer $RACKPOST_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"account": "@yourhandle",
"caption": "Behind the scenes #bts",
"video_url": "https://example.com/video.mp4",
"scheduled_at": "2026-12-01T18:30:00+03:00"
}'Example response · 202
{
"id": "1042",
"account_id": "17",
"type": "video",
"title": "Behind the scenes #bts",
"caption": "Behind the scenes #bts",
"description": "Behind the scenes #bts",
"status": "queued",
"scheduled_at": "2026-12-01T15:30:00.000Z",
"created_at": "2026-11-18T09:12:44.000Z",
"error": null,
"changeable": true
}/api/v1/postsList posts
Lists your posts, newest first. status is one of the post statuses. A photo post has "type": "photos" and a photo_count. A posted video or photo post includes tiktok_url, the link to that post on TikTok.
Example request
curl https://rackpost.app/api/v1/posts \ -H "Authorization: Bearer $RACKPOST_API_KEY"
Example response · 200
{
"posts": [
{ "id": "1042", "status": "queued", "changeable": true, ... },
{ "id": "1039", "status": "posted", "changeable": false, ... }
]
}/api/v1/posts/{id}Get a post
One post, in the same shape as Create a post returns. An id that is not yours answers 404.
Example request
curl https://rackpost.app/api/v1/posts/1042 \ -H "Authorization: Bearer $RACKPOST_API_KEY"
/api/v1/posts/{id}Change a post
Changes the caption or the time while changeable is true: the post is still queued, or scheduled at least 5 minutes ahead. Send JSON. Fields you leave out keep their value. The video or photos cannot change: cancel the post and create a new one. Answers with the post.
Body parameters
captionstringThe new caption, 1 to 2200 characters.
titlestringThe new label, up to 150 characters. A new caption without a title takes its first line.
scheduled_atstring or nullA new time, as in Create a post. null posts it now.
Example request
curl -X PATCH https://rackpost.app/api/v1/posts/1042 \
-H "Authorization: Bearer $RACKPOST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"caption": "New caption #bts", "scheduled_at": "2026-12-02T18:30:00+03:00"}'/api/v1/posts/{id}Cancel a post
Cancels a post while changeable is true. It will not post. Answers with the post, now "status": "cancelled".
Example request
curl -X DELETE https://rackpost.app/api/v1/posts/1042 \ -H "Authorization: Bearer $RACKPOST_API_KEY"
/api/v1/uploadsUpload a file
Rackpost downloads a public https file and stores it. Send JSON. You get an upload id to pass to Create a post. The response never includes a storage address. A file on your machine is uploaded from the dashboard, or with the MCP upload_file tool: one call for a video, or one call whose photos list is every photo of a slideshow, in posting order. An MP4 of 4 MB or less can also be the video file on Create a post.
Body
accountstringThe account id or @username the file is for.
source_urlstringA public https link to one MP4, up to 500 MB. Returns upload_id. Do not send this together with photos.
photosarray1 to 35 of {"source_url"}, each a public https link to a JPG or PNG, 20 MB each and 100 MB together. Returns upload_ids in the same order.
Example request
curl https://rackpost.app/api/v1/uploads \
-H "Authorization: Bearer $RACKPOST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"account": "@yourhandle", "source_url": "https://example.com/my-video.mp4"}'Example response · 200
{
"upload_id": "upl_…"
}Errors
An error answers with a status code and one readable line: {"error": "post not found"}.
Status codes
400Bad requestA field is missing or wrong, for example no video source, a caption over 2200 characters or a time less than 5 minutes ahead.
401UnauthorizedThe key is missing, or it was replaced in Settings.
404Not foundNo post with this id among yours.
409ConflictThe account's profile is not set up yet, or the post is already going out and cannot change.
413Too largeThe video file is over 4 MB. Send a public https link through uploads and pass upload_id.
429Too manyMore than 20 posts in an hour. Try again later.
502Upstream errorStorage or our posting partner did not answer. Try again.
Connect over MCP and your agent can post for you, with no code to write.