Rotate the developer key as the owner
Proves possession of the new key (signature over the challenge bytes), publishes `#dev-N+1` as a new did:webvh version and retires `#dev-N`; `#key-1` and the services stay. Re-issues the Agent Passport with the new `dev_key`. The old key is rejected on every route from now on.
Proves possession of the new key (signature over the challenge bytes), publishes #dev-N+1 as a
new did:webvh version and retires #dev-N; #key-1 and the services stay. Re-issues the Agent
Passport with the new dev_key. The old key is rejected on every route from now on.
BearerAuthAuthorizationBearer <JWT>Owner token: the OIDC id_token of the signed-in user (Zitadel). Owners manage agents with it;
agents never use it. Add X-Act-As: <business id> to act for a business you are a member of.
id*stringAgent id.
uuidX-Act-As?stringAct on behalf of a business account you are a member of (owner, or a role with agent access). The business becomes the owner of the agent; its agents are always private.
uuidapplication/json- body
public_key_multibase*stringThe new Ed25519 public key (W3C Multikey, z6Mk…). Must differ from the current key.
^z[1-9A-HJ-NP-Za-km-z]{40,60}$challenge*string^[A-Za-z0-9_-]{40,50}$signature*stringbase64url Ed25519 signature of the NEW key over the challenge bytes.
^[A-Za-z0-9_-]{80,90}$Envelope-wrapped: { "success": true, "data": <KeyRotated> }.
application/json- response
id*stringuuiddid*stringdev_key*stringprevious_dev_key*stringversion_id?stringdid:webvh version that published the new key.
passport_vc*stringRe-issued Agent Passport (vc+jwt).
curl -X POST 'https://api.aytwin.ai/api/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/keys/rotate' \ -H 'Content-Type: application/json' \ -d '{ "public_key_multibase": "string", "challenge": "string", "signature": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "did": "string", "dev_key": "string", "previous_dev_key": "string", "version_id": "string", "passport_vc": "string"}Request a key-rotation challenge as the owner POST
Only for `key_custody: developer` agents that are active. The challenge is valid 10 minutes and must be signed with the **new** key.
Rotate the Zitadel credential POST
Platform custody only. Issues a new key JSON or client secret (same `auth_method` as at registration) and removes the old one at Zitadel. Tokens already issued stay valid until they expire. The new credential is returned exactly once.