# Export the inventory

`GET https://evohub.io/api/v1/catalog/exports/inventory`

Part of the [Catalog API](https://docs.evohub.io/catalog.md) reference · operationId `exportInventory`.

Every asset not gone, with its application, service, owner team,
tier, effective availability target and RACI, as of `generated_at`.
At most 50,000 rows; `truncated` says when there were more. Teams and
people are their IDs.

Requires the `catalog:component:read` and `catalog:resource:read` scopes.

## Authorization

Any one of:

- `bearerKey`
- `headerKey`

Where:

- `bearerKey`: HTTP Bearer — An EvoHub API key (`evohub_…`) as a bearer token.
- `headerKey`: API key in the header `X-API-Key` — An EvoHub API key (`evohub_…`).

## Responses

### 200 — The inventory.

Content type: `application/json`

Type: `object`

- `data` (Inventory)
  - `generated_at` (string (date-time))
  - `truncated` (boolean)
  - `assets` (array of object)
    - `resource_id` (string)
    - `provider` (string)
    - `kind` (string)
    - `name` (string)
    - `namespace` (string)
    - `environment_id` (string)
    - `status` (string)
    - `first_seen_at` (string (date-time))
    - `last_seen_at` (string (date-time))
    - `application_id` (string | null)
    - `application_name` (string | null)
    - `component_id` (string | null)
    - `component_slug` (string | null)
    - `component_name` (string | null)
    - `owner_team_id` (string | null)
    - `tier_id` (string | null)
    - `tier_name` (string | null)
    - `availability_target` (number | null)
    - `responsibilities` (array of Responsibility)
      - `role` (string, required, one of `responsible`, `accountable`, `consulted`, `informed`)
      - `team_id` (string | null)
      - `user_id` (string | null)

### 401 — No API key was sent, or it is unknown, revoked or expired (`UNAUTHORIZED`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 403 — The key lacks a scope this endpoint needs (`FORBIDDEN`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 429 — Too many requests (`RATE_LIMITED`). Wait for `Retry-After` seconds.

Headers:

- `Retry-After` (integer): Seconds to wait before retrying.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

### 500 — Something went wrong on EvoHub's side (`INTERNAL_ERROR`). Retry later.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `NOT_FOUND`)
  - `message` (string, required, example `not found`)
  - `request_id` (string)

## Example request

```bash
curl -X GET 'https://evohub.io/api/v1/catalog/exports/inventory' \
  -H 'Authorization: Bearer <TOKEN>'
```
