# Replies Management

## Reply via long number

SMS Partner allows you to rent a long number (e.g. 06 XX XX XX XX).\
To learn more about setting up a dedicated long number, [contact us](https://www.smspartner.fr/contact/).

#### Example of reply via simple SMS (max 160 characters)

```php
Array
(
    'msisdn' => '33xxxxxxxxx', // number of the person sending the SMS
    'to' => '33xxxxxxxxx',
    'messageId' => '02000000XXXXXXXXX',
    'text' => 'Test',
    'type' => 'text',
    'keyword' => 'Test',
    'message-timestamp' => '2016-03-10 09:51:46'
)
```

#### Example of reply via long SMS (+160 characters)

```php
Array
(
    'msisdn' => '33xxxxxxxxx', // number of the person sending the SMS
    'to' => '33xxxxxxxxx',
    'messageId' => '02000000YYYYYYYY',
    'concat' => 'true',
    'concat-ref' => '171',
    'concat-total' => '2',
    'concat-part' => '1',
    'text' => '   Long message....',
    'type' => 'text',
    'keyword' => 'MESSAGELONG',
    'message-timestamp' => '2016-03-09 16:00:30'
)

Array
(
    'msisdn' => '33xxxxxxxxx', // number of the person sending the SMS
    'to' => '33xxxxxxxxx',
    'messageId' => '02000000XXXXXXXX',
    'concat' => 'true',
    'concat-ref' => '171',
    'concat-total' => '2',
    'concat-part' => '2',
    'text' => '....very long',
    'type' => 'text',
    'keyword' => 'VERYLONG',
    'message-timestamp' => '2016-03-09 16:00:31'
)
```

## Reply via short number

After sending a campaign from our short number, SMS Partner allows you to receive replies.\
To learn more, [**contact us**](https://www.smspartner.fr/contact).

{% hint style="info" %}
**Note**

To receive replies, you must configure your reply reception URL in your [SMS API dashboard](https://my.smspartner.fr/dashboard/api)
{% endhint %}

**Example of reply from our short number**

```php
Array (
  'type' => 'response',
  'phone_number' => '+336XXXXXXX1',
  'text' => 'My reply',
  'message_id' => '123'
)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.docpartner.dev/en/api/sms-partner/replies-opt-outs-management/replies-management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
