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

> Returns every version attached to a subscription: drafts, the currently active published version, and any future pending versions.



## OpenAPI

````yaml /api-reference/v2/specs/2026-04-01.json get /subscriptions/{id}/versions
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:
  /subscriptions/{id}/versions:
    get:
      tags:
        - Subscription Versions
      summary: List subscription versions
      description: >-
        Returns every version attached to a subscription: drafts, the currently
        active published version, and any future pending versions.
      operationId: list-subscription-versions
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
        - in: path
          name: id
          required: true
          schema:
            description: Unique identifier for the subscription
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionPhaseListResponse'
          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:
    SubscriptionPhaseListResponse:
      properties:
        data:
          description: List of subscription versions
          items:
            $ref: '#/components/schemas/SubscriptionPhaseSummaryResponse'
          type: array
      required:
        - data
      type: object
    ErrorResponse:
      properties:
        detail:
          type: string
        status:
          format: int64
          type: integer
      required:
        - status
        - detail
      type: object
    SubscriptionPhaseSummaryResponse:
      properties:
        created_at:
          description: When the version was created
          example: '2025-12-15T10:30:00Z'
          format: date-time
          type: string
        description:
          description: Change description
          example: Annual step-up
          nullable: true
          type: string
        end_date:
          description: Version end date
          example: '2027-01-01T00:00:00Z'
          format: date-time
          nullable: true
          type: string
        id:
          description: Version ID
          example: subv_abc123
          type: string
        plan_id:
          description: Plan ID
          example: pln_abc123
          nullable: true
          type: string
        start_date:
          description: Version start date
          example: '2026-01-01T00:00:00Z'
          format: date-time
          nullable: true
          type: string
        status:
          description: Version status
          example: published
          type: string
        subscription_id:
          description: Subscription ID
          example: sub_abc123
          type: string
        updated_at:
          description: When the version was last updated
          example: '2026-01-01T00:00:00Z'
          format: date-time
          type: string
      required:
        - created_at
        - id
        - status
        - subscription_id
        - updated_at
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````