Skip to content

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.

Updated

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#

CallerUseStarts withWhat it may do
An AI agent working on its ownAn agent keyhl_agent_What its scopes allow, for one product.
Your product's serverA product keyhl_prod_Report outcomes and delete a visitor's data. Nothing else.
A person's AI assistantAn OAuth sign-inhlat_An editor's work at most, within that person's role.

Agent key scopes#

ScopeWhat it allows
readRead the record and results.
proposeCreate and edit change sets, register experiments and close work items.
publishPublish change sets, subject to the approval rules.
reportSend 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.

  1. Select Create key, choose agent or product, and for an agent key, its scopes.
  2. Copy the key. It is shown once and stored only as a hash.
  3. To replace a key, rotate it: a new key with the same scopes is shown, and the old one stops working at once.
  4. 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#

RoleWhat it adds
ViewerReads the record, results, experiments and the work queue.
EditorProposes and publishes change sets, records placements, reports numbers and outcomes, runs experiments, uploads creatives and closes work items.
AdminApproves change sets and proof points, changes product settings, manages members, keys, credentials, webhooks and domains, and exports.
OwnerCloses 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?