Skip to content
Developers

    Posts

    Retry a failed post

    Markdown
    POSThttps://api.tiktornado.com/api/v1/posts/{postId}/retry

    Scope: posts:write. Needs an Idempotency-Key header.

    Sends a failed post again at once, unchanged: the same account, media, caption and settings. Send no body, or an empty object.

    • Only a failed post can be retried (invalid_state otherwise, and post_already_published for one that is publishing or published).
    • It is checked like a new post sent with postNow: the account, the daily limit, the account's end, the media and the settings.
    • Like any post sent with postNow, it is locked from the start: it can't be edited, moved or cancelled unless it fails again.
    • A post that failed with reason tiktok_timeout is sent as a new try while TikTok may still finish the first one, so it could appear twice on the account. Delete an extra one in the TikTok app.
    • To send it at another time instead, edit or move it with PATCH /posts/{postId}.

    The answer's status is scheduling until TikTok's scheduler has it. Follow it with GET /posts/{postId}.

    Path parameters

    • postIdstringRequired

      A failed post, from GET /posts or GET /posts/{postId}.

      Matches ^[A-Za-z0-9]{1,64}$.

    Header parameters

    • Idempotency-KeystringRequired

      A unique string you make up for this change, for example a UUID: 1 to 255 visible ASCII characters, no spaces. Send the same key with the same body to retry safely. Missing or malformed: 400 idempotency_key_required, before anything runs.

      Matches ^[\x21-\x7e]{1,255}$.

    Request body

    Nothing to send. Leave the body out, or send an empty object.

      Example request

      curl -X POST 'https://api.tiktornado.com/api/v1/posts/k17b2pz9xq4w8t0cd5fh3nm6a87v2r1e/retry' \
        -H "Authorization: Bearer $TIKTORNADO_API_KEY" \
        -H "Idempotency-Key: $(uuidgen)" \
        -H "Content-Type: application/json" \
        -d '{}'

      Response 200

      The post is on its way to TikTok's scheduler again.

      Idempotent-Replayed

      true when this is the stored answer to an earlier request with the same Idempotency-Key. Absent otherwise.

      • idstringRequired

        An id, letters and digits only.

        Matches ^[A-Za-z0-9]{1,64}$.

      • statusstringRequired

        Always scheduling.

      Example
      {
        "id": "k17b2pz9xq4w8t0cd5fh3nm6a87v2r1e",
        "status": "scheduling"
      }

      Errors

      StatusReasonMessage
      400invalid_request

      Something here isn't valid. Check it and try again.

      idempotency_key_required

      Send an Idempotency-Key header with every change, so a retry can't make it twice.

      invalid_state

      This can't be done right now. Refresh and try again.

      post_locked

      This post goes out in 10 minutes or less, so it can't be changed now.

      post_already_published

      This post is already live, so it can't be changed.

      account_not_ready

      This account isn't ready to post yet.

      This account is under review by TikTok, so new posts can't be scheduled right now.

      media_required

      Add a video or photos to this post.

      too_many_photos

      This post has too many photos. TikTok allows up to 35.

      caption_too_long

      Your caption is too long. TikTok allows 2,200 characters on videos and 4,000 on photo posts.

      link_not_allowed

      This link can't be used. Use a public https link to the file.

      past_account_end

      This account ends before that time. Pick an earlier time.

      daily_limit_reached

      This account has hit TikTok's daily posting limit. Pick a later time.

      drafts_no_settings

      Posts sent to drafts can't carry post settings. Add them in the TikTok app.

      ai_label_photo

      Photo posts can only be marked as AI-generated in the TikTok app. Send it to drafts instead.

      setting_videos_only

      This setting only works on video posts.

      setting_photos_only

      This setting only works on photo posts.

      music_conflict

      Pick a track or automatic music, not both.

      auto_music_branded

      Automatic music doesn't work on branded content. Pick a track instead.

      branded_private

      Branded content can't be posted as Only me.

      invalid_post_setting

      One of this post's settings isn't valid. Check it and try again.

      401api_key_invalid

      This API key isn't valid. Check it, or create a new one in the app.

      403access_locked

      Your subscription isn't active, so this can't be changed right now. Visit Billing to fix it.

      api_scope_missing

      This API key can't do this. Create a key with the access it needs in the app.

      404not_found

      We couldn't find this.

      409idempotency_in_progress

      A request with this Idempotency-Key is still running. Try again in a moment.

      422idempotency_key_reused

      This Idempotency-Key was already used for a different request. Use a new one.

      429slow_down

      You're going a bit fast. Wait a moment and try again.

      500unknown_error

      Something went wrong. Our team is working hard to fix this ASAP. Please come back later.

      503service_unavailable

      Something went wrong. Our team is working hard to fix this ASAP. Please come back later.