# Send

{% openapi src="<https://4252508492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGWJEG9cJuN56fuTrG3lE%2Fuploads%2FPg67RSPd2NZ6RLEpE9fy%2Fmarsol.json?alt=media&token=da2ec328-5ca5-4bf7-8f0f-260df4be0b73>" path="/public/tts/send" method="post" %}
[marsol.json](https://4252508492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGWJEG9cJuN56fuTrG3lE%2Fuploads%2FPg67RSPd2NZ6RLEpE9fy%2Fmarsol.json?alt=media\&token=da2ec328-5ca5-4bf7-8f0f-260df4be0b73)
{% endopenapi %}

**Endpoint**: `/public/tts/send`

**Method**: `POST`

Send a text-to-speech request.

**Request Header**: `x-secret-header`

**Request Body**:&#x20;

* `phoneNumber` (string): The recipient phone number.
* `text` (string): The content of the message.
* `language` (string): The language of the voice.

```http
POST /public/send/sms HTTP/1.1
Host: api.marsol.ly
x-auth-token: your_api_token_here
Content-Type: application/json
{
    "phoneNumber": "text",
    "text": "text",
    "language": "AR"
}
```

**Response**:

Returns `201` in case of success.
