# Get station activity
URL: https://docs.fluenta.io/en/docs/reference/analytics/get-station-activity
Operation: `getStationActivity`
Required permission: `read`

`GET /v1/external/organizations/{organizationId}/analytics/activity`

Analítica for one plant day, from the marcas log: one puesto’s marcas summarised, the day hour by hour, each operario’s pace, or the log against the hourly buckets.

`day` is optional: without it, the plant’s today on the organization’s own clock, as on every single-day route of the API externa.

### Authorization

- `apiToken` — Bearer token. An API token created in Configuración › Tokens de API, or a connected app’s access token

Send it as `Authorization: Bearer <your API token>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `day` | query | string | no | Plant day, YYYY-MM-DD on the plant’s clock. Omitted: the plant’s today, on its own clock. |
| `view` | query | string | yes | `events`: one puesto’s marcas summarised (needs `operationId`). `hourly`: the day hour by hour. `operators`: each operario’s pace, channels and billing. `consistency`: the marcas log against the hourly buckets. One of: `events`, `hourly`, `operators`, `consistency`. |
| `operationId` | query | number | no | The puesto, for `view=events`. |
| `moduleId` | query | number | no | Restrict `hourly`, `operators` or `consistency` to one módulo. |
| `operatorId` | query | number | no | Restrict `hourly` to one operario: their own marcas and share of each hour’s meta. |
| `idleMinutes` | query | number | no | Gaps between marcas longer than this many minutes count as «pausas sin registro». Default 5. |
| `organizationId` | path | number | yes |  |

### Responses

| Status | Description |
| --- | --- |
| `200` | `ExternalStationActivityDto` |
| `400` | `INVALID_DAY`; `OPERATION_REQUIRED` for `view=events` without `operationId`. |
| `401` | Missing, malformed, unknown, expired or revoked credential: `INVALID_API_TOKEN`. |
| `402` | The organization is blocked: `ORG_BLOCKED`. |
| `403` | The credential lacks the «Permiso» the route names (`INSUFFICIENT_SCOPE`), or the organization’s plan does not include what was asked (`PLAN_LIMIT`): «Conectar con IA» for a connected app, or a report or analytics route whose plan feature a Light organization lacks (a Light of plan version 1 keeps `reports`). |
| `404` | The organization does not exist or is out of the credential’s reach: `ORGANIZATION_NOT_FOUND`. One body for both. |
| `429` | The credential is over its rate limit: `RATE_LIMITED`. Per credential, in fixed windows of 60 seconds: 60 requests in one organization on Light and 120 on Pro; 20 on the heavy reads (the range figures, the whole floor, the month and the pauses); 300 across every organization; 60 on the routes that name no organization. Wait `Retry-After` seconds; a refused request counts against nothing. |

### Example

```bash
curl -X GET 'https://api.fluenta.io/v1/external/organizations/{organizationId}/analytics/activity' \
  -H 'Authorization: Bearer <your API token>'
```