Instagram direct messages, on the same key and the same base URL as WhatsApp. Connect a handle under Dashboard → Instagram, and every thread on it is readable and answerable from your own backend.
What Instagram does not allow
Section titled “What Instagram does not allow”These are Meta’s rules, not ours. Each is refused here with a reason rather than passed on to be refused by a numeric code.
| You cannot write first | There is no address to message. A thread exists because the person wrote to you, and a reply goes to that thread |
| 24 hours | A reply is only delivered within 24 hours of their last message. After that it is refused until they write again |
| No caption | A message is text or a file, never both. Sending a file with a caption means sending two messages |
| No unsend | What goes, goes |
Sending
Section titled “Sending”POST /messages/instagram — scope INSTAGRAM_SEND.
| Field | Type | Required | Notes |
|---|---|---|---|
conversationId |
string | one of two | the thread, as GET /messages/instagram/conversations returns it |
igsid |
string | one of two | Instagram’s id for the person, as the webhook sends it |
accountId |
string | no | which connected handle to answer from. Only needed with igsid, and only when the same person has written to more than one of your handles |
text |
string | yes | 1–1000 characters, Instagram’s own ceiling |
Give conversationId or igsid, not both.
curl -X POST "https://vaarto.com/api/v1/messages/instagram" \ -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -d '{ "igsid": "17841400000000000", "text": "Thanks for writing — your order ships tomorrow." }'await fetch("https://vaarto.com/api/v1/messages/instagram", { method: "POST", headers: { Authorization: `Bearer ${process.env.VAARTO_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ igsid: "17841400000000000", text: "Thanks for writing — your order ships tomorrow.", }),});import os, requests
requests.post( "https://vaarto.com/api/v1/messages/instagram", headers={"Authorization": f"Bearer {os.environ['VAARTO_KEY']}"}, json={ "igsid": "17841400000000000", "text": "Thanks for writing — your order ships tomorrow.", },)A 201 carries the stored message. Outside the window the call is refused:
{ "error": { "code": "WINDOW_CLOSED", "message": "It is more than 24 hours since they wrote. Instagram will not deliver a reply until they message again." }}Sending a file
Section titled “Sending a file”POST /messages/instagram/media — scope INSTAGRAM_SEND, multipart/form-data.
| Field | Notes |
|---|---|
file |
the bytes. JPEG, PNG or GIF; MP4, QuickTime or WebM video; AAC, M4A, MP3 or WAV audio |
conversationId |
the thread — or igsid instead |
igsid |
the person, if the thread id is not to hand |
accountId |
which handle, when igsid is ambiguous |
There is no caption field, because Instagram has no caption. To send a picture and a sentence, send the picture and then send the text.
curl -X POST "https://vaarto.com/api/v1/messages/instagram/media" \ -H "Authorization: Bearer $KEY" \ -F "igsid=17841400000000000"Reading
Section titled “Reading”GET /messages/instagram/conversations |
every thread, newest first. accountId, q, page, perPage |
GET /messages/instagram/conversations/:id/messages |
one thread’s messages, page and perPage |
POST /messages/instagram/conversations/:id/read |
mark it read. Scope CONVERSATIONS_WRITE |
Both reads need MESSAGES_READ. A conversation row carries canReply and
windowClosesAt, so you can tell whether a reply will be delivered before you attempt one.
Webhooks
Section titled “Webhooks”Two events, under Dashboard → Webhooks:
| Event | Fires when |
|---|---|
instagram.message.received |
somebody writes to one of your handles |
instagram.message.status |
a reply you sent was read |
They are separate from message.received and message.status on purpose: an endpoint
already receiving WhatsApp keeps receiving only WhatsApp until you add these. Nothing you
have today starts getting a payload it was not written for.
{ "event": "instagram.message.received", "sentAt": "2026-11-03T10:00:04.221Z", "data": { "channel": "INSTAGRAM", "messageId": "01932f3c-…", "conversationId": "01932f3b-…", "kind": "TEXT", "text": "Is this still available?", "attachmentType": null, "from": "17841400000000000", "fromUsername": "ravi.k", "fromName": "Ravi", "to": "yourhandle", "accountId": "01932f3a-…" }}from is the id to put in igsid when you answer.
Signing, retries and the delivery log are the same as every other event — see Webhooks.
Answering automatically
Section titled “Answering automatically”Each connected handle has a Settings → When a message arrives panel with three choices.
| Mode | What happens |
|---|---|
| Nothing automatic | the message waits in the inbox for a person |
| One fixed reply | the same sentence back, no more often than the cooldown allows |
| Send it to a webhook | it goes to one endpoint of yours — and only there — for your server to answer |
Send it to a webhook is the one to reach for from code. It is the full loop: the
message arrives at your endpoint as instagram.message.received, your service decides what
to say, and it answers with POST /messages/instagram using the from id it was just
given.
Assignment routes; it does not subscribe. The endpoint still has to list
instagram.message.received, or nothing reaches it — the console refuses the assignment
and says so rather than letting you configure silence.
The cooldown on a fixed reply is per person, not per handle: four messages in a row should not earn four identical replies.
Scopes
Section titled “Scopes”| Scope | Reaches |
|---|---|
INSTAGRAM_SEND |
POST /messages/instagram and /media |
MESSAGES_READ |
the two reads above |
CONVERSATIONS_WRITE |
marking a thread read |
INSTAGRAM_SEND stands alone. A key holding WHATSAPP_SEND does not gain it, and no
key issued before Instagram existed can message anybody’s Instagram without being changed
on purpose.