> ## Documentation Index
> Fetch the complete documentation index at: https://docs.botcadence.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List projects

> List projects in an organization with pagination

Returns a paginated list of projects for the organization.

## Authentication

<ParamField header="X-API-Key" type="string" required>
  Project API key for this organization. Format: `bot_live_…`
</ParamField>

## Path parameters

<ParamField path="organization_id" type="string" required>
  Organization ID. Must match the API key.
</ParamField>

## Query parameters

<ParamField query="skip" type="integer" default="0">
  Number of records to skip.
</ParamField>

<ParamField query="limit" type="integer" default="20">
  Page size. Range: `1`–`100`.
</ParamField>

<ParamField query="filters" type="string">
  JSON filter object, for example `{"status":"active"}`.
</ParamField>

<ParamField query="sort" type="string">
  JSON sort object, for example `{"created_at":-1}`.
</ParamField>

<ParamField query="projection" type="string">
  JSON projection object, for example `{"name":1,"status":1}`.
</ParamField>

## Response

<ResponseField name="items" type="array" required>
  Project objects for the current page.
</ResponseField>

<ResponseField name="pagination" type="object" required>
  Pagination metadata.
</ResponseField>

## Errors

<ResponseField name="401" type="Unauthorized">
  Missing, invalid, or revoked API key.
</ResponseField>

<ResponseField name="403" type="Forbidden">
  API key is not authorized for this organization.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -G "https://backend.botcadence.com/organizations/ORG_ID/projects" \
    -H "X-API-Key: bot_live_YOUR_KEY" \
    --data-urlencode "skip=0" \
    --data-urlencode "limit=20" \
    --data-urlencode 'filters={"status":"active"}'
  ```

  ```javascript JavaScript theme={null}
  const params = new URLSearchParams({
    skip: "0",
    limit: "20",
    filters: JSON.stringify({ status: "active" }),
  });

  const response = await fetch(
    `https://backend.botcadence.com/organizations/${organizationId}/projects?${params}`,
    { headers: { "X-API-Key": process.env.BOTCADENCE_API_KEY } }
  );
  ```

  ```python Python theme={null}
  import json
  import os
  import requests

  response = requests.get(
      f"https://backend.botcadence.com/organizations/{organization_id}/projects",
      headers={"X-API-Key": os.environ["BOTCADENCE_API_KEY"]},
      params={
          "skip": 0,
          "limit": 20,
          "filters": json.dumps({"status": "active"}),
      },
  )
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "status": "success",
    "message": "Projects retrieved successfully",
    "data": {
      "items": [
        {
          "_id": "665f1a2b3c4d5e6f7a8b9c0d",
          "name": "Support Hub",
          "status": "active",
          "language": "English",
          "timezone": "UTC"
        }
      ],
      "pagination": {
        "total": 3,
        "page": 1,
        "page_size": 20,
        "total_pages": 1,
        "has_next": false,
        "has_prev": false
      }
    },
    "status_code": 200
  }
  ```
</ResponseExample>
