Common Use Cases
Here are brief examples of common workflows using the Team API.Domain Management Workflow
Add a domain, verify DNS records, and attach it to a project:
Project and Route Setup
Create a project, add a route, and configure a webhook:
Message Monitoring
List messages with filters and retrieve detailed event history:The Messages API is read-only. Use the Team API to monitor delivery, not to send emails (use Project tokens for sending).
Suppression Management
Add email addresses to the suppression list and remove them when needed:Best Practices
Security Recommendations
- Store tokens securely: Use environment variables or secrets managers (AWS Secrets Manager, HashiCorp Vault, etc.)
- Grant minimal abilities: Only assign the abilities each token needs to perform its function
- Rotate tokens regularly: Regenerate tokens periodically, especially for long-running integrations
- Monitor token usage: Check the “Last used” timestamp in the dashboard to identify inactive or compromised tokens
- Delete unused tokens: Remove tokens that are no longer needed
Operational Recommendations
- Implement error handling: Always handle HTTP errors gracefully with exponential backoff for retries
- Respect rate limits: Track
X-RateLimit-Remainingheaders and implement request queuing if needed - Handle pagination: Use cursor-based pagination for large result sets
- Log request metadata: Store request IDs and timestamps for debugging
- Use descriptive names: Name tokens and resources clearly to aid in debugging and auditing
API Reference
Explore the complete API documentation for detailed endpoint information:Team
View and update team settings, usage, and members
Domains
Manage verified sending domains and DNS records
Projects
Create and manage projects and routes
Webhooks
Configure webhook endpoints and delivery settings
Messages
Access message history and delivery events
Suppressions
Manage bounce and complaint suppression lists
Next Steps
- API Tokens - Create and manage tokens with the right abilities
- API Reference - Explore all available endpoints
- Webhooks - Receive real-time delivery events
- Domain Verification - Set up and verify sending domains