Return the api usage (both async and sync) in seconds between a particular timeframe. Use after
and before
parameters to specify a date range. By default and if before
is used with no after
, the previous 30 days are returned. The time returned is for the current API key only.
GET /api/v1/vaults/$VAULT_ID/api_executions
Query Parameters (all optional):
after |
Date (YYYY-MM-DDThh:mm:ss±hh:mm) Default: |
before |
Date (YYYY-MM-DDThh:mm:ss±hh:mm) Default: The current date and time |
Example:
curl -H "X-CDD-Token: $TOKEN" https://app.collaborativedrug.com/api/v1/vaults/489978881/api_executions?after=2023-01-01T00:00:00-07&before=2023-01-22T01:12:34-07
Returns:
{
"api-key-name": {
"after": "2023-01-01T07:00:00.000Z",
"before": "2023-01-22T08:12:34.000Z",
"seconds": 20.3
}
}