Get API Key
To use RushDB, you'll need an API token for authentication. Here's how to get one:
1. Create an Account
Visit RushDB Dashboard and sign up for an account if you haven't already.
2. Create a Project
- After signing in, click on "New Project"
- Enter a name for your project
- Choose your preferred region
- Click "Create"
3. Generate API key
- In your project dashboard, navigate to the "API Keys" section
- Click "Generate New API Key"
- Give your token a name (e.g., "Development", "Production")
- Click "Generate Key"
4. Copy and Store Your API Key
Your API token will be displayed only once. Make sure to:
- Copy the token immediately
- Store it securely
- Never commit it to version control
- Use environment variables or secure configuration management
Example of using environment variables:
- TypeScript
- Python
- REST API
// Load from environment variable
const db = new RushDB(process.env.RUSHDB_API_KEY);
import os
db = RushDB(api_key=os.environ['RUSHDB_API_KEY'])
# Set in your shell
export RUSHDB_API_KEY='RUSHDB_API_KEY'
# Use in requests
curl -H "Authorization: Bearer $RUSHDB_API_TOKEN" \
https://api.rushdb.com/api/v1/records
Token Security
- Keep your tokens secure and private
- Rotate tokens periodically
- Use different tokens for development and production
- Revoke tokens immediately if compromised
Next Steps
- Follow the Quick Tutorial to start using your token
- Learn about RushDB
- Check out the Basic Concepts