Skip to content

Proxying Client API Requests

Forward client-level API calls by injecting the generated client API key.

After registering a tenant, resellers can use the generated client apiKey to make regular CryptoSwift Client API calls on behalf of that tenant. This is useful when the partner exposes its own API while transparently forwarding Travel Rule requests to CryptoSwift. It is an integration option, not a platform limitation: partners may also allow VASP tenants to call CryptoSwift directly with their own tenant API key.

Proxy Pattern

Store a mapping between your internal client identifier and the generated CryptoSwift client apiKey.

Partner request componentCryptoSwift forwarded request
Partner platform authentication, such as your existing API key or bearer token.Removed before forwarding.
Internal client-to-CryptoSwift tenant mapping.Used to look up the client's generated CryptoSwift apiKey.
Request body for the mirrored endpoint.Forwarded as-is.
CryptoSwift authentication header.Set as x-api-key: <client-api-key>.

For example, a partner can expose:

POST https://api.service-x.com/travel-rule/transactions

and forward the request to:

POST https://api.cryptoswift.eu/transactions

When forwarding to CryptoSwift, strip the partner or platform credentials and swap in the client key directly:

curl --location --request POST 'https://api.cryptoswift.eu/transactions' \
  --header 'x-api-key: <client-api-key>' \
  --header 'Content-Type: application/json' \
  --data-raw '<original-client-request-body>'

The payload body should remain intact. The only required authentication change is replacing the credential your client used for your API with the generated CryptoSwift client apiKey in the x-api-key header.

Implementation Notes

  • Do not forward X-Partner-Api-Key to regular Client API endpoints.
  • For proxied requests, do not let external callers override the CryptoSwift tenant key selected by your server-side tenant mapping.
  • Keep the tenant lookup server-side so each proxied request uses the correct client's API key.
  • The same pattern can mirror endpoints such as /transactions, wallet verification endpoints, and other regular CryptoSwift Client API operations.