Workspace API
Get Credits
Get the workspace's monthly credits, balance and the records inside their 30 days with GET /workspace/credits.
GET https://api.parcelengineering.com/api/v1/workspace/creditsReturns the workspace’s monthly credits (included, used, remaining, and when they reset), its credit balance, and how many Parcel records it holds inside their 30 days. See Credits.
Get credits costs 0 credits.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspace_id | string (UUID) | No | Override the workspace resolved from your API key. Useful for admin tooling. |
Example
curl https://api.parcelengineering.com/api/v1/workspace/credits \ -H "Authorization: Bearer pcl_your_api_key"const response = await fetch( 'https://api.parcelengineering.com/api/v1/workspace/credits', { headers: { 'Authorization': 'Bearer pcl_your_api_key', }, });
const { data, metadata } = await response.json();Response
{ "data": { "plan": "starter", "monthly_credits": { "included": 50, "used": 12.5, "remaining": 37.5, "period_end": "2026-12-01T00:00:00.000Z" }, "balance": 20, "records_unlocked": { "project": 25, "firm": 0, "contact": 0 } }, "metadata": { "credits": 0 }}Response fields
| Field | Type | Description |
|---|---|---|
data.plan | string | The workspace’s effective plan: free, starter or pro. |
data.monthly_credits.included | number | Credits the plan includes this month. |
data.monthly_credits.used | number | Monthly credits spent so far, by records, enrichment and Spec. |
data.monthly_credits.remaining | number | Monthly credits left. |
data.monthly_credits.period_end | string | When the monthly credits reset (ISO 8601). |
data.balance | number | Credits bought or granted, spent after the monthly credits. |
data.records_unlocked | object | Records this workspace took out in the last 30 days, by kind. Reading them again within their 30 days is free. To list them, see Seeing what you unlocked. |
metadata.credits | integer | Always 0. |