Page cover image

SMS Partner

Introduction to the SMS Partner API

SMS messages are sent via the SMS Partner API. From the website, you have immediate access to our free API: it allows you to easily integrate our SMS services into your website, software, or CRM application in PHP, ASP, .NET, Java, or any other language.

Required Parameters

Each API request must include at least the following parameters:

Name
Description

apiKey

Your account's API key. You can obtain it from your dashboard SMS Partner

Optional Parameters

Name
Description

_format

Response format: json (default) or xml.

Example call:

https://api.smspartner.fr/v1/me?apiKey=YOUR_API_KEY&_format=json

Response Format and Content-Type

You can format your request in either json or xml. You must set the appropriate header (Content-Type) accordingly:

_format

Content-Type

json

application/json

xml

application/xml

Example JSON request:

POST /v1/send HTTP/1.1
Host: api.smspartner.fr
Content-Type: application/json

{
    "apiKey": "API_KEY",
    "phoneNumbers": "+33600000000",
    "message": "Hello world"
}

Requests

All API requests must be sent to:

http://api.smspartner.fr/v1/{command}

{command} corresponds to the API call you wish to make, with the parameters included in the body (POST) or in the URL (GET).


Download a PHP Example

Directly download a usage example in PHP:

Last updated