OnLink
API reference

Send a customer their verification link

Issues the page your customer opens to verify their identity, and returns its URL once. Issuing a new link replaces the previous one for the same customer. A link works once and for at most 24 hours. A customer whose verification is approved and who has not yet accepted the account terms gets a terms link instead (see purpose in the response). A business that is under review but still owes company documents or director checks gets a fresh verification link, which opens the step still owed. Limited to 20 requests a minute per partner.

POST
/v1/customers/{id}/kyc-link

Authorization

partner-key
X-OnLink-Key<token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/customers/string/kyc-link"
{  "url": "https://www.onlink.africa/verify/Zm9vYmFyYmF6cXV4MTIzNDU2Nzg5MGFiY2Q",  "expiresAt": "2026-11-19T09:00:00.000Z",  "purpose": "widget"}

Start a business customer’s verification POST

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.

Send a customer the account terms POST

Issues the page where the customer accepts the account terms, and returns its URL once. Issuing a new one replaces the previous terms link. A link works until the terms are accepted, or for at most 24 hours. It can be issued, and the customer can accept, while the status is kyc_in_review and once it is awaiting_terms. Before the customer has been submitted (pending_kyc or needs_info) there is nothing to accept yet: the request is refused with 409 CUSTOMER_KYC_NOT_OPEN. Limited to 20 requests a minute per partner.