Sign in

Errors

How the API reports errors, the validation messages you can get for each field, every status code it uses, and which errors are safe to retry.

When the API cannot do what you asked, it answers with an HTTP status code of 400 or above and a JSON body that says why. The messages are written for people, in English, so you can show them as they are.

A post that was accepted (201) and fails later on the network is not an API error. It shows up as "status": "failed" with a fail_reason. See Post statuses.

The error format

Every error has a message:

JSON
{ "message": "Only scheduled posts can change. This one is published." }

A validation error (422) also has errors. Each key is a field you sent, and each value is a list of messages for that field. message repeats the first of them and says how many more there are:

JSON
{
  "message": "Choose who can view this video. (and 1 more error)",
  "errors": {
    "privacy_level": ["Choose who can view this video."],
    "consent": ["You need to confirm before we send anything to TikTok."]
  }
}

Items of a list are named with their position, starting at 0. A wrong second file is reported as files.1, and a wrong third poll answer as poll_options.2.

Status codes

Code When Body
200 A read, a change, a reschedule, a retry, a removal, a cancel or a disconnection worked. The item in data.
201 Something was created: a post, the posts of a batch, an upload link, a report or a WhatsApp template. What was created, in data.
401 The key is missing, wrong or revoked. message
403 The account the key belongs to is suspended. message
404 The post, account, report or number does not exist for your user, the feature is not on your account, or the URL is wrong. message
405 The method is wrong for this URL, like PUT on a post. message
409 The post is no longer scheduled, a failed post cannot be retried, a post that is not failed cannot be removed, or the TikTok account must be connected again. message
413 The request is larger than 520 MB in total. None, or message
422 Validation failed. Nothing was created or changed. message and errors
429 Too many requests. message, with a Retry-After header
503 Something failed inside Linkpost, TikTok did not answer a creator info request, Stripe did not answer when saving billing details, or Linkpost is briefly unavailable. message, plus reference when the failure is inside Linkpost

Validation errors

Linkpost checks a post in two steps. First the basic rules: required fields, types, file types and sizes. If those pass, it checks your plan, the schedule, the account and the network's own rules, like TikTok's creator settings, the length of a video or the number of photos. So fixing the errors of the first step can reveal errors of the second.

These are the messages you can get, by field.

Any post

Field Message What it means
account_id The account id field is required. Send account_id.
account_id That account is not connected to this user. The id is not one of your accounts. Get it from List accounts.
account_id Your plan allows 30 posts a month and you have used them all. Your plan's monthly posts are used up. Only accounts on a plan with a monthly allowance get it. See Accounts still on plans.
consent You need to confirm before we publish anything. Send consent=1 once the owner of the account confirmed the post.
format The format field is required. Instagram and Facebook always need format.
format That format is not available for this account. This Instagram or Facebook account does not take that video format. See post_options.
format That format is not available for this account. List accounts shows the formats each one takes. The network does not take this format, or it is not available on your account yet. See formats.
title The text is too long for this network. The text of a video post on YouTube, LinkedIn, X, Bluesky or Telegram is over the limit.

Schedule

Field Message
scheduled_at Use a date and time like 2030-01-31T09:30, with an optional offset.
scheduled_at Pick a time at least a minute from now.
scheduled_at You can schedule up to 90 days ahead.
scheduled_at You already have 100 scheduled posts. Cancel one or wait until some go out.
scheduled_at Scheduled media is limited to 5120 MB per user. Cancel a scheduled post or wait until some go out.
timezone The timezone field must be a valid timezone.

timezone takes IANA names like Europe/Madrid or America/Sao_Paulo, not abbreviations like CET.

Videos and stories

Field Message When
media The media field is required. A video or story was sent without a file.
media Upload an MP4, MOV or WebM video. TikTok: the file is not a video TikTok takes.
media Upload an MP4 or MOV video. Every other network: the file is not an MP4 or MOV video.
media Upload an MP4, MOV or JPEG file. Stories: the file is not an MP4, MOV or JPEG.
media The media field must have one of the following extensions: mp4, mov. The content is right but the file name does not end in an extension the network takes.
media The media field must not be greater than 307200 kilobytes. Instagram and Facebook: the file is over 300 MB. TikTok says 524288 kilobytes (512 MB).
media That file is too large for this network. YouTube, LinkedIn, X, Bluesky or Telegram: the file is over the network's limit.
media The video must last between 3 and 900 seconds. Instagram reels and Facebook videos. Stories say between 3 and 60 seconds.
media LinkedIn takes videos from 3 s to 30 min. The video is too short or too long for the network. Bluesky says from 1 s to 3 min, X from 1 s to 140 s, YouTube from 1 s to 12 h. Lengths are written exactly, never rounded.
media This video is 734 s. This TikTok account can post up to 10 min. The video is longer than the creator's max_video_duration_seconds.
media TikTok takes videos from 360 to 4096 pixels on each side, and this one is 320 × 568. Export it at a size in between, for example 1080 × 1920. TikTok: a side of the video is under 360 or over 4096 pixels.
media TikTok takes videos from 23 to 60 frames per second, and this one has 15. Export it at 30 frames per second. TikTok: the video has under 23 or over 60 frames per second.
media TikTok takes videos encoded as H.264, HEVC (H.265), VP8 or VP9, and this one is ProRes. Export it as an MP4 with H.264. TikTok: the video's codec is not one TikTok takes. Instagram lists H.264, HEVC (H.265) and Facebook stories H.264, HEVC (H.265), VP9, AV1. Only checked when the file says its codec.
media Instagram takes videos up to 1920 pixels wide, and this one is 2160 × 3840. Export it smaller, for example at 1080 × 1920. Instagram reels and stories: the video is over 1920 pixels wide.
media X takes videos from 1:3 to 3:1 in shape (width to height), and this one is 1080 × 3840. Crop it to a shape in between, such as 9:16. The video is narrower or wider than the network takes: X 1:3 to 3:1, Instagram reels 1:100 to 10:1, Instagram stories 1:10 to 10:1, Facebook stories 9:16 to 16:9.
media Facebook takes videos of at least 540 pixels on the shorter side, and this one is 480 × 854. Export it bigger, for example at 1080 × 1920. Facebook stories: the shorter side is under 540 pixels.
media X takes videos of at least 32 pixels on each side, and this one is 24 × 24. Export it bigger, for example at 1080 × 1920. X: a side of the video is under 32 pixels.
media Facebook takes videos from 24 to 60 frames per second, and this one has 15. Export it at 30 frames per second. Facebook stories: under 24 or over 60 frames per second. Instagram says from 23 to 60.
media X takes videos of up to 60 frames per second, and this one has 120. Export it at 30 frames per second. X: over 60 frames per second.
media Instagram takes videos of up to 100 MB, and this file has 140 MB. Instagram stories: the video is over 100 MB.
media LinkedIn takes videos of at least 75 KB, and this file has 40 KB. LinkedIn: the video file is under 75 KB.

Linkpost checks the size, shape, frame rate, codec and file size before uploading the video, against the video_limits of its format in List accounts. A video can break several limits at once: each one comes as its own message on media.

TikTok

Field Message What to do
mode The mode field is required. Send mode=direct or mode=inbox.
mode Direct posting is not available for this account. The account did not grant direct posting. Use inbox, or connect the account again and accept every permission.
mode Sending to the TikTok inbox is not available for this account. The account did not grant inbox uploads.
mode Until TikTok approves Linkpost, it only takes posts to the profile of private accounts, and this account is public. Send the video to your TikTok inbox and post it from the TikTok app, or set the account to private first. The account is public and TikTok has not approved Linkpost yet: creator info says direct_post_available is false. Send mode=inbox, or ask the creator to set the account to private.
privacy_level Choose who can view this video. Direct videos need privacy_level. Photo posts say The privacy level field is required when mode is direct.
privacy_level That visibility is not available for this TikTok account. Send one of the creator's current privacy_level_options.
privacy_level Branded content visibility cannot be set to private. brand_content=1 cannot go with SELF_ONLY.
allow_comment Comment is turned off in this creator's TikTok settings. Leave allow_comment out. Photo posts say Comments are turned off in this creator's TikTok settings.
allow_duet Duet is turned off in this creator's TikTok settings. Leave allow_duet out.
allow_stitch Stitch is turned off in this creator's TikTok settings. Leave allow_stitch out.
commercial_toggle You need to indicate if your content promotes yourself, a third party, or both. With commercial_toggle=1, send brand_organic=1, brand_content=1 or both.
consent You need to confirm before we send anything to TikTok. Send consent=1.
account_id TikTok access expired or was revoked. Connect the account again. Connect the account again in the app.
account_id TikTok limits how often this account can be queried. Wait a minute and try again. Linkpost could not read the creator info. Wait a minute and send the post again.
account_id TikTok is temporarily unavailable. Try again in a minute. TikTok did not answer when Linkpost read the creator info. Nothing retries it for you: wait a minute and send the post again.

YouTube, LinkedIn, X, Bluesky and Telegram videos

Field Message What to do
video_title Give the video a title. YouTube needs video_title.
made_for_kids Say whether the video is made for kids. YouTube requires it. Send made_for_kids=yes or no.
privacy_level The privacy level field is required. YouTube and LinkedIn videos need privacy_level.
format A Short is square or vertical, and this video is wider than it is tall. Post it as a video. You sent format=short to YouTube with a horizontal video. Send format=video or leave format out.
format A Short lasts up to 3 min, and this video is longer. Shorten it or post it as a video. You sent format=short with a video longer than 3 minutes.
format Linkpost could not read the size or the length of this video, so it cannot promise a Short. Post it as a video. You sent format=short and the file does not say its size or its length. Send format=video or leave format out.
format That format is not available for this account. The network does not take that format for a video: only YouTube takes short.
privacy_level Choose who can see this post. The value is not in the account's post_options.privacy_level. LinkedIn text, photo, document and poll posts answer the same for anything but PUBLIC or CONNECTIONS.
privacy_level The privacy level field is prohibited. X, Bluesky and Telegram do not take privacy_level. Leave it out.
video_title The video title field is prohibited. Only YouTube takes video_title. Leave it out.
made_for_kids The made for kids field is prohibited. Only YouTube takes made_for_kids. Leave it out.
thread The thread field is prohibited. Only X and Bluesky take threads.
thread Post 2 of the thread needs 1 to 280 characters. A part of the thread is empty or too long.

Text, photos, carousels, documents and polls

Field Message What to do
files Add the files for this post. Photos, carousels and documents need files[] or media.
files Text posts and polls go without files. Leave out the files.
files.0 Add JPEG, PNG or WebP photos, or MP4 or MOV videos. That file is not a photo or video Linkpost takes.
files.0 Documents can be PDF, PowerPoint or Word files. That file is not a document Linkpost takes.
poll_options Add the poll answers. Polls need poll_options[].
poll_options The poll options field must have at least 2 items. Send 2 answers or more.
poll_hours The poll hours field is required. LinkedIn and X polls need poll_hours. Telegram polls do not.
poll_hours The selected poll hours is invalid. Send 24, 72 or 168.
files Telegram takes files of up to 50 MB. A file is larger than the format takes. LinkedIn documents say LinkedIn takes files of up to 100 MB.
files Instagram takes carousel videos from 3 s to 60 s. A video in an Instagram carousel is too short or too long.
files Instagram takes videos up to 1920 pixels wide, and this one is 2160 × 3840. Export it smaller, for example at 1080 × 1920. A video in an Instagram carousel is outside the video_limits of carousel. The first video that breaks them gets the same messages as a reel, on files.
files.1 Add JPEG, PNG or WebP photos, or MP4 or MOV videos. A carousel takes MP4 or MOV videos only, not WebM.
format X takes up to 280 characters (312 now). Shorten the text to the network's limit.
format LinkedIn needs some text. Text posts and polls need title.
format X takes text, up to 4 photos, one video or a poll. The files do not fit the format: too many, too few or the wrong kind.
format X polls need 2 to 4 answers. Send as many answers as the network takes.
format LinkedIn poll answers take up to 30 characters. Shorten the answers.
format Telegram has no threads. Leave out thread.

The network's own rules for these formats are all reported on format, even when they are about the text or the answers.

Instagram collaborators and tagged people

Field Message What to do
collaborators Instagram takes up to 3 collaborators. Send 3 usernames at most.
tagged_users Instagram takes up to 20 tagged people. Send 20 usernames at most.
collaborators.0 ana gomez! is not an Instagram username. Usernames have up to 30 letters, numbers, periods and underscores. Check how the username is spelled. The number is the position in the list, from 0.
collaborators.0 @maracosta is the account you are posting from: it cannot be a collaborator or be tagged. Leave the account itself out. tagged_users.0 says the same.
collaborators Instagram stories take no collaborators. Tag those people instead (tagged_users). Send them in tagged_users instead, or publish a reel.
tagged_users Instagram carousels take no tagged people. Leave out tagged_users, or invite them with collaborators.
collaborators Collaborators are only for Instagram posts. Other networks have no collaborators. Leave the field out.
tagged_users Tagged people are only for Instagram posts. Other networks take no tagged people. Leave the field out.

Listing and rescheduling

Field Message
status The selected status is invalid.
platform The selected platform is invalid.
per_page The per page field must not be greater than 100.
from, to from has to be a date like 2030-01-31 or a date and time like 2030-01-31T09:30:00+01:00.
from from has to be before to.
scheduled_at The scheduled at field is required. (reschedule)
Field Message What it means
media Send the file in the request, or media_url or upload_id, not both. Each post takes its files one way.
media_url Send links or upload ids, not both. Use links or uploads, not both.
media_url A video post takes one file: use media_url or upload_id. Photos and carousels need format image or carousel. Several files need a format that takes them.
media_url The URL answered with status 404. The link cannot be used. The message gives the reason and ends with If the file is on your computer, send it first with an upload and pass its upload_id.
upload_id No upload with that id, or it expired. Ask for a new one. The upload is someone else's, never existed, or is over 24 hours old.
upload_id Upload 01m7q4c9w2e8r5t6y3u1i0o9pa has no file yet. Send the file to its upload_url first. The bytes were not sent, or their sending failed.

Several accounts at once

In Publish on several accounts at once, each post's errors come with its position in front, from 0: posts.2.title. The errors about the whole batch are under posts and consent, listed on that page.

Settings, billing and reports

Field Message
network Unknown network. Use one of: tiktok, instagram, facebook, youtube, linkedin, linkedin_pages, x, bluesky, telegram, whatsapp.
timezone Use an IANA timezone like Europe/Madrid.
client_id That does not look like an OAuth 2.0 Client ID. Copy it from Keys and tokens in the X Developer Console.
tax_id Enter your tax ID. Outside Spain it is required, and no VAT is added to your invoices.
name Give the report a name.
account_ids Choose at least one account for this report.
widgets Add at least one widget.
period period is one of: 7d, 30d, 90d.

Each endpoint lists the rest on its own page: Accounts, with Your X app, Settings and billing and Reports.

Other errors

401 and 403

See Authentication. Do not retry with the same key.

404 Not Found

The post, account, report or number does not exist, or it belongs to another user. Linkpost answers both cases the same way, so nobody can learn which ids exist:

JSON
{ "message": "Not found." }

A URL that does not exist, like /api/v1/post, also answers 404 with the same body. Check the id and the path. Post ids are lowercase. So do the paths of a feature your account does not have, like the WhatsApp inbox, or the billing details for an account that does not pay per connected account.

409 Conflict

The post is not scheduled any more, so it cannot be rescheduled or canceled:

JSON
{ "message": "Only scheduled posts can change. This one is uploading." }

Read the post to see where it is. Retry a failed post answers 409 when the post is not failed, when its files are no longer kept, or when its account needs connecting again:

JSON
{ "message": "The files of this post are no longer kept, so it cannot be retried. Create it again." }

Remove a failed post answers 409 when the post is not failed:

JSON
{ "message": "Only failed posts can be removed. This one is scheduled. Cancel a scheduled post instead." }

For TikTok creator info, 409 means the account must be connected again:

JSON
{ "message": "TikTok access expired or was revoked. Connect the account again." }

429 Too Many Requests

See Rate limits. Wait the seconds in Retry-After, then send the same request again.

503

A 503 with a reference means something failed inside Linkpost. Linkpost does not answer 500: its own failures come with a message you can show and a number to quote.

JSON
{
  "message": "Something failed on the Linkpost side and this request was not completed. It is not a problem with what you sent. Before trying again, list the posts to check whether this one was created. If it keeps failing, contact support and quote error reference 1042.",
  "reference": 1042
}

reference is the number of this failure in Linkpost's own records: quote it to support and they can see what happened. It is missing only when Linkpost could not write the failure down. message is always in English.

503 on creator info means TikTok did not answer or asked to slow down. Its message says which, for example TikTok is temporarily unavailable. Try again in a minute. Linkpost does not call TikTok again for you. A 502, 503 or 504 without a Linkpost message can also come from the network between you and Linkpost, for example during an update.

What to retry

Answer Retry? How
401, 403 No Fix the key or the account. Repeated 401 answers also block your address for a minute.
404 No Check the id.
409 No Read the post and act on its status.
413 No Send smaller files, or fewer in one post.
422 Not unchanged Fix the fields in errors. When the message asks you to wait, like Wait a minute and try again., send the same request after a minute.
429 Yes After the seconds in Retry-After.
500, 502, 503, 504 Yes, with care Wait and try again: after about 30 seconds, then 2 minutes, then 5. For POST /api/v1/posts, check first that the post was not created.
Timeout or lost connection Yes, with care As for 500.

A 422 or 429 on POST /api/v1/posts always means that no post was created.

Avoid duplicate posts

The API has no idempotency keys. If a POST /api/v1/posts request times out, or answers 500 or another 5xx, the post may have been created before the error. Before you send it again:

  1. List the latest posts of that account: GET /api/v1/posts?account_id=12&per_page=5.
  2. Look for a post with the same title and a created_at from the last few minutes.
  3. Send the post again only if there is none.

Give your HTTP client a long timeout for uploads, such as 10 minutes for large videos, so that slow uploads are not cut short.