Register Destination

Adds a host to your account’s destination allowlist. The forward proxy only sends card data to hosts on this list; there is no “any host” mode. See the Destination Allowlist guide for how matching works.

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.

POST/pci-proxy/destinations

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.

Body application/json

hostnamestringrequired

The bare public hostname to allow, without scheme, port, or path (for example api.example-processor.com). Matched exactly, case-insensitive.

purposestring

An optional human-readable label describing why this host is allowed. Shown when you list destinations.

account_idstring<uuid>

Optional. Restrict this destination to a single account (a UUID). Omit (or send null) to allow the host for the whole organization.

Response

The destination was registered.

idstring<uuid>

Unique identifier of the destination. Use it to remove the destination.

account_idstring

The account this destination is scoped to, or null when it applies to the whole organization.

hostnamestring

The registered hostname.

status"ENABLED" | "DISABLED"

Whether the destination is active. Only ENABLED destinations are used by the forward path.

purposestring

The label you provided when registering the destination.

created_atstring<date-time>

When the destination was registered.

updated_atstring<date-time>

When the destination was last changed.

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.

messagesstring[]

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.

messagesstring[]

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.

messagesstring[]

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.

messagesstring[]
Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/pci-proxy/destinations" \
  -H "Content-Type: application/json" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -d '{
  "hostname": "api.example-processor.com",
  "purpose": "Direct acquiring — Processor X",
  "account_id": null
}'
Response
{
  "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"
}