Verifications
Endpoints for managing verifications
This endpoint allows you to trigger an AnonCred verification flow.
The timeout for the verification.
15
The ID of the invitation.
The ID of the contact.
The rule for the verification.
AnonCred verification flow triggered successfully
Bad request.
Unauthorized.
Internal server error
POST /api/v1/verifications HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 235
{
"invitation_id": 1,
"contact_id": "",
"schemas": [
{
"schema_attributes": {
"domain": {
"restrictions": [
{
"schema_id": "KT4LtL7HEMePqQSyKVof7g:2:Email:1.0"
}
]
},
"address": {
"restrictions": [
{}
]
},
"age": {
"restrictions": []
},
"race": {}
}
}
],
"rule": "no rule"
}
[]
This endpoint allows you to retrieve an AnonCred verification record by its ID.
The ID of the verification.
1
AnonCred verification record was retrieved
Unauthorized.
AnonCred verification record not found
Internal Server Error
GET /api/v1/verifications/{id} HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
{}
This endpoint retrieves a JSON-LD verification by its ID using the provided API key.
The ID of the verification.
1
JSON-LD verification record retrieved successfully
Unauthorized.
JSON-LD verification record not found
Internal Server Error
GET /api/v1/verifications/json-ld/{id} HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
{}
This endpoint allows you to trigger a JSON-LD verification flow.
The timeout for the verification.
3
The ID of the invitation.
1
The ID of the contact.
The rule for the verification.
no rule
Verification was triggered
Unauthorized.
Internal Server Error
POST /api/v1/verifications/json-ld HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 384
{
"invitation_id": 1,
"contact_id": "",
"definitions": [
{
"context": [
"https://www.w3.org/2018/credentials#VerifiableCredential",
"https://www.w3.org/2018/credentials/v1",
"https://purl.imsglobal.org/spec/vc/ob/vocab.html#OpenBadgeCredential"
],
"attributes": [
"validFrom",
{
"issuer": "name"
},
{
"credentialSubject": {
"achievement": "criteria"
}
}
],
"label": "Awesome JSON-LD Credential"
}
],
"rule": "no rule"
}
[]
Was this helpful?