API Key Authentication
All AstraCollab API endpoints require authentication using API keys. You can manage your API keys through the dashboard or via the API.Getting Your API Key
- Dashboard: Navigate to your organization settings in the AstraCollab dashboard
- API Keys Section: Go to the API Keys tab
- Create Key: Click “Create API Key” and give it a descriptive name
- Copy Key: Copy the generated API key (it starts with
ak_)
Using Your API Key
Include your API key in theAuthorization header of all API requests:
Example Request
API Key Permissions
API keys inherit the permissions of the organization they belong to:- Read Access: View files, folders, and metadata
- Write Access: Upload, update, and delete files
- Admin Access: Manage API keys, billing, and organization settings
Security Best Practices
Keep your API keys secure and never expose them in client-side code.
Do’s
- Store API keys in environment variables
- Use different keys for different environments (dev, staging, prod)
- Rotate keys regularly
- Use the minimum required permissions
Don’ts
- Never commit API keys to version control
- Don’t share keys publicly
- Avoid using the same key across multiple applications
- Don’t hardcode keys in client-side applications
Rate Limiting
API keys are subject to rate limiting based on your plan:- Free Plan: 1,000 requests per hour
- Creator Plan: 10,000 requests per hour
- Studio Plan: 50,000 requests per hour
- Production Plan: 100,000 requests per hour
Error Responses
Invalid API Key
Rate Limited
Managing API Keys
You can manage your API keys through the API:GET /keys- List all API keysPOST /keys- Create a new API keyDELETE /keys/{keyId}- Revoke an API key