OnLink
API reference

Start a business customer’s verification

Opens the business application for a business customer and records its company details. A company registered in Kenya is looked up in the business registry from its registration number and postal details, which supplies the name, the address and the directors. A company registered anywhere else needs its legalName and registeredAddress here, and goes to a reviewer. Then upload the company’s documents (only a company registered outside Kenya must send its certificate of incorporation; every other document is optional) and invite each director; each director verifies their own identity from the email we send them, in your name. The customer must be pending_kyc, needs_info or kyc_in_review. Calling this again while the application is open returns it unchanged, without looking the company up again; a call that arrives while the first is still applying the company details answers the application as it stands. Once the application is verified or rejected a new one is never opened: 409 KYB_APPLICATION_CLOSED. By calling this you confirm you hold the company’s authority to apply for it, and the API key is recorded. Every call must also carry a consent object: consentVersion (the current business terms version), customerConsentedAt (the instant the customer consented: not in the future and not older than 30 days) and partnerAttestation: true (you attest the customer consented to the business terms under your partner agreement). It is stored on the application as an attested consent, marked api_attested. A field this call does not take is refused with 400 UNKNOWN_BODY_FIELD.

POST
/v1/customers/{id}/kyb

Authorization

partner-key
X-OnLink-Key<token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/customers/string/kyb" \  -H "Content-Type: application/json" \  -d '{    "countryOfRegistration": "KE",    "registrationNumber": "CPR/2015/123456",    "consent": {      "consentVersion": "2026-07-business-kyb-v1",      "customerConsentedAt": "2026-11-17T09:30:00Z",      "partnerAttestation": true    }  }'
{  "status": "pending_kyc",  "reason": "document_unreadable",  "nextAction": "string",  "applicationStatus": "draft",  "company": {    "name": "Acme Trading Ltd",    "registrationNumber": "CPR/2015/123456",    "countryOfRegistration": "KE",    "registeredAddress": "string"  },  "directors": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "email": "string",      "type": "individual",      "status": "not_started",      "invitedAt": "2019-08-24T14:15:22Z",      "residentialAddressProvided": false,      "ownershipPercentage": 60    }  ],  "documents": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "documentType": "certificate_of_incorporation",      "directorId": "36254c85-3859-4e1b-ba81-159a76808304",      "fileName": "certificate.pdf",      "contentType": "application/pdf",      "sizeBytes": 182044,      "reviewStatus": "pending",      "uploadedAt": "2026-11-18T09:30:00.000Z"    }  ],  "missingDocuments": [    "certificate_of_incorporation"  ],  "missingDetails": [    "businessType",    "physicalAddress",    "directors[6a1d0c5e-3b7f-4e0a-9c2d-8f1b2a3c4d5e].residentialAddress"  ]}