# List Destinations

Returns the destinations registered for your account. Only these hosts can be reached by the [forward proxy](/reference/pci-proxy/invoke-forward-proxy). See the [Destination Allowlist guide](/docs/security-and-compliance/pci-proxy/allowlist) for details.

**GET** `/pci-proxy/destinations`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Returns the destinations registered on your account's allowlist. Only hosts on this list can be reached by the [forward proxy](/reference/pci-proxy/invoke-forward-proxy); a request to any other host is rejected with `403 DESTINATION_NOT_ALLOWED`.

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `X-Account-Code` (string)
  The `account_id` a destination was registered with. Pass it to see only the destinations scoped to that account, org-wide destinations (`account_id: null`) are not included in that response. Omitting the header does the opposite: only org-wide destinations are returned, and account-scoped ones are not included.

## Responses

### 200

The destinations registered for your account.

- `destinations` (object[])
  - `id` (string<uuid>)
    Unique identifier of the destination. Use it to remove the destination.
  - `account_id` (string)
    The account this destination is scoped to, or `null` when it applies to the whole organization.
  - `hostname` (string)
    The registered hostname.
  - `status` ("ENABLED" | "DISABLED")
    Whether the destination is active. Only ENABLED destinations are used by the forward path.
  - `purpose` (string)
    The label you provided when registering the destination.
  - `created_at` (string<date-time>)
    When the destination was registered.
  - `updated_at` (string<date-time>)
    When the destination was last changed.

Example:

```json
{
  "destinations": [
    {
      "id": "d7e8f9a0-1234-4b5c-8d6e-7f8091a2b3c4",
      "account_id": null,
      "hostname": "api.example-processor.com",
      "status": "ENABLED",
      "purpose": "Direct acquiring — Processor X",
      "created_at": "2026-07-09T13:05:36Z",
      "updated_at": "2026-07-09T13:05:36Z"
    }
  ]
}
```

### 401

Authentication failed. Missing or invalid API credentials.

- `code` ("NOT_AUTHENTICATED" | "AuthenticationFail" | "INVALID_REQUEST" | "INVALID_HOSTNAME" | "INVALID_ACCOUNT_ID" | "DESTINATION_EXISTS" | "NOT_FOUND" | "INTERNAL_ERROR")
  Machine-readable error code.
- `messages` (string[])

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "string"
  ]
}
```