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

# Get subscription

> Retrieve your active subscription: plan, status, and current billing period. Returns 404 if the account has no active subscription.

Requires the `account:read` scope.



## OpenAPI

````yaml api/openapi.json GET /v1/account/subscription
openapi: 3.1.0
info:
  title: SOAX API
  version: v1
  description: >-
    Programmatic access to your SOAX account: manage proxy packages, generate
    connection strings, browse available locations, pull usage analytics, and
    manage API keys. All endpoints are served over HTTPS and return JSON.
servers:
  - url: https://api.platform.soax.com
security:
  - bearerAuth: []
tags:
  - name: API Keys
    description: >-
      Self-service management of the API keys used to authenticate with this
      API.
  - name: Packages
    description: >-
      Read proxy packages, build proxy connection strings, and rotate package
      passwords.
  - name: Locations
    description: >-
      Location reference data: tiers, countries, regions, cities, ISPs, ASNs,
      and ZIP codes.
  - name: Account
    description: Read-only account, credit, and subscription information.
  - name: Analytics
    description: Usage analytics for your proxy packages.
paths:
  /v1/account/subscription:
    get:
      tags:
        - Account
      summary: Get authenticated customer's active subscription
      description: >-
        Retrieve your active subscription: plan, status, and current billing
        period. Returns 404 if the account has no active subscription.


        Requires the `account:read` scope.
      operationId: get_account_subscription_v1_account_subscription_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionResponse'
              example:
                id: e5f6a7b8-c9d0-4e1f-a2b3-c4d5e6f7a8b9
                plan: Business
                status: active
                created_at: '2025-11-02T10:20:00Z'
                started_at: '2025-11-02T10:20:00Z'
                current_billing_period_start_date: '2026-08-02T00:00:00Z'
                current_billing_period_end_date: '2026-09-02T00:00:00Z'
                end_date: null
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/ForbiddenScope'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    SubscriptionResponse:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        plan:
          anyOf:
            - type: string
            - type: 'null'
          title: Plan
        status:
          type: string
          title: Status
        created_at:
          type: string
          format: date-time
          title: Created At
        started_at:
          type: string
          format: date-time
          title: Started At
        current_billing_period_start_date:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Current Billing Period Start Date
        current_billing_period_end_date:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Current Billing Period End Date
        end_date:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: End Date
      type: object
      required:
        - status
        - created_at
        - started_at
      title: SubscriptionResponse
      description: Public response model for customer subscription information.
  responses:
    Unauthorized:
      description: Missing, invalid, or revoked API key.
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
          example:
            detail: Invalid API key
    ForbiddenScope:
      description: The API key does not carry the scope this endpoint requires.
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
          example:
            detail: 'Missing required scope: proxy:packages:read'
    NotFound:
      description: >-
        The resource does not exist, belongs to another organization, or is
        outside the API key's package restriction.
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
          example:
            detail: Package not found
    RateLimited:
      description: >-
        Rate limit exceeded (5 requests/second per API key, 500 requests/minute
        per IP). The response includes `Retry-After` (seconds),
        `RateLimit-Limit`, `RateLimit-Remaining`, and `RateLimit-Reset` (Unix
        time) headers — wait `Retry-After` seconds and retry.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
          example:
            error: 'Rate limit exceeded: 5 per 1 second'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key secret (starts with `s_live_`). Create keys in the dashboard
        under **Settings → API keys**, or via `POST /v1/api-keys/`. Send it as
        `Authorization: Bearer <secret>`.

````