Authentication
Every request sends a Focus API key in its Authorization header.
Keys
- Header
- Send
Authorization: Bearer fcs_v1_<key ID>.<secret>, as copied from Developer access. Keys sent in a URL are rejected. Send one Authorization header. - Create
- Create keys and applications in Developer access. The Quickstart creates your first key.
- Store
- Keep secrets in a server-side secret manager and send them only in the Authorization header over HTTPS.
- Elsewhere
- A key sent outside
/api/v1returns 401sign_in_required. Other Focus routes require a signed-in browser.
Permissions
documents:list- List documents in your library in Developer access. List personal document metadata at
/api/v1/documents. documents:read- Read the details of one document in Developer access. Read personal document metadata at
/api/v1/documents/{id}. workspace:read- Read the name and organization of the authorized workspace in Developer access. Read the workspace bound to this application at
/api/v1/workspace.
Each key belongs to one application, and the application’s permissions limit every key it owns. A personal application can hold documents:list and documents:read. A workspace application can hold workspace:read. PDFs, annotations, and reader answers stay in Focus.
A key can create its own personal application. To set permissions first, choose New application, select its resource and permissions, then choose Add key. Multiple keys can belong to one application. You can narrow its permissions, suspend all its keys, or retire it. Narrowing removes the permission from its keys. Widening the application later does not restore it: edit each key to add it again. Personal documents always belong to the reader who added them.
Replace a key
Keys expire after 90 days by default. Set a different expiry under Key settings when you create or edit a key. An expired key cannot be renewed, so create a replacement.
To rotate without downtime, choose Rotate on the key, select Keep the previous secret working for one hour, and choose Rotate key. Copy the new secret, deploy it, and confirm a request succeeds. Developer access shows when the previous secret stops. Without the overlap, it stops immediately. The overlap never extends past the key’s expiry.
Revoke a compromised key immediately. Revocation invalidates both secrets. You can suspend or revoke access even when your subscription has lapsed.