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.
Configuration Endpoints
/api/check-config
Checks if the v2client instance is properly configured with API keys.
Response (Configured)
Response (Not Configured)
/api/test-connection
Tests connectivity to the okID backend with provided configuration.
Admin Use Only
This endpoint is used during admin configuration setup and is not needed for normal operator integration.
Error Responses
Common Error Codes
400
Bad Request - Invalid parameters401
Unauthorized - Invalid API key404
Not Found - Invalid verification ID500
Server Error - Internal errorError Response Format
Common Integration Issues
- •
INVALID_API_KEY
- API key not found or inactive - •
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