POST
/
api
/
message
curl --request POST \
  --url https://api.plazbot.com/api/message \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '{
  "contactId": "string",
  "content": "string",
  "recipientPhone": "string",
  "workspaceId": "string",
  "externalReferenceId": "string",
  "agentSendedId": "string"
}'
{
  "success": true,
  "message": "Message sent successfully.",
  "code": 200,
  "data": {
    "contactId": "string",
    "message": {
      "id": "string",
      "messageWhatsappId": "string",
      "contactId": "string",
      "content": "string",
      "workspaceId": "string",
      "recipientPhone": "string",
      "externalReferenceId": "string",
      "platformId": "string",
      "answerAgentId": "string",
      "answerType": "string"
    }
  }
}

Headers

x-workspace-id
string
required

Body

application/json

Response

200 - application/json

OK

The response is of type object.