Skip to main content
POST
/
v1
/
orgs
/
{org_id}
/
insights
/
generate
Generate an org insights snapshot (async)
curl --request POST \
  --url http://localhost:3000/v1/orgs/{org_id}/insights/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "period_type": "daily",
  "start_date": "2023-11-07T05:31:56Z",
  "end_date": "2023-11-07T05:31:56Z",
  "callback_url": "<string>"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org_id
string
required

Body

application/json
period_type
enum<string>
Available options:
daily,
weekly,
monthly,
custom
start_date
string<date-time>
end_date
string<date-time>
callback_url
string<uri>

Response

200

Default Response