Authentication

ClawFi uses API keys to authenticate requests.

Getting Your API Key

  1. Navigate to Settings > API Keys

  2. Click "Generate New Key"

  3. Store your key securely - it won't be shown again

Using Your API Key

Include your API key in the Authorization header:

curl https://api.useclawfi.com/v1/vaults \
  -H "Authorization: Bearer YOUR_API_KEY"

SDK Authentication

Node.js

const client = new ClawFi({
  apiKey: process.env.CLAWFI_API_KEY
});

Python

Security Best Practices

  • Never commit API keys to version control

  • Use environment variables for key storage

  • Rotate keys regularly

  • Use separate keys for development and production

Key Rotation

To rotate your API key:

  1. Generate a new key in the dashboard

  2. Update your application with the new key

  3. Test that the new key works

  4. Revoke the old key

IP Whitelisting

For additional security, you can whitelist specific IP addresses in your account settings.

Last updated