AY Developer docs
ApiIdentity

Resolve a did:webvh DID

Returns the DID document plus the independently verified history. Own DIDs are read from the database, foreign did:webvh DIDs are fetched over HTTPS (`did.json` + `did.jsonl`). The history is re-resolved with didwebvh-ts (SCID, hash chain, proofs), so `log.verified` is the resolver's own verdict, not the host's claim. `credentials` lists the credentials published at this DID (today: the BusinessVerificationCredential of a business twin). Public, rate-limited, `Cache-Control: public, max-age=60` with `ETag`. Never returns key material beyond the public document.

GET
/identity/resolve

Returns the DID document plus the independently verified history. Own DIDs are read from the database, foreign did:webvh DIDs are fetched over HTTPS (did.json + did.jsonl). The history is re-resolved with didwebvh-ts (SCID, hash chain, proofs), so log.verified is the resolver's own verdict, not the host's claim. credentials lists the credentials published at this DID (today: the BusinessVerificationCredential of a business twin).

Public, rate-limited, Cache-Control: public, max-age=60 with ETag. Never returns key material beyond the public document.

Query Parameters

did*string
Match^did:webvh:
Lengthlength <= 512

Response Body

Resolved. Envelope-wrapped: { "success": true, "data": <IdentityResolveResult> }.

application/json
  1. response
did*string
method*"webvh"
Value in"webvh"
document*

The W3C DID document as served by the host.

source*string
Value in"db""http"
signerType*string
Value in"twins""agents""machines""users""platform""unknown"
deactivated*boolean
documentUrl*string
Formaturi
logUrl*string
Formaturi
log*
resolvedAt*string
Formatdate-time
credentials?array<>

Credentials published at this DID (the BusinessVerificationCredential of a business twin, the current TwinMandateCredential of a person twin). Verify each with POST /identity/credentials/verify.

Example Request
curl -X GET 'https://api.aytwin.ai/api/v1/identity/resolve?did=did%3Awebvh%3AQmaedXifXFJ6Jk3LNz7GLjWjXsEWn3QUJL4S1zSDMxprYD%3Aapi-qa.aytwin.ai%3Atwins%3Aac220112-5d26-4548-8cb7-42b163403c4f'
Example Response
{  "did": "string",  "method": "webvh",  "document": {},  "source": "db",  "signerType": "twins",  "deactivated": true,  "documentUrl": "http://example.com",  "logUrl": "http://example.com",  "log": {    "verified": true,    "error": "string",    "scid": "string",    "latestVersionId": "string",    "entries": [      {        "versionId": "string",        "versionNumber": 0,        "versionTime": "2019-08-24T14:15:22Z",        "updateKeys": [          "string"        ],        "verificationMethods": 0,        "services": 0,        "addedKeys": [          "string"        ],        "removedKeys": [          "string"        ]      }    ]  },  "resolvedAt": "2019-08-24T14:15:22Z",  "credentials": [    {      "type": "string",      "jwt": "string",      "status_list_index": 0    }  ]}