Remove Destination

Removes a host from your account’s destination allowlist by its id (from List Destinations). Removal takes effect immediately: the next forward proxy request to that host is rejected with 403 DESTINATION_NOT_ALLOWED. See the Destination Allowlist guide.

DELETE/pci-proxy/destinations/{id}

Removes a host from your account’s allowlist. This takes effect immediately: the next proxy request to that host is rejected with 403 DESTINATION_NOT_ALLOWED.

Header Parameters

X-Account-Codestring

Required if the destination was registered with an account_id: pass that same account_id. Without it, an account-scoped destination is treated as not found.

Path Parameters

idstringrequired

The id (UUID) of the destination to remove, as returned by List Destinations.

Response

The destination was removed. No response body.

The id path parameter is not a valid UUID.

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[]

No destination with that id is registered for your account.

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 DELETE "https://api-sandbox.whitelabel.com/v1/pci-proxy/destinations/<id>" \
  -H "X-Account-Code: <X-Account-Code>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
(no body)