openapi: "3.0.3" info: title: Adhere API description: Identity verification, credit checks, transaction monitoring, and loan fraud detection across Africa. version: "3.0.0" servers: - url: https://adhere-api.smartcomply.com description: Production security: - ApiKeyAuth: [] components: securitySchemes: ApiKeyAuth: type: apiKey in: header name: x-access-token description: Your Adhere API secret key responses: BadRequest: description: Bad Request content: application/json: schema: type: object properties: status: type: string example: failed data: type: array items: {} message: type: string Unauthorized: description: Unauthorized content: application/json: schema: type: object properties: status: type: string example: failed message: type: string example: Authentication credentials were not provided. DocumentVerificationSuccess: description: Document details extracted successfully content: application/json: schema: type: object properties: status: type: string example: "success" data: type: object properties: valid: { type: boolean } first_name: { type: string } last_name: { type: string } full_name: { type: string } date_of_birth: { type: string } gender: { type: string } nationality: { type: string } address: { type: string } id_number: { type: string } serial_number: { type: string } id_type: { type: string } document_type: { type: string } document_country: type: string description: > Passports only. The country that issued the passport, as an two-letter country code, for example RW. expiry_date: { type: string } issue_date: { type: string } is_expired: type: boolean description: > Always false on a 200. An expired document fails the check with a 400; its details are still returned in data, with is_expired true. photo: type: string description: Base64-encoded face photo extracted from the document. Absent for document types with no face photo (cac_certificate, utility_bill). extra_fields: type: object description: Every other field read from the document that doesn't have its own dedicated field above. Varies by document_type and country. face_match: type: object description: Present only when selfie_image was supplied. properties: attempted: { type: boolean } verified: type: boolean nullable: true description: "true/false if the comparison ran; null if it couldn't (see reason)." decision: type: string enum: [MATCH, NO_MATCH] description: The comparison's verdict. confidence_percentage: { type: number } compare_mode: type: string example: COMPARISON_NO_LIVENESS description: > COMPARISON_NO_LIVENESS: the two photos are compared; no liveness check is run on the selfie. selfie_image: type: string description: URL of the uploaded selfie. reason: type: string description: Present when verified is null — explains why the comparison couldn't run or complete. message: type: string example: "Document details retrieved successfully" tags: - name: Nigeria KYC - name: Kenya KYC - name: Ghana KYC - name: Rwanda KYC - name: Uganda KYC - name: Document Verification - name: Biometrics - name: Individual Credit - name: Business Credit - name: Transaction Monitoring - name: Transaction Screening - name: Transaction KYC - name: Loan Fraud - name: User Journey paths: # ── BIOMETRICS ────────────────────────────────────────────── /api/onboarding/biometrics/face/comparison: post: tags: [Biometrics] summary: Face Comparison operationId: faceComparison requestBody: required: true content: application/json: schema: type: object required: [image_url, selfie_url] properties: image_url: type: string description: URL of the reference ID photo selfie_url: type: string description: URL of the selfie image responses: "200": description: Comparison ran to completion. This includes the anti-spoofing rejection case below — the provider still returns HTTP 200 with status "failed" when selfie_url fails its own liveness check before any comparison is attempted. content: application/json: examples: facesMatch: summary: Faces match value: status: success data: status: true response_code: "00" message: "Face Match" confidence: 100 record_id: 76981 message: "Face comparison completed successfully" facesDoNotMatch: summary: Faces do not match value: status: failed data: status: false response_code: "01" message: "Face Mismatch" confidence: 42 record_id: 76982 message: "Face comparison failed — faces do not match" antiSpoofingRejected: summary: Rejected by anti-spoofing check (no comparison performed) value: status: failed data: status: false response_code: "01" message: "Liveness check failed — the submitted video did not pass the liveness/anti-spoofing check, so no face comparison was performed." confidence: 0 message: "Liveness check failed — the submitted video did not pass the liveness/anti-spoofing check, so no face comparison was performed." "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/biometrics/face/liveliness_check/: post: tags: [Biometrics] summary: Face Liveness Check operationId: faceLiveness requestBody: required: true content: application/json: schema: type: object required: [live_media] properties: live_media: type: string description: URL of the short selfie video to check for liveness (recommended — supported formats .mp4, .mov, .webm, .avi, .m4v). A still selfie photo is also accepted — anything that isn't one of those video formats is treated as a still image. Both a video and a still photo are genuinely scored for liveness; the endpoint detects which was submitted from the file itself. responses: "200": description: Liveness check ran to completion. Returned for both a pass and a fail — a failed liveness attempt is a normal, successful check outcome, not an error. Read data.status / data.liveness_passed for the real verdict. content: application/json: examples: livenessPassed: summary: Liveness passed value: status: success data: status: true detail: "Liveliness Detected" response_code: "00" confidence: 0.968 confidence_in_percentage: 96.8 liveness_passed: true verification: status: "VERIFIED" reference: 76981 widget_info: {} session: {} message: "Face Liveliness successful" livenessFailed: summary: Liveness failed (still HTTP 200) value: status: failed data: status: false detail: "Liveliness Not Detected" response_code: "01" confidence: 0.452 confidence_in_percentage: 45.2 liveness_passed: false verification: status: "NOT_VERIFIED" reference: 76982 widget_info: {} session: {} message: "Liveness check failed" "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── NIGERIA KYC ───────────────────────────────────────────── /api/onboarding/nigeria_kyc/bvn/: post: tags: [Nigeria KYC] summary: BVN Verification operationId: bvn requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: type: string minLength: 11 maxLength: 11 description: 11-digit Bank Verification Number example: "22244545518" responses: "200": { description: BVN verified successfully } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/bvn_advanced/: post: tags: [Nigeria KYC] summary: BVN Advanced operationId: bvnAdvanced requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: type: string description: 11-digit Bank Verification Number example: "22244545518" date_of_birth: type: string description: Date of birth in YYYY-MM-DD format (optional, used for additional verification) example: "1990-01-15" responses: "200": { description: BVN advanced data retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/bvn_with_face/: post: tags: [Nigeria KYC] summary: BVN with Face operationId: bvnWithFace requestBody: required: true content: application/json: schema: type: object required: [bvn, image_upload] properties: bvn: type: string description: 11-digit Bank Verification Number example: "22244545518" image_upload: type: string description: URL of the customer's photo for facial comparison example: "https://example.com/photo.jpg" responses: "200": { description: BVN with face verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/nin/: post: tags: [Nigeria KYC] summary: NIN Verification operationId: nin requestBody: required: true content: application/json: schema: type: object required: [identification_number] properties: identification_number: type: string description: 11-digit National Identification Number example: "70123456789" responses: "200": { description: NIN verified successfully } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/nin_with_face/: post: tags: [Nigeria KYC] summary: NIN with Face operationId: ninWithFace requestBody: required: true content: application/json: schema: type: object required: [identification_number, image_url] properties: identification_number: type: string description: 11-digit National Identification Number example: "70123456789" image_url: type: string description: URL of the customer's photo for facial comparison example: "https://example.com/photo.jpg" responses: "200": { description: NIN with face verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/vnin/: post: tags: [Nigeria KYC] summary: Virtual NIN (VNIN) operationId: vnin requestBody: required: true content: application/json: schema: type: object required: [vnin] properties: vnin: type: string description: 16-character Virtual NIN example: "WB9D9SE8HA41Z2M0" responses: "200": { description: VNIN verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/voters_id/: post: tags: [Nigeria KYC] summary: Voter's ID operationId: votersId requestBody: required: true content: application/json: schema: type: object required: [voters_id, first_name, last_name, date_of_birth, lga, state] properties: voters_id: type: string description: Permanent Voter's Card number example: "91F6B1F5BE295355586" first_name: type: string description: First name as on the voter's card example: "John" last_name: type: string description: Last name as on the voter's card example: "Doe" date_of_birth: type: string description: Date of birth in YYYY-MM-DD format example: "1994-08-11" lga: type: string description: Local government area of registration example: "Lagos" state: type: string description: State of registration example: "Lagos" responses: "200": { description: Voter's ID verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/driver_license/: post: tags: [Nigeria KYC] summary: Driver's License operationId: driverLicense requestBody: required: true content: application/json: schema: type: object required: [license_number, first_name, last_name, date_of_birth] properties: license_number: type: string description: Driver's license number example: "ARR10892UU00" first_name: type: string description: First name as on the license example: "EDIKAN" last_name: type: string description: Last name as on the license example: "EFE" date_of_birth: type: string description: Date of birth in YYYY-MM-DD format example: "1994-08-11" responses: "200": { description: Driver's license verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/passport/: post: tags: [Nigeria KYC] summary: Passport Verification operationId: nigeriaPassport requestBody: required: true content: application/json: schema: type: object required: [passport_number, surname, date_of_birth] properties: passport_number: type: string description: The customer's passport number example: "Z18679232" surname: type: string description: Surname as on the passport example: "John" date_of_birth: type: string description: Date of birth in YYYY-MM-DD format example: "1994-08-11" responses: "200": { description: Passport verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/tin/: post: tags: [Nigeria KYC] summary: Tax Identification Number (TIN) operationId: tin requestBody: required: true content: application/json: schema: type: object required: [tax_identification_number] properties: tax_identification_number: type: string description: "The company's Tax Identification Number (format: 234123456-0001, 8-14 digits)" example: "234123456-0001" responses: "200": { description: TIN verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/nuban/: post: tags: [Nigeria KYC] summary: NUBAN Verification operationId: nuban requestBody: required: true content: application/json: schema: type: object required: [account_number, bank_code] properties: account_number: type: string description: 10-digit account number example: "0123456789" bank_code: type: string example: "044" responses: "200": { description: NUBAN verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/nuban_advanced/: post: tags: [Nigeria KYC] summary: NUBAN Advanced operationId: nubanAdvanced requestBody: required: true content: application/json: schema: type: object required: [account_number, bank_code, customer_name] properties: account_number: type: string example: "0123456789" bank_code: type: string example: "044" customer_name: type: string description: "The name to check against the registered account holder's name" example: "STEPHEN BADMUS" responses: "200": description: Account resolved, with the name-match result content: application/json: example: status: success data: valid: true account_data: account_number: "0768540312" account_name: "STEPHEN BADMUS" bank_id: 11 comparism_data: status: true confidence: 1.0 message: "Nuban details retrieved successfully" "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/phone_no_basic/: post: tags: [Nigeria KYC] summary: Phone Number Basic operationId: phoneBasic requestBody: required: true content: application/json: schema: type: object required: [phone_number] properties: phone_number: type: string example: "08012345678" responses: "200": { description: Phone basic data retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/phone_no_advanced/: post: tags: [Nigeria KYC] summary: Phone Number Advanced operationId: phoneAdvanced requestBody: required: true content: application/json: schema: type: object required: [phone_number] properties: phone_number: type: string example: "08012345678" responses: "200": { description: Phone advanced data retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/cac/: post: tags: [Nigeria KYC] summary: CAC Verification operationId: cac requestBody: required: true content: application/json: schema: type: object required: [registration_number, company_name, company_type] properties: registration_number: type: string description: The CAC registration number example: "1261103" company_name: type: string description: Registered company name example: "JOYCE VENTURES" company_type: type: string description: "Entity type: RC (registered company), BN (business name), or IT (incorporated trustee)" example: "RC" responses: "200": { description: CAC verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/cac_advanced/: post: tags: [Nigeria KYC] summary: CAC Advanced operationId: cacAdvanced requestBody: required: true content: application/json: schema: type: object required: [registration_number, company_name, company_type] properties: registration_number: type: string description: The CAC registration number example: "10056" company_name: type: string description: Registered company name example: "JOYCE VENTURES" company_type: type: string description: "Entity type: RC (registered company), BN (business name), or IT (incorporated trustee)" example: "IT" responses: "200": { description: CAC advanced data retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/address_verification/: post: tags: [Nigeria KYC] summary: Address Verification operationId: addressVerification requestBody: required: true content: application/json: schema: type: object required: [first_name, last_name, phone_number, address, lga, state] properties: first_name: { type: string } last_name: { type: string } phone_number: { type: string } address: { type: string } lga: { type: string, description: Local Government Area } state: { type: string } responses: "200": { description: Address verification submitted } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/digital_address_verification/: post: tags: [Nigeria KYC] summary: Digital Address Verification operationId: digitalAddressVerification requestBody: required: true content: application/json: schema: type: object required: [first_name, last_name, phone_number, address, lga, state] properties: first_name: { type: string } last_name: { type: string } phone_number: { type: string } address: { type: string } lga: { type: string } state: { type: string } responses: "200": { description: Digital address verification submitted } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/digital_address_verification_confirmation/: post: tags: [Nigeria KYC] summary: Digital Address Confirmation operationId: digitalAddressConfirmation requestBody: required: true content: application/json: schema: type: object required: [identity_check_id] properties: identity_check_id: type: string description: Reference ID from the digital address verification response responses: "200": { description: Digital address result retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/physical_address_verification_lagos/: post: tags: [Nigeria KYC] summary: Physical Address (Lagos) operationId: physicalAddressLagos requestBody: required: true content: application/json: schema: type: object required: [first_name, last_name, phone_number, address, lga] properties: first_name: { type: string } last_name: { type: string } phone_number: { type: string } address: { type: string } lga: { type: string, description: LGA within Lagos } responses: "200": { description: Physical address submitted (Lagos) } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/physical_address_verification/: post: tags: [Nigeria KYC] summary: Physical Address (Other States) operationId: physicalAddressOther requestBody: required: true content: application/json: schema: type: object required: [first_name, last_name, phone_number, address, lga, state] properties: first_name: { type: string } last_name: { type: string } phone_number: { type: string } address: { type: string } lga: { type: string } state: { type: string } responses: "200": { description: Physical address submitted } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/physical_address_verification_confirmation/: post: tags: [Nigeria KYC] summary: Physical Address Confirmation operationId: physicalAddressConfirmation requestBody: required: true content: application/json: schema: type: object required: [identity_check_id] properties: identity_check_id: type: integer description: Integer ID from the physical address verification response responses: "200": { description: Physical address result retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/nigeria_kyc/identity_address/: post: tags: [Nigeria KYC] summary: Address Lookup by NIN operationId: identityAddress requestBody: required: true content: application/json: schema: type: object required: [first_name, last_name, nin, phone_number, state, time_range] properties: first_name: { type: string } last_name: { type: string } nin: { type: string, description: 11-digit NIN } phone_number: { type: string } state: { type: string } time_range: type: integer description: Minimum months address must have been verified responses: "200": { description: Address data retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── KENYA KYC ─────────────────────────────────────────────── /api/onboarding/kenya_kyc/national_id_basic/: post: tags: [Kenya KYC] summary: Kenya National ID Basic operationId: kenyaNationalIdBasic requestBody: required: true content: application/json: schema: type: object required: [national_id] properties: national_id: type: string description: Kenyan national ID number example: "00000000" responses: "200": { description: National ID verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/kenya_kyc/national_id_advance/: post: tags: [Kenya KYC] summary: Kenya National ID Advanced operationId: kenyaNationalIdAdvanced requestBody: required: true content: application/json: schema: type: object required: [national_id] properties: national_id: type: string description: Kenyan national ID number example: "1010101010" responses: "200": { description: National ID advanced data retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/kenya_kyc/business_registration/: post: tags: [Kenya KYC] summary: Kenya Business Registration operationId: kenyaBusinessRegistration requestBody: required: true content: application/json: schema: type: object required: [registration_number] properties: registration_number: type: string example: "BUS/2020/123456" postal_code: { type: string } postal_address: { type: string } responses: "200": { description: Business registration verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/kenya_kyc/alien_id/: post: tags: [Kenya KYC] summary: Kenya Alien ID operationId: kenyaAlienId requestBody: required: true content: application/json: schema: type: object required: [alien_id] properties: alien_id: type: string description: Alien ID number for non-citizen residents responses: "200": { description: Alien ID verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/kenya_kyc/kra_pin/: post: tags: [Kenya KYC] summary: KRA PIN Verification operationId: kraPin requestBody: required: true content: application/json: schema: type: object required: [pin] properties: pin: type: string description: Kenya Revenue Authority PIN example: "A000000000Z" responses: "200": { description: KRA PIN verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/kenya_kyc/passport/: post: tags: [Kenya KYC] summary: Kenya Passport Verification operationId: kenyaPassport requestBody: required: true content: application/json: schema: type: object required: [passport_number] properties: passport_number: { type: string } responses: "200": { description: Passport verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── GHANA KYC ─────────────────────────────────────────────── /api/onboarding/ghana_kyc/id_card/: post: tags: [Ghana KYC] summary: Ghana ID Card operationId: ghanaIdCard requestBody: required: true content: application/json: schema: type: object required: [identification_number] properties: identification_number: type: string description: The customer's Ghana Card number responses: "200": { description: ID card verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/ghana_kyc/id_card_with_face/: post: tags: [Ghana KYC] summary: Ghana ID Card with Face operationId: ghanaIdCardWithFace requestBody: required: true content: application/json: schema: type: object required: [identification_number, selfie_image] properties: identification_number: type: string description: Ghana Card number selfie_image: type: string description: Base64-encoded selfie image responses: "200": { description: ID card with face verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── RWANDA KYC ────────────────────────────────────────────── /api/onboarding/rwanda_kyc/national_id/: post: tags: [Rwanda KYC] summary: Rwanda National ID operationId: rwandaNationalId requestBody: required: true content: application/json: schema: type: object required: [national_id] properties: national_id: type: string example: "1199780123456789" responses: "200": { description: National ID verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/rwanda_kyc/passport/: post: tags: [Rwanda KYC] summary: Rwanda Passport operationId: rwandaPassport requestBody: required: true content: application/json: schema: type: object required: [passport_number] properties: passport_number: { type: string } responses: "200": { description: Passport verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── UGANDA KYC ────────────────────────────────────────────── /api/onboarding/uganda_kyc/national_id/: post: tags: [Uganda KYC] summary: Uganda National ID operationId: ugandaNationalId requestBody: required: true content: application/json: schema: type: object required: [national_id, surname, given_name, date_of_birth, document_id] properties: national_id: { type: string } surname: { type: string } given_name: { type: string } date_of_birth: type: string format: date example: "1990-01-15" document_id: type: string description: Document serial number from the physical card responses: "200": { description: National ID verified } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── INDIVIDUAL CREDIT ──────────────────────────────────────── /api/onboarding/individual/crc_summary/: post: tags: [Individual Credit] summary: CRC Credit History operationId: crcSummary requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: { type: string, example: "22244545518" } responses: "200": { description: CRC credit history retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/individual/credit_scores_crc/: post: tags: [Individual Credit] summary: CRC Credit Score operationId: creditScoresCRC requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: { type: string, example: "22244545518" } responses: "200": { description: CRC credit score retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/individual/crc_full/: post: tags: [Individual Credit] summary: CRC Full Credit Report operationId: crcFull requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: { type: string, example: "22244545518" } responses: "200": { description: CRC full report retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/individual/credit_registry_summary/: post: tags: [Individual Credit] summary: Credit Registry Summary operationId: creditRegistrySummary requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: { type: string, example: "22244545518" } responses: "200": { description: Credit Registry summary retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/individual/credit_registry_full/: post: tags: [Individual Credit] summary: Credit Registry Full Report operationId: creditRegistryFull requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: { type: string, example: "22244545518" } responses: "200": { description: Credit Registry full report retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/individual/premium/: post: tags: [Individual Credit] summary: Premium Credit Report operationId: individualPremium requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: { type: string, example: "22244545518" } responses: "200": { description: Premium credit report retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/individual/credit_registry_history_advanced/: post: tags: [Individual Credit] summary: Credit Registry History Advanced operationId: creditRegistryHistoryAdvanced requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: { type: string, example: "22244545518" } responses: "200": { description: Advanced credit history retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/individual/credit_scores_first_central/: post: tags: [Individual Credit] summary: First Central Credit Score operationId: creditScoresFirstCentral requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: { type: string, example: "22244545518" } responses: "200": { description: First Central credit score retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/individual/first_central_summary/: post: tags: [Individual Credit] summary: First Central Credit Summary operationId: firstCentralSummary requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: { type: string, example: "22244545518" } responses: "200": { description: First Central summary retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/individual/first_central_full/: post: tags: [Individual Credit] summary: First Central Full Report operationId: firstCentralFull requestBody: required: true content: application/json: schema: type: object required: [bvn] properties: bvn: { type: string, example: "22244545518" } responses: "200": { description: First Central full report retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/kenya/individual_credit/: post: tags: [Individual Credit] summary: Kenya Individual Credit Report operationId: kenyaIndividualCredit requestBody: required: true content: application/json: schema: type: object required: [national_id] properties: national_id: type: string example: "12345678" responses: "200": { description: Kenya credit report retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── BUSINESS CREDIT ───────────────────────────────────────── /api/onboarding/business/crc/: post: tags: [Business Credit] summary: CRC Business Credit History operationId: crcBusiness requestBody: required: true content: application/json: schema: type: object required: [registration_number] properties: registration_number: { type: string, example: "RC-123456" } responses: "200": { description: CRC business credit history retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/business/first_central/: post: tags: [Business Credit] summary: First Central Business Credit History operationId: firstCentralBusiness requestBody: required: true content: application/json: schema: type: object required: [registration_number] properties: registration_number: { type: string, example: "RC-123456" } responses: "200": { description: First Central business history retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/business/premium/: post: tags: [Business Credit] summary: Premium Business Credit History operationId: premiumBusiness requestBody: required: true content: application/json: schema: type: object required: [registration_number] properties: registration_number: { type: string, example: "RC-123456" } responses: "200": { description: Premium business credit report retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/kenya/company_credit/: post: tags: [Business Credit] summary: Kenya Business Credit Report operationId: kenyaCompanyCredit requestBody: required: true content: application/json: schema: type: object required: [registration_number] properties: registration_number: { type: string } responses: "200": { description: Kenya business credit report retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── TRANSACTION MONITORING ────────────────────────────────── /api/v1/monitoring/limit: get: tags: [Transaction Monitoring] summary: Get Transaction Limit operationId: getLimit responses: "200": description: Limit retrieved content: application/json: schema: type: object properties: limit: { type: number, example: 200000 } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } post: tags: [Transaction Monitoring] summary: Set Transaction Limit operationId: setLimit requestBody: required: true content: application/json: schema: type: object required: [limit] properties: limit: { type: number, example: 100000 } responses: "200": { description: Limit updated } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/v1/monitoring/threshold: get: tags: [Transaction Monitoring] summary: Get Fraud Alert Threshold operationId: getThreshold responses: "200": description: Threshold retrieved content: application/json: schema: type: object properties: threshhold: { type: number, example: 7 } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } post: tags: [Transaction Monitoring] summary: Set Fraud Alert Threshold operationId: setThreshold requestBody: required: true content: application/json: schema: type: object required: [threshhold] properties: threshhold: type: number description: "Note: double-h spelling is required by the API" example: 70 responses: "200": { description: Threshold updated } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/v1/monitoring/transaction_monitoring/: post: tags: [Transaction Monitoring] summary: Submit Transaction for Monitoring operationId: submitTransaction requestBody: required: true content: application/json: schema: type: object required: [ transaction_id, amount, currency, transaction_type, account_type, customer_details, additional_info, ] properties: transaction_id: type: string example: "TXN-12345678" amount: type: number example: 50000 currency: type: string example: "NGN" transaction_type: type: string enum: [transfer, ussd, web, card] description: "Discriminator for the payload shape. transfer/ussd/web require origin_account and destination_account. card requires card_details." account_type: type: string enum: [individual, corporate] origin_account: type: object description: "Required when transaction_type is transfer, ussd, or web" required: [account_number, bank_code] properties: account_number: { type: string, example: "9876543219" } bank_code: { type: string, example: "001" } destination_account: type: object description: "Required when transaction_type is transfer, ussd, or web" required: [account_number, bank_code] properties: account_number: { type: string, example: "123456789" } bank_code: { type: string, example: "002" } card_details: type: object description: "Required when transaction_type is card" required: [bin, last4] properties: bin: type: integer description: First six digits of the card (BIN) example: 345676 last4: type: integer description: Last four digits of the card example: 9809 merchant_details: type: object description: "Optional but recommended when transaction_type is card" properties: merchant_name: type: string example: "ABC Stores" merchant_location: type: string example: "Lagos, Nigeria" merchant_mcc: type: string description: Merchant category code (MCC) example: "5813" timestamp: type: string format: date-time description: ISO 8601 transaction timestamp (used with card transactions) example: "2025-08-23T14:30:00Z" customer_details: type: object required: [customer_name, customer_email] properties: customer_name: { type: string } customer_email: { type: string, format: email } customer_phone: type: string example: "+2347012345678" identifier: type: string description: "Customer identifier value. Use bvn for Nigeria, national_id for Kenya, ghana_card for Ghana, etc." example: "22430372151" identifier_type: type: string description: "Key of the identifier type (e.g. bvn, national_id, ghana_card). Required when identifier is provided" example: "bvn" additional_info: type: object required: [ip_address, location] properties: ip_address: { type: string, example: "192.168.1.1" } location: { type: string, example: "Lagos, Nigeria" } transaction_description: { type: string } run_kyc: type: boolean default: false responses: "201": { description: Transaction processed } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── TRANSACTION SCREENING ──────────────────────────────────── /api/v1/monitoring/transaction_screening/: post: tags: [Transaction Screening] summary: Screen a Transaction operationId: screenTransaction requestBody: required: true content: application/json: schema: type: object required: [amount, transactionDate, sender, receiver] properties: transactionId: { type: string } transactionType: { type: string, example: "Transfer" } amount: { type: number, example: 10000.00 } currency: { type: string, example: "NGN" } transactionDate: type: string format: date-time example: "2024-07-06T12:34:56Z" sender: type: object required: [name] properties: name: { type: string } accountNumber: { type: string } address: type: object properties: street: { type: string } city: { type: string } state: { type: string } postalCode: { type: string } country: { type: string } identification: type: object properties: type: { type: string } number: { type: string } country: { type: string } receiver: type: object required: [name] properties: name: { type: string } accountNumber: { type: string } address: type: object properties: street: { type: string } city: { type: string } state: { type: string } postalCode: { type: string } country: { type: string } details: type: object properties: purpose: { type: string } reference: { type: string } responses: "201": { description: Transaction screened } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── TRANSACTION KYC ───────────────────────────────────────── /api/v1/monitoring/kyc_search/: get: tags: [Transaction KYC] summary: Get All KYC Search Results operationId: getAllKycResults responses: "200": { description: All KYC results retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } post: tags: [Transaction KYC] summary: Run KYC Check operationId: runKycCheck requestBody: required: true content: application/json: schema: type: object required: [entity_name] properties: entity_name: type: string example: "John Doe" entity_type: type: string enum: [person, company, business, organization] sources: type: string description: 'Comma-separated sources, e.g. "Sanctions, PEPs"' continuous_monitoring: type: boolean default: false responses: "200": { description: KYC check initiated or completed } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/v1/monitoring/kyc_search/{id}/: get: tags: [Transaction KYC] summary: Get KYC Result by ID operationId: getKycById parameters: - name: id in: path required: true schema: type: integer description: KYC search result ID responses: "200": { description: KYC result retrieved } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } "404": { description: Not Found } # ── LOAN FRAUD ────────────────────────────────────────────── /api/v1/loan/fraud_check/: post: tags: [Loan Fraud] summary: Loan Fraud Check operationId: loanFraudCheck requestBody: required: true content: multipart/form-data: schema: type: object required: [ loan_amount_requested, loan_repayment_duration_type, loan_repayment_duration_value, collateral_required, ] properties: first_name: { type: string, description: Individual applicant first name } last_name: { type: string } business_name: { type: string, description: Business name (business applications only), } date_of_birth: { type: string, format: date } gender: { type: string, enum: [male, female] } country: { type: string, example: "Nigeria" } current_address: { type: string } business_address: { type: string } identifier: { type: number, description: "Customer or business identifier value (e.g. BVN for a Nigeria individual, RC number for a Nigeria business, a Kenya national ID number).", example: 22244545518, } identifier_type: { type: string, description: "Key of the identifier type (e.g. bvn, rc_number, national_id, ghana_card).", example: "bvn", } phone_number: { type: string } email_address: { type: string, format: email } employment_type: { type: string } job_role: { type: string } employer_name: { type: string } annual_income: { type: number } annual_revenue: { type: number, description: Annual revenue (business only) } employment_duration: { type: string } bank_name: { type: string } account_number: { type: string } loan_amount_requested: { type: number, example: 100000 } purpose_of_loan: { type: string } loan_repayment_duration_type: { type: string, enum: [weeks, months, years] } loan_repayment_duration_value: { type: integer, example: 6 } collateral_required: { type: boolean, default: false } collateral: { type: string } is_individual: { type: boolean, description: Set true for individual applications, } is_business: { type: boolean, description: Set true for business applications, } run_aml_check: { type: boolean, default: false } responses: "200": { description: Loan fraud check processed } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } # ── USER JOURNEY ──────────────────────────────────────────── /api/v1/journey/event/: post: tags: [User Journey] summary: Submit Journey Event operationId: submitJourneyEvent requestBody: required: true content: application/json: schema: type: object required: [user_id, session_id, event, timestamp] properties: user_id: { type: string } session_id: { type: string } event: type: string enum: [LOGIN, OTP_VERIFY, PAYMENT_INIT, PAYMENT_COMPLETE, LOGOUT] timestamp: { type: string, format: date-time } device_id: { type: string } ip_address: { type: string } metadata: type: object properties: amount: { type: number } currency: { type: string } responses: "201": { description: Event processed } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/v1/journey/session/{session_id}/: get: tags: [User Journey] summary: Get Session State operationId: getSessionState parameters: - name: session_id in: path required: true schema: { type: string } responses: "200": { description: Session state retrieved } "401": { $ref: "#/components/responses/Unauthorized" } "404": { description: Session not found } delete: tags: [User Journey] summary: Clear Session operationId: clearSession parameters: - name: session_id in: path required: true schema: { type: string } responses: "204": { description: Session cleared } "401": { $ref: "#/components/responses/Unauthorized" } /api/v1/journey/analytics/user/{user_id}/: get: tags: [User Journey] summary: User Analytics operationId: getUserAnalytics parameters: - name: user_id in: path required: true schema: { type: string } responses: "200": { description: User analytics retrieved } "401": { $ref: "#/components/responses/Unauthorized" } /api/v1/journey/health/: get: tags: [User Journey] summary: Health Check operationId: journeyHealth security: [] responses: "200": { description: Service health status } # ── CUSTOMER ONBOARDING ───────────────────────────────────── /api/onboarding/verify_customer: post: tags: [Customer Onboarding] summary: Verify Customer operationId: verifyCustomer description: Combines identity verification and AML screening into a single call. Returns a consolidated risk decision alongside raw IVS and screening results. requestBody: required: true content: application/json: schema: type: object required: [country, identifier] properties: country: type: string enum: [nigeria, kenya, ghana, uganda, rwanda] example: "nigeria" description: Country of the customer identifier: type: string example: "12345678901" description: The ID number to verify (BVN, NIN, National ID, etc.) identifier_type: type: string example: "bvn" description: "Overrides the country default. Nigeria: bvn, nin, vnin. Others: national_id or ghana_id." responses: "200": { description: Onboarding completed — check decision field for pass/review/fail, } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } "403": description: Feature not enabled for this branch or account not verified /api/onboarding/settings: get: tags: [Customer Onboarding] summary: Get Onboarding Settings operationId: getOnboardingSettings description: Retrieve the current IVS and AML toggle settings for your branch. responses: "200": { description: Settings retrieved } "401": { $ref: "#/components/responses/Unauthorized" } post: tags: [Customer Onboarding] summary: Update Onboarding Settings operationId: updateOnboardingSettings description: Enable or disable identity verification (IVS) and AML screening for your branch. requestBody: required: true content: application/json: schema: type: object properties: ivs: type: boolean description: Enable or disable identity verification aml: type: boolean description: Enable or disable AML screening responses: "200": { description: Settings saved } "401": { $ref: "#/components/responses/Unauthorized" } # ── DOCUMENT VERIFICATION ─────────────────────────────────── /api/onboarding/document_verification: post: tags: [Document Verification] summary: Document Verification (generic) operationId: documentVerification description: > Extract identity details from a photo of a document, plus a required face match against a selfie (still-image comparison only — no liveness, no video, no blink/motion challenge) for every document_type except cac_certificate and utility_bill. Fallback for the number-lookup checks (Passport, Driver's License, NIN with Face, VNIN, Voter's ID) while those are unavailable. Which document_type values are valid depends on country. A dedicated endpoint exists per country/document-type combination (see the other Document Verification operations below) — prefer those where possible, since document_type and country are baked into the URL instead of the request body. This generic endpoint still works unchanged for existing integrations that already pass document_type/country explicitly. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_type, document_front] properties: document_type: type: string enum: [ national_id, passport, drivers_license, voters_card, kenya_id, cac_certificate, utility_bill, ] description: > The kind of document being submitted. passport works for passports from any country; the rest are country-specific. example: "passport" country: type: string description: > Country the document was issued in. For passport it is optional and may be any country, as an two-letter country code such as RW; leave it out to have it detected. For every other document_type it is required: nigeria, kenya, ghana, canada, usa, "cote d'ivoire" or uk. example: "nigeria" document_front: type: string format: binary description: Front of the document. JPG, PNG or single-page PDF, max 10MB. document_back: type: string format: binary description: > Back of the document. Optional for every type, but recommended for two-sided documents (national_id, kenya_id, drivers_license, voters_card) — extraction may be less complete without it. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required for every document_type except cac_certificate and utility_bill, which never carry a face photo and reject the request with 400 if selfie_image is missing for any other type. Still-image comparison only, not liveness. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/passport: post: tags: [Document Verification] summary: Document Verification — Global Passport operationId: documentVerificationGlobalPassport description: > Verify a passport from any country, plus a required face match against a selfie. Send country when you know which country issued the passport; leave it out and the country is detected from the passport. The issuing country is returned as document_country. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front, selfie_image] properties: document_front: type: string format: binary description: > Photo or scan of the passport data page. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face on the passport. JPG or PNG, max 5MB. country: type: string example: RW description: > Optional. The country that issued the passport, as an two-letter country code. Leave it out to have it detected. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/nigeria/national_id: post: tags: [Document Verification] summary: Document Verification — Nigeria National ID operationId: documentVerificationNigeriaNationalId description: > Extract identity details from a Nigerian NIN slip or National ID card, plus a required face match against a selfie. document_type and country are fixed by this URL — no need to send them in the request body. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Front of the NIN slip/card. JPG, PNG or single-page PDF, max 10MB. document_back: type: string format: binary description: > Back of the card. Optional, but recommended — extraction may be less complete without it. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/nigeria/passport: post: tags: [Document Verification] summary: Document Verification — Nigeria Passport operationId: documentVerificationNigeriaPassport description: > Extract identity details from a Nigerian international passport, plus a required face match against a selfie. document_type and country are fixed by this URL — no need to send them in the request body. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Photo of the passport data page. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/nigeria/drivers_license: post: tags: [Document Verification] summary: Document Verification — Nigeria Driver's License operationId: documentVerificationNigeriaDriversLicense description: > Extract identity details from a Nigerian driver's license, plus a required face match against a selfie. document_type and country are fixed by this URL — no need to send them in the request body. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Front of the driver's license. JPG, PNG or single-page PDF, max 10MB. document_back: type: string format: binary description: > Back of the license. Optional, but recommended — extraction may be less complete without it. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/nigeria/voters_card: post: tags: [Document Verification] summary: Document Verification — Nigeria Voter's Card operationId: documentVerificationNigeriaVotersCard description: > Extract identity details from a Nigerian Permanent Voter's Card (PVC), plus a required face match against a selfie. document_type and country are fixed by this URL — no need to send them in the request body. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Photo of the PVC. JPG, PNG or single-page PDF, max 10MB. document_back: type: string format: binary description: > Back of the PVC. Optional, but recommended — extraction may be less complete without it. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/nigeria/cac_certificate: post: tags: [Document Verification] summary: Document Verification — Nigeria CAC Certificate operationId: documentVerificationNigeriaCacCertificate description: > Extract company details from a Nigerian CAC certificate. No face match — CAC certificates don't carry a photo, so selfie_image is not applicable. document_type and country are fixed by this URL — no need to send them in the request body. Currently disabled pending relaunch — this endpoint returns 400 until re-enabled. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Photo of the CAC certificate. JPG, PNG or single-page PDF, max 10MB. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/nigeria/utility_bill: post: tags: [Document Verification] summary: Document Verification — Nigeria Utility Bill operationId: documentVerificationNigeriaUtilityBill description: > Extract address details from a Nigerian utility bill. No face match — utility bills don't carry a photo, so selfie_image is not applicable. document_type and country are fixed by this URL — no need to send them in the request body. Currently disabled pending relaunch — this endpoint returns 400 until re-enabled. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Photo of the utility bill. JPG, PNG or single-page PDF, max 10MB. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/kenya/kenya_id: post: tags: [Document Verification] summary: Document Verification — Kenya ID operationId: documentVerificationKenyaId description: > Extract identity details from a Kenyan ID card (older laminated design or newer Maisha Card), plus a required face match against a selfie. Fields specific to the Maisha Card (serial_number, place_of_issue, expiry date) come back empty on an older card — that's expected, not an error. document_type and country are fixed by this URL — no need to send them in the request body. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Front of the ID card. JPG, PNG or single-page PDF, max 10MB. document_back: type: string format: binary description: > Back of the card. Optional, but recommended — extraction may be less complete without it. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/kenya/passport: post: tags: [Document Verification] summary: Document Verification — Kenya Passport operationId: documentVerificationKenyaPassport description: > Extract identity details from a Kenyan passport, plus a required face match against a selfie. document_type and country are fixed by this URL — no need to send them in the request body. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Photo of the passport data page. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/ghana/passport: post: tags: [Document Verification] summary: Document Verification — Ghana Passport operationId: documentVerificationGhanaPassport description: > Extract identity details from a Ghanaian passport, plus a required face match against a selfie. document_type and country are fixed by this URL — no need to send them in the request body. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Photo of the passport data page. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/canada/passport: post: tags: [Document Verification] summary: Document Verification — Canada Passport operationId: documentVerificationCanadaPassport description: > Extract identity details from a Canadian passport, plus a required face match against a selfie. document_type and country are fixed by this URL — no need to send them in the request body. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Photo of the passport data page. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/usa/passport: post: tags: [Document Verification] summary: Document Verification — USA Passport operationId: documentVerificationUsaPassport description: > Extract identity details from a US passport, plus a required face match against a selfie. document_type and country are fixed by this URL — no need to send them in the request body. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Photo of the passport data page. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/cote_d_ivoire/passport: post: tags: [Document Verification] summary: Document Verification — Cote d'Ivoire Passport operationId: documentVerificationCoteDIvoirePassport description: > Extract identity details from a Cote d'Ivoire passport, plus a required face match against a selfie. document_type and country are fixed by this URL — no need to send them in the request body. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Photo of the passport data page. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" } /api/onboarding/document_verification/uk/passport: post: tags: [Document Verification] summary: Document Verification — UK Passport operationId: documentVerificationUkPassport description: > Extract identity details from a UK passport, plus a required face match against a selfie. document_type and country are fixed by this URL — no need to send them in the request body. UK document verification currently supports passports only. requestBody: required: true content: multipart/form-data: schema: type: object required: [document_front] properties: document_front: type: string format: binary description: Photo of the passport data page. JPG, PNG or single-page PDF, max 10MB. selfie_image: type: string format: binary description: > A selfie to compare against the face extracted from the document. JPG or PNG, max 5MB. Required. responses: "200": { $ref: "#/components/responses/DocumentVerificationSuccess" } "400": { $ref: "#/components/responses/BadRequest" } "401": { $ref: "#/components/responses/Unauthorized" }