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

# Get Website Subscription

> Returns the subscription products for a specific website, including their status and billing dates.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/subscriptions/website
openapi: 3.1.0
info:
  title: AthenaHQ API
  description: >-
    AthenaHQ API provides programmatic access to manage your websites and
    prompts for AI-powered content optimization.
  version: 1.0.0
  contact:
    email: support@athenahq.ai
servers:
  - url: https://api.athenahq.ai
    description: Production server
security:
  - apiKey: []
tags:
  - name: Basics
    description: Core API operations for managing websites and prompts
  - name: Metrics
    description: Metrics and analytics endpoints for tracking AI visibility
  - name: Billing
    description: Billing and credits endpoints for managing usage
  - name: Team Management
    description: Endpoints for managing team members and invitations
  - name: Groups
    description: Endpoints for managing groups of websites
  - name: Content
    description: >-
      Endpoints for accessing Content Hub data — tabs, tracked URLs, and per-URL
      prompt breakdowns.
  - name: Pitch Workspace
    description: >-
      Endpoints for accessing pitch workspace reports — org-scoped pitch runs
      with competitors, prompts, attributes, and aggregate metrics.
  - name: Knowledge Base
    description: >-
      Endpoints for reading the brand Knowledge Base — approved brand facts and
      the pillars that organize them.
paths:
  /api/v1/subscriptions/website:
    get:
      tags:
        - Billing
      summary: Get Website Subscription
      description: >-
        Returns the subscription products for a specific website, including
        their status and billing dates.
      operationId: getWebsiteSubscription
      parameters:
        - name: website_id
          in: query
          description: The ID of the website to retrieve subscription information for
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response with subscription products
          content:
            application/json:
              schema:
                type: object
                properties:
                  products:
                    type: array
                    items:
                      $ref: '#/components/schemas/SubscriptionProduct'
                required:
                  - products
              example:
                products:
                  - id: pro_monthly
                    name: Pro Plan
                    status: active
                    canceled_at: null
                    cancel_at: null
                    started_at: 1704067200000
                    ended_at: null
        '400':
          description: Bad request - Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: website_id is required
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - You don't have access to this website
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Unauthorized access to this website
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Failed to fetch subscription
      security:
        - apiKey: []
components:
  schemas:
    SubscriptionProduct:
      type: object
      description: A subscription product associated with a website
      required:
        - id
        - name
        - status
      properties:
        id:
          type: string
          description: Unique identifier for the product
          example: pro_monthly
        name:
          type: string
          description: Display name of the product
          example: Pro Plan
        status:
          type: string
          enum:
            - active
            - trialing
            - expired
            - canceled
            - past_due
          description: Current status of the subscription
          example: active
        canceled_at:
          type: integer
          nullable: true
          description: >-
            Timestamp in milliseconds when the subscription was canceled (null
            if not canceled)
          example: null
        cancel_at:
          type: integer
          nullable: true
          description: >-
            Timestamp in milliseconds when the subscription will be canceled
            (null if not scheduled for cancellation)
          example: null
        started_at:
          type: integer
          nullable: true
          description: Timestamp in milliseconds when the subscription started
          example: 1704067200000
        ended_at:
          type: integer
          nullable: true
          description: >-
            Timestamp in milliseconds when the subscription ended (null if still
            active)
          example: null
    Error:
      type: object
      description: Error response object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
          example: Unauthorized
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. You can create one
        [here](https://app.athenahq.ai/organization?tab=api).

````