Skip to main content
POST
Run a report query

Authorizations

Authorization
string
header
required

The id_token from POST /auth/v1/signin, sent as Authorization: Bearer <id_token>. Not the access_token — that one does not carry the identity Cloud Chat authorizes on.

Headers

cloudchat-instance
integer
required

Your Cloud Chat instance ID — an integer, fixed for your company, told at onboarding. The API overview explains how instances work, how to find yours, and the errors a wrong or missing value produces.

Example:

1

Path Parameters

accountId
integer
required

Your Cloud Chat account. It has to be an account your token grants membership on, and it has to live on the instance in the cloudchat-instance header — the two travel together. Account numbers are only unique within an instance, so the same number is a different company on another instance. Usually a mismatched pair fails closed with a 401, because your user does not exist on the other instance — but if your identity happens to exist on both, the call succeeds against the other company's data, silently. Read it and you are looking at the wrong help center; write it and you have stored into the wrong account. Send the two values that were given to you together, and never try a number to see what answers.

Example:

1

Body

application/json

A query and the topic it runs on.

query
object
required

What to read: fields and period, and optionally filters, sorts and a row limit.

topic
string

The topic to query, as key in the fields list. Leave it out for claudia_conversations.

Response

The rows of the query.

The rows of one query.

topic
object
required

The topic the query ran on.

period
object
required

The period the rows cover.

fields
string[]
required

The fields asked for, in the order sent.

filters
object[]
required

The filters applied, except the project filter, which projects reflects.

projects
string[]
required

The ClaudIA projects the query covered.

rows
object[]
required

The rows, keyed by field name. NUMBER values are numbers, BOOLEAN values are booleans, other values are text (a week reads 2026-09-21), and a missing value is null.

truncated
boolean
required

true when more rows exist than limit, or the rows hit the response size cap. Narrow the period or the filters, or raise limit.

warnings
string[]

Present only when something limited the answer, and then rows is empty. no_claudia_projects: you can access no ClaudIA project on this account. no_matching_projects: the project filter left none of yours.