Developers
Integrate verification in an afternoon.
A clean REST API, predictable responses, delivery-status webhooks and a live key you can test on your own number from day one.
Send your first code
Your app generates the code and checks what the user types in. OTP Blue gets the code to the user and tells you what happened.
# Send a one-time code
curl -X POST https://api.otpblue.es/v1.1/otp/send \
-H "Authorization: $OTPBLUE_KEY" \
-H "Content-Type: application/json" \
-d '{"contact": "+34600000000", "code": "482913", "sender": "YourApp", "language": "es"}'Response
{
"success": true,
"status": "delivered",
"message_id": "ac5408f5-d311-4907-a31e-16699e83b1bc",
"recipient": "+34600000000",
"message": "Request has been accepted and sent"
}If the code can't be delivered to the number, you get "status": "failed" with an error code, and failed requests are not billed.
Endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /v1.1/otp/send | Send a one-time code to a phone number |
| GET | /v1/otp/history/requests | Request history for a date range, paginated (up to 1,000 per page) |
| GET | /v1/otp/available-regions | Countries open for your account |
Base URL: https://api.otpblue.es
Authentication
API key in the Authorization header.
Webhooks
Delivery status sent to your URL. Add your own authorization token to verify that the request comes from us; don't whitelist our IP addresses, they change.
Templates and languages
Ready-made message templates in more than 20 languages; set language per request, English by default.
SMPP
SMPP over TLS for messaging platforms and aggregators.
Testing and going live
Your API key is live. Send a test code to your own number first, then move to production traffic.
Errors
Every failed request returns a numeric code and a readable message. The full list is in the documentation we share after onboarding.
Resources
Full API documentation
Shared with every customer after onboarding, together with your API key.
Get API access