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

# Subscription

> Get the authenticated user's billing plan and Stripe subscription state.



## OpenAPI

````yaml GET /user/subscription
openapi: 3.1.0
info:
  title: Unsora API
  version: 1.2.0
  description: >-
    Public API for Unsora integrations. Authenticate with Clerk JWT or
    uns_live_* API key. API keys are rate-limited to 60 requests/minute and
    support idempotency keys. Async jobs complete via polling GET
    /image/status/{id}.
servers:
  - url: https://mvp.tryunsora.com/api/v1
    description: Versioned API (recommended)
security: []
tags:
  - name: Clippings
  - name: Connect
  - name: Image Generations
  - name: Music Generations
  - name: Influencer Studio
  - name: Posts
  - name: Thumbnails
  - name: User
  - name: Video Generations
paths:
  /user/subscription:
    get:
      tags:
        - User
      summary: Get subscription
      description: Returns the authenticated user's plan and Stripe subscription snapshot.
      responses:
        '200':
          description: Subscription details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    SubscriptionResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/SubscriptionData'
      required:
        - success
        - data
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
        error:
          type: string
        code:
          type: string
        message:
          type: string
      required:
        - error
    SubscriptionData:
      type: object
      properties:
        plan:
          type: string
        status:
          type: string
        isActive:
          type: boolean
        isCancelled:
          type: boolean
        stripeSubscriptionId:
          anyOf:
            - type: string
            - type: 'null'
        stripeCustomerId:
          anyOf:
            - type: string
            - type: 'null'
        stripePriceId:
          anyOf:
            - type: string
            - type: 'null'
        stripeCurrentPeriodEnd:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
      required:
        - plan
        - status
        - isActive
        - isCancelled
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Clerk session JWT or Unsora API key (uns_live_*)

````