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

# Get your organization subscription details

<Warning>
  We're deprecating these API endpoints, so the AI Studio API key setup won't work. \[Contact support] ([https://support.writer.com/](https://support.writer.com/)) if you need them.
</Warning>


## OpenAPI

````yaml get /billing/subscription
openapi: 3.0.3
info:
  title: Writer Enterprise API
  version: '1.9'
servers:
  - url: https://enterprise-api.writer.com
security: []
tags:
  - name: content
    description: Content
  - name: snippet
    description: Snippet
  - name: coWrite
    description: CoWrite
  - name: user
    description: User
  - name: terminology
    description: Terminology
  - name: LLM
    description: LLM
  - name: billing
    description: Billing
  - name: styleguide
    description: Styleguide
paths:
  /billing/subscription:
    get:
      tags:
        - billing
      summary: Get your organization subscription details
      operationId: getSubscriptionDetails
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: ''
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionPublicResponseApi'
        '400':
          description: Bad Request
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
        '401':
          description: Unauthorized
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
        '403':
          description: Forbidden
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
        '404':
          description: Not Found
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
        '500':
          description: Internal Server Error
          headers:
            Action-Id:
              required: true
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
components:
  schemas:
    SubscriptionPublicResponseApi:
      required:
        - subscriptionId
        - meta
        - createdAt
        - seats
        - productName
        - status
        - usage
      type: object
      properties:
        subscriptionId:
          type: string
        meta:
          $ref: '#/components/schemas/MetaData'
        createdAt:
          type: string
          format: date-time
        seats:
          type: integer
        productName:
          type: string
          enum:
            - free
            - pro
            - team
            - enterprise
            - legacy
        status:
          type: string
          enum:
            - trialing
            - active
            - past_due
            - incomplete
            - incomplete_expired
            - unpaid
            - canceled
        usage:
          $ref: '#/components/schemas/Usage'
    FailResponse:
      required:
        - tpe
        - extras
      type: object
      properties:
        tpe:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/FailMessage'
        extras:
          $ref: '#/components/schemas/Json'
    MetaData:
      required:
        - teamCount
        - termsCount
        - snippetsCount
        - ssoAccess
        - reporting
        - portal
        - styleguide
      type: object
      properties:
        teamCount:
          type: integer
        termsCount:
          type: integer
        snippetsCount:
          type: integer
        ssoAccess:
          type: boolean
        reporting:
          $ref: '#/components/schemas/Map_V'
        portal:
          $ref: '#/components/schemas/Map_V'
        styleguide:
          $ref: '#/components/schemas/Map_V'
        tier:
          type: string
          enum:
            - enterprise-1
            - enterprise-2
            - enterprise-3
            - enterprise-4
    Usage:
      required:
        - team
        - user
        - words
        - coWriteWords
      type: object
      properties:
        team:
          $ref: '#/components/schemas/UsageItem'
        user:
          $ref: '#/components/schemas/UsageItem'
        words:
          $ref: '#/components/schemas/UsageItem'
        coWriteWords:
          $ref: '#/components/schemas/UsageItem'
    FailMessage:
      required:
        - description
        - key
        - extras
      type: object
      properties:
        description:
          type: string
        key:
          type: string
        extras:
          $ref: '#/components/schemas/Json'
    Json: {}
    Map_V:
      type: object
      additionalProperties:
        type: string
    UsageItem:
      required:
        - value
        - limit
      type: object
      properties:
        value:
          type: integer
          format: int64
        limit:
          type: integer
          format: int64

````