License
License
GET /v1/license
Retrieve your current license information and credit balance. This is a read-only endpoint that does not consume credits.
Headers
| Header | Required | Description |
|---|---|---|
Authorization |
Yes | Bearer <api-key-or-jwt> |
Request
No request body. This is a GET endpoint.
Examples
cURL
Python
curl https://api.quantized.us/v1/license \
-H "Authorization: Bearer sk-quantized-YOUR-KEY"
import httpx
response = httpx.get(
"https://api.quantized.us/v1/license",
headers={"Authorization": "Bearer sk-quantized-YOUR-KEY"},
)
info = response.json()
print(f"Used: {info['used_micro_credits']} micro-credits")
print(f"Remaining: {info['available_micro_credits']} micro-credits")
Response
{
"institution_id": "550e8400-e29b-41d4-a716-446655440000",
"license_type_id": "660e8400-e29b-41d4-a716-446655440001",
"license_id": "770e8400-e29b-41d4-a716-446655440002",
"unique_id": "course-intro-to-ai-2025",
"used_micro_credits": 150000,
"available_micro_credits": 850000
}
Response fields
| Field | Type | Description |
|---|---|---|
institution_id |
string | Your institution’s UUID |
license_type_id |
string | License type UUID |
license_id |
string | Your specific license UUID |
unique_id |
string or null | License identifier (e.g., course ID) |
used_micro_credits |
integer | Total micro-credits consumed |
available_micro_credits |
integer or null | Remaining micro-credits (null if unlimited) |
Unlimited licenses
If available_micro_credits is null, your license has no credit limit.
Errors
| Status | Condition |
|---|---|
401 |
Invalid or missing API key |