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 Message Whatsapp

POST
/api/message
message
Envia un mensaje al WhatsApp del cliente. No se trata de una plantilla. Es necesario distinguirlo al enviarlo, ya que si en caso pasa el tiempo permitido por Whatsapp no llegara el mensaje y el cliente no lo recibirá y deberá usar el servicio de plantillas.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.plazbot.com/api/message' \
--header 'x-workspace-id;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "contactId": "string",
  "content": "string",
  "recipientPhone": "string",
  "workspaceId": "string",
  "externalReferenceId": "string",
  "agentSendedId": "string"
}'
Response Response Example
{
  "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"
    }
  }
}

Request

Header Params
x-workspace-id
string 
required
Body Params application/json
contactId
string 
required
Contact ID
content
string 
required
Mensaje a enviar al cliente.
recipientPhone
string 
required
Numero de Whatsapp (ej: 574787443997)
workspaceId
string 
required
externalReferenceId
string 
optional
agentSendedId
string 
optional
Examples

Responses

🟢200OK
application/json
OK
Body
success
boolean 
required
message
string 
required
code
integer 
required
data
object 
required
contactId
string 
required
message
object 
required
Previous
Update Activities to Contact
Next
List Conversation
Built with