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

# Get Subscription

> Return subscription status, credits, and renewal dates for the authenticated key scope

Returns the core subscription attached to the authenticated key owner
(workspace owner for workspace keys, owner user for personal keys).

Use this endpoint to show customers:

* current tier and subscription status
* credits limit, credits used, and credits remaining
* next renewal period end (`renews_at`) and credits reset date

## Response

**scope** `string`

Authenticated key scope: `workspace` or `personal`.

**workspace\_id** `string | null`

Workspace ID for workspace keys, otherwise `null`.

**subscription** `object`

Active core subscription details.

**Subscription Object**

**status** `string`

Subscription status (for example `active`, `canceled`).

**tier** `string`

Tier resolved from `polar_product_id` (`small`, `medium`, `large`, etc.).

**billing\_interval** `string`

Billing cadence: `month` or `year`.

**current\_period\_start** `string`

ISO timestamp for current billing period start.

**current\_period\_end** `string`

ISO timestamp for current billing period end.

**renews\_at** `string`

Renewal timestamp (same as `current_period_end`).

**credits** `object`

Credits usage summary.

**Credits Object**

**limit** `number`

Monthly credits available for this subscription.

**used\_this\_period** `number`

Credits consumed in the current period.

**remaining** `number`

Credits currently available (`limit - used_this_period`).

**reset\_at** `string | null`

Planned credits reset timestamp.

```bash cURL theme={null}
curl --request GET \
  --url https://www.genviral.io/api/partner/v1/subscription \
  --header 'Authorization: Bearer <token>'
```

```json Response theme={null}
{
  "ok": true,
  "code": 200,
  "message": "Subscription retrieved",
  "data": {
    "scope": "workspace",
    "workspace_id": "4cb5d3fd-8c8f-4ed7-a17c-4ffb52c7e6ac",
    "subscription": {
      "status": "active",
      "tier": "small",
      "billing_interval": "month",
      "current_period_start": "2026-02-01T00:00:00.000Z",
      "current_period_end": "2026-03-01T00:00:00.000Z",
      "renews_at": "2026-03-01T00:00:00.000Z",
      "canceled_at": null,
      "is_paused": false,
      "paused_until": null,
      "credits": {
        "limit": 500,
        "used_this_period": 123,
        "remaining": 377,
        "reset_at": "2026-03-01T00:00:00.000Z"
      }
    }
  }
}
```

## Error Responses

* `401` - authentication failed (missing/invalid/revoked token)
* `402 subscription_required` - active Creator/Professional/Business plan required
* `403 tier_not_allowed` - Scheduler tier cannot use Partner API
* `500 subscription_lookup_failed` - unexpected subscription lookup failure


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.