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

# List Plans

> Retrieve a paginated list of plans

Retrieves a paginated list of all plans.

## Query Parameters

<ParamField query="page" type="integer" default="1">
  The page number to retrieve (1-indexed).
</ParamField>

<ParamField query="limit" type="integer" default="10">
  The number of plans to return per page. Must be one of: `5`, `10`, `25`, `50`, or `100`. Values exceeding `100` are capped automatically.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.alguna.io/plans/?page=1&limit=25" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const plans = await alguna.plans.list({
    page: 1,
    limit: 25
  });
  ```
</RequestExample>

## Response

<Snippet file="plans-create-response.mdx" />

<ResponseField name="items" type="[]Plan">
  An array of plan objects.

  <Expandable title="Plan Properties">
    <ResponseField name="id" type="string">
      The unique identifier for the plan.
    </ResponseField>

    <ResponseField name="name" type="string">
      The name of the plan.
    </ResponseField>

    <ResponseField name="description" type="string">
      A brief description of the plan.
    </ResponseField>

    <ResponseField name="currency" type="string">
      The currency in which the plan is billed.
    </ResponseField>

    <ResponseField name="createdAt" type="datetime">
      The timestamp when the plan was created.
    </ResponseField>

    <ResponseField name="updatedAt" type="datetime">
      The timestamp when the plan was last updated.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="pageCount" type="number">
  The total number of pages available.
</ResponseField>

<ResponseField name="limit" type="number">
  The maximum number of plans returned per page.
</ResponseField>
