Whitelist address
Unified CaaS-facing endpoint that absorbs the multi-step compliance orchestration (WP policy rule, VASP lookup or registration, PII storage) into a single declarative request. The server branches internally across policy-only, known-VASP and new-VASP flows.
Body Params
object
Request body for the unified POST /api/travel-rule/v1/whitelist endpoint.
enterpriseId is required so that the upstream needsEnterpriseAccess
middleware (src/util/needsEnterpriseAccess.ts) can verify the caller has
access to the targeted enterprise before the handler runs.
vaspId and newVasp are mutually exclusive — exactly one (or neither, in
the case of a BitGo-wallet-id address or a restrictWhitelist=off org)
must be supplied. The XOR check lives in the handler so we can return a
targeted 400 with a clear message instead of an opaque decode error.
-
enterpriseIdstring required -
walletIdstring required -
coinstring required -
addressstring required -
custodyTypestring enum requiredhostedself -
labelstring -
vaspIdstring -
newVaspobjectnewVasp object
-
domainstring required -
namestring required
-
-
piiobjectCaaS-facing PII payload. Optional on the request; the server skips storage entirely when the resolved VASP source is TRUST (TRUST handles PII out-of-band).pii object
-
addressstring -
businessNamestring -
countrystring -
firstNamestring -
lastNamestring -
ownershipTypestring enum requiredselfindividualbusiness
-
Responses
200
OK
Response Body
object
-
whitelistIdstring required -
statusstring enum requiredapprovedpending_vasppending_prodops_review
400
Bad Request
Response Body
object
-
namestring -
contextmap of objects requiredcontext object
-
<key>object
-
-
errorstring required -
requestIdstring required
403
Forbidden
Response Body
object
-
namestring -
contextmap of objects requiredcontext object
-
<key>object
-
-
errorstring required -
requestIdstring required
404
Not Found
Response Body
object
-
namestring -
contextmap of objects requiredcontext object
-
<key>object
-
-
errorstring required -
requestIdstring required
500
Internal Server Error
Response Body
object
-
namestring -
contextmap of objects requiredcontext object
-
<key>object
-
-
errorstring required -
requestIdstring required