Automatizaciones
Listar automatizaciones
Lista resúmenes ligeros de automatizaciones de Instagram de una cuenta con paginación por cursor, incluidos nombre, tipo de disparador, estado y la marca de tiempo 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>"
}
}Usa este endpoint para buscar las automatizaciones de una cuenta de Instagram.
Envía el UUID de una cuenta accesible como
account_id. Tu clave de API
necesita el alcance automations:read.
Cada elemento contiene id, account_id, name, status, trigger_type,
has_unpublished_changes, authoring_compatibility y updated_at de la
automatización. La lista nunca trae la configuración. Usa
Obtener una automatización cuando también
necesites la configuración completa y los metadatos del borrador.
status es draft, live o paused. authoring_compatibility es
public_v1 para las automatizaciones que se pueden editar mediante el contrato
público y read_only_legacy para las anteriores a él.
Pagina los resultados
Definelimit como un entero de 1 a 50. Cuando next_cursor sea una cadena,
envíala sin cambios como cursor para pedir la página siguiente. Un
next_cursor igual a null significa que llegaste al final de la lista.
Esta lectura no cambia el estado de las automatizaciones, así que se puede
repetir sin riesgo.
Solicitud de ejemplo
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'
Ejemplo de respuesta correcta
ID, fechas y contenido 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>"
}
}
