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

Programming languages

Click on the programming language you use and access examples to integrate the SMS sending API with copy and paste

SMS API Functionality

Send SMS

API method that allows you to send an SMS to a recipient using the SMS API . You can send an SMS to any mobile device in the world and with a personalized sender (as long as the destination operator allows it). With this method you can also send a scheduled SMS at a desired date / time.
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:

https://www.afilnet.com/api/http/?class=sms&method=sendsms&user=user&password=password&from=Afilnet&to=34600000000&sms=sms+test&scheduledatetime=&output=

Send SMS from template

API method that allows you to send an SMS to a recipient from a message saved as a template using the SMS API . You can send an SMS to any mobile device in the world and with a personalized sender (as long as the destination operator allows it). With this method you can also send a scheduled SMS at a desired date / time. This method also allows you to configure SMS.
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 (<>), separated by , (commas) 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:

https://www.afilnet.com/api/http/?class=sms&method=sendsmsfromtemplate&user=user&password=password&to=34600000000&idtemplate=1000¶ms=mobile:123456789,name:test+name&scheduledatetime=&output=

Send bulk SMS

API method that allows you to send SMS to a group of contacts . With this method you can also program the date / time you want and customize your 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:

https://www.afilnet.com/api/http/?class=sms&method=sendsmstogroup&user=user&password=password&from=Afilnet&countrycode=34&idgroup=1&sms=sms+test&scheduledatetime=&output=

Send Bulk SMS from template

API method that allows you to send SMS to a group of contacts with a previously defined message in a template. With this method you can also program the date / time you want and customize your SMS.
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:

https://www.afilnet.com/api/http/?class=sms&method=sendsmstogroupfromtemplate&user=user&password=password&countrycode=34&idgroup=1&idtemplate=1000&scheduledatetime=&output=

Get SMS delivery status

API method that allows obtaining the delivery status of an SMS listing.
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:

https://www.afilnet.com/api/http/?class=sms&method=getdeliverystatus&user=user&password=password&messages=123456,123457,123458&output=

Tools that enhance our SMS-API

SECURE API CONNECTION

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

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

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
SMPP connection

Steps to use SMS API

Using the Afilnet SMS API will only take a few minutes

01

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

02

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

03

Request your free trial

We offer you credits to try the SMS API service before buying. Integrate SMS sent and test the API functionality

04

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

Thousands of SMS per minute

SMS API allows you to send thousands of SMS per minute making requests to the API.
White list security

White list security

Enable white lists and allow connections only from the included IPs.
Send SMS from Templates

Send SMS from Templates

Make use of templates and send predesigned SMS.
Delivery status information

Delivery status information

Obtain the delivery status of your SMS through the API.
Multiple accesses per account

Multiple accesses per account

You can create as many users to connect to the API with the same account as you want.
Subaccounts

Subaccounts

Create sub-accounts for other companies or departments with their own API connection and balance.

Numbers related to SMS API

10,500

Clients

0.5M

Daily API Requests

1,300

Connected Operators

230

Connected countries

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

Try Afilnet for free!

Sign up for free and try Afilnet! We offer you a free trial of our services. *



(*) Promotion only valid for companies that have never used the Afilnet service before. When requesting the free balance, Afilnet may request to verify your company information


Bulk SMS · Email Marketing · Social network · Instant messaging · Certification · and much more
Continue IMPORTANT INFORMATION ABOUT COOKIES: If you continue to use this web we will assume that you accept the terms of use. You will find more information in our Cookies Policy.
Payment methods
Wire transfer
Credit card
Paypal
Western Union
Skrill
Crypto
Afilnet in your language

Copyright © 2022 Afilnet · All rights reserved