# List all active/paid subscriptions for the account

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/public/v1/subscription/list:
    get:
      summary: List all active/paid subscriptions for the account
      deprecated: false
      description: ''
      tags:
        - 🔐 Authenticated
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  subscriptions:
                    type: array
                    items:
                      $ref: '#/components/schemas/SubscriptionListItem'
                x-apidog-orders:
                  - subscriptions
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: ''
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers: {}
          x-apidog-name: ''
      security:
        - ApiKeyAuth: []
          x-apidog:
            schemeGroups:
              - id: h8M9_zX8TkI2Np0OTQDW2
                schemeIds:
                  - ApiKeyAuth
              - id: kinmqTHCDmFog3jylLxRz
                schemeIds:
                  - NostrAuth
            required: true
            use:
              id: h8M9_zX8TkI2Np0OTQDW2
            scopes:
              kinmqTHCDmFog3jylLxRz:
                NostrAuth: []
      x-apidog-folder: 🔐 Authenticated
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/361232/apis/api-4063136-run
components:
  schemas:
    SubscriptionListItem:
      type: object
      description: >-
        Model for subscription records in the authenticated list view. Uses
        snake_case to match database-aligned API reality.
      required:
        - id
        - payment_hash
        - status
        - created_at
      properties:
        id:
          type: string
        payment_hash:
          type: string
        server_domain:
          type: string
        server_country:
          type: string
        subscription_end:
          type: string
          format: date-time
          nullable: true
        status:
          type: string
        created_at:
          type: string
          format: date-time
        key_id:
          type: string
          nullable: true
        bandwidth_used:
          type: integer
        vpn_ip:
          type: string
          nullable: true
        duration:
          type: integer
      x-apidog-orders:
        - id
        - payment_hash
        - server_domain
        - server_country
        - subscription_end
        - status
        - created_at
        - key_id
        - bandwidth_used
        - vpn_ip
        - duration
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ApiError:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Machine-readable error code.
          examples:
            - ERR_RATE_LIMIT_EXCEEDED
        message:
          type: string
          description: Human-readable explanation.
          examples:
            - Too many requests.
        details:
          type: object
          x-apidog-orders: []
          properties: {}
          x-apidog-ignore-properties: []
          nullable: true
      x-apidog-orders:
        - error
        - message
        - details
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    ApiKeyAuth:
      type: bearer
      scheme: bearer
      description: Authenticate using your TunnelSats API Key (sk_live_...).
    NostrAuth:
      type: bearer
      scheme: bearer
      description: >-
        NIP-98 Nostr Authentication. The 'token' should be the base64-encoded
        NIP-98 event JSON.
servers:
  - url: https://tunnelsats.com
    description: Prod Env
security: []

```