The organisation's usage: product events counted by day
curl --request GET \ --url https://api.whatsbuilt.fi/v1/organisation/analytics \ --header 'Authorization: Bearer <token>'What the organisation’s admins see on the usage page: each event with its count in [from, to), and per UTC day. Default: the last 30 days. Needs an integration that is an admin of its organisation.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Inclusive; default 30 days before to
Exclusive; default now
Responses
Section titled “Responses”The counts
getOrganisationAnalytics: product events counted in [from, to) and per UTC day.
object
One event’s count in the window.
object
One event’s count on one UTC day.
object
The UTC day, YYYY-MM-DD
Example generated
{ "from": "example", "to": "example", "totals": [ { "event": "example", "count": 1 } ], "daily": [ { "date": "example", "event": "example", "count": 1 } ]}VALIDATION_ERROR for a malformed time, or to before from
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}Missing, malformed, expired or revoked token
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}INSUFFICIENT_SCOPE; INSUFFICIENT_ROLE when the integration is not an admin of its organisation
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}RATE_LIMITED; wait for Retry-After seconds
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}