REST API
PostMX exposes a public REST API for creating inboxes, listing messages, fetching full or reduced message detail, and registering webhook targets for email.received events.
Open the reference
Authentication
Use a bearer token issued from the PostMX dashboard:
Authorization: Bearer pmx_live_...
Base URL
https://api.postmx.co
What the API covers
GET /v1/inboxesPOST /v1/inboxesGET /v1/inboxes/{inbox_id}/messagesGET /v1/messagesGET /v1/messages/{message_id}POST /v1/webhooks
Webhook payloads
When PostMX delivers a webhook, it sends a signed JSON POST request containing:
- event metadata:
id,type,created_at data.inbox: inbox metadatadata.message: the full message payload, includingotp,links, andintent
For the full delivery model, headers, signature flow, and processing guidance, read Verify Webhooks.
Good next steps
- Read the Node.js SDK if you want typed application code.
- Read the Python SDK if you want async or sync Python integration.
- Read the CLI docs if you want to work from a terminal or CI pipeline.