Skip to main content
A local US number receives SMS only after its 10DLC campaign is approved and carrier assignment completes. Check GET /numbers/{phone_number}/campaign — the number is ready when sms.enabled is true. See Register a number for SMS.
1

Register a webhook endpoint

Use an administrator session, the account token, or an API key with webhooks:manage:
Store the signing secret from the 201 response immediately — it is shown once.
2

Receive and verify the event

When an inbound message arrives, Omni sends a signed POST request to your URL:
Verify the signature on the raw request body before trusting the payload, then return any 2xx status:
The same event can be delivered more than once. Deduplicate on the event id.

Pictures and other MMS attachments

Inbound MMS messages list their attachments in media_urls. These URLs point to authenticated Media resources on this API (never the carrier’s raw URLs) and are served only to the account that owns the message. Fetch them with HTTP Basic authentication using your account ID and account token (or a standard SK… API key and secret), and follow the 302 redirect:
Inbound Media resource URLs require HTTP Basic auth with your account token or a standard API key. Authorization: Bearer tokens and keys with custom/narrowed permissions are not accepted on these URLs.

Read inbound messages without a webhook

You can also list inbound messages directly with GET /messages:
Results are returned newest first and follow standard cursor pagination.