API Keys
API keys provide secure access to your workspace data. Each key:- Is scoped to a single workspace
- Has full read/write access to workspace data
- Never expires (unless manually revoked)
- Can be revoked at any time
Creating an API Key
1
Go to API Settings
Navigate to Settings → API Keys in your Replyify dashboard.
2
Create a new key
Click Create API Key and enter a descriptive name (e.g., “Production Integration”).
3
Copy your key
Copy the generated key immediately. It’s only shown once for security.
Using Your API Key
Include your API key in theAuthorization header of every request:
Example Request
cURL
JavaScript
Python
Authentication Errors
401 Unauthorized
Returned when authentication fails:- Missing
Authorizationheader - Incorrect or malformed API key
- Revoked API key
403 Forbidden
Returned when the key is valid but lacks permission:- Trying to access another workspace’s data
- API key restrictions (if configured)
Managing API Keys
Viewing Keys
Go to Settings → API Keys to see all keys:- Key name
- Key prefix (first few characters)
- Created date
- Last used date
Revoking Keys
To revoke a key:- Find the key in Settings → API Keys
- Click Revoke
- Confirm the action
Security Best Practices
Use Environment Variables
Never hardcode API keys in your source code. Use environment variables instead.
Rotate Keys Regularly
Create new keys periodically and revoke old ones, especially after team changes.
One Key Per Integration
Use separate keys for different integrations so you can revoke individually.
Monitor Usage
Check “Last Used” dates to identify unused keys that can be safely revoked.
Storing Keys Securely
Do:- Store in environment variables
- Use secrets management (AWS Secrets Manager, HashiCorp Vault, etc.)
- Encrypt at rest if storing in a database
- Commit to version control
- Share in plain text (email, Slack, etc.)
- Expose in client-side code
- Log in application logs
Example: Environment Variables
.env
Node.js
Python