> ## 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

> Returns a paginated list of plans. Supports filtering by tag IDs.



## OpenAPI

````yaml /api-reference/v2/specs/2026-04-01.json get /plans
openapi: 3.1.0
info:
  title: Alguna Public API
  version: '2026-04-01'
servers:
  - url: https://api.alguna.io
security:
  - bearerAuth: []
tags:
  - name: Billing Events and Metrics
  - name: Credit Notes
  - name: Credits
  - name: Customer Portal Sessions
  - name: Customers
  - name: Insights
  - name: Invoices
  - name: Payments
  - name: Plans
  - name: Product Bundles
  - name: Products
  - name: Refunds
  - name: Revenue Schedules
  - name: Subscription Changes
  - name: Subscription Versions
  - name: Subscriptions
  - name: Wallet Grants
  - name: Wallets
paths:
  /plans:
    get:
      tags:
        - Plans
      summary: List plans
      description: Returns a paginated list of plans. Supports filtering by tag IDs.
      operationId: list-plans
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
        - in: query
          name: limit
          required: true
          schema:
            description: Number of items to return per page
            example: 20
            format: int64
            type: integer
        - in: query
          name: offset
          required: true
          schema:
            description: Number of items to skip
            example: 0
            format: int64
            type: integer
        - in: query
          name: sort
          required: true
          schema:
            description: Sort field and direction in format field:order
            example: created_at:desc
            type: string
        - explode: false
          in: query
          name: tag_ids
          schema:
            description: Filter by tag IDs (comma-separated to match any)
            example: tag_abc123
            items:
              type: string
            type: array
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanListResponse'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    PlanListResponse:
      properties:
        data:
          description: List of plans
          items:
            $ref: '#/components/schemas/PlanResponse'
          type: array
        pagination:
          allOf:
            - $ref: '#/components/schemas/PaginationMeta'
          description: Pagination metadata
      required:
        - data
        - pagination
      type: object
    ErrorResponse:
      properties:
        detail:
          type: string
        status:
          format: int64
          type: integer
      required:
        - status
        - detail
      type: object
    PlanResponse:
      properties:
        created_at:
          description: Timestamp when the plan was created
          example: '2026-04-01T10:00:00Z'
          format: date-time
          type: string
        currency:
          description: The currency in which the plan is billed
          example: USD
          type: string
        description:
          description: A brief description of the plan
          example: Full-featured enterprise plan
          nullable: true
          type: string
        id:
          description: Unique identifier for the plan
          example: pln_01H1VECT
          type: string
        name:
          description: The name of the plan
          example: Enterprise Plan
          type: string
        updated_at:
          description: Timestamp when the plan was last updated
          example: '2026-04-01T12:30:00Z'
          format: date-time
          type: string
      required:
        - created_at
        - currency
        - id
        - name
        - updated_at
      type: object
    PaginationMeta:
      properties:
        per_page:
          description: Number of items returned per page
          example: 20
          format: int64
          type: integer
        total_pages:
          description: Total number of pages available
          example: 5
          format: int64
          type: integer
      required:
        - per_page
        - total_pages
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````