Description
Generate a new API key for a wallet address. Each wallet can only have one active API key at a time. If an API key already exists for the wallet, it must be revoked first before generating a new one.
Important Notes
Save your API key immediately! The API key is only shown once during generation. It cannot be retrieved later. If you lose your key, you’ll need to revoke it and generate a new one.
Authentication
This endpoint requires either:
- A service key (used by the frontend) with the wallet address in the
X-Wallet-Address header
- An existing valid API key for the same wallet (for regeneration after revocation)
Response Fields
Error Codes
Rate Limiting
This endpoint is rate-limited to prevent abuse:
- 5 requests per minute per wallet address
- 20 requests per hour per wallet address
Example Integration