v2client API Reference
Complete reference for the v2client verification portal endpoints. Server-to-server integration with your API key.
v2client Architecture
The v2client is a hosted verification portal with server-side endpoints for operator integration:
Your Server
Calls v2client with API key
v2client Portal
Verification interface + API endpoints
okID Backend
Verification processing engine
Security Model
Your API key is sent via X-SDK-Key header for verification generation. All subsequent user interactions use verification IDs.
Base URL
https://verify.prod.okid.io
https://verify.test.okid.io
Authentication
Core Endpoints
/api/generate-verification
Generates a verification ID using your API key. This must be called from your server.
Request Headers
Response
Example Usage
/verify
User-facing verification portal. Users complete their verification flow here.
Query Parameters
User Flow
1. Terms acceptance
2. Document upload
3. Liveness detection
4. Form data collection
5. Verification complete
Example URL
/generate
Internal route for QR code verification generation. Redirects to verification portal.
Usage
This route is primarily used internally by QR codes. For operator integration, use the POST /api/generate-verification endpoint.
/api/get-verification-details/{verification_id}
Retrieves the complete verification record including status, results, and metadata. API key must own the verification.
Request Headers
Response
Example Usage
Security Note
API keys can only retrieve verifications they created. Attempting to access another organization's verification will result in a 403 Forbidden error.
Image Retrieval Endpoints
/api/get-verification-image/{verification_id}
Retrieves the document image with redaction based on API key settings (MRZ, portrait, template fields). X-SDK-Key header is mandatory - requests without this header will be rejected with 401 Unauthorized.
Request Headers
Query Parameters (Optional)
Example Usage
Redaction Settings
The redaction applied depends on your API key configuration: redact_mrz
, redact_portrait
, and redact_template
flags control what information is blacked out.
/api/get-verification-image-unredacted/{verification_id}
Retrieves the original document image with only a watermark, ignoring API key redaction settings. X-SDK-Key header is mandatory - requests without this header will be rejected with 401 Unauthorized.
Request Headers
Query Parameters (Optional)
Example Usage
Security Note
This endpoint now requires valid API key authentication. The API key must have access to the verification_id being requested.
/api/get-verification-image-front/{verification_id}
Directly retrieves the front document image without needing to determine attempt indices. Automatically finds the accepted front image and applies redaction based on API key settings. X-SDK-Key header is mandatory - requests without this header will be rejected with 401 Unauthorized.
Request Headers
Query Parameters (Optional)
Example Usage
Quick Test (curl)
Advantages
- No attempt index required - automatically finds the accepted front image
- Side-specific - explicitly get front document without guessing
- Authenticated - secure access control with API key verification
- Cleaner API - more intuitive for document-based workflows
/api/get-verification-image-back/{verification_id}
Directly retrieves the back document image without needing to determine attempt indices. Automatically finds the accepted back image and applies redaction based on API key settings. X-SDK-Key header is mandatory - requests without this header will be rejected with 401 Unauthorized.
Request Headers
Query Parameters (Optional)
Example Usage
Quick Test (curl)
Advantages
- No attempt index required - automatically finds the accepted back image
- Side-specific - explicitly get back document without guessing
- Authenticated - secure access control with API key verification
- Cleaner API - more intuitive for document-based workflows
Error Responses (Front/Back Endpoints)
HTTP Status Codes
401
- Missing X-SDK-Key header403
- API key doesn't own this verification404
- Verification not found OR no accepted front/back image available404
- Requested image_type variant not foundParameters Reference
attempt_index (optional)
Zero-based index of the document upload attempt. Defaults to 0 (first/latest attempt).
image_type (optional)
Type of image to retrieve. If not specified, uses the stored image path from the attempt.
Error Responses
Common Error Codes
400
Bad Request - Invalid parameters401
Unauthorized - Invalid API key403
Forbidden - API key cannot access verification404
Not Found - Invalid verification ID500
Server Error - Internal errorError Response Format
Common Integration Issues
- •
INVALID_API_KEY
- API key not found or inactive - •
ACCESS_DENIED
- API key cannot access this verification - •
SERVER_NOT_CONFIGURED
- v2client missing base URL configuration - •
VERIFICATION_EXPIRED
- verification_id has expired - •
VERIFICATION_NOT_FOUND
- Invalid verification_id
Rate Limits & Best Practices
Rate Limits
100/minute
300/minute
No limit