Skip to main content

DID Method (did:web)

Anima assigns every agent a globally unique decentralized identifier (DID) using the standard did:web method — a W3C-registered method that resolves over plain HTTPS, with no bespoke method support required.

DID Format

For example: did:web:agents.useanima.sh:cmb1x9k2l0000abcd:cmb1xa3f50001abcd

Resolution

Every agent’s DID document is world-readable — no API key required — at:
The document is served with the application/did+json media type, a 60-second public cache, and open CORS, so agents in other orgs (and third-party tooling) can fetch and verify it. The spec-canonical did:web HTTPS mapping (https://agents.useanima.sh/<orgId>/<agentId>/did.json) is not yet routed — until it is, fetch the document from the API host above.

Example DID Document

The agent’s Ed25519 key signs A2A requests; receivers verify the signature against the public key in this document.

API Reference

DIDs are created automatically when an agent is provisioned — there is no separate “create DID” call.

Get an agent’s DID document

Returns the same DID document served at the public resolution URL. Readable org-wide with an agent or master key (public discovery works via the did.json URL above without any key).

Rotate keys

Generates a new keypair for the agent and republishes the DID document. Master key required. Signatures made with the old key stop verifying once the document no longer lists it — coordinate rotation with any party that pinned the old key.

Next Steps