Trust registry schemas

Get Trust Registry schemas

get
/trust-registries/{registryId}/schemas

Returns the Trust Registry schemas

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
registryIdstringRequired

A trust registry id

Query parameters
offsetinteger · int32Optional

How many items to offset by for pagination

Default: 0
limitinteger · int32 · min: 1 · max: 64Optional

How many items to return at one time (max 64)

Default: 64
participantsinteger · int32 · min: 1 · max: 64Optional

How many participants to return per schema

Default: 5
Responses
chevron-right
200

List of schemas in the trust registry

application/json
get
/trust-registries/{registryId}/schemas
parameters
/trust-registries/{registryId}/schemas/{schemaId}/price
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
registryIdstringRequired

A trust registry id

schemaIdstringRequired

A schema id

parameters
/trust-registries/{registryId}/schemas/{schemaId}/price

Creates or updates a price for a schema ID with given currency and digits on a per issuer basis

post
/trust-registries/{registryId}/schemas/{schemaId}/price
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
registryIdstringRequired

A trust registry id

schemaIdstringRequired

A schema id

Body
currencystringRequired

Currency code

Example: USD
digitsone ofRequired

Bigint representation of the price. Multiply by 1,000,000 to support fractional cents.

Example: 100000000
integerOptional
or
stringOptional
verifierstring · min: 32Optional

DID as fully qualified, typically. did:cheqd:

Example: did:cheqd:testnet:ac2b9027-ec1a-4ee2-aad1-1e316e7d6f59
Responses
chevron-right
200

Trust Registry schema price has been updated

No content

post
/trust-registries/{registryId}/schemas/{schemaId}/price

No content

List prices for schema IDs

get
/trust-registries/schema-prices

Get all prices for schema IDs

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
idsstringRequired

Comma separated list of schema IDs

Responses
chevron-right
200

All schema prices

application/json
get
/trust-registries/schema-prices
200

All schema prices

List all the DIDs belonging to the user that are linked to the requested schemas.

get
/trust-registries/schema-dids

Get all dids owned by user for schema IDs

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
idsstringRequired

Comma separated list of schema IDs

Responses
chevron-right
200

All schema dids owned by user

application/json
get
/trust-registries/schema-dids
200

All schema dids owned by user

Remove Trust Registry schema

delete
/trust-registries/{registryId}/schemas/{schemaId}

Unassigns a schema from all participants in the trust registry

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
registryIdstringRequired

A trust registry id

schemaIdstringRequired

A schema id

Responses
chevron-right
200

Trust Registry schema has been deleted

No content

delete
/trust-registries/{registryId}/schemas/{schemaId}

No content

Last updated

Was this helpful?