Identity API
Enrollment, the identity material offline verifiers bootstrap from, and revocation. Identity is never authorization: an enrolled agent still needs a grant for every hop.
| Route | Bearer |
|---|---|
POST /v1/agents/{agent_id}/enroll, .../enroll/complete | Enroller (AGENTIC_AUTH_ENROLL_TOKEN) or admin |
GET /v1/agents/{agent_id}/identity, GET /v1/identity/agents/{agent_name}, GET /v1/identity/revocations | Identity reader (AGENTIC_AUTH_AUDIT_READ_TOKEN) or admin |
POST /v1/agents/{agent_id}/revoke | Admin |
An empty token setting disables that token. It never accepts an empty bearer.
POST /v1/agents/{agent_id}/enroll
Presents the agent's identity document and returns a challenge to sign.
Request body (EnrollBegin): {"identity_doc": {...}}, the document
AgentKey.identity_document() or agentic-auth identity identity-document
builds. It carries the agent's public JWKS and, optionally, the owner's ID token as the
principal assertion.
Response: 201
{"challenge_id": "...", "nonce": "...", "expires_at": "2026-11-01T10:02:00Z"}
The challenge expires after AGENTIC_AUTH_ENROLL_CHALLENGE_TTL_SECONDS (default 120).
POST /v1/agents/{agent_id}/enroll/complete
Returns the signed challenge, which proves the agent holds the private key.
Request body (EnrollComplete):
{"challenge_id": "...", "signed_response": "<compact JWS, at most 8192 characters>"}
Response: 200 (EnrollOutcome)
status | Meaning |
|---|---|
enrolled | Proof of possession verified and the agent is bound to a person. A trust anchor is pinned: trust_anchor_version and principal_ref are set. |
quarantined | The key is proven, but no accountable person could be bound. reason says why, for example PRINCIPAL_IDP_NOT_CONFIGURED when no human IdP is configured, or PRINCIPAL_UNBINDABLE when the ID token doesn't name this agent or doesn't verify. The agent is identified and authorized for nothing. |
A 200 never means authorized. Authority comes only from the hop token issued for each call.
GET /v1/agents/{agent_id}/identity
GET /v1/identity/agents/{agent_name}
The agent's current identity material. Both return the same body. A resource server knows the
agents it expects by name and holds only an identity-reader token, which can't list agents, so
it uses the by-name route. 404 if the agent doesn't exist.
Response: 200 (AgentIdentityRead)
{
"agent": "balance-agent",
"status": "enrolled",
"jwks": {"keys": [{"kty": "OKP", "crv": "Ed25519", "x": "...", "kid": "..."}]},
"trust_anchor_version": 1,
"manifest_version": 1,
"principal_ref": "user:alice",
"revoked": false,
"revoked_at": null,
"as_of": "2026-11-01T10:00:00Z"
}
status is one of registered, enrolled, quarantined or revoked.
GET /v1/identity/revocations
Revoked agents, so a verifier can refresh its view without re-reading every agent.
Query params: since (RFC 3339, must include a timezone), limit, cursor
Response: 200 (RevocationListRead): {"items": [...], "page": {...}, "as_of": "..."}.
A since without a timezone, or a malformed cursor, is a 422.
POST /v1/agents/{agent_id}/revoke
Revokes the agent's trust anchor. Idempotent.
Request body (optional): {"reason": "key compromised"}
Response: 200
{"status": "revoked", "revoked_at": "2026-11-01T10:05:00Z", "trust_anchor_version": 1}
The control plane checks revocation at the next authorize and exchange, so the next hop by or
through the agent is denied with AGENT_REVOKED. Offline verifiers pick it up within their
freshness window (AGENTIC_AUTH_REVOCATION_FRESHNESS_SECONDS, default 30).
Related
- Enroll and verify agent identity
- CLI: identity
- Verifier library: the offline consumer of these routes