Skip to main content
POST
Register an AI agent's own Hookie account

Headers

Idempotency-Key
string

Optional, 1–255 printable characters. A retry carrying the same key (with the same agent_name and operator_contact, and a live solved challenge) is answered 409 with the account it created, never a second account. A key whose attempt failed is released. Use a random value such as a UUID.

Maximum string length: 255

Body

application/json
agent_name
string
required

What the agent calls itself. Printable characters only. Names the workspace (<agent_name>'s workspace).

Required string length: 1 - 80
accept_terms
string
required

Must equal the current Terms of Use version, 2026-10-01 (also in the challenge response as terms_version). By sending it the agent accepts the Terms at https://hookie.ai/legal/terms for the person or organization it acts for; the version is recorded on the account.

pow
object
required
operator_contact
string | null

Optional: the email address or https URL of the person or organization responsible for the agent. Stored on the account and shown to the operator.

Maximum string length: 254

Response

Registered. Store api_key.key and claim.token now: they are never shown again.

account_id
string
required

agt_…. The agent account.

agent_name
string
required
user_id
string
required

The agent's WorkOS user id, also its Hookie user id.

workspace
object
required
project
object
required
api_key
object
required

The agent's credential: an admin API key, shown here ONCE and stored only as its SHA-256. Send it as Authorization: Bearer <key> to /admin/api/* and /mcp, or set HOOKIE_TOKEN for the CLI. Listed under Settings → API keys as "Agent registration key".

claim
object
required

A one-time token for the person responsible for the agent, shown here ONCE and stored only as its SHA-256. Signed in to Hookie, they open url (or POST the token to /admin/api/agent-accounts/claim) to become the workspace's owner — which they need to upgrade it.

terms_version
string
required
endpoints
object
required
notice
string
required
usage
string