DID Ownership & Delegation

Create and manage DIDs for other subjects.

As a controller, register DID for a subject

POST https://api.borlaug.network/identity/controller/dids

Create DID as a controller for a subject. If public_key is not provided, a new wallet is created for the subject which can be claimed by the subject at a later time. If catalogid is provided, DID is registered and added to this catalog owned by the controller with the given short_name. Ifproperties array is given, DID is registered with those properties.

Headers

Name
Type
Description

Content-Type

string

application/json

Authorization

string

BWS authorization token

Request Body

Name
Type
Description

public_key

string

Subject public key

catalogid

number

Add this DID in a catalog

short_name

string

A name for this DID when adding to a catalog

properties

array

Array of DI properties

{    "name": "Cake's name",    "recipe": "Cake's recipe name",    "cake": "Binary cake"}
{	
  "catalogid":"2",
  "short_name":"Alice",
  "public_key":"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
	"properties": [
    {
      "name": "Name",
      "private": true,
      "type": "String", 
      "value": "Atanu Roy"
    }
  ]
}

List all DIDs for which the caller is the controller

GET https://api.borlaug.network/identity/controller/dids

Retrieve all DIDs controlled by this caller.

Query Parameters

Name
Type
Description

per_page

number

Number of items per page

page

number

For pagination

Headers

Name
Type
Description

Authorization

string

BWS authorization token

Last updated

Was this helpful?