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

# Get your subscription

> The authenticated patient's current plan, including `current_period_end` and whether a cancellation is already scheduled.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/users/subscriptions/me/
openapi: 3.0.3
info:
  title: Hi-Doctor API
  version: 1.0.0
  description: >-
    Patient-facing REST API for Hi-Doctor.


    Authenticate with email and password to receive a JWT pair, then send the
    access token as `Authorization: Bearer <token>` on every subsequent request.


    Only patient-accessible endpoints are documented here. Clinician and
    back-office endpoints are intentionally omitted.
  contact:
    name: Hi-Doctor
    email: hello@hi-doctor.ai
    url: https://hi-doctor.ai
servers:
  - url: https://api.hi-doctor.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Account
    description: Registration, email verification, sign-in and profile.
  - name: Questionnaires
    description: Complete a consultation questionnaire and submit it for medical review.
  - name: Consultations
    description: Consultations a doctor has reviewed or is reviewing.
  - name: Prescriptions
    description: Prescriptions and reissue requests.
  - name: Billing
    description: Checkout, subscription management and the Stripe billing portal.
  - name: Records
    description: Orders, invoices and side-effect reports.
  - name: Messages
    description: The patient's private thread with their medical team.
  - name: Progress
    description: Weight, injection and note tracking. Requires an active treatment plan.
  - name: Referrals
    description: Referral summary and transactions.
paths:
  /v1/users/subscriptions/me/:
    get:
      tags:
        - Billing
      summary: Get your subscription
      description: >-
        The authenticated patient's current plan, including `current_period_end`
        and whether a cancellation is already scheduled.
      operationId: users_subscriptions_me_retrieve
      responses:
        '200':
          description: No response body
          content:
            application/json:
              example:
                subscription:
                  id: 0a1b2c3d-4e5f-4a6b-8c9d-000000000006
                  status: active
                  price_cents: 2500
                  currency: EUR
                  started_at: '2026-05-25T08:00:00Z'
                  current_period_start: '2026-07-27T08:00:00Z'
                  current_period_end: '2026-08-24T08:00:00Z'
                  cancel_at_period_end: false
                  canceled_at: null
                  treatment_id: wegovy
                  category: weight_loss
                  interval: month
                  interval_count: 1
                  cycle_days: null
                  payment_method_brand: null
                  payment_method_last4: null
                  early_order_locked_until: null
                  early_order_locked: false
                subscriptions: []
                last_canceled: null
        '401':
          description: >-
            No bearer token, or a token that is expired or malformed.
            Re-authenticate; do not retry the same token.
          content:
            application/json:
              example:
                detail: Given token not valid for any token type
                code: token_not_valid
                messages:
                  - token_class: AccessToken
                    token_type: access
                    message: Token is invalid
      security:
        - jwtAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Access token from POST /v1/users/token/
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````