Authentication
All requests to the Sterndesk API require authentication using an API key. This page explains how to obtain credentials and authenticate your requests.Obtaining an API Key
API keys are currently issued directly by our team. To request access:Request API Access
Contact us to request your API key
Creating Additional API Keys
Within an organization, you can create additional API keys programmatically using the API. This allows you to issue separate keys for different team members, services, or environments. Use thePOST /api-keys endpoint to create new keys:
Using Your API Key
Authenticate all API requests by including your key in theAuthorization header using the Bearer scheme:
Example Request
Testing Your Authentication
Use the/who-am-i endpoint to verify that your API key is working correctly. This endpoint returns information about the authenticated identity.
Successful Response
A successful authentication returns your identity information:Error Response
If your API key is invalid or missing, you’ll receive an authentication error:Security Best Practices
- Use environment variables to store your API key
- Rotate keys periodically if you suspect they may have been compromised
- Use separate keys for development and production environments