Skip to main content
An identity is a named persona an agent acts as. Fourteen methods: five on the persona itself, three on the agent↔identity grant, and six reads of the endpoints a persona owns. API detail: Identities. Wherever a parameter is called ref, it takes an idn_ id or the persona’s name — the API resolves both.

The persona

  • createPOST /v1/identities. IdentityCreate is { name, description?, metadata? }. A persona is created empty; its endpoints are minted through their own routes.
  • listGET /v1/identities, cursor-paginated.
  • getGET /v1/identities/{ref}.
  • updatePATCH /v1/identities/{ref}. IdentityPatch is every create field optional. The denormalised emails/phones/domains/connections arrays are read-only here.
  • deleteDELETE /v1/identities/{ref}. Check agents first.

The grant

The agent↔identity edge hangs off the agent — it answers which personas that agent may act as.
  • attachPOST /v1/agents/{id}/identities. Idempotent: re-attaching answers attached: true, created: false, so a provisioning script can re-run safely.
  • detachDELETE /v1/agents/{id}/identities/{identity_id}. The identity itself is untouched; running sessions are not interrupted.
  • heldGET /v1/agents/{id}/identities: which personas may this agent wear.

agents

GET /v1/identities/{ref}/agents — who may wear this persona. The reverse direction of the same edge, and the read to do before deleting an identity.

Endpoint reads

The addressable objects behind the persona’s denormalised arrays — what a screen needs to show status or delete a row:
  • inboxesGET /v1/identities/{ref}/emails.
  • deleteInboxDELETE /v1/identities/{ref}/emails/{inbox_id}.
  • phonesGET /v1/identities/{ref}/phones.
  • releasePhoneDELETE /v1/identities/{ref}/phones/{phone_id}. Irreversible at the carrier: the number goes back to the pool and cannot be reclaimed.
  • messagesGET /v1/identities/{ref}/messages: everything that arrived for this persona, both channels unless channel names one.
Creating and sending on those endpoints lives in emails and phones; these are the identity-side reads.