Developer docs
Get an API keyIotaBot Instagram API
Every DM and comment on your webhook. Reply from your code.
Instagram API error codes
Branch on error.code.
| Code | Status | What to do |
|---|---|---|
window_closed | 422 | More than 24 hours since the customer last wrote. On WhatsApp send an approved template; on Instagram you must wait for them to write. |
recipient_opted_out | 422 | The customer opted out of this channel (they replied STOP, or the contact is marked opted out). Nothing can be sent to them there. |
unsupported_attachment | 400 | Instagram takes images, video and audio only. |
text_required | 400 | The message has no content for its channel (text, html, a template or attachments). |
conversation_not_found | 404 | No conversation with that id that this key can see. |
integration_paused | 409 | An agent paused integration replies on this conversation. Stop retrying; a conversation.updated event tells you when it resumes. |
api_quota_exceeded | 429 | The workspace used its monthly API messages. It resets on the 1st; the plan sets the limit. |
idempotency_key_reused | 422 | The Idempotency-Key was already used with a different request. |
idempotency_in_progress | 409 | A request with this Idempotency-Key is still being processed. Retry shortly. |
