Skip to main content
POST
/
api
/
v1
/
messaging
/
{widget_id}
Send A Message
curl --request POST \
  --url 'https://api.example.com/api/v1/messaging/{widget_id}?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "<string>",
  "contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "message": "<string>",
  "start_new_conversation": true,
  "widget_parameters": {}
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

api_key
string
query
required

Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.

Path Parameters

widget_id
string<uuid>
required

Body

application/json
to
string | null
contact_id
string<uuid> | null
message
string | null
start_new_conversation
boolean | null
default:true
widget_parameters
Widget Parameters · object

Response

Successful Response