Creating a Trust Registry

Create Trust Registry

Creates a new trust registry. You must be on enterprise plan to do this.

POSThttps://api-testnet.dock.io/trust-registries
Body

A trust registry create body

convener*DID (string)

DID as fully qualified, typically. did:dock:

Example: "did:dock:xyz"
name*string

Trust registry name

Example: "Dock Example Ecosystem"
description*string

Trust registry description

Example: "Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure."
logoUrl*string (uri)
Example: "https://logo.dock.io/trust-registry"
ecosystemUrl*string (uri)
Example: "https://ecosystem.dock.io"
governanceFramework*string

Trust registry governance framework

Example: "Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit."
governanceFrameworkVersion*string

Trust registry governance framework version

Example: "1.0.0"
Response

Trust registry has been created

Body
id*string

Trust registry ID

Example: "0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d"
convener*DID (string)

DID as fully qualified, typically. did:dock:

Example: "did:dock:xyz"
convenerNamestring

Convener name

Example: "Dock"
convenerLogoUrlstring

Convener logo URL

Example: "https://logo.dock.io/convener"
slugstring

Trust registry slug

Example: "dock-example-ecosystem-1"
noncestring

Trust registry nonce

Example: "0x57aecb3863404812"
created*string (date-time)
name*string

Trust registry name

Example: "Dock Example Ecosystem"
description*string

Trust registry description

Example: "Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure."
logoUrl*string (uri)

Trust registry logo URL

Example: "https://logo.dock.io/trust-registry"
ecosystemUrl*string (uri)

Trust registry ecosystem URL

Example: "https://ecosystem.dock.io"
governanceFramework*string

Trust registry governance framework

Example: "Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit."
governanceFrameworkVersion*string

Trust registry governance framework version

Example: "1.0.0"
issuerCountinteger

Trust registry issuer count

Example: 10
verifierCountinteger

Trust registry verifier count

Example: 5
Request
const response = await fetch('https://api-testnet.dock.io/trust-registries', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "convener": "did:dock:xyz",
      "name": "Dock Example Ecosystem",
      "description": "Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure.",
      "logoUrl": "https://logo.dock.io/trust-registry",
      "ecosystemUrl": "https://ecosystem.dock.io",
      "governanceFramework": "Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit.",
      "governanceFrameworkVersion": "1.0.0"
    }),
});
const data = await response.json();
Response
{
  "id": "0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d",
  "convener": "did:dock:xyz",
  "convenerName": "Dock",
  "convenerLogoUrl": "https://logo.dock.io/convener",
  "slug": "dock-example-ecosystem-1",
  "nonce": "0x57aecb3863404812",
  "created": "2024-09-08T20:31:53.102Z",
  "name": "Dock Example Ecosystem",
  "description": "Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure.",
  "logoUrl": "https://logo.dock.io/trust-registry",
  "ecosystemUrl": "https://ecosystem.dock.io",
  "governanceFramework": "Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit.",
  "governanceFrameworkVersion": "1.0.0",
  "issuerCount": 10,
  "verifierCount": 5
}

List Trust Registries

Get all trust registries owned by the user

GEThttps://api-testnet.dock.io/trust-registries
Query parameters
Response

All trust registries

Body
id*string

Trust registry ID

Example: "0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d"
convener*DID (string)

DID as fully qualified, typically. did:dock:

Example: "did:dock:xyz"
convenerNamestring

Convener name

Example: "Dock"
convenerLogoUrlstring

Convener logo URL

Example: "https://logo.dock.io/convener"
slugstring

Trust registry slug

Example: "dock-example-ecosystem-1"
noncestring

Trust registry nonce

Example: "0x57aecb3863404812"
created*string (date-time)
name*string

Trust registry name

Example: "Dock Example Ecosystem"
description*string

Trust registry description

Example: "Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure."
logoUrl*string (uri)

Trust registry logo URL

Example: "https://logo.dock.io/trust-registry"
ecosystemUrl*string (uri)

Trust registry ecosystem URL

Example: "https://ecosystem.dock.io"
governanceFramework*string

Trust registry governance framework

Example: "Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit."
governanceFrameworkVersion*string

Trust registry governance framework version

Example: "1.0.0"
issuerCountinteger

Trust registry issuer count

Example: 10
verifierCountinteger

Trust registry verifier count

Example: 5
Request
const response = await fetch('https://api-testnet.dock.io/trust-registries', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "id": "0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d",
    "convener": "did:dock:xyz",
    "convenerName": "Dock",
    "convenerLogoUrl": "https://logo.dock.io/convener",
    "slug": "dock-example-ecosystem-1",
    "nonce": "0x57aecb3863404812",
    "created": "2024-09-08T20:31:53.102Z",
    "name": "Dock Example Ecosystem",
    "description": "Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure.",
    "logoUrl": "https://logo.dock.io/trust-registry",
    "ecosystemUrl": "https://ecosystem.dock.io",
    "governanceFramework": "Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit.",
    "governanceFrameworkVersion": "1.0.0",
    "issuerCount": 10,
    "verifierCount": 5
  }
]

Get public informations about a trust registry

GEThttps://api-testnet.dock.io/trust-registries/{registryId}/public
Path parameters
registryId*string

A trust registry id

Response

Public info of trust registry

Body
id*string

Trust registry ID

Example: "0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d"
convener*DID (string)

DID as fully qualified, typically. did:dock:

Example: "did:dock:xyz"
convenerNamestring

Convener name

Example: "Dock"
convenerLogoUrlstring

Convener logo URL

Example: "https://logo.dock.io/convener"
slugstring

Trust registry slug

Example: "dock-example-ecosystem-1"
noncestring

Trust registry nonce

Example: "0x57aecb3863404812"
created*string (date-time)
name*string

Trust registry name

Example: "Dock Example Ecosystem"
description*string

Trust registry description

Example: "Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure."
logoUrl*string (uri)

Trust registry logo URL

Example: "https://logo.dock.io/trust-registry"
ecosystemUrl*string (uri)

Trust registry ecosystem URL

Example: "https://ecosystem.dock.io"
governanceFramework*string

Trust registry governance framework

Example: "Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit."
governanceFrameworkVersion*string

Trust registry governance framework version

Example: "1.0.0"
issuerCountinteger

Trust registry issuer count

Example: 10
verifierCountinteger

Trust registry verifier count

Example: 5
Request
const response = await fetch('https://api-testnet.dock.io/trust-registries/{registryId}/public', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "id": "0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d",
  "convener": "did:dock:xyz",
  "convenerName": "Dock",
  "convenerLogoUrl": "https://logo.dock.io/convener",
  "slug": "dock-example-ecosystem-1",
  "nonce": "0x57aecb3863404812",
  "created": "2024-09-08T20:31:53.102Z",
  "name": "Dock Example Ecosystem",
  "description": "Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure.",
  "logoUrl": "https://logo.dock.io/trust-registry",
  "ecosystemUrl": "https://ecosystem.dock.io",
  "governanceFramework": "Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit.",
  "governanceFrameworkVersion": "1.0.0",
  "issuerCount": 10,
  "verifierCount": 5
}

Get Trust Registry

Returns the Trust Registry for a specific ID.

GEThttps://api-testnet.dock.io/trust-registries/{registryId}
Path parameters
registryId*string

A trust registry id

Response

Trust Registry information

Body
id*string

Trust registry ID

Example: "0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d"
convener*DID (string)

DID as fully qualified, typically. did:dock:

Example: "did:dock:xyz"
convenerNamestring

Convener name

Example: "Dock"
convenerLogoUrlstring

Convener logo URL

Example: "https://logo.dock.io/convener"
slugstring

Trust registry slug

Example: "dock-example-ecosystem-1"
noncestring

Trust registry nonce

Example: "0x57aecb3863404812"
created*string (date-time)
name*string

Trust registry name

Example: "Dock Example Ecosystem"
description*string

Trust registry description

Example: "Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure."
logoUrl*string (uri)

Trust registry logo URL

Example: "https://logo.dock.io/trust-registry"
ecosystemUrl*string (uri)

Trust registry ecosystem URL

Example: "https://ecosystem.dock.io"
governanceFramework*string

Trust registry governance framework

Example: "Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit."
governanceFrameworkVersion*string

Trust registry governance framework version

Example: "1.0.0"
issuerCountinteger

Trust registry issuer count

Example: 10
verifierCountinteger

Trust registry verifier count

Example: 5
Request
const response = await fetch('https://api-testnet.dock.io/trust-registries/{registryId}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "id": "0x601d148fb8895aca83eafb264293069911f76805b748b014ae64fcf0fd2d765d",
  "convener": "did:dock:xyz",
  "convenerName": "Dock",
  "convenerLogoUrl": "https://logo.dock.io/convener",
  "slug": "dock-example-ecosystem-1",
  "nonce": "0x57aecb3863404812",
  "created": "2024-09-08T20:31:53.102Z",
  "name": "Dock Example Ecosystem",
  "description": "Labore voluptate adipisicing magna duis eu fugiat pariatur excepteur irure.",
  "logoUrl": "https://logo.dock.io/trust-registry",
  "ecosystemUrl": "https://ecosystem.dock.io",
  "governanceFramework": "Lorem ea ea reprehenderit cupidatat minim incididunt occaecat est sit.",
  "governanceFrameworkVersion": "1.0.0",
  "issuerCount": 10,
  "verifierCount": 5
}

Last updated