Skip to content
DocumentationAPI ReferenceChangelog
API ReferenceTalon Studio v1.1.22-beta

Change Requests

List a workspace's Git-backed change requests, and read one with its validations, reviews and merge gate.

List change requests

GET/api/v1/change-requestschange_requests:read

List every change request in a workspace, in every status, most recently updated first, a page at a time.

Query parameters
workspaceIdstring (UUID)
Required with an org-scoped token; a workspace-bound token uses its own workspace.
pageinteger
Page number, default 1.
perPageinteger
Items per page, 1–100, default 25.
Response
idstring (UUID)
titlestring
statusstring
draft | open | approved | merging | merged | closed — merging is held while a merge runs.
authorstring · nullable
The name recorded for the person who opened it. For a proposal made through the API, the token owner's display name.
filesinteger
Number of files changed.
updatedAtstring (ISO 8601)
Returned with meta { page, perPage, total, totalPages } and links { next, prev }. There is no status filter — filter on status client-side. Proposals made with POST /detections are titled "API: <name>"; edits made with PATCH /detections/{id} are titled "API: updated <name>".
Request
curl -H "Authorization: Bearer tlk_…" \
  "https://<your-instance>/api/v1/change-requests?workspaceId=…"
Response
{
  "data": [
    {
      "id": "1a2b3c4d-5e6f-4a70-8b90-0c1d2e3f4a5b",
      "title": "Add Okta MFA fatigue detection",
      "status": "open",
      "author": "Jane Doe",
      "files": 3,
      "updatedAt": "2026-06-30T14:22:10.000Z"
    },
    {
      "id": "4d5e6f70-8a9b-4c1d-9e2f-3a4b5c6d7e8f",
      "title": "API: Suspicious PowerShell",
      "status": "draft",
      "author": "Sam Lee",
      "files": 1,
      "updatedAt": "2026-06-28T09:11:02.000Z"
    }
  ],
  "meta": { "page": 1, "perPage": 25, "total": 2, "totalPages": 1 },
  "links": { "next": null, "prev": null }
}

Get change request

GET/api/v1/change-requests/{id}change_requests:read

One change request in full: what it changes, the validations and AI reviews run on its branch, its approvals, and what still blocks the merge. Read-only — approving and merging stay in the app.

Path parameters
idstring (UUID)required
Query parameters
workspaceIdstring (UUID)
Required with an org-scoped token; a workspace-bound token uses its own workspace.
Response
data.idstring (UUID)
data.titlestring
data.descriptionstring · nullable
data.statusstring
draft | open | approved | merging | merged | closed
data.branchNamestring
data.originobject
kind (human | agent) and label — who authored it: a person's name, or the agent that acted for one — "API token" for a proposal made through the API.
data.authorstring
The name recorded for the person who opened it.
data.createdAtstring (ISO 8601)
data.updatedAtstring (ISO 8601)
data.changedFiles[]object[]
filePath, status (added | changed | removed) — the branch's changes against main.
data.staleFilesstring[]
Files this change request touched that main has also changed since the branch was cut; merging would overwrite that work.
data.isBehindMainboolean
main has commits the branch doesn't, whether or not they conflict.
data.detections[]object[]
id, name, lastValidatedAt, latestResult — the detections the change touches.
data.validations[]object[]
detectionId, filePath, result, runId, validatedAt, branchCommitHash — validation runs on the branch, each tied to the commit it ran on.
data.agentReviews[]object[]
agentLabel, verdict (approve | request_changes | comment), summary, runId, reviewedAt, reviewedCommitHash.
data.approvals[]object[]
name, approvedAt.
data.gateobject
status (no_changes | ready | validation_required), blockers[] and warnings[] — what still stops the merge. warnings include conformance findings against the workspace's standard.
data.mergedAtstring (ISO 8601) · nullable
Returned as { data: { … } }. An id that isn't a change request in the resolved workspace returns 404 "Change request not found".
Request
curl -H "Authorization: Bearer tlk_…" \
  "https://<your-instance>/api/v1/change-requests/{id}?workspaceId=…"
Response
{
  "data": {
    "id": "4d5e6f70-8a9b-4c1d-9e2f-3a4b5c6d7e8f",
    "title": "API: Suspicious PowerShell",
    "description": "New detection proposed by API token on behalf of Sam Lee.",
    "status": "draft",
    "branchName": "agent/api-suspicious-powershell-4d5e6f70",
    "origin": { "kind": "agent", "label": "API token" },
    "author": "Sam Lee",
    "createdAt": "2026-06-28T09:10:40.000Z",
    "updatedAt": "2026-06-28T09:11:02.000Z",
    "changedFiles": [
      { "filePath": "detections/T1059.001_suspicious-powershell.yaml", "status": "added" }
    ],
    "staleFiles": [],
    "isBehindMain": false,
    "detections": [
      { "id": "7c2a…", "name": "Suspicious PowerShell", "lastValidatedAt": null, "latestResult": null }
    ],
    "validations": [],
    "agentReviews": [],
    "approvals": [],
    "gate": {
      "status": "validation_required",
      "blockers": ["…"],
      "warnings": []
    },
    "mergedAt": null
  }
}