Skip to content
Docs

React to a message

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

POSTapi.lempile.com/api/v1/messages/{message_id}/reaction

Instagram keeps one reaction per person on a message: a new one replaces the account's last. Opens the conversation. Paced per account: 60 a day.

Scope: accounts.write.

Authentication

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

Path parameters

  • message_idstringrequired

    <chat id>_<Instagram's message id>, as the API answers it.

Headers

  • Idempotency-Keystring

    Optional. Sent without one, Lempile makes one and answers it in the same header, so the write still has a receipt.

    ≤ 200 chars

Request body

  • account_idstringrequired
  • reactionstringrequired

    An emoji.

  • dry_runboolean

    true: everything up to the last step, nothing sent: 200 with not_sent: true. Not paced, no receipt. When the write is already so (already liked, already following), checks holds { "check": "already", "already": true }.

Responses

200

Reacted (or a dry run).

›

application/json

  • MessageReactionAddedMessageReactionAdded
    ›Show fields
    • objectany
      AlwaysMessageReactionAdded
    • successboolean
  • DryRunDryRun
    ›Show fields
    • objectstring

      The write's own dry-run object, for example MessageDryRun.

    • not_sentany
      Alwaystrue
    • checksarray of object
400

errors/invalid_parameters: a field Lempile won't take; detail names it. Nothing was opened.

›

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
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

errors/resource_not_found: no such account in this workspace, or no such chat, message, person or post.

›

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

errors/in_progress: the same key is still running, or its outcome isn't known yet.

›

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
422

errors/idempotency_key_reused: the key was used for another request. Nothing was sent.

›

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
429

errors/too_many_requests: the account's pace (code: too_fast, daily_limit or hourly_limit; wait until retry_at), or Instagram's own "Try again later" (retry_after: 86400: wait a day before writing from the account again). Nothing was done.

›

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
501

errors/feature_not_implemented: a field or option Lempile doesn't do for Instagram (detail says which), or an account of another network. Nothing was done.

›

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
502

errors/service_unavailable: the browser's answer was lost after the write started. Not sure: read the receipt before sending again.

›

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
503

errors/service_unavailable: the account isn't ready yet, or its browser can't be reached right now. Nothing was done.

›

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
504

errors/request_timeout: Instagram didn't confirm within 140 seconds. Not sure: read the receipt before sending again.

›

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?