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

# Get workspace subscription details

> Retrieves the subscription details for the workspace, including Stripe product information.



## OpenAPI

````yaml get /api/v1/workspaces/{workspace_id}/billing/subscription
openapi: 3.1.0
info:
  title: AskUI Workspaces API
  version: 0.2.15
servers: []
security: []
paths:
  /api/v1/workspaces/{workspace_id}/billing/subscription:
    get:
      tags:
        - billing
      summary: Get workspace subscription details
      description: >-
        Retrieves the subscription details for the workspace, including Stripe
        product information.
      operationId: >-
        get_workspace_subscription_api_v1_workspaces__workspace_id__billing_subscription_get
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid4
            title: Workspace Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSubscriptionResponseDto'
        '404':
          description: Subscription not found
          content:
            application/json:
              example:
                detail:
                  - msg: Subscription not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error when retrieving subscription data
      security:
        - Bearer: []
        - Basic: []
components:
  schemas:
    GetSubscriptionResponseDto:
      properties:
        currentPeriodStart:
          type: string
          format: date-time
          title: Currentperiodstart
        currentPeriodEnd:
          type: string
          format: date-time
          title: Currentperiodend
        items:
          items:
            $ref: '#/components/schemas/SubscriptionItemDto'
          type: array
          title: Items
          default: []
        isTrial:
          type: boolean
          title: Istrial
          default: false
      type: object
      required:
        - currentPeriodStart
        - currentPeriodEnd
      title: GetSubscriptionResponseDto
      description: Simplified response DTO with only the requested fields
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SubscriptionItemDto:
      properties:
        productAllowedUsage:
          type: integer
          title: Productallowedusage
      type: object
      required:
        - productAllowedUsage
      title: SubscriptionItemDto
      description: Subscription item with only the requested fields
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
    Basic:
      type: apiKey
      in: header
      name: Authorization

````