Skip to main content

Endpoint

GET https://api.ugc.inc/billing

Overview

Retrieve your billing information, including Stripe subscription status, slot counts by tier, and linked organizations. Requires a profile-scoped API key.

Request

No request body required. Authentication via profile-scoped Bearer token.

Response

data
object
curl https://api.ugc.inc/billing \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "ok": true,
  "code": 200,
  "message": "Success",
  "data": {
    "billing_id": "bill_123",
    "subscription": {
      "status": "active",
      "cancel_at_period_end": false,
      "current_period_start": "2025-01-01T00:00:00.000Z",
      "current_period_end": "2025-02-01T00:00:00.000Z",
      "slots": {
        "basic": 5,
        "premium": 2
      }
    },
    "orgs": [
      {
        "id": "org_123",
        "name": "My Organization"
      }
    ]
  }
}