application/json for request and response bodies.
Create verification request
This endpoint initiates a new verification process. It accepts aPOST request specifying the desired protocol for interacting with the wallet and a template ID referencing a pre-configured verification template.
The response includes a verification ID along with an engagement URI for engaging the wallet based on the specified protocol.
Endpoint
POST /vdcs/verification
Scopes
create:verification_request
Body parameters
-
protocol: String. Required
Engagement protocols define the methods your application uses for interacting with the wallet. We currently support:mdoc/webapi/draft-2023-03-29: Uses an MDoc URI as defined in ISO/IEC DTS 18013-7 for communication.mdoc/webapi/v1.0: Uses an MDoc URI as defined in ISO/IEC DTS 18013-7 for communication.
-
template_id: String. Required
The ID references a pre-configured template. This simplifies the request by using pre-defined claim requirements.
Response schema
| Response Code | Response Type | Description |
|---|---|---|
201 | application/json |
|
Response codes
| Response Code | Response Message | Description |
|---|---|---|
201 | Verification is initiated successfully | The response body contains the Response Schema defined above. |
400 | Bad Request | The request is malformed or invalid. |
401 | Unauthorized | The request requires authentication. Ensure a valid access token is provided in the Authorization header. |
403 | Forbidden | Insufficient scope. Ensure an access token with sufficient scope is provided in the Authorization header. |
404 | Template not found | The provided template ID is invalid or no longer active. |
500 | Internal Server Error | An unexpected error occurred on the server. |
Get verification status
This endpoint retrieves the status and, if available, the claims of a given verification. Theid path parameter specifies the Verification ID.
Endpoint
GET /vdcs/verification/{id}
Scopes
read:verification_request
Path parameters
verification_id: String. Required
- Verification ID (UUIDv4) as received from the verification initiation. This ID is used for subsequent interactions with the Mobile Driver’s License Verification API, such as polling for status.
Response schemas
| Response Code | Response Type | Description |
|---|---|---|
200 | application/json | state: String Required The state field contains information about the current state of the verification process. The following values may be present:
reason: String Optional The The |
Response codes
| Response Code | Response Message | Description |
|---|---|---|
401 | Unauthorized | The request requires authentication. Ensure a valid access token is provided in the Authorization header. |
403 | Unauthorized | Insufficient scope. Ensure an access token with sufficient scope is provided in the Authorization header. |
404 | Verification not found | The provided verification ID is invalid or no longer active. |
500 | Internal Server Error | Verification failed. Response body may contain an ErrorResponse object with details about the failure. Check the reason field for specific error information. |