Verifications
Endpoints for managing verifications
This endpoint allows you to trigger an AnonCred verification flow.
Authorizations
Query parameters
timeoutstringOptionalExample:
The timeout for the verification.
15
Body
invitation_idinteger | nullableOptional
The ID of the invitation.
contact_idstringOptional
The ID of the contact.
rulestringOptional
The rule for the verification.
Responses
200
AnonCred verification flow triggered successfully
application/json
400
Bad request.
application/json
401
Unauthorized.
500
Internal server error
application/json
post
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.
Authorizations
Path parameters
idstringRequiredExample:
The ID of the verification.
1
Responses
200
AnonCred verification record was retrieved
application/json
401
Unauthorized.
404
AnonCred verification record not found
application/json
500
Internal Server Error
application/json
get
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.
Authorizations
Path parameters
idstringRequiredExample:
The ID of the verification.
1
Responses
200
JSON-LD verification record retrieved successfully
application/json
401
Unauthorized.
404
JSON-LD verification record not found
application/json
500
Internal Server Error
application/json
get
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.
Authorizations
Query parameters
timeoutstringOptionalExample:
The timeout for the verification.
3
Body
invitation_idintegerOptionalExample:
The ID of the invitation.
1
contact_idstringOptional
The ID of the contact.
rulestringOptionalExample:
The rule for the verification.
no rule
Responses
200
Verification was triggered
application/json
401
Unauthorized.
500
Internal Server Error
application/json
post
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?