Skip to main content
POST
Export template analytics

Authorizations

apiKey
string
header
required

API key from Settings β†’ API keys.

apiSecret
string
header
required

Secret shown once when the API key is created.

Path Parameters

accountId
string
required

Your Gallabox account ID. Must be the API key's own account. A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

Body

application/json
channelId
string
required

The WhatsApp channel to report on.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

fromDate
string
required

First day of the period, for example 2026-11-01. At most 6 months ago.

Minimum string length: 1
toDate
string
required

Last day of the period, for example 2026-11-30.

Minimum string length: 1
templateIds
any

Only these templates, by ID.

categories
any

Only templates in these categories: marketing, utility or authentication.

sources
any

Only messages sent from these places, for example api, broadcast, bot or inbox.

Response

The export was queued. Poll its status with the requestId.

status
enum<string>
required
Available options:
SUCCESS
data
object
required