API: operations
General conventions in How the API works.
The operations (sites) of the key's account. Read only: creating, editing or deleting operations
is done in the app. An operation from another account returns 404.
| Endpoint | Permission |
|---|---|
GET /api/v1/operations | operations:read |
GET /api/v1/operations/:id | operations:read |
:id is the operation's id or name (see References).
The operation
{
"id": "00000000-0000-7000-8000-0000000000a2",
"name": "TEST INGENIERÍA",
"isActive": true,
"createdAt": "2026-09-28T14:44:53.060Z",
"updatedAt": "2026-09-28T14:44:53.060Z"
}
| Field | Type | Description |
|---|---|---|
id | uuid | Operation id. It is the id of the operation reference in devices, deliveries, returns and recharges, and the operationId of their filters. |
name | string | Site name. |
isActive | boolean | |
createdAt / updatedAt | ISO 8601 UTC |
List operations
GET /api/v1/operations
Permission: operations:read.
| Query | Type | Required | Default | Limits / values |
|---|---|---|---|---|
page | integer | no | 1 | ≥ 1 |
pageSize | integer | no | 50 | 1–200 |
sortBy | enum | no | createdAt | createdAt, name |
sortOrder | enum | no | desc | asc, desc |
search | string | no | — | Max 100. Case-insensitive "contains" on the name. |
isActive | boolean | no | — (all) | true / false |
Example
curl 'https://back.inssacs.com/api/v1/operations?isActive=true&sortBy=name&sortOrder=asc' \
-H 'x-api-key: ics_a1b2c3d4_e5f6...'
Response 200
{
"data": [
{
"id": "00000000-0000-7000-8000-0000000000a2",
"name": "TEST INGENIERÍA",
"isActive": true,
"createdAt": "2026-09-28T14:44:53.060Z",
"updatedAt": "2026-09-28T14:44:53.060Z"
}
],
"pagination": { "page": 1, "pageSize": 50, "total": 1 }
}
Get an operation
GET /api/v1/operations/:id
Permission: operations:read.
| Path param | Type | Description |
|---|---|---|
id | string | Operation id or name (ignoring case and repeated spaces). |
Response 200: the operation.
Errors
| HTTP | code | When |
|---|---|---|
| 401 | http.unauthorized | The key is missing, invalid, revoked or expired. |
| 403 | http.forbidden | The key lacks operations:read. |
| 404 | operations.not_found | (:id) No operation with that id or name in the account (does not exist, was deleted or belongs to another account). |
| 422 | validation.failed | Invalid query: sortBy outside the enum, pageSize above 200, unknown parameter. |
| 429 | http.too_many_requests | The key's rate limit was exceeded. |