Automações
Listar automações
Liste resumos leves de automações do Instagram de uma conta com paginação por cursor, incluindo nome, tipo de gatilho, status e o carimbo de tempo updated_at.
GET
/
api
/
v1
/
automations
List automations
curl --request GET \
--url https://levios.app/api/v1/automations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://levios.app/api/v1/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://levios.app/api/v1/automations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"error": {
"code": "api_invalid_content_length",
"message": "Invalid Content-Length.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_unauthorized",
"message": "Authentication required.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_account_not_granted",
"message": "This credential is not authorized for the request.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_body_too_large",
"message": "The JSON request body exceeds 1 MiB.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_unsupported_media_type",
"message": "Content-Type must be application/json.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_invalid_cursor",
"message": "The projection cursor is invalid for this resource.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_internal_error",
"message": "The request could not be completed.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_account_resolution_unavailable",
"message": "The reachable account set could not be read.",
"correlation_id": "<string>"
}
}Use este endpoint para encontrar as automações de uma conta do Instagram. Envie
o UUID de uma conta acessível como
account_id. Sua chave de API precisa do
escopo automations:read.
Cada item contém id, account_id, name, status, trigger_type,
has_unpublished_changes, authoring_compatibility e updated_at da
automação. A lista nunca traz a configuração. Use
Consultar uma automação quando também precisar
da configuração completa e dos metadados do rascunho.
status é draft, live ou paused. authoring_compatibility é
public_v1 para as automações que podem ser editadas pelo contrato público e
read_only_legacy para as automações anteriores a ele.
Percorra os resultados
Definalimit como um inteiro de 1 a 50. Quando next_cursor for uma string,
envie o valor sem alterações como cursor para pedir a próxima página. Um
next_cursor igual a null indica o fim da lista.
Esta leitura não altera o estado das automações, então pode ser repetida com
segurança.
Exemplo de requisição
curl --get \
--url 'https://levios.app/api/v1/automations' \
--header "Authorization: Bearer ${LEVIOS_API_KEY}" \
--data-urlencode "account_id=${LEVIOS_ACCOUNT_ID}" \
--data-urlencode 'limit=25'
Exemplo de resposta de sucesso
IDs, horários e conteúdo ilustrativos. HTTP200.
{
"items": [
{
"id": "00000000-0000-4000-8000-000000000002",
"account_id": "00000000-0000-4000-8000-000000000001",
"name": "Guide request",
"status": "draft",
"has_unpublished_changes": false,
"updated_at": "2026-09-01T12:00:00.000000Z",
"trigger_type": "comment",
"authoring_compatibility": "public_v1"
}
],
"next_cursor": null
}
List automations
curl --request GET \
--url https://levios.app/api/v1/automations \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://levios.app/api/v1/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://levios.app/api/v1/automations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"error": {
"code": "api_invalid_content_length",
"message": "Invalid Content-Length.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_unauthorized",
"message": "Authentication required.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_account_not_granted",
"message": "This credential is not authorized for the request.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_body_too_large",
"message": "The JSON request body exceeds 1 MiB.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_unsupported_media_type",
"message": "Content-Type must be application/json.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_invalid_cursor",
"message": "The projection cursor is invalid for this resource.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_internal_error",
"message": "The request could not be completed.",
"correlation_id": "<string>"
}
}{
"error": {
"code": "api_account_resolution_unavailable",
"message": "The reachable account set could not be read.",
"correlation_id": "<string>"
}
}
