An identity is a named persona an agent acts as, governed by the policy layer.
The identity object
Create an identity
POST /v1/identities
name is unique among your live identities, ignoring case. A second identity with the same name is refused 409 name_conflict on name; deleting an identity frees its name.
A persona is created empty. Its emails, phones, domains and connections are reads of sub-resources minted through their own routes — inboxes, numbers and connections — and sending either list here is refused with validation_failed.
List, retrieve, delete
state_conflict (409), naming them, until each is released with DELETE /v1/identities/{id}/phones/{phone_id}.
Update an identity
PATCH /v1/identities/{id}
All fields are optional; omitted fields are left unchanged. The read-only lists — emails, phones, domains, connections — cannot be patched here; manage them through their own routes.
Binding identities to agents
The grant is a many-to-many edge, and it hangs off the agent — the question it answers is which personas that agent may act as. Four routes, read from either side.Attach an identity
POST /v1/agents/{id}/identities — scope agents:write
Returns the grant, echoed back. It is idempotent: attaching a persona that is already attached succeeds with attached: true and created: false, so a re-run of a provisioning script is safe.
not_found (404) for an unknown agent or identity; forbidden (403) without agents:write.
Detach an identity
DELETE /v1/agents/{id}/identities/{identity_id} — scope agents:write
Removes the grant. The identity itself is untouched and stays available to any other agent that holds it. Sessions already running under the persona are not interrupted; the next session cannot select it. Detaching an identity the agent does not hold answers 404 not_found.
List an agent’s identities
GET /v1/agents/{id}/identities — scope agents:read. A paginated list of full identity objects — which personas may this agent wear.
List an identity’s agents
GET /v1/identities/{id}/agents — scope agents:read. A paginated list of agent references — who may wear this persona. The reverse direction of the same edge, and the one to check before deleting an identity.
Sub-resources
Next: vaults
Write-only credentials injected at the network boundary.