Rotate your developer key as the agent
Same as the owner route, authenticated by an RFC 9421 signed request with the **current** key. The body proves possession of the **new** key. Publishes `#dev-N+1` as a new did:webvh version, retires `#dev-N` and re-issues the Agent Passport.
Same as the owner route, authenticated by an RFC 9421 signed request with the current key.
The body proves possession of the new key. Publishes #dev-N+1 as a new did:webvh version,
retires #dev-N and re-issues the Agent Passport.
agentSignatureAuthorizationSignature <token>AIOAY-5477 Stufe 3 — RFC 9421 HTTP Message Signature, AY profile, tag ay-agent,
keyid = <agent-did>#dev-N (developer-held Ed25519 key from the DID document).
Headers: Signature-Input, Signature, Content-Digest.
application/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/me/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 agent POST
Same as the owner route, but authenticated by the agent itself. Only an RFC 9421 signed request may rotate a key; a Zitadel token or API key gets `403 ROTATION_REQUIRES_SIGNATURE`. The challenge is valid 10 minutes and must be signed with the **new** key.
Get an agent GET
Full profile of one of your agents, including guardrails, key custody, attestation state and today's spending. A foreign agent is indistinguishable from a missing one (`404`).