POST
/
sendMessage
curl --location --request POST 'https://api.byteflow.app/sendMessage' \
--header 'Content-Type: application/json' \
--header 'api_key: <api_key>' \
--data-raw '{
    "destination_number": "+11234567890",
    "message_content": "Hello, World!"
}'
{
  "sentWithRoute": "Telegram",
}

Body

destination_number
string

This is the phone number that you want to send the message to

message_content
string

This is the content of the message you want to send

Headers

api_key
string

This is the API key you created in the dashboard. For more info take a look at Authentication

Response

sentWithRoute
string | undefined

If successful will contain the route that was used to send your message.

error
string | array | undefined

If the API errored this will contain the error. This can also be an array in addition to being a string if there are validation errors.