Skip to main content
This guide walks you through sending your first SMS with SmsManager’s JSON API v2. By the end, you’ll have made a successful API call, received a message_id, and know where to go next to explore advanced features like multi-channel flows and delivery webhooks.
Prerequisites: You need an SmsManager account and an API key before you begin. Retrieve your key from app.smsmanager.com/api-cloud.
1

Get your API key

Log in to your SmsManager account and navigate to API & Cloud. Your primary API key is displayed on that page. Copy it — you’ll pass it as the x-api-key header in every request.If you need a scoped key for a specific integration (for example, to isolate credits or simplify revocation), you can create sub-keys through the REST API.
2

Send your first message

Send a POST request to https://api.smsmngr.com/v2/message with a JSON body containing the message text and at least one recipient phone number in international E.164 format (without a leading + or 00).Request body:
cURL:
Replace YOUR_API_KEY with the key you copied in Step 1 and 420777123456 with the destination phone number.
3

Check the response

A successful request returns HTTP 200 with a JSON body similar to the following:
  • request_id — a unique identifier for the entire API call. Use this to correlate requests in your logs.
  • message_id — a unique identifier for the individual message sent to a specific recipient. Store this value if you want to match delivery webhook events back to the originating send.
  • rejected — an array of any recipients that were not accepted (for example, due to an invalid phone number format). An empty array means all recipients were accepted.
4

Set up a webhook (optional)

To receive real-time delivery updates, add a callback URL to your request body. SmsManager will POST a delivery notification to that URL whenever the message status changes (delivered, failed, etc.).
See the Webhooks guide for the full event payload schema and verification details.

Code examples

The examples below all send the same basic message. Pick the language that matches your stack.

Next steps

Message flow

Learn how to build multi-channel fallback chains with the flow property.

Channels overview

Explore the differences between SMS, Viber, and WhatsApp sending.

Webhooks

Receive delivery receipts and inbound messages in real time.