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

# Active Subscription

> Returns the current user's active subscription status, including plan details, billing info, and available pricing options.



## OpenAPI

````yaml GET /get-active-subscription/
openapi: 3.1.0
info:
  title: CloserX.ai API
  description: >-
    The CloserX.ai API provides programmatic access to manage AI-powered calling
    operations, including agent creation, campaign management, contact handling,
    telephony integration, and more. This API enables seamless automation and
    integration with CRM systems, telephony providers, and other third-party
    services for enhanced client communication and business operations.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.closerx.ai/api
security:
  - api_key: []
paths:
  /get-active-subscription/:
    get:
      summary: Active Subscription
      description: >-
        Returns the current user's active subscription status, including plan
        details, billing info, and available pricing options.
      responses:
        '200':
          description: Subscription information retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActiveSubscriptionResponse'
        '400':
          description: Invalid request or user not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ActiveSubscriptionResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
          description: Indicates whether the request was successful.
        errors:
          type: array
          items:
            type: string
          example: []
          description: List of errors if any occurred.
        response:
          type: object
          properties:
            has_subscription:
              type: boolean
              example: true
              description: Whether the user has an active subscription.
            active_subscription:
              type: object
              properties:
                plan:
                  type:
                    - string
                    - 'null'
                  example: null
                  description: Name of the current plan. Can be null.
                status:
                  type: string
                  example: active
                  description: Status of the current subscription.
                next_billing:
                  type: string
                  format: date-time
                  example: '2025-09-14T18:45:46Z'
                  description: Date and time of the next billing cycle.
                amount:
                  type: number
                  example: 997
                  description: Billing amount of the current plan.
                features:
                  type: string
                  example: ''
                  description: Features included in the plan (if any).
                price_id:
                  type: string
                  example: NhFBDI6
                  description: Stripe price ID associated with the plan.
                payment_gateway:
                  type: string
                  example: stripe
                  description: Payment gateway used for this subscription.
            prices:
              type: array
              description: List of available pricing plans.
              items:
                type: object
                properties:
                  price_id:
                    type: string
                    example: HgHjFwt
                    description: Unique ID of the price.
                  amount:
                    type: number
                    example: 297
                    description: Price amount.
                  currency:
                    type: string
                    example: usd
                    description: Currency of the price.
                  product_name:
                    type: string
                    example: xyz.com (AI Calling Plan) 7-Day Free Trial
                    description: Name of the product associated with this price.
                  description:
                    type:
                      - string
                      - 'null'
                    example: null
                    description: Additional description of the plan (if any).
                  interval:
                    type: string
                    example: month
                    description: Billing interval (e.g., month, year).
    Error:
      required:
        - success
        - message
        - data
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: api_key

````