For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bulk Status

This request allows you to retrieve the status of multiple SMS (up to 500 numbers).

URL

GET https://api.smspartner.fr/v1/multi-status

Delivery reports are usually received within a few seconds after sending the SMS. However, depending on the operators and our platform’s traffic, this delay may extend up to 48 hours.

Required Parameters

Name
Value

SMSStatut_List

A list of objects with: - phoneNumber: Recipient phone numbers, up to 500 per request (must be in international format: +336xxxxxxxx) - messageId: ID of the sent message. Found in the send response.

Optional Parameters

Name
Value

_format

json or xml

Requests

<?php
        // Prepare data for POST request
        $fields = array(
            'apiKey'=> 'YOUR API KEY',
            'SMSStatut_List'=>>array(
                array('phoneNumber'=>'+336xxxxxxxx','messageId'=>messageId1),
                array('phoneNumber'=>'+336xxxxxxxx','messageId'=>messageId2)
             )
        );
 
 
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL,'https://api.smspartner.fr/v1/multi-status');
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl, CURLOPT_TIMEOUT, 10);
        curl_setopt($curl, CURLOPT_POST, 1);
        curl_setopt($curl, CURLOPT_POSTFIELDS,json_encode($fields));
 
        $result = curl_exec($curl);
        curl_close($curl);
 
        // Process your response here
        echo $result;
?>

Response

  • Delivered: The message was successfully delivered to the recipient’s device or platform.

  • Not delivered: The message could not be delivered. Possible reasons include an invalid phone number or operator issues.

  • Waiting: The message is still in the process of being delivered and has not yet been confirmed as delivered or failed.

Erreurs

Error Codes

Response Code
Description

1

API key is required

4

Message not found

10

Invalid API key

Last updated