Sendzen API Documentation
HomeGetting Started
HomeGetting Started
Visit Website
Sign In
Create an account
  1. Start Guide
  • Start Guide
    • Getting Started
    • API Reference
  • Messages
    • Template Messages
      • Send Text Message
      • Send Interactive Message
      • Send Media Message
    • Session Messages
      • Send Text Message
      • Send Image Message
      • Send Video Message
      • Send Audio Message
      • Send Document Message
      • Send Interactive Reply Message
    • Incoming Messages
      • Received Text Message
      • Received Message with Reaction
      • Received Media Message with Image
      • Received Callback from a Quick Reply Button Click
  • Template
    • List Templates
      GET
    • Create Template
      POST
    • Delete Template
      DELETE
  • Project
    • Create Project
      POST
    • List Projects
      GET
    • Update Project
      PUT
    • Retrieve Project
      GET
  • WABA
    • List WABA
      GET
    • Retrieve WABA Details from Meta
      GET
    • Retrieve WhatsApp Business Profile Detail
      GET
    • Update WhatsApp Business Profile
      POST
  • Knowledge Base
    • Programming Languages
      • Python
      • Node.js
      • PHP
      • Laravel
      • Java
      • C# .NET
    • Onboarding
      • WhatsApp Setup
  • Logs
    • Retrieve All Event Logs
      GET
    • Incoming Message Logs
      GET
    • Message Status Logs
      GET
    • Other Event Logs
      GET
    • Multiple Event Types
      GET
  • Schemas
    • Schemas
      • Template Message
      • Url
      • 401/403 Message Response
      • AccountLoginRequest
      • APIKeyDto
      • Address
      • Account
      • AccountRegisterRequest
      • CommonResponse
      • AccountDetailDto
      • CreateOrUpdateProjectRequest
      • Contact
      • Error
      • PartnerConfigDto
      • ContactName
      • Button
      • ErrorResponse
      • CarouselCard
      • LoginResponse
      • Email
      • PartnerInfoDto
      • Component
      • ProjectDetailDto
      • ProjectWABADetail
      • Interactive
      • WABADetail
      • WABASignUp
      • InteractiveAction
      • WABADto
      • InteractiveBody
      • CreateTemplateRequest
      • InteractiveButton
      • InteractiveFooter
      • InteractiveHeader
      • InteractiveMedia
      • Example
      • InteractiveProductItem
      • InteractiveProductSection
      • InteractiveReply
      • InteractiveRow
      • InteractiveSection
      • Location
      • Media
      • MessageRequest
      • MessageResponse
      • MessageTemplate
      • Organization
      • LimitedTimeOffer
      • Phone
      • Reaction
      • Response
      • TemplateAction
      • NamedParameter
      • TemplateButtons
      • OrderCheckoutDto
      • TemplateCarousel
      • OrderDto
      • TemplateComponent
      • OrderStatusEnum
      • TemplateCurrency
      • TemplateDateTime
      • PaymentGatewayDto
      • TemplateLimitedTimeOffer
      • TemplateMedia
      • TemplateParameter
      • TemplateProductItem
      • TemplateSection
      • TemplateTapTargetConfiguration
      • SupportedApp
      • Text
      • WhatsAppBusinessProfile
      • UploadMedia
    • Knowledge Base
  1. Start Guide

API Reference

Welcome to the SendZen API reference. This page provides an overview of our API's core concepts and structure, orienting you before you dive into individual endpoints.

Base URL#

All production API requests should be directed to:
https://api.sendzen.io
For security, SendZen's production API strictly uses HTTPS.

Authentication#

All requests to the SendZen API must be authenticated.
Scheme: Bearer token
Header: Authorization: Bearer YOUR_API_KEY

SDKs and Tools#

Accelerate your integration with SendZen's official SDKs and developer tools:
Quick Start: Use cURL for direct API calls, or our SDKs for Node.js and Python to get started even faster.
Code Examples: All examples throughout this reference are provided for cURL, Node.js, and Python, making them reproducible out of the box.
Real-time Logs: View detailed request and response logs in your SendZen dashboard for efficient debugging and monitoring.

Core Resources#

Below are the primary resource categories you will find in the navigation, each with dedicated endpoints and functionalities:

Messages#

Send various message types, including plain text, rich media, structured templates, utility notifications, and authentication OTPs. Receive delivery and read receipts via your configured webhook.
Endpoints: POST /v1/messages and related resources for managing message status and history.
Supported Media Types for Messages:
SendZen supports a range of media types for your WhatsApp messages, each with specific file format and size limitations:
Image Messages
Supported Formats: JPEG, PNG
Maximum Size: 5 MB
Video Messages
Supported Formats: .3gp, .mp4
Maximum Size: 16 MB
Document Messages
Supported Formats: .txt, .xls, .xlsx, .doc, .docx, .ppt, .pptx, .pdf
Maximum Size: 100 MB
Audio Messages
Supported Formats: .aac, .amr, .mp3, .ogg, .m4a
Maximum Size: 16 MB

Templates#

Create and manage your WhatsApp message templates programmatically via the API. This includes submitting, retrieving, and updating templates.

Webhooks#

Subscribe to critical events such as message.sent, message.delivered, message.read, and inbound messages. Our webhook system supports automatic retries for transient issues, ensuring reliable event delivery.

Voice#

Utilize WhatsApp Voice capabilities through our API. This includes initiating and managing voice calls. (Elaborate further if there are specific voice endpoints or features, e.g., "Endpoints: POST /v1/voice/calls")

Accounts & Onboarding#

Integrate and manage your WhatsApp Business Accounts. SendZen supports WhatsApp Business App numbers, and Embedded Signup is available for streamlined onboarding and account management.

Request Format#

All API requests and responses utilize the application/json content type. Ensure your request bodies are valid JSON.

Webhooks#

Configure a webhook endpoint in your SendZen dashboard to receive asynchronous event notifications for message lifecycle and inbound messages.
Response Requirement: Your endpoint should respond with a 2xx HTTP status code promptly (within X seconds, e.g., 3 seconds) to acknowledge receipt of the event.
Retries: SendZen automatically retries webhook deliveries with an exponential backoff strategy if your endpoint times out or returns a 5xx status code.
Test Mode: Simulate webhook events without impacting real users, facilitating safe testing and development of your webhook handlers.
Signature Verification: Always verify webhook signatures to confirm the authenticity and integrity of incoming events from SendZen and protect against spoofing.

Errors#

The SendZen API provides clear, structured error responses for easy debugging.
Client Errors: 4xx HTTP status codes indicate issues with your request (e.g., invalid parameters, missing authentication, rate limits exceeded).
Server Errors: 5xx HTTP status codes indicate an issue on the SendZen server.
Error Structure: Responses include a human-readable message and a stable code for programmatic handling. Additional details for specific fields might also be included.
{
  "error": {
    "code": "invalid_parameter",
    "message": "The 'to' number format is invalid.",
    "details": { "field": "to" }
  }
}
When contacting support regarding an error, please include the X-Request-ID header value found in the response to help us quickly locate and troubleshoot your request.

Support#

SendZen offers comprehensive support to ensure your success and smooth operation:
Community & Email Support: Available for general integration questions, best practices, and non-urgent inquiries.
Priority Support: Paying customers receive expedited assistance and dedicated live chat support for critical issues.
Enterprise Onboarding: Dedicated support and tailored onboarding programs for larger deployments and complex integrations.
Modified at 2025-10-07 06:33:11
Previous
Getting Started
Next
Send Text Message
Built with