Skip to main content
POST
/
reports
/
create
Create a new saved report with name and config
curl --request POST \
  --url https://api.supersonic.cv/reports/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "config": {
    "object_type": "<string>",
    "metric": "count",
    "chart_type": "bar",
    "metric_field": "<string>",
    "group_by": "<string>",
    "time_bucket": "day",
    "filters": [
      {
        "field": "<string>",
        "operator": "<string>",
        "value": "<unknown>"
      }
    ]
  }
}
'
{}

Authorizations

Authorization
string
header
required

API key: supersonic_live_...

Body

application/json
name
string
required

Report name

config
object
required

Report config: {object_type, metric, metric_field, group_by, time_bucket, chart_type, filters}

Response

Success

The response is of type object.