---
title: "[BETA] List agent sessions for a company"
method: GET
path: "/companies/{company_id}/agent/sessions"
tags: ["companies"]
---

# \[BETA\] List agent sessions for a company

`GET /companies/{company_id}/agent/sessions`

## Request

- Base URL: `https://api.getpg.ai/public-api/v1`
- URL: `https://api.getpg.ai/public-api/v1/companies/{company_id}/agent/sessions`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/getpg/apis/pg-ai-public-api/docs/companies/:company_id/agent/sessions/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve agent sessions scoped to a company.

## Path parameters

- `company_id` string, required

## Query parameters

- `page` integer
- `per_page` integer
- `status` string
- `type` string
- `search` string
- `sort_by` string
- `sort_order` string

## Response `200`

Success

- object: Response data

## Other responses

- `400`: Input Error. Check the request payload for issues.
- `401`: Unauthorized
- `403`: Access denied. Additional privileges are needed.
- `404`: Not Found. The requested resource does not exist.
- `429`: Rate Limited. Too many requests.
- `500`: Unexpected error

---

[API](https://skmtc.dev/getpg/apis/pg-ai-public-api.md) - [All operations](https://skmtc.dev/getpg/apis/pg-ai-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getpg/apis/pg-ai-public-api/revisions/cc47d013c073?raw)
