# Get all subscriptions

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/subscriptions:
    get:
      summary: Get all subscriptions
      deprecated: false
      description: >-
        Fetch all subscriptions associated with the authenticated user,
        including active, cancelled, and expired subscriptions, along with plan
        and billing details.
      tags:
        - subscriptions
      parameters:
        - name: status
          in: query
          description: ''
          required: false
          example: ACTIVE
          schema:
            type: string
        - name: contains
          in: query
          description: ''
          required: false
          schema:
            type: string
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: ' x-service-provider'
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        subscriptionId:
                          type: string
                        subscriptionStatus:
                          type: string
                        plan:
                          type: string
                        price:
                          type: integer
                        totalMailboxQuantity:
                          type: integer
                        periodStart:
                          type: string
                        periodEnd:
                          type: string
                        subscriptionCreationDate:
                          type: string
                        planUpgradeCancelPossible:
                          type: boolean
                        paymentFailureMessage:
                          type: string
                          nullable: true
                        invoiceDetails:
                          type: string
                      required:
                        - id
                        - subscriptionId
                        - subscriptionStatus
                        - plan
                        - price
                        - totalMailboxQuantity
                        - periodStart
                        - periodEnd
                        - subscriptionCreationDate
                        - planUpgradeCancelPossible
                        - paymentFailureMessage
                        - invoiceDetails
                      x-apidog-orders:
                        - id
                        - subscriptionId
                        - subscriptionStatus
                        - plan
                        - price
                        - totalMailboxQuantity
                        - periodStart
                        - periodEnd
                        - subscriptionCreationDate
                        - planUpgradeCancelPossible
                        - paymentFailureMessage
                        - invoiceDetails
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
          headers: {}
          x-apidog-name: Success
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
                x-apidog-orders:
                  - message
              example:
                message: >-
                  Invalid status value, must be in ACTIVE, CANCELLED, PAUSED,
                  PAYMENT_PENDING
          headers: {}
          x-apidog-name: Badf Request
      security: []
      x-apidog-folder: subscriptions
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-13489431-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
