> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.kota.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.kota.io/_mcp/server.

# List all policy import intents

GET https://test.api.kota.io/policy_import_intents

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.

Reference: https://docs.kota.io/api-reference/policy-import-intents/list-policy-import-intents

## Authentication

- `Authorization` header (bearer token, required) — Authorization header using the Bearer scheme

## Servers

- `https://test.api.kota.io` (test, default)
- `https://api.kota.io` (production)

## Request

### Query parameters

- `employee_id` (string, optional) — Filters policy import intents by employee ID. Prefixed with `ee_`.
- `group_id` (string, optional) — Filters policy import intents by group ID. Prefixed with `g_`.
- `status` (string, optional) — Multiple values can be provided by separating them with a comma. Allowed values are: `processing`, `failed`, `success`.
- `page` (integer, optional) — The page of results to return. Defaults to 1 if not provided.
- `page_size` (integer, optional) — The number of results to return per page. Defaults to 10 if not provided. Maximum value is 100.

### Headers

- `X-Platform-Id` (string, optional) — The target platform id. Required only when calling with a dashboard (WorkOS AuthKit) access token instead of a platform API key — the token carries no platform claim, so the caller must say which platform it means. Ignored for platform API key / embed session token callers.

## Response

### 200

OK

- `items` (list of PolicyImportIntentResponse, required) — A paginated array containing the response elements
- `page` (integer, required) — The current page of the results
- `page_size` (integer, required) — 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_count` (integer, required) — 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_page` (boolean, optional) — Whether there are more pages available after this page
- `has_previous_page` (boolean, optional) — Whether there are more pages available before this page

## Errors

### 400 Bad Request Error

Bad Request

- `type` (string, optional, nullable)
- `title` (string, optional, nullable)
- `status` (integer, optional, nullable)
- `detail` (string, optional, nullable)
- `instance` (string, optional, nullable)

## Types

### PolicyImportIntentResponse

- `id` (string, required) — Unique identifier for the policy import intent. Prefixed with `pii_`.
- `status` (enum, required) — Current status of the policy import intent.
  - Allowed values: `processing`, `failed`, `success`
- `employee_id` (string, required) — The employee ID for the policy import. Prefixed with `ee_`.
- `group_id` (string, required) — The group ID for the policy import. Prefixed with `g_`.
- `provider_policy_number` (string, required) — The provider's policy number.
- `member_number` (string, required) — The member number assigned by the provider.
- `policy_start_date` (date, required) — The start date of the policy.
- `associated_persons` (list of PolicyImportIntentAssociatedPersonResponse, required) — List of associated persons linked to this policy import.
- `object` (string, optional) — Object type identifier.
- `policy_end_date` (date, optional, nullable) — The end date of the policy. Null if the policy has no end date, or end date is not known.

### PolicyImportIntentAssociatedPersonResponse

- `id` (string, required) — Unique identifier for the associated person import.
- `associated_person_id` (string, required) — The associated person ID. Prefixed with `ap_`.
- `member_number` (string, optional, nullable) — The member number assigned by the provider for this associated person.
- `start_date` (date, optional, nullable) — The start date for this associated person's coverage.
- `end_date` (date, optional, nullable) — The end date for this associated person's coverage.

## Examples

**Response**

```json
{
  "items": [
    {
      "id": "pii_3b1333d87d9d4fd6ad83ba7f6b0e951a",
      "status": "processing",
      "employee_id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
      "group_id": "gr_3b1333d87d9d4fd6ad83ba7f6b0e951a",
      "provider_policy_number": "string",
      "member_number": "string",
      "policy_start_date": "2024-12-01",
      "associated_persons": [
        {
          "id": "string",
          "associated_person_id": "ap_3b1333d87d9d4fd6ad83ba7f6b0e951a",
          "member_number": null,
          "start_date": "2024-12-01",
          "end_date": "2024-12-01"
        }
      ],
      "object": "string",
      "policy_end_date": "2024-12-01"
    }
  ],
  "page": 123,
  "page_size": 123,
  "total_count": 123,
  "has_next_page": true,
  "has_previous_page": true
}
```

**SDK Code**

```python
import requests

url = "https://test.api.kota.io/policy_import_intents"

querystring = {"employee_id":"ee_3b1333d87d9d4fd6ad83ba7f6b0e951a","group_id":"gr_3b1333d87d9d4fd6ad83ba7f6b0e951a"}

headers = {"Authorization": "Bearer <apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://test.api.kota.io/policy_import_intents?employee_id=ee_3b1333d87d9d4fd6ad83ba7f6b0e951a&group_id=gr_3b1333d87d9d4fd6ad83ba7f6b0e951a';
const options = {method: 'GET', headers: {Authorization: 'Bearer <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://test.api.kota.io/policy_import_intents?employee_id=ee_3b1333d87d9d4fd6ad83ba7f6b0e951a&group_id=gr_3b1333d87d9d4fd6ad83ba7f6b0e951a"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://test.api.kota.io/policy_import_intents?employee_id=ee_3b1333d87d9d4fd6ad83ba7f6b0e951a&group_id=gr_3b1333d87d9d4fd6ad83ba7f6b0e951a")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://test.api.kota.io/policy_import_intents?employee_id=ee_3b1333d87d9d4fd6ad83ba7f6b0e951a&group_id=gr_3b1333d87d9d4fd6ad83ba7f6b0e951a")
  .header("Authorization", "Bearer <apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://test.api.kota.io/policy_import_intents?employee_id=ee_3b1333d87d9d4fd6ad83ba7f6b0e951a&group_id=gr_3b1333d87d9d4fd6ad83ba7f6b0e951a', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://test.api.kota.io/policy_import_intents?employee_id=ee_3b1333d87d9d4fd6ad83ba7f6b0e951a&group_id=gr_3b1333d87d9d4fd6ad83ba7f6b0e951a");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://test.api.kota.io/policy_import_intents?employee_id=ee_3b1333d87d9d4fd6ad83ba7f6b0e951a&group_id=gr_3b1333d87d9d4fd6ad83ba7f6b0e951a")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```