3 endpoints · base URL https://flexysure.intrepidprojects.co.ke/api/v1
Packaged covers — personal accident, domestic package, WIBA, fire, golfer's and the like — priced flat, by age band or as a rate on the sum insured. Insurance Cloud field names (coverName, basicPremium, sumInsured).
Every active product with its benefit schedule and each insurer's covers (plan_id, cover name, pricing basis). needs_age / needs_sum_insured say what the quote needs.
Scope
read
Authentication
Bearer token
Rate limit
60 requests per minute per token (per-client override)
Idempotency
Safe to repeat (read only).
Agent headers
Accepts X-Agent-Code and X-Agent-Key: the call runs as that agent and sees only the agent's own records.
Headers
Header
Meaning
Authorization
Bearer <access_token> (scope read or quote)
X-Agent-Code
Optional. Agent code of the selling agent; the call runs with that agent's visibility.
X-Agent-Key
Optional, with X-Agent-Code. The agent's API key; a mismatch returns 403 agent_denied.
Re-prices the product with the chosen insurer (policy.plan_id or coverName picks the cover) and checks policy.premium within KES 1. Age comes from policy.age or the client's dob. benefits[] (limits in shillings, rate in percent) is kept on the policy; otherwise the cover's schedule is used.
Scope
bind
Authentication
Bearer token
Rate limit
60 requests per minute per token (per-client override)
Idempotency
Required: send an Idempotency-Key; a retry with the same key replays the first response.
Agent headers
Accepts X-Agent-Code and X-Agent-Key: the call runs as that agent and sees only the agent's own records.
Headers
Header
Meaning
Authorization
Bearer <access_token> (scope bind)
Idempotency-Key
Required. Unique per save; replays return the first response.
X-Agent-Code
Optional. Agent code; with X-Agent-Key the agent becomes the creator.
X-Agent-Key
Optional. The agent's key.
Body fields
Field
Type
Required
Description
client
object
Yes
Same block as POST /api/v1/motor/save, plus optional dob.