Skip to main content
Every request to /api/v1/* must include an Authorization header carrying a workspace API key as a Bearer token:

Eligibility & workspace scoping

  • Annual plan required: API keys are enabled only for workspaces on a confirmed, active paid annual plan (Starter Annual or Team Annual). Free, guest, and monthly billing periods return HTTP 403.
  • Workspace isolation: An API key can only create and read tasks belonging to its own workspace. Polling a task ID owned by another workspace returns 404 TASK_NOT_FOUND.
  • Cancellation behavior: If you cancel automatic renewal on an active annual plan, API access continues until the end of the already-paid annual period.

Creating and rotating keys

  1. Open HearDraft Developers → API Keys.
  2. Click Create key, give it a descriptive label (for example prod-ingest-worker), and copy the secret immediately.
  3. Store the key in your backend secrets manager (AWS Secrets Manager, GCP Secret Manager, Vault, or server environment files with 0600 permissions).
  4. When rotating credentials, generate a replacement key first, deploy it to your workers, and then revoke the old key. Revoked keys immediately fail with HTTP 401.
Keep API keys strictly on your server. Do not pass HearDraft API keys into client-side JavaScript, browser extensions, or mobile bundles.