For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Get access
Getting Started Key Concepts Integration Types Core Components Embed Hosted API API Reference
  • API Reference
    • Contribution Reports
    • Events and Webhooks
      • GETList all policies
      • GETRetrieve a policy
    • API Errors
Get access
LogoLogo
API ReferencePolicies

List all policies

GET
/policies
GET
/policies
$curl https://test.api.kota.io/policies \
> -H "Authorization: Bearer <apiKey>" \
> -H "Content-Type: application/json"
200Retrieved
1{
2 "items": [
3 {
4 "id": "p_9f8b7c6d5e4a3b2c1d0e9f8a7b6c5d4e",
5 "employee_id": "ee_1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p",
6 "group_policy_id": "gp_4e5d6c7b8a9f0e1d2c3b4a5f6e7d8c9b",
7 "bundling_type": "not_bundled",
8 "status": "scheduled",
9 "group_id": "gr_7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
10 "provider": {
11 "id": "pr_5f6e7d8c9b0a1b2c3d4e5f6a7b8c9d0e",
12 "name": "Global Health Insurance",
13 "description": "Leading provider of comprehensive health insurance plans worldwide.",
14 "logo_url": "https://cdn.kota.io/providers/global_health_insurance/logo.png"
15 },
16 "plan": {
17 "id": "pl_0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d",
18 "name": "Premium Health Plan",
19 "description": "Comprehensive coverage including outpatient, inpatient, and dental care.",
20 "currency": "eur",
21 "documents": [
22 {
23 "title": "Insurance Product Information Document",
24 "link": "https://cdn.kota.io/plans/premium_health_plan/ipid.pdf",
25 "type": "ipid"
26 }
27 ]
28 },
29 "start_date": "2024-12-01",
30 "type": "health_insurance",
31 "end_date": "2025-11-30",
32 "object": "policy"
33 }
34 ],
35 "page": 1,
36 "page_size": 10,
37 "total_count": 25,
38 "has_next_page": true,
39 "has_previous_page": false
40}

Returns a list of policies. By default, only active and scheduled policies are returned. Use the status query parameter to filter by other statuses. The policies are returned sorted by creation date, with the most recent policy appearing first.

Previous

Retrieve a plan

Next

Retrieve a policy

Built with

Authentication

AuthorizationBearer
Authorization header using the Bearer scheme

Query parameters

employee_idstringOptionalformat: "ee_.+"
Filters policies by employee.
group_idstringOptionalformat: "gr_.+"
Filters policies by group.
group_policy_idstringOptionalformat: "gp_.+"
Filters policies by group policy.
statusstringOptional

Multiple values can be provided by separating them with a comma. Allowed values are: scheduled, active, expired, cancelled.

pageintegerOptional
The page of results to return. Defaults to 1 if not provided.
page_sizeintegerOptional
The number of results to return per page. Defaults to 10 if not provided. Maximum value is 100.

Response

OK
itemslist of objects
A paginated array containing the response elements
pageinteger
The current page of the results
page_sizeinteger
The number of results on this page. This can be different from the requested page size if the total number of results is less than the requested page size
total_countinteger
The total number of elements available in the response. This is the total number of elements available across all pages, not just the current page.
has_next_pagebooleanRead-only
Whether there are more pages available after this page
has_previous_pagebooleanRead-only
Whether there are more pages available before this page