Skip to content

Send Wizard


Authorization

Add this header to every request in this page

json
{
  "Authorization": "Bearer ${token}"
}

🔒 Bulk ( Multi ) Send Message

Allows sending multiple template messages at same time. It's best if you want to see reports

POST

/api/v1/send-wizards/start

Body

json
{
  "message_template_id": "",
  "rows": [
    {
      "id": 1,
      "phone_number": "<customer_phone_number>",
      "full_name": "<customer_name>",
      "url_button_param": "<url_button_param>",
      "text_header_param": "<text_header_param>",
      "params": [
        "<param1string>"
        "<param2string>"
        "<param3string>"
        "<param4string>"
        ]
    }
  ],
  "total_time": 2,
  "channel_id": "<channel_id>"
}

🔒 Stop

Stops Sending Multiple Messages.

POST

/api/v1/send-wizards/stop

Body

json
{
  "send_wizard_id": "<send_wizard_id>",
  "channel_id": "<channel_id>"
}

🔒 Send Wizards

Fetchs the sending reports

GET

/api/v1/send-wizards/reports?page_size=20&page=1&status=FINISHED&channel_id=<channel_id>

Response

json
{
  "success": true,
  "message": "",
  "status_code": 200,
  "trace_id": "f273e4a6-c265-4d46-aa2d-7110fc58a23f",
  "errors": [],
  "items": [
    {
      "name": "<message_template_name>",
      "send_wizard_id": "<send_wizard_id>",
      "status": "<status>",
      "from_number": "<channel_phone_number>",
      "summary": 4,
      "waiting": 4,
      "queued": 0,
      "awaiting_backend_count": -1,
      "failed_count": 4,
      "delivered_count": 1,
      "sent_count": 1,
      "seen_count": 0,
      "created_at": 1712326805885,
      "has_button": false
    },
    ...
  ],
  "pagination": {
    "page": 1,
    "page_size": 20,
    "total": 14
  }
}

Parameters description

NameDescription
nameName of the Message Template.
send_wizaard_idID of the initiated Send Wizard.
from_numberChannel number from which the Message Templates are sent.
summaryNumber of messages marked for bulk sending.
waitingNumber of messages waiting to be sent.
queuedNumber of messages queued to be sent.
processed_countNumber of the messages started to send. These messages count as processed.
awaiting_backend_countNumber of messages sent to backend and awaiting status ( read, delivered... )webhook response from WhatsApp
failed_countNumber of messages that failed to send.
delivered_countNumber of messages that reached the WhatsApp server.
sent_countNumber of messages that reached the customer's phone.
seen_countNumber of messages read by the customer.

🔒 Message Reports of Send Wizard

Fetchs the Message Reports of Sendings

GET

/api/v1/send-wizards/:wizardId/details?page_size=20&page=1

Response

json
{
  "success": true,
  "message": "",
  "status_code": 200,
  "trace_id": "eed77933-546e-4b2d-81a1-f1639aafe8a0",
  "errors": [],
  "data": {
    "report_details": [
      {
        "phone_number": "<phone_number>",
        "full_name": null,
        "status": "<status_of_message>"
      },
      ...
    ]
  },
  "pagination": {
    "page": 1,
    "page_size": 20,
    "total": 2
  }
}

Parameters description

NameDescription
phone_numberCustomer Phone number
full_nameCustomer name
statusStatus of the message ( seen,delivered ... )

Report Detail Statuses

TitleValueDescription
In QueueNONESend Wizard Created but has not send
CancelledCANCELLEDSend Wizard Stopped by user
QueuedQUEUEDSend Wizard Started
AgendaAGENDAOn Sending Service
Number Checked SuccessOPT_IN_SUCCESSNumber Checked Successfully and Ready to Send Message
Number Check FailedOPT_IN_FAILEDNumber Check Failed during Request to WhatsApp
Invalid NumberOPT_IN_FAILED_INVALID_NUMBERNumber checked and invalid number response returned from WhatsApp
Send To BackendSENT_TO_BACKENDMessage Sent to Backend. Waiting for webhook event.
Send To Backend FailedSENT_TO_BACKEND_FAILEDMessage Send failed during Backend Request to Helorobo
DeliveredBACKEND_DELIVEREDMessage has been reached to WhatsApp
SeenBACKEND_SEENMessage has been seen by customer
SentBACKEND_SENTMessage has been reached to user phone
FailedBACKEND_FAILEDMessage has been failed to send
DeletedBACKEND_DELETEDMessage has been deleted