Skip to main content

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

  1. Visit syncline.run/developer/login
  2. Authenticate with Google
  3. Copy your API key from the developer dashboard
Keep your API key secret! Never commit it to version control or share it publicly. Treat it like a password.

Making Authenticated Requests

Include your API key in the Authorization 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:
Best Practice: Communicate with your usersWhen users go through the OAuth flow, they’ll see Google’s consent screen requesting permissions for “Syncline” (our infrastructure). To avoid confusion, briefly explain in your UI that you use Syncline for secure calendar integration before redirecting them. For example: “We use Syncline to securely connect your calendar and schedule meetings on your behalf.”

User OAuth Flow

  1. Direct users to the OAuth endpoint:
  2. User authenticates with Google and grants calendar permissions
  3. User is redirected to your success URL with a confirmation
  4. Verify calendar connection:

Response

Error Responses

401 Unauthorized

Solution: Check that you’re including the Authorization: Bearer YOUR_API_KEY header.

403 Forbidden

Solution: Verify your API key is active and has the required permissions.

429 Rate Limited

Solution: Upgrade your plan or wait until the next billing cycle.

Rate Limits

Rate limits are based on your pricing tier:

Best Practices

  • Use environment variables, not hardcoded values
  • Never commit API keys to version control
  • Rotate keys if they’re exposed
  • Implement retry logic for 5xx errors
  • Show user-friendly error messages
  • Log errors for debugging
  • Check your usage dashboard regularly
  • Set up alerts for approaching limits
  • Plan upgrades before hitting limits

Next Steps

Quickstart

Schedule your first meeting

API Reference

Explore all endpoints