Pular para o conteúdo principal
POST
Resolve a recipient and schedule an outbound message

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

inbox_id
integer
obrigatório

Inbox that will deliver the message.

Exemplo:

12

recipient
object
obrigatório

Exactly one identity is required; name is optional metadata and is never used for lookup.

content
string
obrigatório

Message content.

scheduled_at
string<date-time>
obrigatório

Future ISO-8601 date and time when delivery should run.

title
string
attachments
file[]

Files to attach to the scheduled message.

Maximum array length: 15
template_params
object

WhatsApp template parameters.

recurrence_type
enum<string>
Opções disponíveis:
none,
daily,
weekly,
monthly,
yearly
recurrence_interval
integer
recurrence_days
integer[]
Intervalo obrigatório: 0 <= x <= 6
recurrence_end_type
enum<string>
Opções disponíveis:
never,
on_date,
after_occurrences
recurrence_end_date
string<date-time>
recurrence_max_occurrences
integer

Resposta

Pending scheduled message created.

scheduled_message
object
obrigatório
contact
object
obrigatório
contact_inbox
object
obrigatório