GET /v1/automations
const url = 'https://seu-endereco-da-api/v1/automations';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://seu-endereco-da-api/v1/automations \ --header 'Authorization: Bearer <token>'Permissão que a Chave de acesso precisa: Ler disparos automáticos (automations:read).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”Opaque pagination cursor
Page size (default 50, max 200)
Responses
Seção intitulada “Responses”object
object
The recipe the automation was created from
Null means the whole reachable base of the account
object
How many contacts the audience held when it was last counted
When that count was taken
Slug of the library model the automation came from
Objective of the library model, null when the model states none
Whether the number sends through the official WhatsApp API
When it goes out next; null while the automation is a draft or paused
True once somebody changed the flow in the builder, so the screen stopped writing over it
Null when the message is free text
The free text sent on numbers that are not official
Null on automations that start from an event
object
The account’s business timezone, resolved when the automation was saved
Local time of day, HH:MM
0 is Sunday
1 to 12, only on a yearly schedule
0 to 365, only on the date of each person
The trigger parameters the automation was saved with; null on those created before models
object
The answer given to when the send goes out
The contact date field the send follows: each person’s own date, or the window a cadence cuts the audience by
Opaque cursor for the next page, null on the last one
How many the account has in all, so a label can say it without paging
Example
{ "items": [ { "status": "rascunho", "channelKind": "oficial", "schedule": { "scheduleKind": "once" }, "when": "na_data_de_cada_pessoa" } ]}