Schema

List all credential schemas

get

Retrieves all credential schemas

Query parameters
typestringOptional

Filter by schema type

namestringOptional

Filter by schema name

versionnumber · doubleOptional

Filter by schema version

sortBystring · enumOptional

Sort field

Possible values:
sortOrderstring · enumOptional

Sort order

Possible values:
Responses
200

Found

application/json
get
/api/v1/schemas

Create a new credential schema

post

Creates a new credential schema

Authorizations
x-client-secretstringRequired
Body

Schema definition including name, type, version and credential subject

namestringRequired

Name of the schema

Example: DriverLicense
typestringRequired

Type of the schema

Example: https://schema.org/DriverLicense
versionnumber · doubleOptional

Schema version

Example: 1
Responses
post
/api/v1/schemas

Get a schema by ID

get

Retrieves a specific credential schema by ID

Path parameters
idstringRequired

Schema ID to retrieve

Responses
200

Found

application/json
Responseobject
get
/api/v1/schemas/{id}

Delete a schema by ID

delete

Deletes a specific credential schema

Authorizations
x-client-secretstringRequired
Path parameters
idstringRequired

Schema ID to delete

Responses
delete
/api/v1/schemas/{id}

No content

Last updated