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.
- Get sandbox keys — sign up, and copy your kp_test_ key.
- Create a consent — one call; we send the SMS and track the reply.
- Listen for the webhook — consent.given arrives with the record’s code and hash.
# 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" }
client := koivaproof.New(os.Getenv("KP_KEY")) c, err := client.Consents.Create(ctx, &koivaproof.ConsentParams{ Phone: "+254712000412", Purpose: "Appear on Sunday livestream", Channel: koivaproof.SMS, }) // c.ID == "KP-7Q2-91X", c.Status == "pending"
import KoivaProof from "@koivaproof/node"; const kp = new KoivaProof(process.env.KP_KEY); const consent = await kp.consents.create({ phone: "+254712000412", purpose: "Appear on Sunday livestream", channel: "sms", }); // consent.verify_url → share it, print it, QR it
Endpoints
Core resources
| Method | Path | What it does |
|---|---|---|
| POST | /v1/consents | Request consent (Kubali) |
| POST | /v1/consents/{id}/withdraw | Withdraw on someone’s behalf |
| POST | /v1/signatures | Send a document for signing |
| POST | /v1/vouchers | Issue a voucher (eVouch) |
| POST | /v1/vouchers/{id}/redeem | Redeem once |
| POST | /v1/identity/checks | Phone, ID or KRA PIN check |
| GET | /v1/records/{code} | Verify any record |
| POST | /v1/sms | Send 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" }