Skip to main content
The Outhire API uses Bearer token authentication with company-scoped API keys.

Authentication header

Include your API key in the Authorization header on every request:
The Authorization: Bearer header is the only supported authentication method. x-api-key headers and query parameter authentication are not supported.

API key format

API keys follow this format: Example:

Company scoping

API keys are company-scoped, not user-scoped. A valid key grants access to all resources belonging to the company it was created under. There are no per-key permission scopes — all keys for a company have the same access level. This means the API key determines which company’s data the caller can read and write.

Key security

Outhire follows security best practices for API key storage:
  • Raw keys are hashed with SHA-256 before storage — Outhire does not store your key in plaintext
  • Keys are shown only once at creation time
  • After creation, only a short prefix (e.g. outh_a1b2c3d4) is visible in the admin UI for identification
  • last_used_at is tracked for each key

Managing keys

API keys are managed at Settings > API Keys (admin-only). Admins can:
  • Create a named API key
  • View key prefixes, creation time, and last-used time
  • Revoke active keys

Revoking a key

Revocation takes effect immediately — any request using a revoked key will receive a 401 response. Revoked keys remain visible in the admin UI with a revoked status.
To rotate a key, create a new key first, update your integration to use it, then revoke the old key.

Error handling

All authentication failures return the same response regardless of the reason (missing, invalid, or revoked key):
401 Unauthorized

API error format

All API errors use a consistent envelope:

Available endpoints

The following endpoints are protected by API key authentication: