Skip to main content

Verify national ID + date of birth

Returns a self-service JWT if the supplied national ID and date of birth match a beneficiary in the tenant.

Request

Method: POST
Path: /api/auth/id/verify

Authentication: Not required

Request Body

Content Type: application/json

Schema: See component schemas below

Responses

200 - Verified

401 - Verification failed

Examples

cURL

curl -X POST \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
http://localhost:3000/api/auth/id/verify \
-d '{"example": "data"}'

JavaScript

const response = await fetch('http://localhost:3000/api/auth/id/verify', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + token,
},
body: JSON.stringify({
// Request data
}),
});

const data = await response.json();
console.log(data);

This documentation is automatically generated from the OpenAPI specification.