Proofs
This API suite focuses on verifying proof of credentials.
Retrieve the list of presentations for proof requests
GET /api/v1/proof/presentations
Retrieves the list of presentations for proof requests. This can be used to check the status or details of proofs.
Headers
Content-Type
application/json
Authorization
apikey = {Alice's key}
Query param
thid
string
the thid of the presentation to get
Response
{
"data": [
{
"recordId": "61faa8cb-7bc9-4c41-a0e5-7c10d81dd98f",
"thid": "87323d88-51ec-424f-882a-a1f2655888db",
"credentialFormat": "JWT",
"validityPeriod": 3600,
"claims": {
"uid": "12345",
"name": "Stable Diffusion SDXL"
},
"automaticIssuance": false,
"createdAt": "2024-10-03T15:28:01.776806Z",
"updatedAt": "2024-10-04T14:42:27.262001Z",
"role": "Issuer",
"protocolState": "RequestReceived",
"metaRetries": 5
}
]
}{
}Retrieve the first matching presentation
GET /api/v1/proof/presentation/match/{claim_type}
Get the first presentation request (or proof) that matches a type (point of view of Holder)
Headers
Content-Type
application/json
Authorization
apikey = {Bob's key}
params
claim_type
string
a type of claim (e.g.: "identity")
Response
Create a VC presentation request
from verifier to holder
POST /api/v1/proof/presentation
Headers
Content-Type
application/json
Authorization
apikey = {Alice's key}
Body
connection
string
the connectionId between verifier and prover (compulsory)
challenge
string
claim_type that verifier wants to ask for (holder will have to provide a record creds of same claim_type)
domain
string
domain where this VC applies to (compulsory / point of view of verifier)
Response
Accept a presentation request
From holder
POST /api/v1/proof/presentation/accept
Headers
Content-Type
application/json
Authorization
apikey = {Bob's key}
Body
presentationId
string
the id of the presentation from holder point of view (compulsory)
recordId
string
the recordId of the VC that the holder will provide as proof
Response
Obtain the final Proof
point of view of Verifier
PATCH /api/v1/proof/presentation/{id}
Headers
Content-Type
application/json
Authorization
apikey = {Alice's key}
Body
presentationId
string
the id of the presentation from verifier point of view (compulsory)
Response
Request a Presentation, accept it, and issue a Proof
POST /api/v1/proof/presentation/custodial
will do a full request + accept + issue proof (custodial mode)
Headers
Content-Type
application/json
Authorization
None
Body
connection
string
the connectionId between verifier and prover (compulsory)
key_peer1
string
apikey of peer 1 (verifier)
key_peer2
string
apikey of peer 2 (prover)
claim_type
string
the claim type that the Credential must contain for a match (eg : "identity")
domain
string
domain where this Credential applies
noDuplicate
boolean
no duplicate of issuance of same type
thid
string
to force the use of a specific credential in the proof (otherwise, first available is taken)
Response
Last updated