/api/v1/medical/limits
List inpatient limits
Distinct inpatient limits offered by plans on the panel, ascending. Use one as limit_from/limit_to or policy.inpatient_limit.
- 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-CodeandX-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. |
Example
curl -X GET 'https://flexysure.intrepidprojects.co.ke/api/v1/medical/limits' \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Accept: application/json' \
-H 'X-Agent-Code: KK01' \
-H "X-Agent-Key: $AGENT_KEY"
{
"data": [
{
"limit": 1000000,
"limit_minor": 100000000,
"label": "KES 1,000,000"
},
{
"limit": 2000000,
"limit_minor": 200000000,
"label": "KES 2,000,000"
}
]
}
Responses
| Status | Meaning |
|---|---|
| 200 | Limits |
Errors are problem documents; the common codes (401, 403 insufficient_scope, 422, 429) apply to every endpoint.