/api/v1/dashboard/expiring-contracts
List expiring contracts
List subscriptions whose contract ends within a timeframe.
Last updated
Request
GET /api/v1/dashboard/expiring-contracts
Requires reports:read and subscriptions:read. See dashboard report permissions.
Send Authorization: Bearer YOUR_API_TOKEN and Accept: application/json.
Query parameters
-
timeframestring Optional 1,3,6,12,24, or36months ahead, oryearfor the rest of this calendar year. Defaults to3.-
already_eolboolean Optional - Send
1to also include contracts that have already ended. Defaults to0. -
pageinteger Optional - The page of results to return. Starts at
1; defaults to1. -
per_pageinteger Optional - The maximum number of results per page. Accepts
1–100; defaults to25.
Example
Set ASSETCENTER_API_TOKEN as described in the quick start. Replace example record and option IDs with values from your organization.
curl --request GET "https://my.assetcenter.app/api/v1/dashboard/expiring-contracts?timeframe=3" \
--header "Authorization: Bearer $ASSETCENTER_API_TOKEN" \
--header "Accept: application/json"
Response
200 OK.
{
"data": [
{
"id": 88,
"vendor_name": "Example Software",
"name": "Team software",
"plan_type": null,
"contract_end_date": "2026-11-30"
}
],
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 25,
"total": 1
},
"links": {
"next": null,
"prev": null
}
}
Behavior and constraints
Paused and cancelled subscriptions are left out. Results are ordered by contract_end_date, soonest first.
Errors
401 means the token is missing, expired, revoked, or not a customer API token. 403 means a required permission or administrator access is missing. 422 identifies invalid or unsupported input; inspect the errors object when present. 429 means a rate limit was reached. See error handling and rate limits.