PROGRAMMERS ZONE

Integrate Online SMS with your platform

The Online SMS REST API lets you send campaigns directly from your CRM or application. Authenticate with personal tokens, submit JSON payloads and monitor delivery status in real time.

Our documentation and support team help you get started quickly so your transactional and marketing flows run smoothly.

Need a faster setup? Use our ready-made plugins. The WordPress plugin is available now.

See live documentation Plugin integrations

Authentication

Include your personal token in every request header:

{
  Authorization: Basic ExampleTokenX0X0X0X0X0X0,
}

Generate or rotate tokens anytime from the Online SMS dashboard.

Send message endpoint

Submit JSON payloads to https://app.onlinesms.ro/api/sms/:

POST https://app.onlinesms.ro/api/sms/
Content-Type: application/json
Authorization: Basic ExampleToken

{
  "content": "Message content",
  "to": "+40740123XXX",
  "country_code": "RO",
  "device_id": "optional"
}

Parameters

  • content (string, required) - message body, one credit per 480 characters.
  • to (string, required) - recipient number in E.164 format.
  • country_code (string, optional) - automatically formats national numbers.
  • device_id (string, optional) - specify a registered Android sender.

Responses

Successful requests return:

{
  "success": true
}

Common errors:

  • Incorrect format - payload is not JSON.
  • Incorrect or unknown token - authentication failed.
  • You do not have enough credits - purchased credits are lower than required.
  • Invalid phone number - prefix missing or invalid for selected country.

Need help with the API?

Our engineers are ready to guide you from authentication through to production rollout.

Contact support