SMS API
SMS API will allow you to send and manage Massive SMS campaigns through the API
- HTTP API, Send SMS from any programming language.
- SMPP server, Send SMS using an SMPP client.
- 99.9% SLA, We optimize the performance of all servers.
- Maximum Quality, We connect only with the best routes to send SMS.

SMS API Functionality
Send SMS
Parameter | Description | Compulsory / Optional |
---|---|---|
class=sms | Class requested: Class to which the request is made | Compulsory |
method=sendsms | Class method requested: Method of the class to which the request is made | Compulsory |
user | User and e-mail of your Afilnet account | Compulsory |
password | Password of your Afilnet account | Compulsory |
from | Sender | Compulsory |
to | Mobile phone number of the recipient | Compulsory |
sms | SMS message to be sent | Compulsory |
scheduledatetime | Sending date and time in yyyy-mm-dd hh:mm:ss format | Optional |
output | Output format of the result | Optional |
Answer:
- status
-
result (if status=success), here you will receive the following values:
- messageid
- credits
- error (if status=error), here you will receive the error code
Error codes:
Code | Description |
---|---|
MISSING_USER | User or email not included |
MISSING_PASSWORD | Password not included |
MISSING_CLASS | Class not included |
MISSING_METHOD | Method not included |
MISSING_COMPULSORY_PARAM | Compulsory parameter not included |
INCORRECT_USER_PASSWORD | Incorrect user or password |
INCORRECT_CLASS | Incorrect class |
INCORRECT_METHOD | Incorrect method |
NO_ROUTE_AVAILABLE | There are no available paths for the indicated destination |
NO_CREDITS | Your balance is insufficient |
Parameters:
- class : sms
- method : sendsms
- user : user
- password : password
- from : Afilnet
- to : 34600000000
- sms : sms+test
- scheduledatetime :
- output :
Request:
Send SMS from template
Parameter | Description | Compulsory / Optional |
---|---|---|
class=sms | Class requested: Class to which the request is made | Compulsory |
method=sendsmsfromtemplate | Class method requested: Method of the class to which the request is made | Compulsory |
user | User and e-mail of your Afilnet account | Compulsory |
password | Password of your Afilnet account | Compulsory |
to | Destination mobile number | Compulsory |
idtemplate | Template ID | Compulsory |
params | Parameters to be replaced in the template for customization (< |
Optional |
scheduledatetime | Delivery date and time in yyyy-mm-dd hh:mm:ss format | Optional |
output | Output format of the result | Optional |
Answer:
- status
-
result (if status=success), here you will receive the following values:
- messageid
- credits
- error (if status=error), here you will receive the error code
Error codes:
Code | Description |
---|---|
MISSING_USER | User or email not included |
MISSING_PASSWORD | Password not included |
MISSING_CLASS | Class not included |
MISSING_METHOD | Method not included |
MISSING_COMPULSORY_PARAM | Compulsory parameter not included |
INCORRECT_USER_PASSWORD | Incorrect user or password |
INCORRECT_CLASS | Incorrect class |
INCORRECT_METHOD | Incorrect method |
NO_ROUTE_AVAILABLE | There are no available paths for the indicated destination |
NO_CREDITS | Your balance is insufficient |
NOT_ACCESS_TO_TEMPLATE | You haven't access to the selected template |
Parameters:
- class : sms
- method : sendsmsfromtemplate
- user : user
- password : password
- to : 34600000000
- idtemplate : 1000
- params : mobile:123456789,name:test+name
- scheduledatetime :
- output :
Request:
Send bulk SMS
Parameter | Description | Compulsory / Optional |
---|---|---|
class=sms | Class requested: Class to which the request is made | Compulsory |
method=sendsmstogroup | Class method requested: Method of the class to which the request is made | Compulsory |
user | User and e-mail of your Afilnet account | Compulsory |
password | Password of your Afilnet account | Compulsory |
from | Sender | Compulsory |
countrycode | Country dialling code | Compulsory |
idgroup | Recipient group identifier | Compulsory |
sms | SMS message to be sent | Compulsory |
scheduledatetime | Date and time of delivery in yyyy-mm-dd hh:mm:ss format | Optional |
output | Output format of the result | Optional |
Answer:
- status
-
result (if status=success), here you will receive the following values:
- id
- count
- credits
-
destinations
- messageid
- destination
- error (if status=error), here you will receive the error code
Error codes:
Code | Description |
---|---|
MISSING_USER | User or email not included |
MISSING_PASSWORD | Password not included |
MISSING_CLASS | Class not included |
MISSING_METHOD | Method not included |
MISSING_COMPULSORY_PARAM | Compulsory parameter not included |
INCORRECT_USER_PASSWORD | Incorrect user or password |
INCORRECT_CLASS | Incorrect class |
INCORRECT_METHOD | Incorrect method |
NOT_ACCESS_TO_GROUP | You are not allowed into the indicated group |
NO_CREDITS | Your balance is insufficient |
Parameters:
- class : sms
- method : sendsmstogroup
- user : user
- password : password
- from : Afilnet
- countrycode : 34
- idgroup : 1
- sms : sms+test
- scheduledatetime :
- output :
Request:
Send Bulk SMS from template
Parameter | Description | Compulsory / Optional |
---|---|---|
class=sms | Class requested: Class to which the request is made | Compulsory |
method=sendsmstogroupfromtemplate | Class method requested: Method of the class to which the request is made | Compulsory |
user | User and e-mail of your Afilnet account | Compulsory |
password | Password of your Afilnet account | Compulsory |
countrycode | Country code | Compulsory |
idgroup | Destination group ID | Compulsory |
idtemplate | Template ID | Compulsory |
scheduledatetime | Delivery date and time in yyyy-mm-dd hh:mm:ss format | Optional |
output | Output format of the result | Optional |
Answer:
- status
-
result (if status=success), here you will receive the following values:
- id
- count
- credits
-
destinations
- messageid
- destination
- error (if status=error), here you will receive the error code
Error codes:
Code | Description |
---|---|
MISSING_USER | User or email not included |
MISSING_PASSWORD | Password not included |
MISSING_CLASS | Class not included |
MISSING_METHOD | Method not included |
MISSING_COMPULSORY_PARAM | Compulsory parameter not included |
INCORRECT_USER_PASSWORD | Incorrect user or password |
INCORRECT_CLASS | Incorrect class |
INCORRECT_METHOD | Incorrect method |
NOT_ACCESS_TO_GROUP | You are not allowed into the indicated group |
NO_CREDITS | Your balance is insufficient |
Parameters:
- class : sms
- method : sendsmstogroupfromtemplate
- user : user
- password : password
- countrycode : 34
- idgroup : 1
- idtemplate : 1000
- scheduledatetime :
- output :
Request:
Get SMS delivery status
Parameter | Description | Compulsory / Optional |
---|---|---|
class=sms | Class requested: Class to which the request is made | Compulsory |
method=getdeliverystatus | Class method requested: Method of the class to which the request is made | Compulsory |
user | User and e-mail of your Afilnet account | Compulsory |
password | Password of your Afilnet account | Compulsory |
messages | List of dispatch identifiers separated by commas (,) | Compulsory |
output | Output format of the result | Optional |
Answer:
- status
-
result (if status=success), here you will receive the following values:
- messageid
- sms
- deliverydate
- deliverystatus
- error (if status=error), here you will receive the error code
Error codes:
Code | Description |
---|---|
MISSING_USER | User or email not included |
MISSING_PASSWORD | Password not included |
MISSING_CLASS | Class not included |
MISSING_METHOD | Method not included |
MISSING_COMPULSORY_PARAM | Compulsory parameter not included |
INCORRECT_USER_PASSWORD | Incorrect user or password |
INCORRECT_CLASS | Incorrect class |
INCORRECT_METHOD | Incorrect method |
Parameters:
- class : sms
- method : getdeliverystatus
- user : user
- password : password
- messages : 123456,123457,123458
- output :
Request:
Tools that enhance our SMS-API

SECURE API CONNECTION
Security tailored to your business
Configure your API connections, create new accesses and manage existing ones.
Filter all API accesses by IP, add or remove enabled IPs to guarantee the security of your accesses.
Keep track of all connections made, API used and connection dates / time

MULTIPLE APIs
Connectivity tailored to your business
We offer you multiple APIs to connect with us, we have an HTTP API, BASIC AUTH, SOAP and JWT Authentication so that you can connect with us the way you want.
Connect with any of the APIs in a secure, simple and centralized way . Afilnet API is perfect for your software.

API Logs
Get to know each request in detail
Thanks to our logs you will be able to review all the requests made and the corresponding response from our API, which will allow you to consult details when you need them.
The information you can consult is the following:
- Source IP of the request
- Date & Time of the request
- API & Method being called
- Parameters sent to the API
- API response
- metadata
SMPP connection
Our SMPP Server will allow you to send thousands of SMS per minute. Our infrastructure is prepared to receive large volumes of SMS.
Connect to our SMPP server to send SMS using your account login details or you can also create new connections from your user panel.
If you want to use our SMPP server, contact our team who will indicate the access data.
Contact with Afilnet
Steps to use SMS API
Using the Afilnet SMS API will only take a few minutes
Request your free trial
To access the SMS API you only need to register as an Afilnet client. Being an Afilnet customer you will enjoy all the advantages as a customer
Integrate the SMS API
Perform the SMS API integration in your favorite programming language. Remember that we help you if you have any questions or need help with the API
Request your free trial
We offer you credits to try the SMS API service before buying. Integrate SMS sent and test the API functionality
Welcome to Afilnet!
Everything ready!, has managed to improve its communications with Afilnet. We are here to support our API when you need it
SMS API service features
Thousands of SMS per minute
SMS API allows you to send thousands of SMS per minute making requests to the API.White list security
Enable white lists and allow connections only from the included IPs.Send SMS from Templates
Make use of templates and send predesigned SMS.Delivery status information
Obtain the delivery status of your SMS through the API.Multiple accesses per account
You can create as many users to connect to the API with the same account as you want.Subaccounts
Create sub-accounts for other companies or departments with their own API connection and balance.Frequently asked questions about SMS API
Here you will find more information about our SMS API, if you have questions or need help in the integration you can contact us.
The fact of using the API of SMS of Afilnet does not have any cost, you pay for the services used through the API, but not by making use of it
We help hundreds of companies like yours to integrate the SMS API, if you have problems with integration, please contact us and we will help you
Afilnet provides filters for White Lists by IP for the SMS API, which will allow you to use the API only from the IPs you want
You can use the API as much as you want, there is no limit to the use of the API