---
title: "Create one administrator-authorized scoped principal"
method: POST
path: "/v0/agents"
---

# Create one administrator-authorized scoped principal

`POST /v0/agents`

## Request

- Base URL: `https://exactlane.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://exactlane.dev/v0/agents`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string, required

## Request body

- AgentCreate
  - `display_label` string, required
  - `operator_group_ref` string, nullable: Admin-assigned opaque grouping
  - `scopes` string[]
  - `traffic_class` 'CONTROLLED' | 'EXTERNAL_REVIEWED' | 'UNKNOWN'

## Response `201`

Credential returned once or on exact replay

- AgentCreateResponse
  - `agent` Principal, required
    - `access_kind` 'bootstrap' | 'public_preview', required
    - `created_at` string, date-time, required
    - `display_label` string, required
    - `expires_at` string, date-time, nullable, required
    - `id` string, required
    - `operator_group_ref` string, nullable
    - `revoked_at` string, date-time, nullable, required
    - `scopes` string[], required
    - `traffic_class` 'CONTROLLED' | 'EXTERNAL_REVIEWED' | 'UNKNOWN', required
  - `credential` BearerCredential, required
    - `token` string, required: Returned in this response; only a digest is stored
    - `type` 'Bearer', required

## Other responses

- `400`: Malformed request or idempotency key
- `401`: Missing or invalid credential
- `403`: Insufficient scope or disabled live mode
- `404`: Resource absent or not owned
- `409`: Idempotency or unique-event conflict
- `411`: Content-Length is required
- `413`: Request exceeds a hard bound
- `415`: Media type or content encoding is unsupported
- `422`: Request shape or fixed profile is unsupported
- `429`: Principal quota exceeded
- `500`: Bounded internal failure

---

[API](https://skmtc.dev/exactlane/apis/exactlane-preflight-phase-0a.md) · [All operations](https://skmtc.dev/exactlane/apis/exactlane-preflight-phase-0a/llms.txt) · [OpenAPI document](https://skmtc.dev/exactlane/apis/exactlane-preflight-phase-0a/revisions/544a503598aa?raw)
