---
title: "Retrieve a list of policies"
method: GET
path: "/policy/list"
tags: ["Policy"]
---

# Retrieve a list of policies

`GET /policy/list`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/policy/list`
- Auth: HTTP bearer

## Query parameters

- `cursor` string: The cursor to use for pagination
- `order` 'asc' | 'desc': The order of the paginated items
- `take` integer: The number of items to retrieve
- `botId` string: Filter policies that apply to a specific bot
- `meta` object: Key-value pairs to filter the items by metadata

## Response `200`

The list of policies was retrieved successfully

- object
  - `items` object[], required
    - `alias` string, nullable: The unique alias for the instance
    - `name` string: The associated name
    - `description` string: The associated description
    - `meta` Meta: Meta data information
    - `id` string, required: The instance ID
    - `createdAt` number, required: The timestamp (ms) when the instance was created
    - `updatedAt` number, required: The timestamp (ms) when the instance was updated
    - `blueprintId` string, nullable: The ID of the blueprint
    - `botId` string: The ID of the bot this policy applies to. When omitted the policy is global and applies to every bot.
    - `type` 'retention' | 'usage', required: The policy type
    - `state` 'enabled' | 'disabled': The lifecycle state of a resource - toggle it on/off without deleting it
    - `config` object: The policy configuration as JSON
  - `cursor` string, required: Cursor for fetching the next page

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
