Developers

One API for every kind of proof.

REST over HTTPS, JSON in and out, signed webhooks, and a sandbox that behaves like production. SMS in sandbox goes to your own test numbers only.

Quickstart

Your first consent in three steps.

  1. Get sandbox keys — sign up, and copy your kp_test_ key.
  2. Create a consent — one call; we send the SMS and track the reply.
  3. Listen for the webhook — consent.given arrives with the record’s code and hash.
Get sandbox keys
# Ask for consent by SMS — returns a record anyone can verify
curl https://api.koivaproof.com/v1/consents \
  -H "Authorization: Bearer kp_test_…" \
  -d phone="+254712000412" \
  -d purpose="Appear on Sunday livestream" \
  -d channel="sms"

→ 201 {
  "id": "KP-7Q2-91X",
  "status": "pending",
  "verify_url": "https://koivaproof.com/verify?code=KP-7Q2-91X"
}
Endpoints

Core resources

MethodPathWhat it does
POST/v1/consentsRequest consent (Kubali)
POST/v1/consents/{id}/withdrawWithdraw on someone’s behalf
POST/v1/signaturesSend a document for signing
POST/v1/vouchersIssue a voucher (eVouch)
POST/v1/vouchers/{id}/redeemRedeem once
POST/v1/identity/checksPhone, ID or KRA PIN check
GET/v1/records/{code}Verify any record
POST/v1/smsSend via Proof SMS

GET /v1/records/{code} is public and returns the masked view shown on /verify. It is limited to 30 requests a minute per IP.

Webhooks

Know the moment it happens.

Every change to a record — given, signed, withdrawn, redeemed, expired — is sent to your endpoint, signed with HMAC-SHA256. Failed deliveries retry with backoff for 72 hours.

// POST to your endpoint, signed with your webhook secret
{
  "event": "consent.given",
  "id": "KP-7Q2-91X",
  "at": "2026-11-27T07:14:03Z",
  "channel": "sms",
  "hash": "sha256:9f2c…a71e"
}