Skip to main content

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
Once approved, you’ll receive your API key via email. Store this key securely.

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 the POST /api-keys endpoint to create new keys:
See Organizations & Projects to learn more about managing access within your organization.

Using Your API Key

Authenticate all API requests by including your key in the Authorization 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

Never expose your API key in client-side code, public repositories, or logs.
  • 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

Next Steps

Quickstart

Make your first extraction request

Extraction Schemas

Define what data to extract from your documents