Listar las campañas para alertas

Sirve para listar, con búsqueda por nombre, las campañas de grupos que podés elegir al configurar alertas como el reporte diario.

GET
/alerts/campaigns

List campaigns visible to the authenticated account (owner + agents scope), reading from the read-only groups connection. Paginated, searchable by name. Degrades to 503 when the groups connection is unavailable instead of leaking a 500 / stack trace

Lectura · requiere el permiso accounts:read.

Listado · perPage de 1 a 100 (por defecto 25); también per_page · orden fijo: id ascendente · no acepta parámetros de orden.

Autorización

http
headerAuthorizationBearer <clave>

Parámetros de consulta

page?|
Rango1 <= value
per_page?|
Rango1 <= value <= 100
search?|
Largolength <= 100

Cuerpo de la respuesta

Paginated set of AlertCampaignResource

application/json
  1. response
data*array<>
links*
meta*
curl -X GET "https://example.com/alerts/campaigns"
{  "data": [    {      "id": "string",      "uuid": "string",      "name": "string",      "is_active": true,      "groups_count": 0,      "type": 0    }  ],  "links": {    "first": "string",    "last": "string",    "prev": "string",    "next": "string"  },  "meta": {    "current_page": 1,    "from": 1,    "last_page": 1,    "links": [      {        "url": "string",        "label": "string",        "active": true      }    ],    "path": "string",    "per_page": 0,    "to": 1,    "total": 0  }}