Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Verifiable Credential Template Management API

Download OpenAPI (YAML)Version v1

Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/server/v1

The WSO2 Identity Platform Verifiable Credential Template Management API (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

BasicAuth: HTTP basic

OAuth2: oauth2

authorizationCode flow, token URL https://api.asgardeo.io/t/{organization-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{organization-name}/oauth2/authorize

VC Templates​

List templates​

GET /vc-templates

Parameters

NameInTypeRequiredDescription
beforequerystring

Base64 encoded cursor value for backward pagination.

afterquerystring

Base64 encoded cursor value for forward pagination.

filterquerystring

Condition to filter the retrieval of records. Supports 'sw', 'co', 'ew' and 'eq' operations.

limitqueryinteger

Maximum number of records to return.

attributesquerystring

Specifies the required attributes in the response. Only 'properties' attribute is currently supported.

Responses

CodeDescriptionSchema
200

Array of templates

VCTemplateList
400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Add new template​

POST /vc-templates

Request body (required): application/json

Schema: VCTemplateCreationModel

6 properties
NameTypeRequiredDescription
identifierstringYes
displayNamestring

Display name of the template

descriptionstring

Description name of the template

formatstringYes
claimsarray of ClaimYes
expiresInintegerYes

Responses

CodeDescriptionSchema
201

Created

VCTemplate
400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error

Get template​

GET /vc-templates/{template-id}

Parameters

NameInTypeRequiredDescription
template-idpathstringYes

Server-generated UUID of the template.

Responses

CodeDescriptionSchema
200

Template

VCTemplate
400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Update template​

PUT /vc-templates/{template-id}

Parameters

NameInTypeRequiredDescription
template-idpathstringYes

Server-generated UUID of the template.

Request body (required): application/json

Schema: VCTemplateUpdateModel

4 properties
NameTypeRequiredDescription
displayNamestring

If not provided, server sets to identifier.

formatstring
claimsarray of Claim
expiresIninteger

Responses

CodeDescriptionSchema
200

Updated

VCTemplate
400

Bad Request

Error
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Delete template​

DEL /vc-templates/{template-id}

Parameters

NameInTypeRequiredDescription
template-idpathstringYes

Server-generated UUID of the template.

Responses

CodeDescriptionSchema
204

Template Deleted

400

Bad Request

Error
401

Unauthorized

403

Forbidden

500

Server Error

Error

Generate or regenerate credential offer​

POST /vc-templates/{template-id}/offer

Creates a new credential offer.

Parameters

NameInTypeRequiredDescription
template-idpathstringYes

Server-generated UUID of the template.

Responses

CodeDescriptionSchema
200

Offer generated or regenerated successfully

VCTemplate
401

Unauthorized

403

Forbidden

404

Template not found

Error
500

Server Error

Error

Revoke credential offer​

DEL /vc-templates/{template-id}/offer

Revokes and deletes the existing credential offer.

Parameters

NameInTypeRequiredDescription
template-idpathstringYes

Server-generated UUID of the template.

Responses

CodeDescriptionSchema
200

Offer revoked successfully

VCTemplate
401

Unauthorized

403

Forbidden

404

Template or offer not found

Error
500

Server Error

Error

Schemas​

VCTemplate​

Type: object

8 properties
NameTypeRequiredDescription
idstringYes
identifierstringYes

Stable key; human/machine readable.

displayNamestringYes

Display name of the template

descriptionstring

Description name of the template

formatstringYes
claimsarray of ClaimYes
expiresInintegerYes
offerIdstring

Backend-generated UUID for the credential offer. Null if no offer has been generated.

VCTemplateCreationModel​

Type: object

6 properties
NameTypeRequiredDescription
identifierstringYes
displayNamestring

Display name of the template

descriptionstring

Description name of the template

formatstringYes
claimsarray of ClaimYes
expiresInintegerYes

VCTemplateList​

Type: object

3 properties
NameTypeRequiredDescription
totalResultsinteger
linksarray of PaginationLink
VCTemplatesarray of VCTemplateListItem

VCTemplateListItem​

Type: object

3 properties
NameTypeRequiredDescription
idstringYes
identifierstringYes

Stable key; human/machine readable.

displayNamestringYes

Published as credential_template_id in issuer metadata. Defaults to identifier if omitted.

VCTemplateUpdateModel​

Type: object

Fields allowed to change after creation.

4 properties
NameTypeRequiredDescription
displayNamestring

If not provided, server sets to identifier.

formatstring
claimsarray of Claim
expiresIninteger

Claim​

Type: object

3 properties
NameTypeRequiredDescription
namestringYes

The claim name as it appears in the issued VC.

typestringYes
claimUristringYes

The claim reference used for resolution. For LOCAL, this is the WSO2 IS claim URI.

Type: object

2 properties
NameTypeRequiredDescription
relstring
hrefstring

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestring
messagestring
descriptionstring
traceIdstring

Was this page helpful?