Skip to main content

Schema introspection

Every command below with arguments supports two read-only flags for tooling and AI agents:
  • --show-file-schema: print the JSON Schema for the full request object (the format --filename accepts).
  • --show-argument-schema <flag-name>: print the JSON Schema for one argument’s value. Pass the kebab flag name without the leading -- (e.g. project-id, not --project-id).
Both write pure JSON to stdout and never call the API. They cannot be combined with any other command-specific flag.

list

List charts Retrieve all charts in a project.

Usage

Accepted keys: Data plane fine-grained API key with --project-id; Project API key without --project-id (deprecated)

Options

Also supports --show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.

create

Create a new chart Create a chart in a project.

Usage

Accepted keys: Data plane fine-grained API key with --project-id; Project API key without --project-id (deprecated)

Options

Also supports --show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.

get

Get a chart Retrieve a single chart by id.

Usage

Accepted keys: Data plane fine-grained API key with --project-id; Project API key without --project-id (deprecated)

Options

Also supports --show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.

update

Update a chart Update a chart’s editable fields. Only fields included in the request body are modified.

Usage

Accepted keys: Data plane fine-grained API key with --project-id; Project API key without --project-id (deprecated)

Options

Also supports --show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.

delete

Delete a chart Delete a chart from a project, removing it from the project’s dashboards.

Usage

Accepted keys: Data plane fine-grained API key with --project-id; Project API key without --project-id (deprecated)

Options

Also supports --show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.

query

Run a chart query Aggregate the project’s events into one chart result. query.kind selects the result shape: time series, categorical, scalar, histogram, or table. Every query must include an event_type is <type> or event_type is not <type> filter; an event_type is session filter queries sessions instead of events. The scatter kind and a categorical split_by / split_ranking are accepted by the schema but not served yet, and answer 501.

Usage

Accepted keys: Data plane fine-grained API key

Options

Also supports --show-file-schema, --show-argument-schema <flag-name>, and --filename. See Schema introspection for details.