API reference
Usage
Your plan and how much of this month's access link allowance you have used.
Retrieve usage
GET/usage This month's access link usage (UTC calendar months). Every new request and access page session counts once, clients and prospects separately. A limit of null means no limit applies.
Returns
200 Usage for the current month.
Fields (object)
-
planstring | null -
billingPeriodstring | null -
trialboolean -
apiAccessboolean -
countingModestringOne of
access_links. -
periodobjectShow fields of period
-
startdatetime -
enddatetime -
timezonestring
-
-
clientsobjectShow fields of clients
-
usedinteger -
limitinteger | null -
remaininginteger | null
-
-
prospectsobjectShow fields of prospects
-
usedinteger -
limitinteger | null -
remaininginteger | null
-
-
overageobjectWith overage billing, client links beyond
includedare billed instead of refused.Show fields of overage
-
enabledboolean -
includedinteger | null -
billableUnitsinteger
-
- 401 The API key is missing, invalid or revoked.
- 403 The key lacks the scope (
CAPABILITY_REQUIRED), the plan has no API access (PLAN_NOT_ENTITLED), or, when creating a request, the monthly limit is reached (PLAN_LIMIT_REACHED). - 429 Rate limited (
RATE_LIMITED); wait forRetry-Afterseconds.
curl "https://api.agencyaccess.co/api/v2/usage" \
-H "Authorization: Bearer $AGENCYACCESS_API_KEY" const res = await fetch("https://api.agencyaccess.co/api/v2/usage", {
headers: {
Authorization: `Bearer ${process.env.AGENCYACCESS_API_KEY}`,
},
})
const { data } = await res.json() {
"data": {
"plan": "Agency",
"billingPeriod": "Monthly",
"trial": false,
"apiAccess": true,
"countingMode": "access_links",
"period": {
"start": "2026-10-01T00:00:00.000Z",
"end": "2026-11-01T00:00:00.000Z",
"timezone": "UTC"
},
"clients": {
"used": 37,
"limit": 50,
"remaining": 13
},
"prospects": {
"used": 4,
"limit": null,
"remaining": null
},
"overage": {
"enabled": false,
"included": null,
"billableUnits": 0
}
},
"meta": {
"requestId": "req_1f0b6c2e9a7d4f58b3c1e6a9d2f4b7c0"
}
}