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

# List organization subscriptions

> List the licenses an organization holds (for example Virtual CISO, VPN or Cloud Defender), each with its expiry date. Requires the Owner role in the organization.



## OpenAPI

````yaml get /api/v1/organizations/{organizationid}/subscriptions
openapi: 3.1.0
info:
  title: Aegister API
  version: 2.12.2
servers: []
security: []
paths:
  /api/v1/organizations/{organizationid}/subscriptions:
    get:
      tags:
        - Organizations
      summary: List organization subscriptions
      description: Retrieve Organization's Subscription list.
      operationId: organizations_subscriptions_retrieve
      parameters:
        - in: query
          name: order
          schema:
            type: string
            default: '-id'
          description: Order results by field.
        - in: path
          name: organizationid
          schema:
            type: integer
          description: Organization ID.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 0
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - []
                  total:
                    type: number
                    description: >-
                      Total number of items that meet the list filter.  

                      This doesn't represent the number of items inside the
                      `data` array.
                    minimum: 0
                    examples:
                      - 20
                      - 30
                      - 40
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                          description: Subscription ID.
                        license:
                          type: object
                          description: The licence.
                          properties:
                            id:
                              type: integer
                              description: License ID.
                            name:
                              type: string
                              description: License key.
                              examples:
                                - v_ciso
                            label:
                              type: string
                              description: Product name.
                              examples:
                                - Virtual CISO
                            description:
                              type: string
                            has_quantity:
                              type: boolean
                              description: Present when the licence is sold by seats.
                        created_at:
                          type: string
                          format: date-time
                        expires_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
                          description: Subscription expiration date; null = never expires.
                        quantity:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Seats, as digits; null when the licence is not sold
                            by seats.
                          examples:
                            - '3'
          description: ''
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 1
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - []
          description: ''
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: integer
                    description: |-
                      Any value different from 0 indicates an error.  
                      More details can be found in `messages`.
                    minimum: 0
                    maximum: 0
                    examples:
                      - 1
                  messages:
                    type: array
                    description: >-
                      If `error` is `1`, contains zero or more details on the
                      error.
                    examples:
                      - []
          description: ''
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Aegister-Token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.