ReSMS Logo
Skip to Content
QuickstartcURL

cURL

Welcome to the ReSMS cURL integration guide.

This guide explains how you can interact with the ReSMS API using simple cURL commands from your terminal or scripts.

Setup

First, you need to get an API key on ReSMS Dashboard.

Sending Your First SMS

You can send an SMS using a simple POST request.

curl -X POST https://api.resms.io/v1/sms/send \ -H "Content-Type: application/json" \ -H "x-api-key: YOUR_API_KEY" \ -d '{ "to": "+33123456789", "message": "Welcome to ReSMS!" }'
  • Replace YOUR_API_KEY with your actual ReSMS API key.
  • Replace the to phone number with the recipient’s number.

Parameters

FieldTypeDescription
tostringRecipient phone number (E.164 format)
messagestringMessage content (up to 160 characters)

Error Handling

If something goes wrong, the API will return an error message and HTTP status code.

Example of a failed request:

{ "message": "Insufficient SMS quota available for this user. Please upgrade your plan" }

Going Further


Need help? Contact our support at contact@resms.dev

Last updated on