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 policy import intents
      • POSTCreate a new policy import intent
      • GETRetrieve a policy import intent
    • API Errors
Get access
LogoLogo
API ReferencePolicy Import Intents

List all policy import intents

GET
/policy_import_intents
GET
/policy_import_intents
$curl -G https://test.api.kota.io/policy_import_intents \
> -H "Authorization: Bearer <apiKey>" \
> -H "Content-Type: application/json" \
> -d employee_id=ee_7f9c2d3a4b5e6f7890123456789abcde \
> -d group_id=gr_1a2b3c4d5e6f7890123456789abcdef0 \
> --data-urlencode status=processing,success \
> -d page=1 \
> -d page_size=20
1{
2 "items": [
3 {
4 "id": "pii_9f8e7d6c5b4a3210fedcba9876543210",
5 "status": "processing",
6 "employee_id": "ee_7f9c2d3a4b5e6f7890123456789abcde",
7 "group_id": "gr_1a2b3c4d5e6f7890123456789abcdef0",
8 "provider_policy_number": "POL123456789",
9 "member_number": "MBR987654321",
10 "policy_start_date": "2024-12-01",
11 "associated_persons": [
12 {
13 "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
14 "associated_person_id": "ap_4e5f6a7b8c9d0e1f234567890abcdef1",
15 "member_number": "MBR123456789",
16 "start_date": "2024-12-01",
17 "end_date": "2025-11-30"
18 }
19 ],
20 "object": "policy_import_intent",
21 "policy_end_date": "2025-11-30"
22 }
23 ],
24 "page": 1,
25 "page_size": 20,
26 "total_count": 45,
27 "has_next_page": true,
28 "has_previous_page": false
29}
Returns a paginated list of policy import intents. The intents are returned sorted by creation date, with the most recent intent appearing first. Results can be filtered by employee ID, group ID, and status.
Previous

Create a dependents management intent for a policy amendment

Next

Create a new policy import intent

Built with

Authentication

AuthorizationBearer
Authorization header using the Bearer scheme

Query parameters

employee_idstringOptionalformat: "ee_.+"

Filters policy import intents by employee ID. Prefixed with ee_.

group_idstringOptionalformat: "gr_.+"

Filters policy import intents by group ID. Prefixed with g_.

statusstringOptional

Multiple values can be provided by separating them with a comma. Allowed values are: processing, failed, success.

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

Errors

400
Bad Request Error