# List cloud accounts

`GET https://evohub.io/api/v1/catalog/connections`

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

The organization's cloud accounts. `external_id` is empty for a key
without `identity:cloudaccount:write`.

Requires the `identity:cloudaccount:read` scope.

## 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 accounts.

Content type: `application/json`

Type: `object`

- `data` (array of CloudConnection)
  - `id` (string, example `con_7d9f1b3a5c7e9a2c4e6b8d0f2a4c6e8b`)
  - `source_id` (string)
  - `environment_id` (string)
  - `provider` (string, one of `aws`, `azure`, `gcp`, `vmind`)
  - `name` (string)
  - `role_arn` (string)
  - `tenant_id` (string)
  - `credential_id` (string)
  - `has_secret` (boolean)
  - `external_id` (string): Ours, random and unique. Empty without `identity:cloudaccount:write`.
  - `regions` (array of string): Empty means every region the account has enabled.
  - `account_id` (string)
  - `status` (string, one of `pending`, `ok`, `error`, `paused`)
  - `last_error` (string)
  - `denied` (array of string): Services the access did not let it read on the last read. Not a failure.
  - `last_polled_at` (string (date-time) | null)
  - `next_poll_at` (string (date-time))
  - `created_by` (string)
  - `created_at` (string (date-time))
  - `updated_at` (string (date-time))

### 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/connections' \
  -H 'Authorization: Bearer <TOKEN>'
```
