Jagel.Co
  1. Send Broadcast Direct
Jagel.Co
  • Jagel.Co
  • Send Broadcast Direct
    • Send Template
      POST
  • Template
    • List Template
      GET
    • Template Content
      GET
  • Create Batch
    • Create Batch
      POST
  • Create Batch List
    • Create Batch List
      POST
  • Schemas
    • Sample Schemas
      • Pet
      • Category
      • Tag
  1. Send Broadcast Direct

Send Template

POST
https://dashboard.jagel.co/api/v1/campaigns/whatsapp/direct

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "account_id": "Your account ID found in the Integration menu",
    "to": "Recipient's phone number (Example: 08123456789)",
    "header": "Optional: Use a variable for the header. Accepts text, image URL, video URL (only .3gp or .mp4 with a max size of 16MB), or document URL (with a max size of 100MB). Examples: Video - https://example.com/storage/video.mp4, Document - https://example.com/storage/document.pdf",
    "body": [
        "Optional: Use one or more variables in the body. Separate multiple variables with a comma (,)"
    ],
    "template_uid": "Template UID found in the Template menu"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dashboard.jagel.co/api/v1/campaigns/whatsapp/direct' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "account_id": "Your account ID found in the Integration menu",
    "to": "Recipient'\''s phone number (Example: 08123456789)",
    "header": "Optional: Use a variable for the header. Accepts text, image URL, video URL (only .3gp or .mp4 with a max size of 16MB), or document URL (with a max size of 100MB). Examples: Video - https://example.com/storage/video.mp4, Document - https://example.com/storage/document.pdf",
    "body": [
        "Optional: Use one or more variables in the body. Separate multiple variables with a comma (,)"
    ],
    "template_uid": "Template UID found in the Template menu"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "success": true,
    "message": "Request is processed successfully",
    "errors": [],
    "data": "Broadcast Sent Successfully"
}
🟠401Unauthorized
🟠404Not Found
🟠422Parameter Error
Modified at 2024-08-06 02:43:20
Previous
Jagel.Co
Next
List Template
Built with