textbee Logotextbee.dev
Plans from $9.99/mo.View Plans

SMS API by language: send and receive SMS from your own number

textbee is a REST API in front of an Android phone with a SIM. Any language that can make an HTTPS request with a header can send an SMS, receive replies by webhook, poll message history with a cursor and handle errors. Each page below has those four samples for one language, written with the standard library and executed against a mock of the API before it was published, plus notes on where the calls live in the common frameworks.

Updated

What every language page has in common

Authentication is one header, x-api-key, scoped to your account. Sending is a POST to /gateway/send-sms with recipients in E.164 form. Receiving is either a signed webhook or a cursor over GET /gateway/messages, and both are shown. One phone sends roughly 10 to 15 messages a minute, so a large blast takes time to drain. Carriers can filter bulk patterns on consumer SIMs. Marketing messages still need consent from the recipient under the local rules.