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

# Get your subscription

> Returns the current subscription plan of your personal account, with the number of technical support tickets opened in the current period. `currentSubscriptionPlan` is an empty object if the account has never had a subscription.



## OpenAPI

````yaml /spec/platform-auth.yaml get /v1/me/subscription
openapi: 3.0.1
info:
  title: Authentication & Account
  version: 1.0.0
  description: >-
    Log in, issue API tokens, change or reset your password, set up two-factor
    authentication, verify your email address and phone number, and manage your
    account profile and billing contact details.
servers:
  - url: https://api.liara.ir
security:
  - bearerAuth: []
tags:
  - name: Login
    description: Exchange your credentials or a one-time code for an API token.
  - name: Registration
    description: Create a new account.
  - name: Password
    description: Change your password while logged in, or reset a forgotten one.
  - name: API Tokens
    description: Issue additional API tokens for your account.
  - name: Account
    description: Read and update your profile and billing contact details.
  - name: Two-Factor Authentication
    description: Set up and manage authenticator-app (TOTP) two-factor authentication.
  - name: Verification
    description: Verify, or change, your account's email address and phone number.
paths:
  /v1/me/subscription:
    get:
      tags:
        - Account
      summary: Get your subscription
      description: >-
        Returns the current subscription plan of your personal account, with the
        number of technical support tickets opened in the current period.
        `currentSubscriptionPlan` is an empty object if the account has never
        had a subscription.
      operationId: getMySubscription
      responses:
        '200':
          description: Your subscription.
          content:
            application/json:
              schema:
                type: object
                properties:
                  currentSubscriptionPlan:
                    $ref: '#/components/schemas/Subscription'
              example:
                currentSubscriptionPlan:
                  _id: '000000000000000000000003'
                  type: subscription
                  userID: '000000000000000000000001'
                  subscriptionPlanID: standard
                  subscriptionPlanExpiration: '2026-02-01T08:00:00.000Z'
                  maxTechnicalTicketsPerMonth: infinite
                  subscriptionDurationType: monthly
                  technicalTicketsCount: 2
                  createdAt: '2026-01-01T08:00:00.000Z'
                  updatedAt: '2026-01-01T08:00:00.000Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Subscription:
      type: object
      description: Empty object if the account has never had a subscription.
      properties:
        _id:
          type: string
        type:
          type: string
          enum:
            - subscription
        userID:
          type: string
        subscriptionPlanID:
          type: string
          enum:
            - free
            - standard
            - enterprise
        subscriptionPlanExpiration:
          type: string
          format: date-time
        subscriptionDurationType:
          type: string
          enum:
            - monthly
            - yearly
        maxTechnicalTicketsPerMonth:
          description: Monthly technical ticket allowance, or `infinite`.
          oneOf:
            - type: integer
            - type: string
              enum:
                - infinite
        technicalTicketsCount:
          type: integer
          description: Technical support tickets opened in the current period.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    AuthError:
      type: object
      description: Error body returned when the API token is rejected.
      properties:
        error:
          type: string
  responses:
    Unauthorized:
      description: The API token is missing, invalid or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AuthError'
          example:
            error: Unauthorized.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send your API token as `Authorization: Bearer <api-token>`. Tokens
        expire (30 days by default) and stop working when you change or reset
        your password.

````

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