SMS SPAIN is the Openapi service dedicated to sending professional SMS to Spanish numbers, designed for companies that require reliable, immediate, and traceable communications, with a customized sender ID and high quality standards.
Thanks to its wide reach, SMS remains one of the most effective channels for reaching end users: the message is delivered even in the absence of a data connection and is ideal for critical notifications , transactional communications , OTP and two-factor authentication, operational notices, and real-time updates.
With SMS SPAIN by Openapi, it is possible to send single messages or multiple campaigns in just a few seconds, integrating the service directly into your application workflows via REST APIs.
The service provides advanced features to optimize and secure SMS delivery:
The POST/ES-messages endpoint allows you to create and queue a new SMS intended exclusively for Spanish numbers, applying operational rules and pricing specific to Spain.
IMPORTANT: if the message content or the sender contains prohibited words, the message will be blocked, the account will be added to the block list, and the cost of the message will be charged.
POST/ES-messages
This is an example request:
{
"sender": "MyCompany",
"recipient": "+393331234567",
"message": "Hello! This is a test message.",
"options": {
"dryRun": false,
"failOnMultipleMessages": false
},
"callback": {
"method": "JSON",
"field": "data",
"url": "https://www.mysite.com/myEndpoint",
"retry": 3,
"headers": {
"session_id": "9834r5fh589494"
},
"custom": {
"my_custom_id": "123456789"
}
}
}
POST/ES-messages
The response returns the details of the accepted and queued message:
{
"id": "633aabe3e4a9a0e69811ad7f",
"username": "[email protected]",
"state": "NEW",
"sender": "Openapi",
"recipient": "string",
"internationalPrefix": "39",
"countryCode": "IT",
"message": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
"encoding": "GSM-7",
"charactersCount": 0,
"messageCount": 0,
"price": 0,
"totalPrice": 0,
"blocklisted": true,
"blocklistedReason": "string",
"options": {
"dryRun": false,
"failOnMultipleMessages": false
},
"callback": {
"method": "JSON",
"field": "data",
"url": "https://www.mysite.com/myEndpoint",
"retry": 3,
"headers": {
"session_id": "9834r5fh589494"
},
"custom": {
"my_custom_id": "123456789"
}
},
"createdAt": "2026-01-28T11:21:20.127Z",
"updatedAt": "2026-01-28T11:21:20.127Z",
"sentAt": "2026-01-28T11:21:20.127Z",
"deliveredAt": "2026-01-28T11:21:20.127Z"
}
Through the GET/messages endpoint, it is possible to retrieve a paginated list of messages sent by the account.
{
"id": "633aabe3e4a9a0e69811ad7f",
"username": "[email protected]",
"state": "NEW",
"sender": "Openapi",
"recipient": "string",
"internationalPrefix": "39",
"countryCode": "IT",
"message": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
"encoding": "GSM-7",
"charactersCount": 0,
"messageCount": 0,
"price": 0,
"totalPrice": 0,
"blocklisted": true,
"blocklistedReason": "string",
"options": {
"dryRun": false,
"failOnMultipleMessages": false
},
"callback": {
"method": "JSON",
"field": "data",
"url": "https://www.mysite.com/myEndpoint",
"retry": 3,
"headers": {
"session_id": "9834r5fh589494"
},
"custom": {
"my_custom_id": "123456789"
}
},
"createdAt": "2026-01-28T11:21:20.127Z",
"updatedAt": "2026-01-28T11:21:20.127Z",
"sentAt": "2026-01-28T11:21:20.127Z",
"deliveredAt": "2026-01-28T11:21:20.127Z"
}
Allows you to retrieve all information related to the sent message (via its ID), such as sender, content, number of recipients, overall delivery statistics, and costs.
{
"id": "633aabe3e4a9a0e69811ad7f",
"username": "[email protected]",
"state": "NEW",
"sender": "Openapi",
"recipient": "string",
"internationalPrefix": "39",
"countryCode": "IT",
"message": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
"encoding": "GSM-7",
"charactersCount": 0,
"messageCount": 0,
"price": 0,
"totalPrice": 0,
"blocklisted": true,
"blocklistedReason": "string",
"options": {
"dryRun": false,
"failOnMultipleMessages": false
},
"callback": {
"method": "JSON",
"field": "data",
"url": "https://www.mysite.com/myEndpoint",
"retry": 3,
"headers": {
"session_id": "9834r5fh589494"
},
"custom": {
"my_custom_id": "123456789"
}
},
"createdAt": "2026-01-28T11:21:20.127Z",
"updatedAt": "2026-01-28T11:21:20.127Z",
"sentAt": "2026-01-28T11:21:20.127Z",
"deliveredAt": "2026-01-28T11:21:20.127Z"
}
Do you need help?
Haven't found the answer you're looking for?
Fill in all the details, we will get back to you as soon as possible!
SMS Spain is Openapi’s API service that enables you to send professional SMS messages to Spanish phone numbers, with a custom sender ID and certified delivery standards. It is the ideal solution for managing immediate and reliable communications, such as alerts, transactional notifications, two-factor authentication, and real-time updates.
The SMS API includes features such as:
dryRun: allows you to validate the request and estimate the cost without actually sending the SMS
failOnMultipleMessages: checks whether the message exceeds the length of a single SMS, preventing the sending of concatenated messages
Custom sender name personalization
Yes. SMS Italia allows you to send the same message to one or multiple recipients in just a few moments by integrating the service directly into your systems via API.
Yes, the API has a dedicated endpoint for monitoring the status of each message. This feature allows you to obtain detailed information about sent messages, such as recipients, delivery status, and overall statistics.
The maximum length of an SMS depends on the encoding type used:
GSM-7: up to 160 characters per single SMS
UCS-2 (used for special characters, emojis, or non-Latin alphabets): up to 70 characters per single SMS
If the message exceeds these limits, it will be automatically split into multiple SMS messages.
Alternatively, you can use the failOnMultipleMessages option, which blocks the sending if the message exceeds the length of a single SMS.
Yes, you can view all the information about a specific message, such as the sender, content, number of recipients, delivery status, and cost. It's simple and helps you keep track of all details.
The SMS API service is designed for companies, developers, and digital teams that need a reliable, immediate, and highly effective communication channel that can be easily integrated into their systems and application workflows.
It is particularly suitable for:
OTP and Two-Factor Authentication (2FA) to increase access security
Real-time notifications and alerts, even without a data connection
Order, payment, and appointment confirmations to improve user experience
SMS marketing campaigns with high deliverability
Two-way SMS to manage user interactions and replies
Onboarding or activation flows for platforms and digital services
SIM activation, usage alerts, and credential resets
Appointment reminders and alerts for reports or sensitive communications
Thanks to its flexibility, the SMS API is suitable for both critical transactional communications and marketing and customer engagement initiatives, ensuring speed, reliability, and scalability.
The cost for a single request starts at €0.027. For SMS Spain, dedicated subscription plans are available, offering particularly advantageous rates, ideal for companies sending medium to high volumes of SMS messages and looking to optimize costs while maintaining high delivery quality.