Base URL

All API requests should be made to the following base URL:

https://api.postack.dev/v1

Authentication

To authenticate with our API, use a Bearer token in the format Bearer {{API_KEY}}. You can obtain your API key from the Postack console. This method ensures secure access to our API endpoints.

Rate Limits

Each client is limited to 10 requests per second (RPS). This rate limit helps to ensure fair usage and maintain the quality of service for all users.

Error Codes

Understanding error codes is crucial for effective error handling in your application. Below, we’ve outlined common error codes for two main operations: sending SMS and verifications.

CodeDescription
invalid_senderSender is either not associated with your account or does not exist.
invalid_recipientRecipient should be in E.164 format.
invalid_short_code_recipientShort code can send messages only to recipients in the same country.
messaging_disabledSender does not have messaging capabilities.
tollfree_verification_requiredTollfree number requires verification.
missing_campaignSending messages to US from a 10DLC number requires an approved campaign.
unsupported_destinationSending messages to the destination is not supported.
destination_disabledThis destination is disabled for messaging. Please contact support to enable it.
invalid_textMessage text is either missing or too long.
invalid_messageNo message found for the given id.

This guide aims to provide you with a clear understanding of how to authenticate, handle rate limits, and interpret error codes for a smoother development experience with our API.