Register a wallet
Register your HyperLiquid private key to get an API key. The private key is encrypted and stored securely. It’s used to sign transactions on your behalf when you place orders.POST /exchange/register
Response:
api_key value. You’ll pass it in the X-API-Key header on authenticated requests.
Revoke a key
Delete your API key and the stored encrypted private key.DELETE /exchange/register
Check your key
Verify that your API key is valid and see the associated wallet address.GET /exchange/whoami
Using your key
Once registered, pass the API key in theX-API-Key header:
Alternative: per-request private key
If you don’t want to register, pass your private key directly on each request using theX-HL-Private-Key header:
Security
- Your private key is encrypted at rest using Fernet symmetric encryption
- The encryption key is stored in an environment variable, never in code
- Keys are never logged or exposed in API responses
- You can revoke your key at any time to delete the stored credentials
- All traffic is served over HTTPS