1. Session Messages
Growby
  • Start Guide
    • Getting Started
    • API Reference
  • Messages
    • Template Messages
      • Send Text Message
      • Send Interactive Message
      • Send Media Message
    • Session Messages
      • Send Text Message
        POST
      • Send Image Message
        POST
      • Send Video Message
        POST
      • Send Audio Message
        POST
      • Send Document Message
        POST
      • Send Interactive Reply Message
        POST
    • Incoming Messages
      • Received Text Message
      • Received Message with Reaction
      • Received Media Message with Image
      • Received Callback from a Quick Reply Button Click
    • Other
      • Message Status & Typing Indicator
  • Template
    • List Templates
      GET
    • Create Template
      POST
    • Delete Template
      DELETE
    • Upload Media
      POST
  • WABA
    • List WABA
      GET
    • Retrieve WABA Details from Meta
      GET
    • Retrieve WhatsApp Business Profile Detail
      GET
    • Update WhatsApp Business Profile
      POST
    • Upload WhatsApp Business Profile
      POST
  • Partner
    • Integration Guide - Option 1
    • Integration Guide - Option 2
  • Project
    • Create Project
      POST
    • List Projects
      GET
    • Update Project
      PUT
    • Retrieve Project
      GET
  • Activity Logs
    • All Event Logs
    • Incoming Message Logs
    • Message Status Logs
    • Other Event Logs
    • Multiple Event Types
  • Knowledge Base
    • Programming Languages
      • Python
      • Node.js
      • PHP
      • Laravel
      • Java
      • C# .NET
    • Product
      • Changelog
  • Webhook
    • /v1/webhook/config
    • /v1/webhook/config
    • /v1/webhook/config/{projectId}
    • /v1/webhook/details/{webhookId}
    • /v1/webhook/config/{webhookId}
    • /v1/webhook/config/{webhookId}
  • Schemas
    • Schemas
      • Template Message
      • 401/403 Message Response
      • AccountLoginRequest
      • APIKeyDto
      • ReadTypingIndicatorRequest
      • AccountRegisterRequest
      • TypingIndicator
      • PartnerConfigDto
      • LoginResponse
      • PartnerInfoDto
      • WABASignUp
      • OrderCheckoutDto
      • OrderDto
      • OrderStatusEnum
      • PaymentGatewayDto
    • Knowledge Base
    • Address
    • Account
    • Webhook
    • CommonResponse
    • AccountDetailDto
    • WebhookConfigDto
    • CreateOrUpdateProjectRequest
    • Contact
    • WebhookConfiguration
    • Error
    • ContactName
    • Button
    • WebhookLogDto
    • ErrorResponse
    • CarouselCard
    • Email
    • ClientData
    • Component
    • ProjectDetailDto
    • ProjectWABADetail
    • Interactive
    • WABADetail
    • InteractiveAction
    • WABADto
    • InteractiveBody
    • CreateTemplateRequest
    • InteractiveButton
    • InteractiveFooter
    • CreateWebhookConfigRequest
    • InteractiveHeader
    • InteractiveMedia
    • Example
    • InteractiveProductItem
    • InteractiveProductSection
    • InteractiveReply
    • InteractiveRow
    • InteractiveSection
    • Location
    • Media
    • MessageRequest
    • MessageResponse
    • MessageTemplate
    • Organization
    • LimitedTimeOffer
    • Phone
    • Reaction
    • Response
    • TemplateAction
    • NamedParameter
    • TemplateButtons
    • TemplateCarousel
    • TemplateComponent
    • TemplateCurrency
    • PaginatedWebhookLogsResponse
    • TemplateDateTime
    • PartnerClientSession
    • TemplateLimitedTimeOffer
    • PartnerClientSessionDto
    • TemplateMedia
    • TemplateParameter
    • TemplateProductItem
    • TemplateSection
    • TemplateTapTargetConfiguration
    • SupportedApp
    • Text
    • Url
    • WhatsAppBusinessProfile
    • UploadMedia
  1. Session Messages

Send Document Message

POST
/v1/messages

Media Message Types and Specifications#

This guide outlines the supported media types and their respective size limitations for messages sent via the SendZen API. Adhering to these specifications will ensure successful delivery of your media content.

Document Messages#

Transmit important files and documents securely.
Supported Formats: .txt, .xls, .xlsx, .doc, .docx, .ppt, .pptx, .pdf
Maximum File Size: 100 MB

Important Considerations#

File Renaming: Ensure that the file extension accurately reflects the actual content type.
URL Accessibility: If providing a URL for media, ensure it is publicly accessible and directly downloadable.

Request

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

Examples

Responses

🟢202Accepted
application/json
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location 'https://api.sendzen.io/v1/messages' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "from": "string",
    "to": "string",
    "type": "document",
    "document": {
        "link": "string",
        "caption": "string",
        "filename": "string"
    }
}'
Response Response Example
202 - Example 1
{
    "message_id": "string",
    "status": "string",
    "to": "string",
    "timestamp": "string"
}
Modified at 2026-07-22 12:47:16
Previous
Send Audio Message
Next
Send Interactive Reply Message
Built with