API Tokens & Webhooks
Enable API access and event-driven automation with webhooks
API Tokens & Webhooks
Use API tokens for programmatic access and webhooks for event-driven automation.
API Tokens
Create and manage API tokens for integrations.
Requirements
- Plan: API Access feature enabled
- Permission:
manage_workspace_settings
Creating a Token
- Go to Workspace Settings > API Tokens
- Click Create New Token
- Choose scopes/permissions
- Save and copy token (shown once)
Best Practices
- Use least-privilege scopes
- Rotate tokens regularly
- Monitor token usage
- Revoke unused tokens
Webhooks
Receive real-time callbacks on workspace events.
Requirements
- Plan: Webhooks feature enabled
- Permission:
manage_workspace_settings
Creating a Webhook
- Go to Workspace Settings > Webhooks
- Click Add Webhook
- Enter target URL and select events
- Save and test delivery
Available Events (examples)
- request.created
- request.updated
- request.status_changed
- client.created
- invoice.created
- payment.completed
Security
- Use HTTPS endpoints
- Verify signatures on requests
- Apply rate limiting
- Implement retries and error handling
Monitoring
- View recent deliveries
- Inspect payloads and responses
- Retry failed deliveries
Troubleshooting
- 400/500 errors: Check endpoint handler and logs
- No deliveries: Confirm events selected and URL reachable
- Signature errors: Verify signing secret and implementation