API Reference
Log In
API Reference

Report Sidekick stops

Records a batch of 1 to 100 times Sidekick held a prompt or denied a tool call. Each stop is stored once per team by its reportId, so a retried batch stores nothing new. A stop with an odd field is put right and stored, never refused; only a stop with no readable reportId, or an item that is not a JSON object, is rejected. With a metering API key the team comes from the key.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

ID of the team that owns this data. Optional with a metering API key: the team then comes from the key, and a value naming another team is refused. Required with a full-access API key or a signed-in session.

Body Params

The stops, at most 256 KB in all.

A batch of 1 to 100 stops Sidekick made on a developer's machine. The whole body is at most 256 KB.

stops
array of objects
required
length between 1 and 100

The stops, 1 to 100. A stop is rejected only when it has no readable reportId or is not a JSON object; any other odd field is put right and the stop is stored.

stops*

One time Sidekick held a prompt or denied a tool call. Unknown fields are ignored.

string | null
required

The stop's id, derived on the machine so every retry and every copy of one hook sends the same id. 16 to 128 letters, digits and hyphens; stored lowercased, once per team.

string | null

The machine's clock at the stop, ISO-8601 with an offset or Z. A time more than 10 minutes ahead or more than 400 days back, or one that cannot be read, is stored as the time Revenium received it.

string | null

The coding tool's session id, used to confirm the person. Send unknown when there is none.

string | null
enum

prompt: a prompt or message was held. tool: a tool call was denied.

Allowed:
string | null

The denied tool's name only, never its input. Sent when event is tool.

string | null
^[a-z0-9][a-z0-9-]{0,39}$

The coding tool whose work was stopped, as its usage is metered: claude-code, claude-cowork, codex-cli, cursor-ide, gemini-cli or github-copilot.

string | null
enum

Which form of Sidekick decided the stop.

Allowed:
string | null

That form's version.

string | null
enum

Why the work was stopped. budget: a budget is spent. cannot-check: Revenium could not be reached and the setting fails closed. identity: the person could not be confirmed. missing-helper: a helper the hook needs is missing. hook-error: the hook failed part-way.

Allowed:
ruleIds
array of strings | null

The budgets that held the stop, as the numeric ruleId the rules call returns, written as a decimal string. A value that is not a positive decimal integer is dropped and counted in ruleIdsDropped. Never send a cost-control hashid: one that is all digits would be read as a decimal ruleId. A budget sent more than once is kept once, and each extra copy is counted in ruleIdsDropped. At most 20; empty for every kind but budget.

ruleIds
string | null

The model the held work would have used, when the machine knows it.

string | null

The person as the machine resolved it. Stored beside the person Revenium confirms, never instead of it.

int32 | null
1 to 100000
Defaults to 1

How many stops this line stands for. 1 unless the machine folded several unsent stops into one line.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*