Skip to main content
GET
/
quotas
Get current workspace quota and billing information.
curl --request GET \
  --url https://api.captaindata.com/v1/quotas \
  --header 'X-API-Key: <api-key>'
{
"name": "Example Workspace",
"uid": "123e4567-e89b-12d3-a456-426614174000",
"credits_left": 50,
"credits_max": 100,
"credits_used": 50,
"plan_name": "Growth",
"current_month_start": "2023-10-01T00:00:00Z",
"current_month_end": "2023-10-31T23:59:59Z"
}

Use Cases

  • Monitor API Usage: Track your credit consumption to avoid hitting limits and ensure uninterrupted service
  • Manage Billing: Monitor your billing cycle and plan details for better cost management
  • Optimize Performance: Analyze usage patterns to determine if you need to upgrade your plan

Authorizations

X-API-Key
string
header
required

API key required for authentication. Add your API key in the X-API-Key header.

Response

Successfully retrieved the current workspace quota.

name
string
required

The name of the workspace (maximum 55 characters)

Maximum length: 55
uid
string<uuid>
credits_left
number
default:0
credits_max
integer
default:0
credits_used
number
default:0
plan_name
string | null
current_month_start
string<date-time> | null
current_month_end
string<date-time> | null