Skip to content
Document Verification

Document Verification

POST https://credit.farmsky.africa/v3/document/verify

Verify an identity document and optionally match it to a selfie.

identity:read

Headers

Authorization string required Defaults to Bearer {CLIENT_ID}:{CLIENT_SECRET}
Your API client id and secret, joined by a colon. Manage credentials in the Console.
x-api-key string optional Defaults to {API_KEY}
Alternative single-value secret key header (equivalent to X-Api-Secret). Never expose it in client-side code.
Content-Type string required Defaults to application/json
All request bodies are JSON unless the endpoint accepts multipart/form-data (file uploads).

Body Params

doc_image string required
Base64-encoded document image (< 1 MB).
doc_type string Defaults to PASSPORT
Document type (PASSPORT | NATIONAL_ID | DRIVERS_LICENSE).
doc_country string Defaults to KE
ISO-3166 alpha-2 country of issue.
selfie_image string
Optional base64 selfie — enables face-match / liveness.