Keys and access
Choose between an agent key, a product key and an AI app sign-in, and know what each may do in Handline.
Callers that don't sign in to the web app reach Handline with a key or an OAuth token, sent as Authorization: Bearer … to the REST API or the MCP server. Each key works for one product only.
Which one to use#
| Caller | Use | Starts with | What it may do |
|---|---|---|---|
| An AI agent working on its own | An agent key | hl_agent_ | What its scopes allow, for one product. |
| Your product's server | A product key | hl_prod_ | Report outcomes and delete a visitor's data. Nothing else. |
| A person's AI assistant | An OAuth sign-in | hlat_ | An editor's work at most, within that person's role. |
Agent key scopes#
| Scope | What it allows |
|---|---|
read | Read the record and results. |
propose | Create and edit change sets, register experiments and close work items. |
publish | Publish change sets, subject to the approval rules. |
report | Send reported numbers and placements, and report outcomes. |
An agent that runs campaigns usually needs all four. Agent keys can never approve a change set or a proof point, change settings, store credentials, manage webhooks or domains, or create keys: a person does those in the web app.
Create, rotate and revoke a key#
Owners and admins manage keys on Keys in the product's settings.
- Select Create key, choose agent or product, and for an agent key, its scopes.
- Copy the key. It is shown once and stored only as a hash.
- To replace a key, rotate it: a new key with the same scopes is shown, and the old one stops working at once.
- To stop a key, revoke it. Its next call is refused.
Keys shows when each key was last used. An agent can list keys with the REST route GET /api/v1/products/{productId}/keys only through a person's role; keys themselves can't read keys.
AI apps signed in with OAuth#
A person can connect an AI assistant that supports MCP sign-in to https://mcp.handline.io. The assistant opens Handline's sign-in page, the person approves, and the app works for that person. It can do at most what an editor can, whatever the person's role: it can't approve, manage members, keys, settings, credentials, webhooks or domains, or export or close a workspace.
Each person sees the AI apps connected to their account in Workspace settings, and can disconnect one there. Its tokens stop working at once.
Members and roles#
| Role | What it adds |
|---|---|
| Viewer | Reads the record, results, experiments and the work queue. |
| Editor | Proposes and publishes change sets, records placements, reports numbers and outcomes, runs experiments, uploads creatives and closes work items. |
| Admin | Approves change sets and proof points, changes product settings, manages members, keys, credentials, webhooks and domains, and exports. |
| Owner | Closes the workspace. |
A removed member loses access on their next request.
Limits#
Each agent key may make 600 calls a minute and each product key 1,200. Past that, Handline answers 429 with retry-after.
Was this page helpful?