# List downtime reason codes (/docs/api-reference/downtime/DowntimeController_listReasons)

`GET /api/factories/{factoryId}/downtime/reasons`

Base URL: https://api.xentr.ai

Authentication: bearer token (`Authorization: Bearer <token>`).

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `factoryId` | path | yes | string | Factory slug |
| `activeOnly` | query | no | string | Only return active codes (default true) |

## Responses

### 200