# Register Destination

Adds a host to your account's destination allowlist. The [forward proxy](/reference/pci-proxy/invoke-forward-proxy) only sends card data to hosts on this list; there is no "any host" mode. See the [Destination Allowlist guide](/docs/security-and-compliance/pci-proxy/allowlist) for how matching works.

<Note>
**Adding a destination is sensitive**

Registering a host widens where your stored cards can be sent. Restrict who can manage the allowlist and review any unexpected additions.
</Note>

**POST** `/pci-proxy/destinations`

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

Adds a host to your account's allowlist so the forward proxy can send card data to it. Matching is on the exact hostname, case-insensitive; subdomains and wildcards are not implied. A newly registered host is usable within minutes.

## Authorization

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

## Body

Content type: `application/json`

- `hostname` (string, required)
  The bare public hostname to allow, without scheme, port, or path (for example `api.example-processor.com`). Matched exactly, case-insensitive.
- `purpose` (string)
  An optional human-readable label describing why this host is allowed. Shown when you list destinations.
- `account_id` (string<uuid>)
  Optional. Restrict this destination to a single account (a UUID). Omit (or send `null`) to allow the host for the whole organization.

Example:

```json
{
  "hostname": "api.example-processor.com",
  "purpose": "Direct acquiring — Processor X",
  "account_id": null
}
```

## Responses

### 201

The destination was registered.

- `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
{
  "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"
}
```

### 400

The request body could not be parsed, or the `account_id` is not a valid account for your organization.

- `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"
  ]
}
```

### 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"
  ]
}
```

### 409

The hostname is already registered on your allowlist (for this account scope).

- `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"
  ]
}
```

### 422

The hostname is not a bare public hostname (a URL, a host with a scheme, port, or path, an IP address, or a wildcard).

- `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"
  ]
}
```