Send

This endpoint allows you to send a voice message using Text-To-Speech technology, by specifying the recipient phone number along with the text message and the language.

post
Authorizations
x-auth-tokenstringRequired
Header parameters
x-secret-headerstringRequired
Body
phoneNumberstringRequired
textstringRequired
languagestring · enumRequiredDefault: ARPossible values:
Responses
post
/public/tts/send
POST /public/tts/send HTTP/1.1
Host: api.marsol.ly
x-auth-token: YOUR_API_KEY
x-secret-header: text
Content-Type: application/json
Accept: */*
Content-Length: 52

{
  "phoneNumber": "text",
  "text": "text",
  "language": "AR"
}
201Success

No content

Endpoint: /public/tts/send

Method: POST

Send a text-to-speech request.

Request Header: x-secret-header

Request Body:

  • phoneNumber (string): The recipient phone number.

  • text (string): The content of the message.

  • language (string): The language of the voice.

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.

Last updated