Pular para o conteúdo principal
POST

Autorizações

api_access_token
string
header
obrigatório

Token de acesso do usuário (Perfil → Token de acesso). Dá acesso conforme o papel do usuário e age em nome dele.

Parâmetros de caminho

account_id
string
obrigatório

The numeric ID of the account

Corpo

content
string
obrigatório

The content of the message to be sent. Supports variables for WhatsApp templates.

Examples:

  • Simple text: "Hello, your order is ready"
  • With variables: "Hi {{name}}, your appointment is on {{date}}"
Exemplo:

"Hello {{customer_name}}, your order #{{order_id}} will arrive tomorrow"

scheduled_at
string<date-time>
obrigatório

The date and time when the message should be sent (ISO 8601 format). Must be in the future.

Examples:

  • "2026-02-06T15:00:00Z" (UTC)
  • "2026-02-06T10:00:00-05:00" (with timezone)
Exemplo:

"2026-02-06T15:00:00Z"

inbox_id
integer
obrigatório

The ID of the inbox from which the message will be sent

Exemplo:

5

contact_id
integer
obrigatório

The ID of the contact to send the message to. Required for the account-level endpoint; no conversation is required.

Exemplo:

456

title
string

Optional title for the scheduled message

Exemplo:

"Customer follow-up"

conversation_id
integer

Optional conversation to associate with this account-level scheduled message.

Exemplo:

123

attachments
file[]

Array of files to attach (max 15)

template_params
object

WhatsApp template parameters

recurrence_type
enum<string>

The type of recurrence for the scheduled message.

  • none: Send only once (default)
  • daily: Repeat every N days
  • weekly: Repeat on specific days of the week
  • monthly: Repeat every N months
  • yearly: Repeat every N years
Opções disponíveis:
none,
daily,
weekly,
monthly,
yearly
Exemplo:

"daily"

recurrence_interval
integer

Interval for recurrence (e.g., 2 for every 2 days)

Exemplo:

1

recurrence_days
integer[]

Days of the week for weekly recurrence (0=Sunday, 6=Saturday)

Intervalo obrigatório: 0 <= x <= 6
Exemplo:
recurrence_end_type
enum<string>

How the recurrence should end.

  • never: Continue indefinitely
  • on_date: End on a specific date (requires recurrence_end_date)
  • after_occurrences: End after N occurrences (requires recurrence_max_occurrences)
Opções disponíveis:
never,
on_date,
after_occurrences
Exemplo:

"never"

recurrence_end_date
string<date-time>

End date for recurrence (ISO 8601 format, required if recurrence_end_type is on_date)

Exemplo:

"2026-12-31T23:59:59Z"

recurrence_max_occurrences
integer

Maximum number of occurrences (required if recurrence_end_type is after_occurrences)

Exemplo:

10

Resposta

Success

id
integer

The ID of the scheduled message

Exemplo:

123

content
string

The content of the message to be sent

Exemplo:

"Hello {{name}}, your appointment is confirmed for tomorrow at 10:00 AM"

scheduled_at
integer

The timestamp when the message should be sent (Unix timestamp)

Exemplo:

1738800000

sent_at
integer | null

The timestamp when the message was actually sent (Unix timestamp)

Exemplo:

null

title
string | null

Optional title for the scheduled message

Exemplo:

"Daily appointment reminder"

inbox_id
integer

The ID of the inbox from which the message will be sent

Exemplo:

42

inbox_name
string

The name of the inbox

Exemplo:

"WhatsApp Business"

conversation_id
integer | null

The ID of the conversation if associated with one

Exemplo:

567

contact_id
integer | null

The ID of the contact to send the message to

Exemplo:

789

contact_name
string | null

The name of the contact

Exemplo:

"María González"

contact_phone
string | null

The phone number of the contact

Exemplo:

"+525512345678"

contact_email
string | null

The email of the contact

Exemplo:

"maria.gonzalez@example.com"

message_id
integer | null

The ID of the actual message after it's sent

Exemplo:

null

created_at
integer

The timestamp when the scheduled message was created (Unix timestamp)

Exemplo:

1738713600

status
enum<string>

The status of the scheduled message (pending = waiting to be sent, sent = successfully delivered, failed = sending error)

Opções disponíveis:
pending,
sent,
failed
Exemplo:

"pending"

error_message
string | null

Error message if the sending failed

Exemplo:

null

template_params
object | null

WhatsApp template parameters if using a template

attachments
object[]

Array of attachments (max 15)

recurrence_type
enum<string>

The type of recurrence for the scheduled message (none = single send, daily = every day, weekly = every week, monthly = every month, yearly = once per year)

Opções disponíveis:
none,
daily,
weekly,
monthly,
yearly
Exemplo:

"daily"

recurrence_interval
integer | null

Interval for recurrence (e.g., 2 for every 2 days/weeks/months, 1 for every day/week/month)

Exemplo:

1

recurrence_days
integer[] | null

Days of the week for weekly recurrence (0=Sunday, 1=Monday, ..., 6=Saturday)

Exemplo:
recurrence_end_type
enum<string> | null

How the recurrence should end (never = infinite, on_date = until specific date, after_occurrences = after N times)

Opções disponíveis:
never,
on_date,
after_occurrences
Exemplo:

"never"

recurrence_end_date
integer | null

End date for recurrence if end_type is 'on_date' (Unix timestamp)

Exemplo:

null

recurrence_max_occurrences
integer | null

Maximum number of occurrences if end_type is 'after_occurrences'

Exemplo:

null

recurrence_count
integer

Current count of occurrences (how many times this recurring message has been sent)

Exemplo:

0

parent_id
integer | null

Parent scheduled message ID if this is a recurring occurrence (null for original, ID for recurring copies)

Exemplo:

null

assignee_id
integer | null

The ID of the assigned agent who created the scheduled message

Exemplo:

15

assignee_name
string | null

The name of the assigned agent

Exemplo:

"Carlos Ramírez"

assignee_avatar_url
string | null

The avatar URL of the assigned agent