Developer guides
Quickstart
- Connect your TikTok account in the workspace, then create a scoped API key.
- Call GET /v1/accounts for an account ID. Request a signed URL with POST /v1/uploads. Send the file directly to that URL with PUT and the same Content-Type.
- Create the draft below. Set REQUEST_ID to a unique value for this request and reuse it if you retry.
curl -X POST "https://felqo.app/v1/posts" \
-H "Authorization: Bearer $FELQO_API_KEY" \
-H "Idempotency-Key: $REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{"account_id":"ACCOUNT_ID","kind":"photo",
"media":[{"upload_id":"UPLOAD_ID"}],
"caption":"Field notes"}'Open the confirmation_url returned by Felqo. Preview your post, choose who can see it, then publish or schedule.
Direct Post via API
To publish without the confirmation page, turn on Direct posting via API/MCP for the account in Accounts, then send mode "direct" with your own API key. The request must state privacy_level, disable_comment, disable_duet and disable_stitch (videos) or auto_add_music (photos), brand_content_toggle, brand_organic_toggle and music_usage_confirmed. Felqo fills in none of them: a missing one returns 422 with missing_fields. Every direct post is logged. GET /v1/posts/{id}/stats returns views, likes, comments and shares of public posts.
REST API
Use HTTPS and send your API key as a Bearer token. Each key grants access to its organization.
GET /v1/accounts- accounts:read
GET /v1/profiles- accounts:read
POST /v1/posts- posts:write
GET /v1/posts- posts:read
GET /v1/posts/{id}- posts:read
DELETE /v1/posts/{id}- posts:write
POST /v1/uploads- posts:write
GET /v1/credits- posts:read
GET /v1/posts/{id}/stats- posts:read
GET /v1/youtube/categories- accounts:read
Connect an MCP client
Choose a remote Streamable HTTP server in your client. Enter the Felqo MCP endpoint provided by your deployment and use your scoped API key in the Authorization header.
Authorization: Bearer <FELQO_API_KEY>
list_accounts → get_upload_url → create_post
get_post_status · list_posts · get_creditsAsk the agent to prepare a draft and return its confirmation link. Open it in your signed-in browser to review.
Claude and Cursor installationBilling & credits
A post costs post-units: one per started 250 MB of video, a photo post is 1. A draft uses nothing. Confirming a post, or sending one with mode direct, reserves its units: plan units first (Free 30 a month per TikTok account, Pro 400 a month), then prepaid credits, charged only when TikTok publishes the post and given back if it fails. Videos: up to 250 MB on Free without credits, 4 GB otherwise.
Every authenticated /v1 response carries X-Felqo-Credits-Remaining and, when the plan has a monthly cap, X-Felqo-Quota-Remaining. GET /v1/credits returns the plan units left, the balance, expiry dates and the top-up link.
Billing & credits guidePublishing limits
- Init
- 6 / min
- Creator information
- 20 / min
- Status checks
- 30 / min
- Pending inbox shares
- 5 / 24 h
- Pre-audit creators
- 5 / 24 h
TikTok sets a rolling daily posting cap per creator, typically around 15 across all apps. Your account may have a lower limit. Felqo queues requests and displays the final status.
Handling errors
- 400
- Check the request fields.
- 401
- Check or replace the API key.
- 403
- Check scopes, plan and account access. A plan account limit error means the account is beyond the plan's accounts.
- 402
quota_exceeded: the plan units left and the credits do not cover this post (credits_expired: the last credits expired). Nothing was created. Top up or upgrade, then retry with the same idempotency key.- 413
file_too_large_for_plan: the video is over the plan limit (max_bytes). Use a smaller file, buy credits or upgrade.- 409
- Reuse an idempotency key only with the same body.
- 429
- Wait for the indicated retry window.
plan_quota_reachedmeans the plan allows no more linked TikTok accounts.
Changelog
- Pricing v2 (F-022). A post costs post-units: one per started 250 MB of video, a photo post is 1. Free includes 30 units a month per TikTok account, Pro 400 a month per workspace, then credits (packs of 100, 500 and 1500, valid 12 months). HTTP 402
quota_exceededreplacescredits_exhausted;credits_expiredwhen the last credits expired unused; 413file_too_large_for_planwithmax_bytes(250 MB on Free without credits, 4 GB otherwise). POST /v1/uploads adds plan,post_unitsandmax_bytes; POST /v1/posts adds plan,post_units,units_remainingandcredits_after; GET /v1/credits quota addscounted_perandtiktok_daily_limit_per_accountand reports null instead of a text value when there is no cap. X-Felqo-Quota-Remaining is omitted when there is no cap. SDK: QuotaExceededError and FileTooLargeForPlanError replace CreditsExhaustedError. - Pay as you go credits. New GET /v1/credits and MCP tool
get_credits. Every /v1 response carries X-Felqo-Credits-Remaining and X-Felqo-Quota-Remaining. Drafts reserve nothing; a post without plan posts or credits gets HTTP 402credits_exhaustedwith a top-up link.create_postandget_post_statusreportcredits_remaining. SDK: getCredits() and CreditsExhaustedError.