Overview
The Sesame HR API uses Bearer Token authentication. Every API request must include a valid token in theAuthorization header.
Getting Your API Token
Access API Settings
Log in to app.sesametime.com and navigate to Settings > Integrations > API
Making Authenticated Requests
Include your token in every API request:Verifying Your Token
Test your token by calling the info endpoint:Managing Tokens
Listing Active Tokens
View all active tokens in Settings > Integrations > API. Each token shows:- Token
- Active
- Creation Date
- Last Used Date
Revoking Tokens
To revoke a token:- Go to Settings > Integrations > API
- Find the token to revoke
- Click the delete button
- Confirm the action
Authentication Errors
| Status | Error | Cause | Solution |
|---|---|---|---|
401 | Unauthorized | Missing or invalid token | Check token is correct and not deleted |
401 | Token Expired | Token has been revoked | Generate a new token |
Troubleshooting 401 Errors
Troubleshooting 401 Errors
- Check token format: Ensure the header is exactly
Authorization: Bearer YOUR_TOKEN(note the space after “Bearer”) - Verify token is active: Check in the dashboard that the token hasn’t been deleted
- Check region: Ensure you’re using the correct API region for your account
- Check for typos: Copy the token again from the dashboard
- Check encoding: Ensure no extra characters or whitespace were added
Security Recommendations
Environment Variables
Store tokens in environment variables, never in code
Secrets Manager
Use AWS Secrets Manager, HashiCorp Vault, or similar for production
Token Rotation
Rotate tokens every 90 days as a security best practice
Audit Logs
Monitor API usage in your Sesame HR dashboard