Prerequisites
- Surge account: Sign up at hq.surge.app.
- API key: Find it under API Keys in the left sidebar of the dashboard.
- Account ID: Shown at the top of the dashboard, format
acct_01j.... - A phone number you can receive texts on: Used as the
tovalue in your first send.
1. Send a message
Every outbound message goes through the same endpoint. Replace the account ID, API key, andto number with your own values.
from number. New accounts send from a demo number automatically.
2. Check the response
A successful request returns the message object:to receives a text. If nothing arrives after 60 seconds, check that the number is in E.164 format: starting with + and country code, like +18015551234.
3. Watch for the demo limit
The demo number has a cap of 25 outbound messages per account. When you hit the limit, the API returns a403 with:
Next steps
Two things unlock production sending: register your business and purchase a phone number. Pick an SDK while you wait for review to clear.Register your business
Get carrier approval for your brand and campaign.
Pick an SDK
Pagination, error handling, and webhook signature verification out of the box.
Purchase a phone number
Buy a local or toll-free number and let Surge attach it to your campaign.
Receive webhooks
Verify signatures and handle inbound messages, deliveries, and opt-outs.