## List Checkpoints

**post** `/checkpoints/list`

List Checkpoints

### Body Parameters

- `thread_id: string`

- `before_checkpoint_id: optional string`

- `checkpoint_ns: optional string`

- `filter_metadata: optional map[unknown]`

- `limit: optional number`

### Returns

- `checkpoint: map[unknown]`

- `checkpoint_id: string`

- `checkpoint_ns: string`

- `metadata: map[unknown]`

- `thread_id: string`

- `parent_checkpoint_id: optional string`

### Example

```http
curl http://localhost:5003/checkpoints/list \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $AGENTEX_SDK_API_KEY" \
    -d '{
          "thread_id": "thread_id"
        }'
```

#### Response

```json
[
  {
    "checkpoint": {
      "foo": "bar"
    },
    "checkpoint_id": "checkpoint_id",
    "checkpoint_ns": "checkpoint_ns",
    "metadata": {
      "foo": "bar"
    },
    "thread_id": "thread_id",
    "parent_checkpoint_id": "parent_checkpoint_id"
  }
]
```
