API Key Authentication
Enterprise Only
API key support is currently available for Enterprise customers only. Contact support@kryptos.io for more information.
Usage
Include your API key in the X-API-Key header:
curl -X GET "https://connect.kryptos.io/api/v1/holdings" \
-H "X-API-Key: kryptos_live_xxxxxxxxxxxxxxxxxxxx"
Creating API Keys
- Log in to enterprise.kryptos.io
- Navigate to Settings → API Keys
- Click "Create New API Key"
- Configure your key:
- Name your key (e.g., "Production API")
- Select permissions
- Optional: Set IP restrictions
- Optional: Set expiration date
- Copy your key (shown only once!)
Permissions
| Permission | Required For |
|---|---|
read:profile | /v1/userinfo |
read:holdings | /v1/holdings |
read:transactions | /v1/transactions |
read:defi | /v1/defi-holdings |
read:nft | /v1/nft-holdings |
read:analytics | /v1/profiling |
write:transactions | POST /v0/transactions |
Best Practices
- Never expose your API key in client-side code
- Use environment variables to store keys
- Rotate keys regularly for security
- Use IP restrictions when possible
- Monitor usage in the dashboard
Example
const axios = require('axios');
const API_KEY = process.env.KRYPTOS_API_KEY;
async function getHoldings() {
const response = await axios.get(
'https://connect.kryptos.io/api/v1/holdings',
{
headers: { 'X-API-Key': API_KEY }
}
);
return response.data;
}