Skip to main content

Verifier - OpenAPI

This is the W3C VC compatible OpenAPI, describing the endpoints to issue Verifiable Credentials. The W3C API endpoints in VDX, allow you to create an implementation compatible with the W3C VC API specification, meaning there is no vendor lock-in. VDX also has VDX specific APIs to issue and verify credentials, which are more powerful. They are however not VC API compatible.

Some examples supported by VDX, but not by the W3C VC API are:

  • Using templates to issue credentials
  • Binding templates to users and groups, allowing departments to issue different credentials
  • Using events/callbacks when issuing

Please note that if you are reading this line, it means the final documentation is not ready yet. Release of the full documentation is scheduled for the end of Q3 of 2023.

OpenAPI spec

VC Verifier HTTP API (0.0.3-unstable)

Download OpenAPI specification:Download

This is an Experimental Open API Specification for the VC Data Model.

credentialsVerify

Verifies a verifiableCredential and returns a verificationResult in the response body.

Verifies a verifiableCredential and returns a verificationResult in the response body.

Request Body schema: application/json

Parameters for verifying a verifiableCredential.

object (VerifiableCredential)

A JSON-LD Verifiable Credential without a proof.

object (VerifyOptions)

Options for specifying how the LinkedDataProof is verified.

Responses

Request samples

Content type
application/json
{
  • "verifiableCredential": {
    },
  • "options": {
    }
}

Response samples

Content type
application/json
{
  • "checks": [
    ],
  • "warnings": [ ],
  • "errors": [ ]
}

presentationsVerify

Verifies a Presentation with or without proofs attached and returns a verificationResult in the response body.

Verifies a verifiablePresentation and returns a verificationResult in the response body. Given the possibility of denial of service, buffer overflow, or other style attacks, an implementation is permitted to rate limit or restrict requests against this API endpoint to those requests that contain only a single credential with a 413 or 429 error code as appropriate.

Request Body schema: application/json

Parameters for verifying a verifiablePresentation.

One of
object (VerifiablePresentation)

A JSON-LD Verifiable Presentation without a proof.

object (VerifyOptions)

Options for specifying how the LinkedDataProof is verified.

Responses

Request samples

Content type
application/json
Example
{
  • "verifiablePresentation": {
    },
  • "options": {
    }
}

Response samples

Content type
application/json
{
  • "checks": [
    ],
  • "warnings": [ ],
  • "errors": [ ]
}