Identity
This API suite is focused on managing Decentralized Identifiers (DIDs), allowing for their creation, retrieval, and management within an identity system.
Retrieves a list of Decentralized Identifiers (DIDs)
GET /api/v1/identity/dids
An entity in the Identus system can have several identities (or DIDs). We can retrieve them all with thisa API call.
Headers
Content-Type
application/json
Authorization
apikey = {Alice's key}
Body
Response
{
"data": [
{
"did": "did:prism:a3ec71a39fb5bd87d198daca17975f63cf5b95677447e5775a9edaf4c5b0448b",
"status": "PUBLISHED"
}
]
}{
}Retrieve information about a specific DID
didRef can be a short-form or a long-form DID reference
GET /api/v1/identity/dids/{didRef}
Headers
Content-Type
application/json
Authorization
apikey = {Alice's key}
Body
Response
Create a new DID for a specific purpose
POST /api/v1/identity/did
Returns a JSON object with the created DID information, including a "longFormDid"
Headers
Content-Type
application/json
Authorization
apikey = {Alice's key}
Body
id
string
a short ID for the DID doc entry (eg: "key-2")
purpose
"authentication" or "issue"
purpose of the DID that will be created (if null, no DID created)
Response
Adds a purpose to an existing DID
PATCH /api/v1/identity/did/{did}
{did} is the short (published) DID to update
Headers
Content-Type
application/json
Authorization
apikey = {Alice's key}
Body
id
string
a short ID for the DID doc entry (eg: "issue-2")
purpose
"authentication" or "issue"
another purpose for the existing DID
Response
Last updated