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

# Documents and events

> Retrieve delivery documents and order event history.

## `GET /orders/{orderId}/documents`

Lists delivered documents.

Required scope: `orders:read`

Returns an empty array until the order reaches `delivered`.

```bash theme={null}
curl "$ARCHIVE_ORDER_BASE_URL/orders/order_123/documents" \
  -H "Authorization: Bearer $ARCHIVE_ORDER_API_KEY"
```

Response:

```json theme={null}
[
  {
    "name": "birth-record.pdf",
    "url": "https://storage.example.com/signed-url"
  }
]
```

## `GET /orders/{orderId}/events`

Lists public order events sorted by creation time.

Required scope: `orders:read`

```bash theme={null}
curl "$ARCHIVE_ORDER_BASE_URL/orders/order_123/events" \
  -H "Authorization: Bearer $ARCHIVE_ORDER_API_KEY"
```

Response:

```json theme={null}
[
  {
    "id": "evt_123",
    "type": "order.created",
    "payload": {
      "id": "order_123"
    },
    "actor": {},
    "createdAt": "2026-06-18T12:00:00Z"
  }
]
```
