Skip to main content
POST
/
api
/
conversation
Send Conversation
curl --request POST \
  --url https://api.plazbot.com/api/conversation \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '{
  "workspaceId": "string",
  "template": "string",
  "destination": "string",
  "reference1": "string",
  "reference2": "string",
  "reference3": "string",
  "variablesBody": [
    {
      "variable": "string",
      "value": "string"
    }
  ],
  "variablesHeader": [
    {
      "variable": "string",
      "value": "string"
    }
  ],
  "file": {
    "fileUrl": "https://storage-files.....image.png",
    "fileName": "Imagen_ventas_1.png"
  }
}'
{
  "success": true,
  "message": "Conversation sent successfully.",
  "code": 200,
  "data": {
    "contactId": "string"
  }
}

Headers

x-workspace-id
string
required

Body

application/json
workspaceId
string
required
template
string
required
destination
string
required
reference1
string
reference2
string
reference3
string
variablesHeader
object[]
variablesBody
object[]
file
object[]
sendType
string | null
campaignName
string | null

Response

200 - application/json
success
boolean
required
message
string
required
code
integer
required
data
object
required