Skip to content
Docs

Mark a write not sent

Early access. Tell us what you're building and we'll set you up. Contact us

POSTapi.lempile.com/api/v1/writes/{key}/not-sent

After you checked on Instagram that a pending write isn't there: it becomes failed, its key can be sent again, and it stops counting toward the pace. A write Lempile has as sent stays sent (409).

Scope: accounts.write.

Authentication

X-API-KEY header·A Lempile API key, made in the dashboard under Access tokens.

Path parameters

  • keystringrequired

    The write's Idempotency-Key.

Responses

200

Marked not sent.

›

application/json

  • objectany
    AlwaysWriteStatus
  • keystring
  • statestring
    One ofnonependingdonefailed
  • statusinteger
  • responseobject | null
  • detailstring

    Only while Lempile checks the account's profile for a not-sure post: its next look and when it ends.

  • check_ends_bystring · date-time

    Only while Lempile checks the account's profile for a not-sure post: it settles the write by then at the latest.

401

A missing or invalid API key answers { "error": "unauthorized", "message" }. errors/disconnected_account (problem JSON): Instagram signed the account out; connect it again.

›

application/json

  • errorstringrequired
  • messagestring
402

subscription_required (in error): the workspace has no active trial or subscription.

›

application/json

  • errorstringrequired
  • messagestring
403

errors/insufficient_permissions (the key lacks the scope), errors/account_restricted (Instagram blocked the action, restricted the account or asks for a check: someone has to look at it on Instagram) or errors/action_required (the account waits for something done on Instagram itself; account_status and reason say what).

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time
404

No write with this key.

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time
409

Sent, too recent, still running, or Lempile is still checking the account's profile for the post: the answer has check_ends_by and a Retry-After header. Also for a post Lempile can't speak for yet (it restarted during the post), up to 2 hours after it: read the receipt again after Retry-After.

›

application/problem+json

  • typestringrequired
  • titlestring
  • statusintegerrequired
  • detailstring

    What happened, in words, and whether anything was done.

  • codestring

    On a 429: too_fast, daily_limit or hourly_limit.

  • retry_afterinteger

    Seconds to wait.

  • retry_atstring · date-time

Was this page helpful?