Authentication

Clawallex uses API keys to authenticate requests. All API requests must include a valid API key in the Authorization header.

API Key Types

Production Keys

Used for live transactions with real money. Available after account verification.

Format: clw_live_...

Sandbox Keys

Used for testing without real money. All transactions are simulated.

Format: clw_test_...

Getting Your API Key

  1. Complete account verification (production keys only)

  2. Navigate to Settings > API Keys

  3. Click "Generate New Key"

  4. Store your key securely—it won't be shown again

Using Your API Key

HTTP Requests

Include your API key in the Authorization header:

SDK Authentication

TypeScript/Node.js

Python

Go

Security Best Practices

Never Commit API Keys

Add API keys to .gitignore:

Use Environment Variables

Store keys in environment variables, not source code:

Separate Keys for Each Environment

Use different API keys for development, staging, and production:

Rotate Keys Regularly

Rotate API keys every 90 days or immediately if compromised:

  1. Generate new API key in dashboard

  2. Update application configuration with new key

  3. Test that new key works

  4. Revoke old key

Restrict Key Permissions

When creating API keys, limit permissions to only what's needed:

Key Rotation

Manual Rotation

  1. Generate New Key

  2. Update Application

  3. Test New Key

  4. Revoke Old Key

Automated Rotation

Use secrets management services for automatic rotation:

AWS Secrets Manager

HashiCorp Vault

IP Whitelisting

Restrict API key usage to specific IP addresses:

Rate Limiting

API keys are subject to rate limits based on your plan:

Plan
Requests/Minute
Requests/Hour
Burst

Sandbox

100

1,000

150

Startup

1,000

10,000

1,500

Growth

5,000

50,000

7,500

Enterprise

Custom

Custom

Custom

Rate limit headers included in responses:

Handling Rate Limits

Webhook Signature Verification

Verify webhook authenticity using signature verification:

API Key Monitoring

Monitor API key usage and security events:

API Key Scopes

Create keys with limited permissions for different use cases:

Read-Only Key

Agent-Specific Key

Admin Key

Testing Authentication

Verify API Key

Response:

SDK Health Check

Troubleshooting

Invalid API Key

Insufficient Permissions

Key Expired

Next Steps

Support

Last updated