List Destinations

Returns the destinations registered for your account. Only these hosts can be reached by the forward proxy. See the Destination Allowlist guide for details.

GET/pci-proxy/destinations

Returns the destinations registered on your account’s allowlist. Only hosts on this list can be reached by the forward proxy; a request to any other host is rejected with 403 DESTINATION_NOT_ALLOWED.

Header Parameters

X-Account-Codestring

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.

Response

The destinations registered for your account.

destinationsobject[]
Show destinations properties
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.

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[]
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/pci-proxy/destinations" \
  -H "X-Account-Code: <X-Account-Code>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "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"
    }
  ]
}