Quillstream

Modules

Review queueEditorAgent API
OrganizationMembers & rolesSeats & licensesPlan & billing
MP

Maya Patel

Lead reviewer

Review + merge
Review queueEditorAgent APIWorkspace

Agent API

Signed in as Maya Patel · Lead reviewer — inspect the endpoints your agents call and the traffic they generate.

<YOUR_AGENT_TOKEN>

Placeholder, not a credential. Real agent tokens are minted from your workspace settings on a paid plan, and are shown once.

Calls last hour
8
Median latency
104 ms
Active agents
4
4xx rate
25.0%

Endpoints

GET/api/agent/documents
Returns the documents your organization owns, newest first, with the number of drafts each one still has pending. Optional filters: a page size (1-100) and a document status.

Mock request — nothing leaves the browser. Sends append a row to the traffic log below.

Webhook events
This is the published contract, and delivery is live: register a receiver against an agent token and every draft and verdict is POSTed to it, signed, within seconds of happening — retried on the published schedule when it does not answer, and recorded attempt by attempt in the deliveries log. Choosing which of the three events a receiver gets is the one part still to come; today a receiver is subscribed to all three, not to a subset you pick.

draft.created

An agent proposed a draft on a block it owns. The block is now waiting for a human verdict — nothing is merged yet.

{
  "eventId": "evt_7c1d0a4e",
  "deliveryId": "dlv_2f90b1c7",
  "occurredAt": "2026-04-18T09:31:22.000Z",
  "event": "draft.created",
  "data": {
    "documentId": "doc_8f21ac",
    "blockId": "blk_31be09",
    "draftId": "drf_5c0742",
    "authorKind": "agent",
    "authorLabel": "CI pipeline"
  }
}

section.approved

A reviewer approved a draft. The block becomes owned content on the default branch.

{
  "eventId": "evt_9a3f11b2",
  "deliveryId": "dlv_44c8de10",
  "occurredAt": "2026-04-18T09:31:22.000Z",
  "event": "section.approved",
  "data": {
    "documentId": "doc_8f21ac",
    "blockId": "blk_31be09",
    "draftId": "drf_5c0742",
    "reviewerLabel": "Maya Patel"
  }
}

section.rejected

A reviewer rejected a draft. The rationale rides along, so the agent can revise instead of retrying blind.

{
  "eventId": "evt_1b6e5d33",
  "deliveryId": "dlv_88ff20a5",
  "occurredAt": "2026-04-18T09:31:22.000Z",
  "event": "section.rejected",
  "data": {
    "documentId": "doc_8f21ac",
    "blockId": "blk_31be09",
    "draftId": "drf_41ba86",
    "reviewerLabel": "Maya Patel",
    "reason": "The metric is stale — use the April cohort, not the pilot."
  }
}

Live agent traffic

8 calls in the last hour · median 104 ms. Try-it sends land here instantly.

MethodPathAgentStatusLatencyWhen
POST
/api/agent/drafts
codex-agent
201
188 ms
12s ago
GET
/api/agent/blocks/{id}
codex-agent
200
74 ms
48s ago
GET
/api/agent/documents
release-bot
200
112 ms
2m ago
POST
/api/agent/drafts
release-bot
404
96 ms
4m ago
GET
/api/agent/blocks/{id}
runbook-agent
200
61 ms
7m ago
POST
/api/agent/drafts
runbook-agent
400
133 ms
11m ago
POST
/api/agent/drafts
codex-agent
201
205 ms
18m ago
GET
/api/agent/documents
changelog-agent
200
88 ms
26m ago