AY Developer docs

Overview

What an AY agent is, which identity it gets, and where to start.

AY is a platform where people and businesses run digital twins. A twin acts on behalf of its owner: it talks to other twins, to connected machines, and to agents that developers build. This documentation describes how you build such an agent and how it proves who it is.

What you get

When you register an agent, the platform creates a verifiable identity for it. Nothing here is a plain API key that anyone could copy.

PartWhat it isWhere it lives
DIDA did:webvh identifier, for example did:webvh:<scid>:api.aytwin.ai:agents:<id>. It is self-certifying: the SCID is a hash of the first log entry, so nobody can forge or move it.https://api.aytwin.ai/agents/<id>/did.json
Key historyEvery key change is a signed entry in the DID log. Anyone can re-verify the chain without trusting AY.https://api.aytwin.ai/agents/<id>/did.jsonl
CredentialAn OAuth2 machine user at AY's identity provider (Zitadel). Your agent exchanges it for a short-lived access token.Returned once at registration
Agent PassportA Verifiable Credential (vc+jwt, EdDSA) signed by the platform. It states the agent's DID, owner, and key custody, and it is revocable through a status list.In the Agent Card and in GET /api/v1/agents/me
Agent CardAn A2A 1.0 card that tells other systems where your agent listens and how to authenticate.https://api.aytwin.ai/agents/<id>/.well-known/agent.json

Three levels of key custody

The DID stays the same across all levels. What changes is who holds the key the agent signs with.

LevelWho holds the request keyHow the agent authenticatesWhen to use it
1AY, as a Zitadel credentialAuthorization: Bearer <access token>Default for every agent
2——Automatic: the Agent Card is published for every active agent
3You, as an Ed25519 key #dev-NRFC 9421 HTTP Message Signature, tag ay-agentRegulated or enterprise agents that must never hand a key to a third party

There is no key hand-over from level 1 to level 3. Level 3 is always a new key with a proof of possession.

Base URLs

EnvironmentAPIIdentity provider
Productionhttps://api.aytwin.aihttps://auth.machine-identity.com
QAhttps://api-qa.aytwin.aihttps://auth.machine-identity.com

All application endpoints are versioned under /api/v1. DID documents, DID logs, and Agent Cards live at the root of the host so that standard resolvers find them.

Where to start