Welcome to the Phones Inc SMS API
The Phones Inc SMS API gives you programmatic access to two things:- iMessage — send and receive blue-bubble messages from a real US number, browse conversation threads and history, and get inbound messages pushed to you via signed webhooks.
- SMS number rental — rent a temporary US number to receive a verification code.
Base URL
All API requests should be made to:Authentication
Every request must be authenticated with your API key. You can pass it in either of two headers:Getting Your API Key
API keys are issued by the Phones Inc team when your account is set up. Once you have a key, you can mint and revoke additional keys yourself with the key management endpoints.Sending Requires an Assigned Number
Sending iMessages requires your account to have at least one assigned sending number. Without one, send and read endpoints return403 with the error no iMessage number assigned to this key. Check your assigned numbers anytime with GET /v1/me.
Accounts can hold multiple sending numbers. Each conversation thread lives on one number; pick the outgoing number for a new conversation with the from field on POST /v1/messages (it defaults to your first assigned number), and thread sends always use the thread’s own number.
Pricing
iMessage usage is billed from the same credit balance as SMS number rental:| Usage | Cost |
|---|---|
| Message sent | 0.15 credits |
| Reply received in a conversation you started | 0.05 credits |
402 with Insufficient balance — replies to your existing conversations still come through (and are still billed), but new sends are blocked until you top up. Check your balance anytime with GET /v1/me.
Quick Start
Send your first iMessage:thread_id identifies the conversation for follow-up sends and history reads.
Next Steps
- Response — the response format and error handling
- Webhooks — receive inbound messages in real time, with signature verification
- Data Structures — the Thread and Message models
- Messages — send iMessages
- SMS Number Rental — rent numbers for verification codes