> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orkeia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Specific Sector History

> Returns the change history of a specific sector.

## Endpoint

`GET https://gateway.orkeia.ai/sectors/{id}/history`

**Authentication**\
Requires header `authorization:  <your_token>`.

## Path Parameters

| Name | Type   | Required | Description                      | Example       |
| ---- | ------ | -------- | -------------------------------- | ------------- |
| id   | string | Yes      | Unique identifier of the sector. | SECTOR\_12345 |

## Example (cURL)

```bash theme={null}
curl -X GET "https://gateway.orkeia.ai/sectors/SECTOR_12345/history" \
  -H "authorization:  <your_token>"
```

## Responses

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": [
    {
      "id": "hist_001",
      "responsible": "admin@orkeia.ai",
      "action": "updated sector",
      "type": "neutral",
      "date": "2024-07-22T18:00:00.000Z",
      "changes": { "name": "New name" }
    }
  ]
}
```

### 500 — Server Error

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Client Error

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```

## History Fields

| Name        | Type   | Description                                                               |
| ----------- | ------ | ------------------------------------------------------------------------- |
| id          | string | Unique identifier of the history event.                                   |
| responsible | string | Name/user responsible for the change.                                     |
| action      | string | Registered action (e.g., created sector, updated sector, deleted sector). |
| type        | string | Classification of the event (`success`, `fail`, `neutral`).               |
| date        | Date   | Date and time of the change.                                              |
| changes     | object | Changes made to the sector fields, when applicable.                       |
