Skip to main content
This guide walks through common Gauge Chat API tasks. You need an API key; see Authenticate with the API. Set it in your shell first:

Find your organization and category

Most requests are scoped to an organization and one of its categories. List the organizations your key reaches:
Then list that organization’s categories. Use either a slug, such as acme, or an ID:

List tracked prompts

If the response has a nextCursor, pass it as cursor to get the next page.

Create prompts

Find a topic ID with GET /orgs/{org}/categories/{category}/topics, then create prompts in it. This needs a Read & write key:
New prompts are queued for sampling. A prompt that matches an existing prompt in the category is returned as already_exists, so retrying is safe. If the new prompts would exceed your plan’s prompt limit, nothing is created.

Run a report

POST /orgs/{org}/query returns aggregate metrics from a dataset: answers, citations, searchQueries, or aiTraffic. First, get each dataset’s dimensions, metrics, and filters, plus values valid for your organization:
Then run a query. This one returns daily visibility and share of voice by model for the last 30 days:
Reports count as reads, so a Read only key can run them.

Chat API reference

Every endpoint, with request and response schemas.