Skip to main content
POST
Approve a headless installation

Authorizations

Authorization
string
header
required

Your ara_ API key from Settings > Ara API. Keys are capability-scoped: run, mcp:read, mcp:write, secrets:read, secrets:write, sessions:read, sessions:debug, knowledge:read, memory:read, memory:write, skills:read, skills:write, repos:read, repos:write, reviews:read, reviews:write, deployment:read, analytics:read, org:read, org:write, attachments:read, attachments:write, guardrails:read, guardrails:write, automations:read, automations:write, agent_auth:read. mcp:write manages MCP server configuration only; it does not authorize remote MCP-tool execution. sessions:debug is privileged: it expands diagnostic session events only for organization owners/admins.

Path Parameters

orgId
string
required

Organization id or slug. Resolve it with GET /v3/self.

Body

application/json

Single-use P-256/PKCE headless enrollment. Persistent TTL defaults to 30 days (maximum 90 days); ephemeral defaults to 1 hour (maximum 24 hours). Minimum TTL is 60 seconds. Root fingerprints and permissions are the approval ceiling; unknown fields, including device_kind and bound_run_id, are rejected.

install_id
string
required
Required string length: 16 - 160
code_challenge
string
required
Pattern: ^[A-Za-z0-9_-]{43}$
lifecycle
enum<string>
required
Available options:
persistent,
ephemeral
roots
object[]
required
Required array length: 1 - 32 elements
ttl_seconds
integer
Required range: x >= 60

Response

One-use ticket; redeem on the existing signed Device transport within 120 seconds.

enrollment_ticket
string
required
expires_at
string
required
device_kind
string
required
Allowed value: "headless"
lifecycle
enum<string>
required
Available options:
persistent,
ephemeral
device_expires_at
string
required