Skip to main content

API Key Authentication

API Key authentication requires three headers:
  • X-API-Key - Your API key
  • X-API-Timestamp - Current timestamp in milliseconds
  • X-API-Signature - Base64 encoded signature created with your private key

How to Authenticate with API Key

curl https://api.avenia.io:8443/v2/accounts \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "X-API-Timestamp: TIMESTAMP" \
  -H "X-API-Signature: SIGNATURE"

JWT Authentication

All Avenia API requests can be authenticated using JWT tokens. Include your JWT token in the Authorization header of every request.

How to Authenticate with JWT

Add the JWT token to your request headers:
curl https://api.avenia.io:8443/v2/accounts \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json"

Security

Keep your API keys secure. Never share them or commit them to version control.