Endpoints

Generate Token

POST /did-auth-jwt

Headers

Field

Description

Required

Content-Type

application/json

yes

Request parameters

Parameter

Description

Type

Required

iss

DID of token issuer

String

yes

exp

Expiration via UNIX timestamp in ms

Number

no

expiresIn

Expiration via time offset before in ms

Number

no

expirationDate

Expiration via Date ISO string

String

no

Example request

{
"iss": "string",
"exp": "string"
}

Responses

Status

Meaning

Description

Schema

200

Created

New identity vault created successfully

Inline

422

Missing params

Missing required params or invalid params

Inline

500

Internal Server Error

Create identity vault failed

Inline

Response Schema

Status code 200

Name

Description

Type

Optional

jsonld

Verifiable Credential translated to JSON-LD interface

Object

no

jwt

Verifiable Credential as JWT

String

no

verifications

Verification results for VC JWT

String

no

Example response (200)

{
"jsonld": {
"@context": [],
"type": [
"string"
],
"credentialSubject": {},
"issuer": "string",
"issuanceDate": "string",
"expirationDate": "string",
"proof": {
"created": "string",
"creator": "string",
"signatureValue": "string"
}
},
"jwt": "string",
"verifications": {
"header": {
"typ": "string",
"alg": "string"
},
"document": {
"iss": "string",
"vc": {
"@context": [
"string"
],
"type": [
"string"
],
"credentialSubject": {}
},
"iat": 0,
"exp": 0
},
"signature": "string",
"tbs": "string",
"issuer": "string"
}
}

Status code - 422/500

Name

Type

Description

Optional

statusCode

Number

HTTP status code

no

errorType

String

Error type

no

errorMessage

String

Error message

no