Overview
Client IDs enable frontend/browser-side authentication with the Request Network API. Unlike API keys (which are for server-to-server calls), Client IDs are designed to be used in client-side code with domain restrictions. Key differences from API keys:| API Key | Client ID | |
|---|---|---|
| Use case | Backend integrations | Frontend/browser apps |
| Auth header | x-api-key | x-client-id + Origin |
| Domain restriction | None | Optional whitelist |
| Fee configuration | Per-request | Configurable per client ID |
Backend vs Frontend Client IDs
- Frontend Client IDs β have
allowedDomainsset. The API validates theOriginheader against the whitelist. - Backend Client IDs β have empty
allowedDomains. No domain validation is performed. Useful for server-side orchestrators that need client ID scoping without browser restrictions.
Orchestrator Pattern
When a Client ID is bound to a payee destination, requests created with that Client ID automatically resolve the payee from the destination. This enables orchestrator flows where a third party creates payment requests on behalf of a merchant without knowing the merchantβs wallet details.CRUD Operations
Client IDs can be managed through the auth API (session-based) or the request API (API key-based).Create a Client ID
Display name for the Client ID (1-100 characters).
List of allowed origins (max 10). Must be HTTPS, except
http://localhost and http://127.0.0.1. Leave empty for backend Client IDs.Default fee percentage for requests created with this Client ID (0-100).
Fee recipient address. Required when
feePercentage is set.ERC-7828 destination ID to bind to this Client ID. Enables the orchestrator pattern.
Response (201)
List Client IDs
Get a Client ID
Update a Client ID
label, allowedDomains, feePercentage, feeAddress, payeeDestinationId, and status.
Revoke a Client ID
Webhook Scoping
Webhooks can be scoped to specific Client IDs. When a webhook is created with aclientId, it only receives events for requests created with that Client ID.
See Webhooks for details.
Related Pages
Authentication
How to use Client IDs for API authentication.
Payee Destinations
Create destinations to bind to Client IDs.