Postonus
APIReferenceUsage

Get API and MCP call totals for the workspace

GET
/usage

Authorization

apiKey
headerx-api-key<token>

Query Parameters

days?integer
Range1 <= value <= 90
Default30

Response Body

OK

application/json
  1. response
windowDays*integer
Range-9007199254740991 <= value <= 9007199254740991
api*
mcp*
Example Request
curl -X GET 'https://app.postonus.com/api/v1/usage'
Example Response
{  "windowDays": -9007199254740991,  "api": {    "calls": -9007199254740991,    "errors": -9007199254740991,    "lastUsedAt": "2019-08-24T14:15:22Z"  },  "mcp": {    "calls": -9007199254740991,    "errors": -9007199254740991,    "lastUsedAt": "2019-08-24T14:15:22Z"  }}