Create a DID
PUT/:ssiId/ssi/v1/dids/quarkid
Endpoint Description
This endpoint accepts four optional parameters. It is recommended to specify at least one to describe the transport layer service associated with the DID being created.
A DID without a defined transport layer cannot receive messages directly, although it can send messages to other DIDs via their transport layers. This specification is crucial for Issuers who want to establish the transport layer when generating verifiable credentials. This way, when someone requests a credential, they do so using the transport layer established by the issuer.
WebSocket and DWN Channel
Additionally, the API provides a WebSocket channel and a DWN channel, which can be used to create the DID and connect with other DIDs.
The WebSocket channel is available at: "https://sandbox-ssi-ws.extrimian.com"
The DWN channel is available at: "https://dwn.extrimian.com"
Webhook URL
Specifies the webhook URL where the API will send notifications when important events occur. A webhook is a mechanism that allows one application to automatically notify another when something relevant happens, such as issuing a new credential or verifying it. If this parameter is provided, the API will send events related to the newly created DID to the specified URL.
While this field is optional, it will be necessary, especially to obtain the result of a verification flow.
DID Method
Defines the DID method to use for creating the new DID. A DID (Decentralized Identifier) can be created using different methods, which define how the DID is resolved and what features it has. If you wish to use our custom method, you must specify "did:quarkid" as the value for this parameter.
Request
Path Parameters
Query Parameters
Websocket URL
DWN service URL
Business Logic URL
- application/json
Body
required
WebSocket service configured for this DID
DWN service configured for this DID
Webhook URL for DID communication events
Business Logic Endpoint to DID verification
DID method used for DID creation
Responses
- 200
Returns created DID
- application/json
- Schema
- Example (from schema)
Schema
Created DID
{
"did": "did:quarkid:zksync:EiCY48D6bMjczREIOGty-URlqhd1P7EWVEstch-uFTT7uw"
}