Messaging API

Integrate SMS estimates, submissions, and delivery status into your application. Contact Postlane to discuss access and route availability.

Access and authentication

Use the base URL and credentials provided for your environment. Make requests from your server, and store credentials in an environment variable or a secret manager.

Estimate a message

POST/api/messages/quote

Send an approved template_id and a recipients array in E.164 format. Check the destination and billing estimate before submitting.

Submit a message

POST/api/messages

Provide a unique request_id for the confirmed submission. Keep the same request ID and payload for a retry, and retain the returned message ID.

Check delivery status

GET/api/messages/{message_id}

Use the message ID to check the latest status. A carrier may return the delivery result after accepting the submission.