Appearance
Authorization
All requests to the API must be authenticated with an API key. You can view your API key in your account dashboard.
To authenticate API calls, include an Authorization
HTTP header with your API key in every request:
bash
Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0
1
Universal Resolver Examples
See Universal Resolver for more information and examples about the Universal Resolver component of Godiddy.
Resolve a DID (full DID resolution result)
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X GET "https://api.godiddy.com/1.0.0/universal-resolver/identifiers/did:key:z6Mkto1GQWLnh2XKCA1JPrxjL4DrKvBPdf5N17ueNs3NJWGu"
1
2
2
Resolve a DID (only DID document)
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-H "Accept: application/did+ld+json" \
-X GET "https://api.godiddy.com/1.0.0/universal-resolver/identifiers/did:key:z6Mkto1GQWLnh2XKCA1JPrxjL4DrKvBPdf5N17ueNs3NJWGu"
1
2
3
2
3
Universal Registrar Examples
See Universal Registrar for more information and examples about the Universal Resolver component of Godiddy.
Create a DID (did:key)
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X POST "https://api.godiddy.com/1.0.0/universal-registrar/create?method=key" \
-H "Content-Type: application/json" \
-d '{ "didDocument": { }, "options": {}, "secret": {}}'
1
2
3
4
2
3
4
Create a DID (did:indy)
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X POST "https://api.godiddy.com/1.0.0/universal-registrar/create?method=indy" \
-H "Content-Type: application/json" \
-d '{ "didDocument": { "@context": ["https//www.w3.org/ns/did/v1"], "service": [] }, "options": { "network": "danube" }, "secret": {}}'
1
2
3
4
2
3
4
Wallet Service Examples
See Wallet Service for more information and examples about the Wallet Service component of Godiddy.
Get DIDs from wallet
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X GET "https://api.godiddy.com/1.0.0/wallet-service/controllers" \
-H "Accept: application/json"
1
2
3
2
3
Get keys from the wallet
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X GET "https://api.godiddy.com/1.0.0/wallet-service/keys" \
-H "Accept: application/json"
1
2
3
2
3
Version Service Examples
See Version Service for more information and examples about the Version Service component of Godiddy.
Get the latest DID in a DID method
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X GET "https://api.godiddy.com/1.0.0/version-service/didrecords?method=indy&limit=5" \
-H "Accept: application/json"
1
2
3
2
3
Resolve a DID at a specific point in time
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X GET "https://api.godiddy.com/1.0.0/version-service/didrecords?did=did:indy:idunion:test:BDrEcHc8Tb4Lb2VyQZWEDE&versionTime=1602854361000" \
-H "Accept: application/json"
1
2
3
2
3