iMessage API with multiple numbers
An account can hold more than one iMessage number, and each number is a line. Every line uses the same API key, the same webhook and the same live stream. Pro is $49/month per number, and Growth starts at $199/month.
Pro is $49/month per number. Limits are counted per line.
POST /api/imessage/send
A send picks its own line.
You call POST /api/imessage/send with the same {to, text} as always. Pick a send and see which line it goes out from.
Each number counts on its own.
New contacts are counted per line. Every line can reach its plan’s limit each day, and the count resets at 3 AM Eastern.
- Conversations
- Message ids
- Name and photo
- STOPs
- line_id
Only the number changes. Store line_id and show line to people.
A replaced number keeps its line.
If we have to replace the number behind a line, everything else stays where it was.
Add a line from code.
Ask for a quote, then buy. Add lines from the console or the API, on any plan with a card subscription.
GET /api/imessage/lines/quote?count=1POST /api/imessage/lines
Idempotency-Key: <uuid>
{"new_group": true}
// the lines are live when it returns
{"ok": true, "lines": [{"id": "ln_8c41e07d92b3f615",
"number": "+18055550111",
"group_id": "lg_a73f18c0d94e2b65"}]}How lines work
- Every payload names its line. Every message, conversation, opt-out, typing event and webhook payload carries
line(the number) andline_id. An account with one number gets neither field. - Read them together or one at a time. Add
?line_id=to see one line. Without it you see every line. - Group lines under one sender. Lines in a group share one business name and photo, and you can run several senders on one account.
{"new_group": true}starts a new sender. Without it, a new line uses the same sender as your primary number.
POST /api/imessage/send
{"to": "+18055559876",
"line_id": "ln_8c41e07d92b3f615",
"text": "Hi from the second line"}
// GET /api/imessage/line, an example account with three lines
{"usage": {"new_contacts": {"used": 38, "limit": 150, "period": "day"}},
"lines": [
{"id": "ln_3f9a0c2e7b1d4a56", "number": "+18055550100",
"usage": {"new_contacts": {"used": 20, "limit": 50, "period": "day"}}},
{"id": "ln_8c41e07d92b3f615", "number": "+18055550111",
"usage": {"new_contacts": {"used": 12, "limit": 50, "period": "day"}}},
{"id": "ln_d27b5e9f0a6c1843", "number": "+18055550122",
"usage": {"new_contacts": {"used": 6, "limit": 50, "period": "day"}}}]}
Limits and errors
429 new_contact_limit
A send to a new contact returns it only when every line is full. If you named a line, it returns that error when that line is full. People who text you first and ongoing conversations do not count.
STOP
A STOP to any of your lines blocks the contact on all of them.
404 unknown_line
The line you named is not yours, and nothing is sent.
409 line_draining
The line is being retired, so a send to a new contact is refused. A retiring line still answers its existing conversations.
Who can buy
Only the account owner’s key can buy lines. A team member’s key can get a quote. A new Pro line is $49/month, paid for a full month when added, on its own subscription; added Growth and Enterprise lines are prorated to your renewal date.
SMS fallback
Eligible one-to-one plain-text messages can go by SMS from the sending line’s number to recipients without iMessage.
No SLA
We publish 99.9% uptime, which is not an SLA (how uptime is defined).
Price per number
Adding a line adds that line’s daily allowance and its monthly price. Plans are billed monthly by Stripe, and Pro has a 30-day refund guarantee, no questions asked.
| Pro | Growth | Enterprise | |
|---|---|---|---|
| Price | $49/month per number | From $199/month for up to 50 opted-in new contacts a day. Existing Pro upgrade is $199/month per number. | Custom pricing |
| Fits | Assistants and support lines that people text first | Agents and teams that start conversations | High volume and compliance needs |
| New contacts a day | Built for people who text you first | Up to 500 as you add numbers | Through sales |
| Team members | No | Yes | Through sales |
| How to start | Get started | Book a 15-minute demo | Contact sales |
Full plan details are on the iMessage API page.
Questions
Do I need a separate API key for each number?
No. An account can hold several numbers, called lines. They share one API key, one webhook and one live stream. Each message, conversation and webhook payload says which line it is on.
How does ZeroSettle pick which number sends a message?
If you already have a conversation with the contact, the message goes from the line that conversation is on. A new contact goes to the line with the most room left today. To choose yourself, pass line_id in the request.
What happens if one of my numbers is replaced?
If we replace the number behind a line, the line keeps its line_id, conversations, message ids, name and photo, and STOPs. Only the number changes. Store line_id and show the number.
How many new contacts can I reach a day?
The limit is counted per line and adds up across your lines: Growth reaches up to 500 opted-in new contacts a day as you add numbers, reset at 3 AM Eastern, and Pro is built for people who text you first. A send returns 429 new_contact_limit only when every line is full, or when the line you named is full. People who text you first and ongoing conversations do not count.
What does it cost to add numbers?
A new Pro number is $49/month, paid for a full month when added, on its own subscription. Growth starts at $199/month for up to 50 opted-in new contacts a day and scales up to 500 a day. Eligible Pro accounts can upgrade in the console for $199/month per number. Added Growth numbers are prorated to your renewal date at your account rate. Enterprise has custom pricing through sales.
Does a STOP on one number affect the others?
Yes. A contact who texts STOP to any of your lines is blocked on all of them.
Can I add numbers from code?
Yes. GET /api/imessage/lines/quote shows the price and charges nothing. POST /api/imessage/lines buys up to 5 lines per request. Only the account owner’s key can buy; a team member’s key can quote.
Start with one number
Get a number, then add lines from the console or the API when you need them.