Skip to main content

Instagram

Instagram messaging connects your business to users via the Instagram Graph API. Orbit handles the OAuth onboarding, page-level permission scopes, and the async webhook fan-in for inbound DMs, story replies, and quick-reply postbacks. A single Orbit account can attach multiple connected Instagram Business or Creator accounts; messages are billed per-conversation per Meta’s pricing tiers.

Send a message

The body requires to, messaging_type, and message.

messaging_type

Mirrors Meta’s Messenger Platform messaging type and controls when a send is allowed: The window semantics behind each value, when each tag is legal, and the one-time-notification escape hatch are covered in Messaging windows and tags below; the concept-level model across all Meta channels is on Messaging windows and off-window sends.

message

The message object carries the content. Provide either text or an attachment:
Optional top-level fields: tag (required when messaging_type is MESSAGE_TAG), metadata (a string→string map), and scheduled_at (ISO-8601 timestamp). There is no top-level type, text, or from field — the connected Instagram account is resolved from your API key.

Generic templates

Instagram’s only structured outbound payload is the generic template — a horizontally scrollable carousel of cards, each with an image, title, subtitle, and buttons. Button and receipt templates are Messenger-only and are not supported on Instagram. Because metadata is a string→string map, a generic template is requested through two metadata keys rather than a dedicated message shape:
If elements is missing or is not valid JSON, the send falls back to the plain message.text body.

Send at scale via campaign

A direct send addresses one IGSID per call. To reach a whole audience, submit a campaign with channel set to instagram — one campaign call replaces a loop over the single-send endpoint, and the same messaging_type / message content shape applies per recipient. Instagram is a first-class campaign channel: it is accepted on campaign create and update, and the campaign dry-run and deliverability-lab checks cover it like every other channel, so you can estimate reach and lint copy before you launch.
201 Created — the campaign is created as a draft; launch it with POST /api/v1/campaigns/{id}/send and each recipient is queued from there. For media, put the usual message.attachment object in content.message instead of text. Two rules decide how each row behaves:
  • Window and tags apply per row. Every recipient send runs through the same contract as a direct send. A row whose recipient is outside the 24-hour window and whose content carries no valid tag fails individually with MESSAGE_SEND_FAILED while the rest of the audience still receives the send — segment on recent engagers for RESPONSE content, and reserve untagged blasts for re-engagement flows.
  • Recipients without an Instagram identifier are skipped per send. A campaign audience is resolved against each contact’s stored channel identifiers; contacts that never produced an IGSID (no inbound message.received captured onto the contact) are not attempted and are counted as skipped. Capture data.from from every inbound event to grow the addressable audience, and use the campaign dashboard row’s per-contact status to reconcile skips.
Campaign sends pace through the per-tenant hourly quota instead of hitting it in one tight loop — for planned batches above the direct-send ceiling this is the supported path (see Rate limits).

Messaging windows and tags

Meta allows an Instagram DM when it answers a recent inbound message or carries an approved tag. The 24-hour window opens on the user’s last inbound event — a DM, a story reply, or a quick-reply postback — and while it is open you may send: Once 24 hours pass without a new inbound event, only MESSAGE_TAG sends with a top-level tag go through, and only transactional content matches each tag: No tag covers promotional content outside the window; a marketing send after 24 hours is rejected by Meta and surfaces as MESSAGE_SEND_FAILED. Wait for the user to re-engage (any inbound event reopens the window) or move the offer into a channel without a window. Two related mechanisms, covered on Messaging windows and off-window sends:
  • One-time notifications (OTN) — a user-initiated, single-use opt-in that authorises exactly one out-of-window send. Use it for restock and waitlist alerts the user explicitly asked for.
  • Cross-channel comparison — how Meta’s 24-hour window differs from WhatsApp’s 24-hour template model and the windowless channels, which decides where Instagram sits in a fallback chain.

Inbound and delivery status

Inbound DMs, story interactions, and postbacks are relayed to your registered webhook endpoint automatically — Orbit subscribes the Meta webhook when you connect the account. Replies arrive on the standard message.received event and follow the normalized inbound event envelope, the same shape every other channel produces, so your handler keys on one contract:
Story mentions and story replies arrive on the same message.received event; there are no dedicated instagram.story.* event types. Branch on the metadata instead:
Quick-reply postbacks arrive the same way with quick_reply.payload populated. Both story events reopen the 24-hour window, so they are valid triggers for a RESPONSE.
Instagram runs on Meta’s platform, so the inbound callbacks Meta POSTs to Orbit are signed with Meta’s X-Hub-Signature-256 header (the same scheme as WhatsApp), not the Standard Webhooks / Svix scheme Orbit uses for its own outbound webhooks. Orbit verifies the Meta signature at the transport layer; when you receive Orbit’s relayed events on your endpoint, verify them with your Orbit webhook secret as usual. Requests that fail the Meta-side check are rejected with 401 INVALID_SIGNATURE before they reach you.

Delivery status

Instagram DMs have no carrier-style delivered receipt: Meta returns only the accept-ack on send, so your outbound message advances to sent and, if Meta never reports a read, is promoted to submitted_no_receipt after the grace window. The downstream signal Meta does emit is the read receipt, relayed as message.read (normalized.kind is message, the status-update family):
Treat sent as “accepted by Meta” and message.read as your engagement signal; a row that ends submitted_no_receipt was accepted but never read, not bounced. Subscribe to both event families under Settings → Webhooks.

Consume inbound events

Branch on data.channel: "instagram" and read the IGSID from data.from — that value is the to of every outbound DM to that user.

Connection lifecycle and multiple accounts

Connect is dashboard-only: there is no API sign-in endpoint for Meta’s OAuth dialog, so the steps below run in the dashboard while everything after them (sends, webhooks, campaigns) is API-driven. The ordered first-time walkthrough, including the inbound verification checklist, is the Instagram onboarding playbook.
  1. From the dashboard, navigate to Channels → Instagram.
  2. Click Connect Instagram and authorise via Meta’s OAuth dialog. The dialog requests instagram_basic, instagram_manage_messages, pages_messaging, and pages_show_list — accept all four; a declined scope surfaces later as MESSAGE_SEND_FAILED.
  3. Select the Instagram Business / Creator account to attach. Meta only lists accounts reachable through Facebook Pages you administer, and the account must be a Business or Creator profile linked to a Page — personal profiles are rejected by Meta, not by Orbit.
  4. Verify the inbound webhook subscription registered automatically; the webhook URL points to https://api.orbit.devotel.io/api/v1/webhooks/inbound/instagram. You wire nothing by hand in Meta’s app dashboard.
Repeat the flow to attach more accounts — regional brands and sub-brands each show up as their own channel entry under Channels → Instagram.

Sender resolution with several accounts

You never pass a sender on the request: the connected account is resolved from your API key, and a conversation is always answered by the account that owns it. Capture data.from per inbound event onto the contact; that IGSID is only addressable through the account the user messaged.

Reconnect on token expiry

Meta rotates page tokens, and a send on an expired or revoked token surfaces as MESSAGE_SEND_FAILED with a 401-class details.provider_status. Reconnect from Channels → Instagram → Reconnect and accept the scopes again — no other side of the integration changes, and webhook subscriptions survive the reconnect. If a previously connected account stops appearing in the OAuth dialog, its Facebook Page link or admin role changed; restore it in Meta first, then reconnect.

Capabilities and limits

Outbound content

Inbound events

Quota and test mode

  • Meta enforces 200 DM / hour per Instagram account; Orbit runs a per-tenant sliding-window counter ahead of every send and rejects excess sends with RATE_LIMIT_EXCEEDED (429) before they reach Meta (see Rate limits).
  • Reachability: you can only DM users who hold an IGSID captured from an inbound event, and out-of-window sends need a valid tag. There is no pre-send addressability check on the route — a send to a blocked or opted-out recipient is rejected by Meta and surfaces as MESSAGE_SEND_FAILED.
  • Orbit has no Instagram sandbox; Meta offers no DM emulator. Test by DMing the connected Business account from a personal Instagram account, and keep a separate connected account for production traffic. The platform-wide model is covered in Channel test account model and Sandbox console.

Rate limits

Meta enforces a 200 DM / hour limit per Instagram account (reduced from 5000 in February 2026). Orbit runs a per-tenant, Redis-backed sliding-window counter ahead of every send so you stay under Meta’s quota and avoid RATE_LIMIT_EXCEEDED (429) responses and account restrictions. When a send would exceed the window it is rejected with RATE_LIMIT_EXCEEDED before it ever reaches Meta. The hourly ceiling is operator-tunable without a redeploy — set the env var (Secret Manager / cluster env) and restart the pod:

Common errors

The error.code you can branch on is one of three values. Meta-side rejections (expired token, outside the messaging window, non-Business account, opted-out recipient) all surface as MESSAGE_SEND_FAILED — Orbit does not re-expose Meta’s raw error string, so inspect details.provider_status for the upstream HTTP status to tell those cases apart.

Pricing

Pay-as-you-go conversation pricing per Meta’s Messaging Tiers. International destinations vary; the dashboard shows the exact rate per destination before send. See the pricing page for public starter rates.