Usage
Check your workspace credit balance and rate limit status with GET /v2/usage. The call is free and does not count toward your rate limit.
Credits
Free.
Introduction
The Usage endpoint returns your current workspace credit balance and rate limit status. Use it to track your remaining credits and rate limit windows, without spending any credits. It also gives the share of your per-minute limit that your background tasks can take, in quotas.workspace.bulkShare.
Unlike most V2 endpoints, this route uses GET and does not require a request body: send an authenticated request and read the quotas block in the response.
Authorization
| Name | Type | Required | Description |
|---|---|---|---|
apikey | string | Yes | Your API key from the developer dashboard. Pass it via Authorization: Bearer YOUR_API_KEY header. |
Response structure
| Field | Type | Description |
|---|---|---|
success | boolean | true if the request was processed successfully |
data | null | Always null for this endpoint: the usage information is in the quotas block below |
error | null | Always null on success |
quotasobjectCredits and rate limit usage for your workspace and API key
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
creditsConsumed | number | Credits consumed by this request. Always 0 for the Usage endpoint |
workspaceobjectWorkspace-level limits
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
id | string | Your workspace identifier |
hasUnlimitedCredits | boolean | Whether workspace credits are unlimited |
allowDailyOvercost | boolean | Whether the workspace may exceed its daily cap |
bulkShare | number | null | Share of the per-minute limit, in percent, that your background tasks (Bulk tasks, Bulk Import, List imports and Search exports) can take, from 10 to 90 (80 by default). An owner or an admin sets it in the app: see Rate limit share for background tasks. null when it cannot be read |
creditsobjectCredit balance
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
total | number | Total credits in your plan |
used | number | Credits consumed so far |
left | number | Remaining credits |
dailyLimitobjectDaily request limit (null if not configured)
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
limit | number | Maximum requests per day |
used | number | Requests made today |
left | number | Remaining requests today |
nextReset | string | When the daily window resets (ISO 8601) |
minuteRateLimitobjectPer-minute rate limit
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
limit | number | Maximum requests per minute |
used | number | Requests made in the current minute |
left | number | Remaining requests in the current minute |
nextReset | string | When the minute window resets (ISO 8601) |
keyobjectAPI key-level limits (null when request is from dashboard)
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
id | string | API key identifier |
dailyLimitobjectDaily request limit for this key (null if not configured)
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
limit | number | Maximum requests per day |
used | number | Requests made today |
left | number | Remaining requests today |
nextReset | string | When the daily window resets (ISO 8601) |
minuteRateLimitobjectMinute rate limit for this key
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
limit | number | Maximum requests per minute |
used | number | Requests made in the current minute |
left | number | Remaining requests in the current minute |
nextReset | string | When the minute window resets (ISO 8601) |
creditLimitsobjectCredit limits of this key, each null when not configured
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
daily | object | Credits per day (UTC): limit, used, left, nextReset (00:00 UTC) |
monthly | object | Credits per calendar month (UTC): limit, used, left, nextReset |
total | object | Credits in total since the limit was set or reset: limit, used, left, nextReset (null) |
metadataobjectRequest tracking information
Show child attributesHide child attributes
| Field | Type | Description |
|---|---|---|
requestId | string | Unique identifier for this request |
executionTimeMs | number | Total execution time in milliseconds |
Code examples
Code Examples
curl https://api.reversecontact.com/v2/usage \
-H "Authorization: Bearer YOUR_API_KEY"import ReverseContact from "@reverse-contact/sdk";
const client = new ReverseContact({ apiKey: process.env.RC_API_KEY });
const usage = await client.usage.retrieve();
console.log("Credits left:", usage.quotas?.workspace.credits.left);
console.log("Rate limit:", usage.quotas?.workspace.minuteRateLimit?.left, "requests remaining");
console.log("Background tasks share:", usage.quotas?.workspace.bulkShare, "%");import os
from reversecontact import ReverseContact
with ReverseContact(api_key=os.environ["RC_API_KEY"]) as client:
usage = client.usage.retrieve()
if usage.quotas is not None:
workspace = usage.quotas.workspace
if workspace is not None and workspace.credits is not None:
print("Credits left:", workspace.credits.left)
if workspace is not None:
print("Background tasks share:", workspace.bulk_share, "%")
print(usage.quotas.to_dict()) # every quota, with the camelCase names of the APIExample response
Example Response
{
"success": true,
"data": null,
"error": null,
"metadata": {
"requestId": "429922e1-2190-4d6c-93c2-c53a26219c32",
"executionTimeMs": 45
},
"quotas": {
"creditsConsumed": 0,
"workspace": {
"id": "ws_abc123",
"credits": {
"total": 10000,
"used": 4521,
"left": 5479
},
"dailyLimit": null,
"minuteRateLimit": {
"limit": 60,
"used": 3,
"left": 57,
"nextReset": "2025-01-15T09:31:00.000Z"
},
"bulkShare": 80,
"hasUnlimitedCredits": false,
"allowDailyOvercost": false
},
"key": {
"id": "key_abc123",
"dailyLimit": null,
"minuteRateLimit": {
"limit": 60,
"used": 3,
"left": 57,
"nextReset": "2025-01-15T09:31:00.000Z"
},
"creditLimits": {
"daily": {
"limit": 2000,
"used": 1940,
"left": 60,
"nextReset": "2025-01-16T00:00:00.000Z"
},
"monthly": null,
"total": null
}
}
}
}Last verified