> For the complete documentation index, see [llms.txt](https://docs.toolkit.equs.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toolkit.equs.ai/api/web-wallet-api/holder-did.md).

# Holder DID

## Fetch holder did:web

> Fetches the user did:web and doc

```json
{"openapi":"3.0.0","info":{"title":"EqusDTK Web Custodial Wallet Documentation","version":"0.1.2"},"tags":[{"name":"Holder DID","description":""}],"security":[{"user":[]}],"components":{"securitySchemes":{"user":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Holder user. `users` realm token with `principal_type=user`. Authorize one bearer scheme at a time."}}},"paths":{"/api/v1/did/web":{"get":{"description":"Fetches the user did:web and doc","operationId":"DidController_get_api/v1","parameters":[],"responses":{"200":{"description":"did:web fetched successfully"},"404":{"description":"did:web was not found"}},"summary":"Fetch holder did:web","tags":["Holder DID"]}}}}
```

## Generate holder did:web

> Creates a key and its corresponding did:web

```json
{"openapi":"3.0.0","info":{"title":"EqusDTK Web Custodial Wallet Documentation","version":"0.1.2"},"tags":[{"name":"Holder DID","description":""}],"security":[{"user":[]}],"components":{"securitySchemes":{"user":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Holder user. `users` realm token with `principal_type=user`. Authorize one bearer scheme at a time."}}},"paths":{"/api/v1/did/web":{"post":{"description":"Creates a key and its corresponding did:web","operationId":"DidController_generateDidWeb_api/v1","parameters":[],"responses":{"200":{"description":"did:web identity initialized successfully"},"409":{"description":"did:web already exists"}},"summary":"Generate holder did:web","tags":["Holder DID"]}}}}
```

## Update holder did:web with keyAgreement

> Adds a keyAgreement verification method to the holder did:web. The returned doc must be re-published via PUT /hld/dids for the key to be resolvable.

```json
{"openapi":"3.0.0","info":{"title":"EqusDTK Web Custodial Wallet Documentation","version":"0.1.2"},"tags":[{"name":"Holder DID","description":""}],"security":[{"user":[]}],"components":{"securitySchemes":{"user":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Holder user. `users` realm token with `principal_type=user`. Authorize one bearer scheme at a time."}}},"paths":{"/api/v1/did/web":{"put":{"description":"Adds a keyAgreement verification method to the holder did:web. The returned doc must be re-published via PUT /hld/dids for the key to be resolvable.","operationId":"DidController_update_api/v1","parameters":[],"responses":{"200":{"description":"did:web updated with keyAgreement successfully"},"404":{"description":"did:web was not found"}},"summary":"Update holder did:web with keyAgreement","tags":["Holder DID"]}}}}
```

## Fetch a holder did:web (Service Provider / Tenant)

> Fetches the holder did:web and doc for Service Provider or Tenant with holderId provided

```json
{"openapi":"3.0.0","info":{"title":"EqusDTK Web Custodial Wallet Documentation","version":"0.1.2"},"tags":[{"name":"Holder DID","description":""}],"security":[{"sp":[]},{"tenant":[]},{"sp":[]}],"components":{"securitySchemes":{"sp":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Service Provider. Token of the Service Provider client in the `agents` realm, with no `tenantId` claim. Authorize one bearer scheme at a time."},"tenant":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Tenant. Token of a Tenant machine client or of a Tenant portal user, carrying the `tenantId` claim. Authorize one bearer scheme at a time."}}},"paths":{"/api/v1/did/web/{holderId}":{"get":{"description":"Fetches the holder did:web and doc for Service Provider or Tenant with holderId provided","operationId":"DidController_getForHolder_api/v1","parameters":[{"name":"holderId","required":true,"in":"path","description":"Holder unique ID","schema":{"type":"string"}}],"responses":{"200":{"description":"did:web fetched successfully"},"404":{"description":"did:web was not found"}},"summary":"Fetch a holder did:web (Service Provider / Tenant)","tags":["Holder DID"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.toolkit.equs.ai/api/web-wallet-api/holder-did.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
