Endpoints1 min read
Query Consented Records (POST /api/v1/m2m/query)
Retrieve structured, verified candidate credential data across consented vault categories.
`POST /api/v1/m2m/query`
Queries structured, verified candidate records for the categories consented by the candidate.
Headers
| Header | Type | Description | |
|---|---|---|---|
Content-Type | string | Must be application/json | |
X-Sabi-Org-Key | string | Your organization's live developer API key | |
Authorization | string | Bearer token containing the candidate's scoped key (Bearer sbk_live_...) |
Request Body
json
{
"categories": ["academics", "experience", "certifications"]
}
Example Response (`200 OK`)
json
{
"status": "success",
"candidate_id": "cand_948f29c0",
"integrity_status": "VERIFIED",
"records": {
"academics": [
{
"id": "acad_01",
"institution": "University of Lagos",
"degree": "B.Sc. Computer Science",
"graduation_year": 2021,
"verification_tier": "TIER_2_LEGALIZED",
"seal_status": "Officially Notarized & Sealed",
"ledger_hash": "a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e"
}
],
"experience": [
{
"id": "exp_01",
"company": "Paystack",
"role": "Software Engineer",
"start_date": "2021-08-01",
"end_date": "2024-03-31",
"verification_tier": "TIER_1_STANDARD_HASHED",
"seal_status": "Tamper-Proof Sealed"
}
]
}
}