Mark a write not sent
Early access. Tell us what you're building and we'll set you up. Contact us
api.lempile.com/api/v1/writes/{key}/not-sentAfter 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
keystringrequiredThe write's Idempotency-Key.
Responses
200Marked not sent.
›
application/json
objectanyAlwaysWriteStatuskeystringstatestringOne ofnonependingdonefailedstatusintegerresponseobject | nulldetailstringOnly while Lempile checks the account's profile for a not-sure post: its next look and when it ends.
check_ends_bystring · date-timeOnly while Lempile checks the account's profile for a not-sure post: it settles the write by then at the latest.
401A missing or invalid API key answers { "error": "unauthorized", "message" }. errors/disconnected_account (problem JSON): Instagram signed the account out; connect it again.
›
{ "error": "unauthorized", "message" }. errors/disconnected_account (problem JSON): Instagram signed the account out; connect it again.application/json
errorstringrequiredmessagestring
402subscription_required (in error): the workspace has no active trial or subscription.
›
subscription_required (in error): the workspace has no active trial or subscription.application/json
errorstringrequiredmessagestring
403errors/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).
›
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
typestringrequiredtitlestringstatusintegerrequireddetailstringWhat happened, in words, and whether anything was done.
codestringOn a
429:too_fast,daily_limitorhourly_limit.retry_afterintegerSeconds to wait.
retry_atstring · date-time
404No write with this key.
›
application/problem+json
typestringrequiredtitlestringstatusintegerrequireddetailstringWhat happened, in words, and whether anything was done.
codestringOn a
429:too_fast,daily_limitorhourly_limit.retry_afterintegerSeconds to wait.
retry_atstring · date-time
409Sent, 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.
›
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
typestringrequiredtitlestringstatusintegerrequireddetailstringWhat happened, in words, and whether anything was done.
codestringOn a
429:too_fast,daily_limitorhourly_limit.retry_afterintegerSeconds to wait.
retry_atstring · date-time
Was this page helpful?