Plazbot
  1. Message
Plazbot
  • Plazbot Developer Hub
  • Automation
    • Update Agente IA Prompt
      POST
  • Contact
    • Get Contacts
      GET
    • Create Contact
      POST
    • Update Contact
      PUT
    • Get Contact By Id
      GET
    • Get Contact By Email
      GET
    • Get Contact By Phone
      GET
    • Update Activities to Contact
      POST
  • Message
    • Send Message Whatsapp
      POST
    • List Conversation
      GET
    • Send Conversation
      POST
  • Opportunity
    • Get Opportunity
      GET
    • Create Opportunity
      POST
    • Get Opportunity by Id
      GET
    • Delete Opportunity
      DELETE
    • Create Activity for Opportunity
      POST
  • Task
    • Create Task
      POST
    • Get Task By Id
      GET
    • Delete Task
      DELETE
  • User
    • Create User
      POST
    • Get Information by Email
      GET
    • Login Access
      POST
    • Send Reset Password
      POST
    • Update Password
      POST
  • Workspace
    • Get Workspace by ID
  1. Message

Send Conversation

POST
/api/message/conversation
message
Envía conversaciones de WhatsApp desde tu plataforma interna a tus clientes de forma masiva o individual. Se debe de enviar el tipo de envio ya sea:
1: Campaign.
2: Individual.
3: API
Por defecto en caso no se envie el tipo, este llegara como Campaign.
Tambien mencionar que si en caso usted envia tipo API, puede agrupar los envios con el campo campaignName colocando el nombre de campaña.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.plazbot.com/api/message/conversation' \
--header 'x-workspace-id;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "workspaceId": "string",
    "template": "string",
    "destination": "string",
    "variablesBody": [
        {
            "variable": "string",
            "value": "string"
        }
    ],
    "variablesHeader": [
        {
            "variable": "string",
            "value": "string"
        }
    ]
}'
Response Response Example
{
  "success": true,
  "message": "Conversation sent successfully.",
  "code": 200,
  "data": {
    "contactId": "string"
  }
}

Request

Header Params
x-workspace-id
string 
required
Body Params application/json
workspaceId
string 
required
Workspace ID
template
string 
required
Nombre de la plantilla a usar.
destination
string 
required
Numero de Whatsapp del cliente.
variablesBody
array [object {2}] 
optional
variable
string 
optional
value
string 
optional
type
string  | null 
optional
1: Campaign | 2: Individual | 3: API
campaignName
string  | null 
optional
Se puede enviar en caso sea API y Campaign.
Examples

Responses

🟢200OK
application/json
OK
Body
success
boolean 
required
message
string 
required
code
integer 
required
data
object 
required
contactId
string 
required
Previous
List Conversation
Next
Get Opportunity
Built with