POST
/
api
/
v1
/
bot-integrations
/
{botIntegrationId}
/
messages
/
send
curl --request POST \
--url https://chat.trysetter.com/api/v1/bot-integrations/{botIntegrationId}/messages/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"phoneNumber": "+1234567890",
"templateName": "appointment_booking",
"language": "en_US",
"bodyParameters": [
{
"type": "text",
"text": "John",
"parameter_name": "customer_name"
}
],
"email": "john@example.com",
"firstName": "John",
"lastName": "Doe",
"timeZone": "America/New_York"
}'
201

Authorizations

Authorization
string
header
required

Bearer token authentication using your API key

Path Parameters

botIntegrationId
integer
required

The ID of your bot integration

Body

application/json

Response

201
application/json

Message sent successfully

The response is of type integer.

Example:

201