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

# Current subscription status

> Alias of `/api/v1/billing/subscription`. JWT-authenticated (dashboard session); not callable with an API key. Returns the active Stripe subscription tier + period info.



## OpenAPI

````yaml /api-reference/openapi.json get /subscription
openapi: 3.1.0
info:
  title: Dexploit API
  version: 1.0.0
  description: Real-time and historical Solana DEX swap and OHLCV data.
servers:
  - url: https://api.dexploit.dev
    description: Production
security:
  - ApiKeyHeader: []
  - BearerAuth: []
  - ApiKeyQuery: []
paths:
  /subscription:
    get:
      tags:
        - Account
      summary: Current subscription status
      description: >-
        Alias of `/api/v1/billing/subscription`. JWT-authenticated (dashboard
        session); not callable with an API key. Returns the active Stripe
        subscription tier + period info.
      operationId: getSubscription
      responses:
        '200':
          description: Subscription status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionInfo'
components:
  schemas:
    SubscriptionInfo:
      type: object
      description: >-
        Subscription status mirroring `/api/v1/billing/subscription`.
        JWT-authenticated.
      properties:
        subscription_id:
          type:
            - string
            - 'null'
        status:
          type: string
          example: active
        tier:
          type: string
          enum:
            - free
            - developer
            - pro
            - enterprise
        current_period_end:
          type:
            - integer
            - 'null'
          description: Unix epoch seconds.
        cancel_at_period_end:
          type: boolean
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Preferred for swaps-api endpoints (`/swaps/*`, `/stats/*`, `/trending`,
        `/pool-events`).
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Required by the OHLCV endpoints (`/api/v1/*`) and accepted by every
        other endpoint. Send `Authorization: Bearer ohlcv_live_sk_<your_key>`.
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: >-
        Browser-friendly alternative to the Bearer header — accepted by every
        endpoint and required for WebSocket from the browser.

````