API Keys
All Syncline API requests require authentication using an API key. Your API key identifies your account and tracks usage.Get Your API Key
- Visit syncline.run/developer/login
- Authenticate with Google
- Copy your API key from the developer dashboard
Making Authenticated Requests
Include your API key in theAuthorization header using Bearer authentication:
Environment Variables
Store your API key in an environment variable for security:Calendar Authentication (OAuth)
Before scheduling meetings, users must connect their Google Calendar:User OAuth Flow
-
Direct users to the OAuth endpoint:
- User authenticates with Google and grants calendar permissions
- User is redirected to your success URL with a confirmation
-
Verify calendar connection:
Response
Error Responses
401 Unauthorized
Authorization: Bearer YOUR_API_KEY header.
403 Forbidden
429 Rate Limited
Rate Limits
Rate limits are based on your pricing tier:| Tier | Meetings/Month | Rate Limit |
|---|---|---|
| Free | 100 | 10 requests/min |
| Starter | 1,000 | 100 requests/min |
| Growth | 5,000 | 500 requests/min |
| Enterprise | Unlimited | Custom |
Best Practices
Store Keys Securely
Store Keys Securely
- Use environment variables, not hardcoded values
- Never commit API keys to version control
- Rotate keys if they’re exposed
Handle Errors Gracefully
Handle Errors Gracefully
- Implement retry logic for 5xx errors
- Show user-friendly error messages
- Log errors for debugging
Monitor Usage
Monitor Usage
- Check your usage dashboard regularly
- Set up alerts for approaching limits
- Plan upgrades before hitting limits