For the complete documentation index, see llms.txt. This page is also available as Markdown.

Schemas

List schemas

get

Returns a list of schemas available created and managed by the Wallet. The list can be filtered, sorted, and paginated by using the available query parameters.

Authorizations
AuthorizationstringOptional
Bearer authentication header of the form Bearer <token>.
Query parameters
orderstring · enumOptionalPossible values:
order_bystringOptional
per_pageinteger · min: 1 · max: 50Optional
pageinteger · min: 1Optional
searchstringOptional
Responses
200

Schemas successfully loaded

application/json
get/issuer/schemas

Create schema

post

schema_json must comply with the specification.

Schema validity can be checked by using one of the web validators listed at the JSON Schema tooling page.

schema_json.$id is not expected in the payload. The API assigns its own internal value even if one is provided.


There are additional restrictions for the dc+sd-jwt format.

There are registered JWT claims for this credential format (SD-JWT VC spec).

They are used internally and cannot be included as claims or defined as claims in the schema_json

The following claims cannot be icluded in schema_json.properties:

  • iss

  • nbf

  • exp

  • cnf

  • vct

  • vct#integrity

  • extends#integrity

  • schema_uri#integrity

  • sub

  • aud

  • jti

  • iat

  • _sd

  • _sd_alg

status is also a registered JWT claims. However currently SVX Wallet does not support status list for dc+sd-jwt. So this claim can be included in a dc+sd-jwt credential schema for users to manually set an externally maintained Status List. But status MUST always be shown and cannot be set as selectively disclosable.

For example, Status List:

There are no restrictions for jwt_vc_json or mso_mdoc formats.


Example (jwt_vc_json format):


Example (dc+sd-jwt format):


Example (mso_mdoc format):

Authorizations
AuthorizationstringOptional
Bearer authentication header of the form Bearer <token>.
Body
Responses
201

Schema successfully created

application/json
post/issuer/schemas

Get schema

get

Returns schema information for a given schema id. The schema information includes the JSON schema definition and metadata such as supported credential formats.

Authorizations
AuthorizationstringOptional
Bearer authentication header of the form Bearer <token>.
Path parameters
idstring · uuidRequired
Responses
200

Schema successfully loaded

application/json
get/issuer/schemas/{id}

Update schema

put

Update schema information for a given schema id.

Note: Updating a schema may have implications on existing credential templates linked to the schema and issued credentials based on those templates. Ensure to review the changes carefully before updating a schema.

Authorizations
AuthorizationstringOptional
Bearer authentication header of the form Bearer <token>.
Path parameters
idstring · uuidRequired
Body
Responses
200

Schema successfully updated

application/json
put/issuer/schemas/{id}

Delete schema

delete

Deletes a schema by its ID. Schemas that are linked to active credential templates or issued credentials cannot be deleted. Ensure to review the implications before deleting a schema.

Authorizations
AuthorizationstringOptional
Bearer authentication header of the form Bearer <token>.
Path parameters
idstring · uuidRequired
Responses
204

Schema deleted

No content

delete/issuer/schemas/{id}

No content

Retrieve credential schema definition

get

Returns credential schema (schema_json attribute value) in a format described by the specification.

Authorizations
AuthorizationstringOptional
Bearer authentication header of the form Bearer <token>.
Path parameters
idstring · uuidRequired
Responses
200

Schema definition loaded

application/json
$idstringOptional
$schemastring · enumRequiredPossible values:
$commentstringOptional
namestringOptional
descriptionstringOptional
titlestringOptional
typestringRequired
requiredstring[]Optional
additionalPropertiesbooleanOptional
Other propertiesanyOptional
get/issuer/schemas/{id}/schema.json

Last updated