Create a DID
Create a Decentralized Identifier (DID) with the did:cheqd DID method using cheqd Studio.
In cheqd Studio, you can easily create and publish a did:cheqd
DID to the cheqd testnet or mainnet, anchoring it on-ledger with associated public keys and metadata. This DID can then be used to:
Sign and issue verifiable credentials as an 'issuer'.
Establish a trusted identity on cheqd for entities like organisations, digital products or AI Agents.
Serve as the parent identifier for DID-Linked Resources (e.g. status lists, trust registries).
This tutorial walks through the process of creating an Issuer DID using cheqd Studio's API or interface, including how to configure your keys, DID Document, and optional service endpoints.
đ Once registered, the DID becomes publicly resolvable and forms the cryptographic foundation of your identity as an issuer in decentralized ecosystems.
Step 1: Set up your account
Make sure you have set up your account with cheqd Studio and have generated an API key to authenticate with our APIs, using our guides below:
Set Up Your Account
Set up your account with cheqd Studio and get your API key to start using the APIs.
Create API Keys
Create one or more API keys used to authenticate with the cheqd Studio APIs.
Step 2: Create a DID and associated DID Document
Using the /did/create
API, users have two options for creating a did:cheqd
DID and associated DID Document on-ledger:
Filling out a simple form using the
application/x-www-url-form-encoded
orapplication/json
option within an API client of your choice.Compiling a full DID Document body yourself using the
application/json
option, using already created identity keys, within an API client of your choice.
Option 1. Choose from a few variables and we will compile the DID for you
This is the easiest way to create DIDs on cheqd and is recommended for users who are not overly familiar with compiling DID Documents.
Using application/x-www-url-form-encoded
Using the application/x-www-url-form-encoded
option, users are able to choose between the following variables to compile your DID:
From this request, cheqd Studio will automatically create and publish a DID and associated DID Document to the ledger and return it as a response.
Using application/json
Alternatively, you can use the application/json
option and pass only a few specific inputs, for example:
Or, if you have created a keypair already that you want to use, you can reference the created key ID, kid
, in the request:
Using the application/json
option, users are able to choose between the following variables to compile your DID:
Option 2. Publish a fully compiled DID Document body yourself
Instead of generating a DID Document using simple parameters, you can create a fully formatted DID Document yourself. Before, submitting a manually created DID, you will need to have created a set of identity keys to input the key material into the DID document.
Step 1: Create a new keypair
Use the /key/create
API to generate a new keypair within the Credential Service key management store. Copy the publicKeyHex
.
Step 2 (option 1): Utilise the DID Document template helper
To simplify this process of formatting a DID Document using your own keys, we've created a Helper Tool in our DID Registrar here. Simply paste in your publicKeyHex
and choose the variables to compile your DID Document template.
Step 3: Paste the response
Within the /did/create
JSON payload, paste the response of your DID Document template, with your own signing keys.
Request format:
Step 2 (option 2) Use application/json options
Alternatively, you can use the application/json
request format below.
You can use the kid
created from Step 1 within the options section, and then compile the remainder of tour DID Document.
Step 3: Hit execute on the API
Hit execute on the API below to create your did:cheqd
DID and associated DID Document.
List DIDs associated with your account
After creating a DID or multiple DIDs, users can list all the created DIDs associated with their account. Using the /did/list
API.
This endpoint returns the list of DIDs controlled by the account.
Alternatives
Below are a list of alternatives for creating cheqd DIDs.
Last updated
Was this helpful?