Authorization header.
Key types
Creating a doctor account returns two API keys:- Secret key (
sk_…) — your server-side credential. Use it as theAuthorization: Bearertoken for every request in this documentation. Keep it on your backend; never expose it in a browser. - Publishable key (
pk_…) — a browser credential for the Telepatia embeddable recorder. It is exchange-only: the embed trades it for a short-lived session token that carries your account’s read and write access. Apk_key cannot call the Scribe API directly — presenting it as a Bearer token to any endpoint returns403 permission_denied.
Getting your API key
Contact your Telepatia account manager to obtain an API key for your institution.Making authenticated requests
Include the API key in every request:API key expiration
API keys expire. Institutional keys are minted with a lifetime (default 365 days, configurable viaapiKeyConfig.validForDays when creating an account). Once a key is past its expiry, requests fail with 401 and the same “Invalid API key.” response as a revoked or unknown key. To restore access, regenerate the account’s key and update your integration with the new value.
Error responses
Example: Missing API key
Example: Invalid API key
Example: Publishable key used directly
A publishable (pk_) key cannot call the API directly — exchange it for a session token first, or use your secret key.