Skip to content

g1t/apps/api/src/reference.json

7,959 lines225,754 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Merge branch 'worktree-agent-ab2e39e11a6493412'1{
2 "device_code": {
3 "request": {
4 "client_name": "Claude Code"
5 },
6 "response": {
7 "device_code": "Gm3k…",
8 "user_code": "WDJB-MJHT",
9 "verification_uri": "https://g1t.sh/device",
10 "verification_uri_complete": "https://g1t.sh/device?code=WDJB-MJHT",
11 "expires_in": 900,
12 "interval": 5
13 }
14 },
15 "device_token": {
16 "request": {
17 "device_code": "Gm3k…"
18 },
19 "response": {
20 "status": "approved",
21 "token": "g1t_…",
22 "username": "syntaqx",
23 "verified": true
24 }
25 },
26 "whoami": {
27 "response": {
28 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
29 "username": "syntaqx",
30 "kind": "user",
31 "verified": true,
32 "workspaces": [
33 {
34 "slug": "acme",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look35 "role": "member",
36 "base_permission": "write"
Merge branch 'worktree-agent-ab2e39e11a6493412'37 },
38 {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look39 "slug": "flagon-io",
40 "role": "owner",
41 "base_permission": "write"
Merge branch 'worktree-agent-ab2e39e11a6493412'42 }
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step43 ],
44 "token": {
45 "token_id": "tok_01kkntd3p2v8x6ym5r0c1q7a9e",
API: pinned projects over REST and MCP46 "scopes": [
47 "repo:read",
48 "issues:read",
49 "issues:write",
50 "pull_requests:read",
51 "pull_requests:write"
52 ]
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step53 }
Merge branch 'worktree-agent-ab2e39e11a6493412'54 },
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step55 "notes": "`token` is what the access token you called with may do: its `scopes` (left out for full access) and `legacy` when it was made before tokens had scopes. A token reaches every workspace and repository whoever it acts as can; its scopes say what it may do there. See [Scopes](/guides/authentication/#scopes). `kind` is `user`, `workspace` for a [workspace access token](/guides/workspaces/#workspace-access-tokens), or `agent` for the token a g1t agent works with. For a workspace token, `username` is the workspace's slug and `workspaces` holds only that workspace. Each workspace carries its `base_permission`: what a member gets on each of its repositories (owners have Admin). Roles given on single repositories are in `grants`, each with `repo_id`, `workspace` and `role`; it is left out when there are none. See [Access and roles](/guides/access-and-roles/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'56 },
57 "create_workspace": {
58 "request": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look59 "slug": "acme-labs",
60 "name": "Acme Labs"
Merge branch 'worktree-agent-ab2e39e11a6493412'61 },
62 "response": {
63 "id": "wsp_01m43teqa9em6bje0bhvdj4jkb",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look64 "slug": "acme-labs",
65 "name": "Acme Labs",
Merge branch 'worktree-agent-ab2e39e11a6493412'66 "description": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API67 "created_at": "2026-10-04T16:02:51.337Z",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look68 "member_count": 1,
69 "base_permission": "write"
70 },
Git storage hardened, pages in tens of milliseconds, honest security alerts, and costs reconciled daily71 "notes": "`base_permission` is what every member gets on each of its repositories: `write` until an owner changes it with `PATCH /workspaces/{workspace}` or `PUT /workspaces/{workspace}/base_permission`. See [Access and roles](/guides/access-and-roles/)."
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look72 },
Git storage hardened, pages in tens of milliseconds, honest security alerts, and costs reconciled daily73 "update_workspace": {
74 "params": {
75 "workspace": "acme-labs"
76 },
77 "request": {
78 "name": "Acme Labs",
79 "description": "Rockets, and the software that flies them."
80 },
81 "response": {
82 "id": "wsp_01m43teqa9em6bje0bhvdj4jkb",
83 "slug": "acme-labs",
84 "name": "Acme Labs",
85 "description": "Rockets, and the software that flies them.",
86 "created_at": "2026-10-04T16:02:51.337Z",
87 "member_count": 3,
88 "base_permission": "write"
89 },
90 "notes": "Only the fields given change. `name` is the display name; the slug, the first part of the workspace's addresses, stays as it is. `base_permission` needs the `access:admin` scope as well as `workspace:admin`; [`set_base_permission`](/reference/api/access/set-base-permission/) sets it alone. Refused with `403` for anyone but an owner signed in as a person. Recorded in the [audit log](/guides/audit-log/). See [Workspaces](/guides/workspaces/)."
91 },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look92 "delete_workspace": {
93 "request": {
94 "confirm": "acme-labs"
95 },
96 "response": true,
Packages, with a container registry on g1t.sh; workspaces deleted whole and kept 30 days; Members for every member97 "notes": "Refused with `402` while billing cannot settle it, with a message that says what to do, and with `403` for anyone but an owner signed in as a person, or for a protected workspace. Its repositories, projects and apps go with it; g1t's support can restore it for 30 days. See [Delete a workspace](/guides/workspaces/#delete-a-workspace)."
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look98 },
99 "list_emails": {
100 "response": {
101 "emails": [
102 {
103 "email": "ada@example.com",
104 "verified": true,
105 "primary": true,
106 "backup": false,
107 "created_at": "2026-09-01T10:00:00.000Z",
108 "verified_at": "2026-09-01T10:02:11.000Z"
109 },
110 {
111 "email": "ada@acme.com",
112 "verified": true,
113 "primary": false,
114 "backup": true,
115 "created_at": "2026-10-02T09:30:00.000Z",
116 "verified_at": "2026-10-02T09:31:40.000Z"
117 },
118 {
119 "email": "ada.l@example.org",
120 "verified": false,
121 "primary": false,
122 "backup": false,
123 "created_at": "2026-10-05T14:12:03.000Z",
124 "verified_at": null
125 }
126 ],
127 "private_email": true,
128 "block_private_pushes": false,
129 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
130 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
131 "limit": 10
132 },
133 "notes": "Your primary address comes first, then confirmed addresses, then unconfirmed ones. Any confirmed address signs you in, can reset your password and attributes commits to you. See [Email addresses](/guides/authentication/#email-addresses)."
134 },
135 "add_email": {
136 "request": {
137 "email": "ada.l@example.org",
138 "password": "…"
139 },
140 "response": {
141 "emails": [
142 {
143 "email": "ada@example.com",
144 "verified": true,
145 "primary": true,
146 "backup": false,
147 "created_at": "2026-09-01T10:00:00.000Z",
148 "verified_at": "2026-09-01T10:02:11.000Z"
149 },
150 {
151 "email": "ada@acme.com",
152 "verified": true,
153 "primary": false,
154 "backup": true,
155 "created_at": "2026-10-02T09:30:00.000Z",
156 "verified_at": "2026-10-02T09:31:40.000Z"
157 },
158 {
159 "email": "ada.l@example.org",
160 "verified": false,
161 "primary": false,
162 "backup": false,
163 "created_at": "2026-10-05T14:12:03.000Z",
164 "verified_at": null
165 }
166 ],
167 "private_email": true,
168 "block_private_pushes": false,
169 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
170 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
171 "limit": 10
172 },
173 "notes": "Answers `403` with code `reauth_required` when `password` is missing or wrong, and `409` when another account has confirmed the address. The new address stays unconfirmed until its link is followed."
174 },
175 "remove_email": {
176 "request": {
177 "password": "…"
178 },
179 "response": {
180 "emails": [
181 {
182 "email": "ada@example.com",
183 "verified": true,
184 "primary": true,
185 "backup": false,
186 "created_at": "2026-09-01T10:00:00.000Z",
187 "verified_at": "2026-09-01T10:02:11.000Z"
188 },
189 {
190 "email": "ada@acme.com",
191 "verified": true,
192 "primary": false,
193 "backup": true,
194 "created_at": "2026-10-02T09:30:00.000Z",
195 "verified_at": "2026-10-02T09:31:40.000Z"
196 },
197 {
198 "email": "ada.l@example.org",
199 "verified": false,
200 "primary": false,
201 "backup": false,
202 "created_at": "2026-10-05T14:12:03.000Z",
203 "verified_at": null
204 }
205 ],
206 "private_email": true,
207 "block_private_pushes": false,
208 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
209 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
210 "limit": 10
211 },
212 "notes": "Give the address in the path, URL-encoded: `DELETE /user/emails/ada.l%40example.org`. Answers `409` for your primary address or your last confirmed one."
213 },
214 "update_email_settings": {
215 "request": {
216 "primary": "ada@acme.com",
217 "password": "…"
218 },
219 "response": {
220 "emails": [
221 {
222 "email": "ada@example.com",
223 "verified": true,
224 "primary": true,
225 "backup": false,
226 "created_at": "2026-09-01T10:00:00.000Z",
227 "verified_at": "2026-09-01T10:02:11.000Z"
228 },
229 {
230 "email": "ada@acme.com",
231 "verified": true,
232 "primary": false,
233 "backup": true,
234 "created_at": "2026-10-02T09:30:00.000Z",
235 "verified_at": "2026-10-02T09:31:40.000Z"
236 },
237 {
238 "email": "ada.l@example.org",
239 "verified": false,
240 "primary": false,
241 "backup": false,
242 "created_at": "2026-10-05T14:12:03.000Z",
243 "verified_at": null
244 }
245 ],
246 "private_email": true,
247 "block_private_pushes": false,
248 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
249 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
250 "limit": 10
251 },
252 "notes": "Only the fields given change. `primary` and `backup` need `password`; `private_email` and `block_private_pushes` do not."
253 },
254 "list_invites": {
255 "response": {
256 "mode": "invite",
257 "allowance": {
258 "limit": 5,
259 "used": 2,
260 "remaining": 3
261 },
262 "workspaces": [
263 {
264 "slug": "acme-labs",
265 "allowance": {
266 "limit": 20,
267 "used": 4,
268 "remaining": 16
269 }
270 }
271 ],
272 "invites": [
273 {
274 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
275 "code": "g1t-k7m2-q9xd-4hpw-…",
276 "hint": "g1t-k7m2",
277 "email": "ada@example.com",
278 "kind": "account",
279 "workspace": null,
280 "status": "pending",
281 "charged_to": "user",
282 "invited_by": "syntaqx",
283 "redeemed_by": null,
284 "created_at": "2026-10-05T17:00:00.000Z",
285 "expires_at": "2026-11-04T17:00:00.000Z",
286 "redeemed_at": null,
287 "revoked_at": null
288 },
289 {
290 "id": "inv_01kp1v3c4d5e6f7g8h9j0k1m2n",
291 "code": null,
292 "hint": "g1t-p3rt",
293 "email": null,
294 "kind": "account",
295 "workspace": null,
296 "status": "redeemed",
297 "charged_to": "user",
298 "invited_by": "syntaqx",
299 "redeemed_by": "grace",
300 "created_at": "2026-10-02T09:12:40.000Z",
301 "expires_at": "2026-11-01T09:12:40.000Z",
302 "redeemed_at": "2026-10-02T11:30:05.000Z",
303 "revoked_at": null
304 }
305 ]
306 },
307 "notes": "`allowance.limit` and `allowance.remaining` are null when you have no limit. A revoked or expired invite that was never used is not counted. Ask for more at hey@flagon.io with the subject `[g1t Invites]`. See [Invites](/guides/authentication/#invites)."
308 },
309 "create_invite": {
310 "request": {
311 "email": "ada@example.com"
312 },
313 "response": {
314 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
315 "code": "g1t-k7m2-q9xd-4hpw-…",
316 "hint": "g1t-k7m2",
317 "email": "ada@example.com",
318 "kind": "account",
319 "workspace": null,
320 "status": "pending",
321 "charged_to": "user",
322 "invited_by": "syntaqx",
323 "redeemed_by": null,
324 "created_at": "2026-10-05T17:00:00.000Z",
325 "expires_at": "2026-11-04T17:00:00.000Z",
326 "redeemed_at": null,
327 "revoked_at": null
328 },
329 "notes": "Refused with `402` (`limit`) when you have no invites left, with `409` when you already have a pending invite for that address or it already has a g1t account, and with `403` for an agent's or a workspace's token. The code is returned in full; send people the link `https://g1t.sh/invite/<code>`."
330 },
331 "revoke_invite": {
332 "response": {
333 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
334 "code": null,
335 "hint": "g1t-k7m2",
336 "email": "ada@example.com",
337 "kind": "account",
338 "workspace": null,
339 "status": "revoked",
340 "charged_to": "user",
341 "invited_by": "syntaqx",
342 "redeemed_by": null,
343 "created_at": "2026-10-05T17:00:00.000Z",
344 "expires_at": "2026-11-04T17:00:00.000Z",
345 "redeemed_at": null,
346 "revoked_at": "2026-10-06T08:00:00.000Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'347 }
348 },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look349 "list_workspace_invites": {
350 "response": [
351 {
352 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
353 "code": "g1t-k7m2-q9xd-4hpw-…",
354 "hint": "g1t-k7m2",
355 "email": "ada@example.com",
356 "kind": "account",
357 "workspace": "acme-labs",
358 "status": "pending",
359 "charged_to": "workspace",
360 "invited_by": "syntaqx",
361 "redeemed_by": null,
362 "created_at": "2026-10-05T17:00:00.000Z",
363 "expires_at": "2026-11-04T17:00:00.000Z",
364 "redeemed_at": null,
365 "revoked_at": null
366 },
367 {
368 "id": "inv_01kp1z9y8x7w6v5t4s3r2q1p0n",
369 "code": "g1t-k7m2-q9xd-4hpw-…",
370 "hint": "g1t-w2vb",
371 "email": "linus@example.com",
372 "kind": "workspace",
373 "workspace": "acme-labs",
374 "status": "pending",
375 "charged_to": "none",
376 "invited_by": "syntaqx",
377 "redeemed_by": null,
378 "created_at": "2026-10-05T17:00:00.000Z",
379 "expires_at": "2026-11-04T17:00:00.000Z",
380 "redeemed_at": null,
381 "revoked_at": null
382 }
383 ]
384 },
385 "invite_member": {
386 "request": {
387 "email": "ada@example.com"
388 },
389 "response": {
390 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
391 "code": "g1t-k7m2-q9xd-4hpw-…",
392 "hint": "g1t-k7m2",
393 "email": "ada@example.com",
394 "kind": "account",
395 "workspace": "acme-labs",
396 "status": "pending",
397 "charged_to": "workspace",
398 "invited_by": "syntaqx",
399 "redeemed_by": null,
400 "created_at": "2026-10-05T17:00:00.000Z",
401 "expires_at": "2026-11-04T17:00:00.000Z",
402 "redeemed_at": null,
403 "revoked_at": null
404 },
405 "notes": "`kind` is `workspace` when the address already has a g1t account (`charged_to` is then `none`), and `account` when accepting makes one. Both answers look alike to the caller on purpose: the invite is emailed either way."
406 },
407 "revoke_workspace_invite": {
408 "response": {
409 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
410 "code": null,
411 "hint": "g1t-k7m2",
412 "email": "ada@example.com",
413 "kind": "account",
414 "workspace": "acme-labs",
415 "status": "revoked",
416 "charged_to": "workspace",
417 "invited_by": "syntaqx",
418 "redeemed_by": null,
419 "created_at": "2026-10-05T17:00:00.000Z",
420 "expires_at": "2026-11-04T17:00:00.000Z",
421 "redeemed_at": null,
422 "revoked_at": "2026-10-06T08:00:00.000Z"
423 }
424 },
Merge branch 'worktree-agent-ab2e39e11a6493412'425 "list_repos": {
426 "query": {
427 "q": "hello"
428 },
429 "response": [
430 {
431 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look432 "namespace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'433 "name": "hello",
434 "description": "A tiny service that says hello.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API435 "is_private": false,
436 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
437 "default_branch": "main",
438 "fork_of": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'439 "protected": true,
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look440 "created_at": "2026-09-28T14:11:52.640Z",
441 "website": "https://hello.g1t.page",
442 "archived_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'443 }
444 ],
445 "notes": "Returns at most 50 repositories, newest first. Forks made for pull requests are left out."
446 },
447 "create_repo": {
448 "request": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look449 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'450 "name": "hello-cli",
451 "description": "Command-line client for hello.",
452 "private": false
453 },
454 "response": {
455 "id": "rep_01m43tk1jhehztx23drs87f5fc",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look456 "namespace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'457 "name": "hello-cli",
458 "description": "Command-line client for hello.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API459 "is_private": false,
460 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
461 "default_branch": "main",
462 "fork_of": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'463 "protected": false,
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look464 "created_at": "2026-10-04T16:05:12.913Z",
465 "website": "https://hello.g1t.page",
466 "archived_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'467 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API468 "notes": "`owner_id` is the id of the person who created the repository. With `import_url`, `default_branch` is the default branch of the repository copied."
Merge branch 'worktree-agent-ab2e39e11a6493412'469 },
470 "get_repo": {
471 "response": {
472 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look473 "namespace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'474 "name": "hello",
475 "description": "A tiny service that says hello.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API476 "is_private": false,
477 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
478 "default_branch": "main",
479 "fork_of": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'480 "protected": true,
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look481 "created_at": "2026-09-28T14:11:52.640Z",
482 "website": "https://hello.g1t.page",
483 "archived_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'484 }
485 },
486 "update_repo": {
487 "request": {
488 "description": "Says hello, politely.",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look489 "website": "hello.g1t.page",
490 "default_branch": "trunk",
Merge branch 'worktree-agent-ab2e39e11a6493412'491 "protected": true
492 },
493 "response": {
494 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look495 "namespace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'496 "name": "hello",
497 "description": "Says hello, politely.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API498 "is_private": false,
499 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look500 "default_branch": "trunk",
501 "fork_of": null,
502 "protected": true,
503 "created_at": "2026-09-28T14:11:52.640Z",
504 "topics": [
505 "http",
506 "example"
507 ],
508 "website": "https://hello.g1t.page",
509 "archived_at": null
510 },
511 "notes": "Only the fields given change. `website` gets `https://` when no scheme is given; an empty string clears it. `default_branch` must name a branch that exists (`422` otherwise); it is changed after the other fields. `description`, `website`, `topics` and `protected` need the Maintain role or higher, and `private` and `default_branch` the Admin role (`403` otherwise, saying which role). Changing `private` here needs no confirmation; `POST /repos/{owner}/{name}/visibility` asks for one. Making it private is refused with `402` when a free workspace's private storage has no room for it. See [Managing a repository](/guides/managing-repositories/) and [Access and roles](/guides/access-and-roles/)."
512 },
513 "transfer_repo": {
514 "request": {
515 "to": "flagon-io"
516 },
517 "response": {
518 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
519 "namespace": "flagon-io",
520 "name": "hello",
521 "description": "A tiny service that says hello.",
522 "is_private": false,
523 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API524 "default_branch": "main",
525 "fork_of": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'526 "protected": true,
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look527 "created_at": "2026-09-28T14:11:52.640Z",
528 "website": "https://hello.g1t.page",
529 "archived_at": null
530 },
531 "notes": "The repository at its new address. Refused with `409` when the destination already has a repository of that name, `403` unless you own both workspaces, and `402` when a free destination has no room for a private repository. The old address redirects. See [Transferring a repository](/guides/transferring-repositories/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'532 },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look533 "rename_repo": {
534 "request": {
535 "name": "greeter"
536 },
537 "response": {
538 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
539 "namespace": "flagon-io",
540 "name": "greeter",
541 "description": "A tiny service that says hello.",
542 "is_private": false,
543 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
544 "default_branch": "main",
545 "fork_of": null,
546 "protected": true,
547 "created_at": "2026-09-28T14:11:52.640Z",
548 "topics": [
549 "http",
550 "example"
551 ],
552 "website": "https://hello.g1t.page",
553 "archived_at": null
554 },
555 "notes": "The repository under its new name. Needs the Admin role (`403` otherwise). Refused with `409` when the workspace already has a repository of that name, a recently deleted one included, and with `422` when the name is not valid. The old address redirects. See [Rename a repository](/guides/managing-repositories/#rename-a-repository)."
556 },
557 "rename_branch": {
558 "params": {
559 "owner": "flagon-io",
560 "name": "hello",
561 "branch": "feature/login"
562 },
563 "request": {
564 "new_name": "feature/sign-in"
565 },
566 "response": {
567 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
568 "namespace": "flagon-io",
569 "name": "hello",
570 "description": "A tiny service that says hello.",
571 "is_private": false,
572 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
573 "default_branch": "main",
574 "fork_of": null,
575 "protected": true,
576 "created_at": "2026-09-28T14:11:52.640Z",
577 "topics": [
578 "http",
579 "example"
580 ],
581 "website": "https://hello.g1t.page",
582 "archived_at": null
583 },
584 "notes": "The repository after the rename; renaming the default branch changes `default_branch`. Send a branch name with slashes URL-encoded, as one path segment. Refused with `404` when there is no such branch, `409` when a branch named `new_name` exists, `422` when `new_name` is not a valid branch name, and `403` without the Write role, or without the Admin role for the default branch. See [Rename a branch](/guides/managing-repositories/#rename-a-branch)."
585 },
586 "set_repo_visibility": {
587 "request": {
588 "private": true,
589 "confirm": "flagon-io/hello"
590 },
591 "response": {
592 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
593 "namespace": "flagon-io",
594 "name": "hello",
595 "description": "A tiny service that says hello.",
596 "is_private": true,
597 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
598 "default_branch": "main",
599 "fork_of": null,
600 "protected": true,
601 "created_at": "2026-09-28T14:11:52.640Z",
602 "topics": [
603 "http",
604 "example"
605 ],
606 "website": "https://hello.g1t.page",
607 "archived_at": null
608 },
609 "notes": "Needs the Admin role (`403` otherwise). Refused with `422` when `confirm` is not the repository's full name, and with `402` when a free workspace's private storage has no room for it. See [Change who can see a repository](/guides/managing-repositories/#change-who-can-see-a-repository)."
610 },
611 "archive_repo": {
612 "response": {
613 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
614 "namespace": "flagon-io",
615 "name": "hello",
616 "description": "A tiny service that says hello.",
617 "is_private": false,
618 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
619 "default_branch": "main",
620 "fork_of": null,
621 "protected": true,
622 "created_at": "2026-09-28T14:11:52.640Z",
623 "topics": [
624 "http",
625 "example"
626 ],
627 "website": "https://hello.g1t.page",
628 "archived_at": "2026-10-05T09:30:00.000Z"
629 },
630 "notes": "The repository, with `archived_at` set. Needs the Admin role (`403` otherwise). See [Archive a repository](/guides/managing-repositories/#archive-a-repository)."
631 },
632 "unarchive_repo": {
633 "response": {
634 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
635 "namespace": "flagon-io",
636 "name": "hello",
637 "description": "A tiny service that says hello.",
638 "is_private": false,
639 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
640 "default_branch": "main",
641 "fork_of": null,
642 "protected": true,
643 "created_at": "2026-09-28T14:11:52.640Z",
644 "topics": [
645 "http",
646 "example"
647 ],
648 "website": "https://hello.g1t.page",
649 "archived_at": null
650 },
651 "notes": "The repository, with `archived_at` null. Needs the Admin role (`403` otherwise)."
652 },
653 "delete_repo": {
654 "request": {
655 "confirm": "flagon-io/hello"
656 },
657 "response": {
658 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
659 "namespace": "flagon-io",
660 "name": "hello",
661 "description": "A tiny service that says hello.",
662 "is_private": false,
663 "deleted_at": "2026-10-05T09:30:00.000Z",
664 "deleted_by": "syntaqx",
665 "purge_after": "2026-11-04T09:30:00.000Z"
666 },
667 "notes": "The deleted repository and when it will be purged, 30 days on. Owners of the workspace only (`403`), whatever their role on the repository. Refused with `422` when `confirm` is not its full name. Its name stays taken until it is purged. See [Delete a repository](/guides/managing-repositories/#delete-a-repository)."
668 },
669 "list_deleted_repos": {
670 "params": {
671 "workspace": "flagon-io"
672 },
673 "response": [
674 {
675 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
676 "namespace": "flagon-io",
677 "name": "hello",
678 "description": "A tiny service that says hello.",
679 "is_private": false,
680 "deleted_at": "2026-10-05T09:30:00.000Z",
681 "deleted_by": "syntaqx",
682 "purge_after": "2026-11-04T09:30:00.000Z"
683 }
684 ],
685 "notes": "Newest first. Empty for anyone who is not an owner of the workspace."
686 },
687 "restore_repo": {
688 "response": {
689 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
690 "namespace": "flagon-io",
691 "name": "hello",
692 "description": "A tiny service that says hello.",
693 "is_private": false,
694 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
695 "default_branch": "main",
696 "fork_of": null,
697 "protected": true,
698 "created_at": "2026-09-28T14:11:52.640Z",
699 "topics": [
700 "http",
701 "example"
702 ],
703 "website": "https://hello.g1t.page",
704 "archived_at": null
705 },
706 "notes": "The repository, back at its address. Name it by the path it had. Owners only (`403`); `404` when no deleted repository had that path, or it has been purged. See [Restore a repository](/guides/managing-repositories/#restore-a-repository)."
707 },
708 "purge_repo": {
709 "request": {
710 "confirm": "flagon-io/hello"
711 },
712 "response": true,
713 "notes": "Permanent: it cannot be restored afterwards, and its name is free again. Only a deleted repository can be purged (`404` otherwise). Owners only (`403`); `422` when `confirm` is not its full name."
714 },
Merge branch 'worktree-agent-ab2e39e11a6493412'715 "get_repo_settings": {
716 "response": {
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API717 "auto_merge": false,
Fast pages, required checks on the branch, self-hosted runners, honest incidents718 "required_checks": [
719 "CI"
720 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API721 "require_up_to_date": false,
722 "required_approvals": 0,
723 "count_agent_approvals": true,
724 "allow_ignoring_checks": true,
725 "agent_review": true,
726 "max_revisions": 2,
727 "merge_queue": false,
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step728 "hold_low_confidence": true,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar729 "require_code_owner_review": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API730 "updated_by": null,
731 "updated_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'732 }
733 },
734 "update_repo_settings": {
735 "request": {
Fast pages, required checks on the branch, self-hosted runners, honest incidents736 "required_checks": [
737 "CI",
738 "g1t / deploy"
739 ],
Merge branch 'worktree-agent-ab2e39e11a6493412'740 "required_approvals": 1,
741 "count_agent_approvals": false,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar742 "merge_queue": true,
743 "require_code_owner_review": true
Merge branch 'worktree-agent-ab2e39e11a6493412'744 },
745 "response": {
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API746 "auto_merge": false,
Fast pages, required checks on the branch, self-hosted runners, honest incidents747 "required_checks": [
748 "CI",
749 "g1t / deploy"
750 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API751 "require_up_to_date": false,
752 "required_approvals": 1,
753 "count_agent_approvals": false,
754 "allow_ignoring_checks": true,
755 "agent_review": true,
756 "max_revisions": 2,
757 "merge_queue": true,
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step758 "hold_low_confidence": true,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar759 "require_code_owner_review": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API760 "updated_by": "syntaqx",
761 "updated_at": "2026-10-04T16:20:37.508Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'762 },
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar763 "notes": "`required_checks` replaces the whole list: at most 20 names, each a workflow's name or another status's context, as [`list_check_names`](/reference/api/repositories/list-check-names/) gives them. A pull request merges only once each passes on its head; one nothing has reported holds it too. With the merge queue on, each must also pass on the queued state, so the workflows behind them need `merge_group` in their `on:`. `required_approvals` is at most 6 and `max_revisions` at most 5. See [what a repository can ask for](/guides/working-with-g1t/#what-a-repository-can-ask-for). `hold_low_confidence` is on unless turned off: see [confidence](/guides/working-with-g1t/#how-sure-the-agent-is). With `require_code_owner_review`, a pull request into the default branch merges only once the code owners of every file it changes have approved it, as many as each section of its CODEOWNERS file asks: see [Code owners](/guides/codeowners/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'764 },
Fast pages, required checks on the branch, self-hosted runners, honest incidents765 "list_check_names": {
766 "response": [
767 {
768 "name": "CI",
769 "events": [
770 "pull_request",
771 "merge_group",
772 "push"
773 ],
774 "last_seen": "2026-10-06T09:14:02.118Z"
775 },
776 {
777 "name": "g1t / deploy",
778 "events": [],
779 "last_seen": "2026-10-06T08:51:40.006Z"
780 }
781 ],
782 "notes": "The names reported on the repository's commits in the last 30 days, most recent first. A workflow reports a check named after it (`CI`), for each event it ran for; another tool, such as a deployment, reports its own name (`g1t / deploy`). Empty until something has reported on a commit: add a workflow in `.g1t/workflows` first."
783 },
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar784 "get_codeowners_errors": {
785 "params": {
786 "owner": "flagon-io",
787 "name": "hello"
788 },
789 "query": {
790 "ref": "main"
791 },
792 "response": {
793 "path": ".github/CODEOWNERS",
794 "ref": "main",
795 "size": 412,
796 "rules": 9,
797 "sections": [
798 "Docs"
799 ],
800 "errors": [
801 {
802 "line": 4,
803 "kind": "unknown_team",
804 "token": "@flagon-io/platform",
805 "message": "@flagon-io/platform is not a team of flagon-io."
806 },
807 {
808 "line": 7,
809 "kind": "negation",
810 "token": "!docs/internal/",
811 "message": "!docs/internal/ starts with !, and negation is not supported; this line is skipped. Give the path a later rule with no owners instead."
812 }
813 ]
814 },
815 "notes": "The file is the first of `.g1t/CODEOWNERS`, `.github/CODEOWNERS`, `CODEOWNERS`, `docs/CODEOWNERS` and `.gitlab/CODEOWNERS` found on `ref` (the default branch when left out); `path` is null when there is none, with no errors. Each error has its `line` (0 for the file as a whole), the `token` at fault, a `message`, and a `kind`:\n\n| `kind` | |\n| --- | --- |\n| `too_large` | The file is over 3 MB and was ignored. |\n| `negation` | A pattern starting with `!`; the line was skipped. |\n| `character_range` | A pattern with `[` or `]`; the line was skipped. |\n| `bad_pattern` | A pattern that names no path; the line was skipped. |\n| `bad_owner` | An owner that is not `@user`, `@workspace/team` or an email address. |\n| `bad_section` | A section header that could not be read. |\n| `unknown_user` | No account has that username. |\n| `unknown_team` | The workspace has no team of that slug. |\n| `unknown_email` | No account has confirmed that address. |\n| `no_write_access` | The person cannot write to the repository. |\n| `team_no_access` | The team has no write access to the repository. |\n\nSee [Code owners](/guides/codeowners/)."
816 },
Merge branch 'worktree-agent-ab2e39e11a6493412'817 "list_events": {
818 "query": {
819 "before": "evt_01m43t2a6c9e3g7j1m5q9t3x7b"
820 },
821 "response": [
822 {
823 "id": "evt_01m43smh3ve52vkcna207vqctf",
824 "type": "pull.opened",
825 "source": "work",
826 "time": "2026-10-01T18:20:02.117Z",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API827 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'828 "actor": "usr_01kkntcg1eeb98j62xjm7eh09p",
829 "data": {
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API830 "pull_id": "pr_01m43smh3vexsr5pmp60qwv0vs",
831 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'832 "number": 14,
833 "issue": 12,
834 "agent": "claude-code"
835 }
836 },
837 {
838 "id": "evt_01m43shrzpf2vt5rxbb02z0xjt",
839 "type": "issue.opened",
840 "source": "work",
841 "time": "2026-10-01T18:04:11.482Z",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API842 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'843 "actor": "usr_01kkntcg1eeb98j62xjm7eh09p",
844 "data": {
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API845 "issue_id": "iss_01m43shrzpfe49x74ga7sj1c6v",
846 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'847 "number": 12,
848 "title": "Greeting should name the caller"
849 }
850 }
851 ],
852 "notes": "Returns 50 events a page. To page back, send the `id` of the last event you have as `before`. `actor` is a user id, and `data` depends on `type`."
853 },
854 "list_issues": {
855 "query": {
856 "state": "open",
857 "label": "feature"
858 },
859 "response": [
860 {
861 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API862 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'863 "number": 12,
864 "title": "Greeting should name the caller",
865 "body": "Take a name from the first argument; fall back to world.",
866 "labels": [
867 "feature"
868 ],
869 "state": "open",
870 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API871 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'872 "author": {
873 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
874 "username": "syntaqx",
875 "kind": "user",
876 "verified": false,
877 "workspaces": []
878 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights879 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API880 "created_at": "2026-10-01T18:04:11.482Z",
881 "updated_at": "2026-10-01T18:04:11.482Z",
882 "closed_at": null,
883 "pull_count": 1,
884 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'885 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API886 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'887 "queued": false,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar888 "agent": "claude-code",
889 "milestone": null
Merge branch 'worktree-agent-ab2e39e11a6493412'890 }
891 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API892 "notes": "Returns at most 100 issues, newest first. `comment_count` counts comments, not events such as \"opened #14 for this\"."
Merge branch 'worktree-agent-ab2e39e11a6493412'893 },
894 "create_issue": {
895 "request": {
896 "title": "Greeting should name the caller",
897 "body": "Take a name from the first argument; fall back to world.",
898 "labels": [
899 "feature"
900 ]
901 },
902 "response": {
903 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API904 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'905 "number": 12,
906 "title": "Greeting should name the caller",
907 "body": "Take a name from the first argument; fall back to world.",
908 "labels": [
909 "feature"
910 ],
911 "state": "open",
912 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API913 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'914 "author": {
915 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
916 "username": "syntaqx",
917 "kind": "user",
918 "verified": false,
919 "workspaces": []
920 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights921 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API922 "created_at": "2026-10-01T18:04:11.482Z",
923 "updated_at": "2026-10-01T18:04:11.482Z",
924 "closed_at": null,
925 "pull_count": 0,
926 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'927 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API928 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'929 "queued": false,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar930 "agent": null,
931 "milestone": null
Merge branch 'worktree-agent-ab2e39e11a6493412'932 },
933 "notes": "Labels are lowercased. A label not used before is created."
934 },
935 "get_issue": {
936 "response": {
937 "issue": {
938 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API939 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'940 "number": 12,
941 "title": "Greeting should name the caller",
942 "body": "Take a name from the first argument; fall back to world.",
943 "labels": [
944 "feature"
945 ],
946 "state": "closed",
947 "reason": "completed",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API948 "resolved_by": 14,
Merge branch 'worktree-agent-ab2e39e11a6493412'949 "author": {
950 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
951 "username": "syntaqx",
952 "kind": "user",
953 "verified": false,
954 "workspaces": []
955 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights956 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API957 "created_at": "2026-10-01T18:04:11.482Z",
958 "updated_at": "2026-10-01T18:52:17.093Z",
959 "closed_at": "2026-10-01T18:52:17.093Z",
960 "pull_count": 2,
961 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'962 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API963 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'964 "queued": false,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar965 "agent": null,
966 "milestone": null
Merge branch 'worktree-agent-ab2e39e11a6493412'967 },
968 "pulls": [
969 {
970 "id": "pr_01m43sjq8tcz5rbm2a7k4d9e6w",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API971 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'972 "number": 13,
973 "issue": 12,
974 "title": "Greeting should name the caller",
975 "body": null,
976 "agent": "claude-code",
977 "runtime": "external",
978 "status": "closed",
979 "fork": {
980 "namespace": "pulls",
981 "name": "pr_01m43sjq8tcz5rbm2a7k4d9e6w"
982 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API983 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'984 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API985 "head_commit": null,
986 "merge_base": null,
987 "merged_by": null,
988 "merged_at": null,
989 "superseded_by": 14,
990 "check_status": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'991 "files": [],
992 "assignees": [],
993 "reviewers": [],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar994 "labels": [],
995 "milestone": null,
996 "base": "main",
Merge branch 'worktree-agent-ab2e39e11a6493412'997 "author": {
998 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
999 "username": "syntaqx",
1000 "kind": "user",
1001 "verified": false,
1002 "workspaces": []
1003 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1004 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1005 "created_at": "2026-10-01T18:20:02.117Z",
1006 "updated_at": "2026-10-01T18:20:02.117Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1007 },
1008 {
1009 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1010 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1011 "number": 14,
1012 "issue": 12,
1013 "title": "Greeting should name the caller",
1014 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1015 "agent": "claude-code",
1016 "runtime": "external",
1017 "status": "merged",
1018 "fork": {
1019 "namespace": "pulls",
1020 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1021 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1022 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1023 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1024 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1025 "merge_base": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
1026 "merged_by": "syntaqx",
1027 "merged_at": "2026-10-01T18:52:17.093Z",
1028 "superseded_by": null,
1029 "check_status": "passed",
Merge branch 'worktree-agent-ab2e39e11a6493412'1030 "files": [
1031 {
1032 "path": "src/main.rs",
1033 "additions": 6,
1034 "deletions": 2
1035 }
1036 ],
1037 "assignees": [],
1038 "reviewers": [
1039 "ana"
1040 ],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1041 "labels": [],
1042 "milestone": null,
1043 "base": "main",
Merge branch 'worktree-agent-ab2e39e11a6493412'1044 "author": {
1045 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1046 "username": "syntaqx",
1047 "kind": "user",
1048 "verified": false,
1049 "workspaces": []
1050 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1051 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1052 "created_at": "2026-10-01T18:20:02.117Z",
1053 "updated_at": "2026-10-01T18:52:17.093Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1054 }
1055 ],
1056 "comments": [
1057 {
1058 "id": "cmt_01m43sr2b7d5f0j6k3n8p1q4v9",
1059 "kind": "event",
1060 "author": {
1061 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1062 "username": "syntaqx",
1063 "kind": "user",
1064 "verified": false,
1065 "workspaces": []
1066 },
1067 "body": "opened #14 for this",
1068 "path": null,
1069 "line": null,
1070 "verdict": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1071 "created_at": "2026-10-01T18:20:02.141Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1072 }
1073 ]
1074 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1075 "notes": "A closed issue says how it was closed: `reason` is `completed` or `not_planned`, and `resolved_by` is the number of the pull request whose merge closed it. Each pull request made for it is listed; one closed because another was merged has `superseded_by` set."
Merge branch 'worktree-agent-ab2e39e11a6493412'1076 },
1077 "update_issue": {
1078 "request": {
1079 "labels": [
1080 "feature",
1081 "good first issue"
1082 ],
1083 "assignees": [
1084 "syntaqx"
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1085 ],
1086 "milestone": 3
Merge branch 'worktree-agent-ab2e39e11a6493412'1087 },
1088 "response": {
1089 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1090 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1091 "number": 12,
1092 "title": "Greeting should name the caller",
1093 "body": "Take a name from the first argument; fall back to world.",
1094 "labels": [
1095 "feature",
1096 "good first issue"
1097 ],
1098 "state": "open",
1099 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1100 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1101 "author": {
1102 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1103 "username": "syntaqx",
1104 "kind": "user",
1105 "verified": false,
1106 "workspaces": []
1107 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1108 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1109 "created_at": "2026-10-01T18:04:11.482Z",
1110 "updated_at": "2026-10-01T18:09:47.305Z",
1111 "closed_at": null,
1112 "pull_count": 0,
1113 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'1114 "assignees": [
1115 "syntaqx"
1116 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1117 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1118 "queued": false,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1119 "agent": null,
1120 "milestone": {
1121 "number": 3,
1122 "title": "Launch"
1123 }
Merge branch 'worktree-agent-ab2e39e11a6493412'1124 }
1125 },
1126 "close_issue": {
1127 "request": {
1128 "reason": "not_planned"
1129 },
1130 "response": {
1131 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1132 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1133 "number": 12,
1134 "title": "Greeting should name the caller",
1135 "body": "Take a name from the first argument; fall back to world.",
1136 "labels": [
1137 "feature"
1138 ],
1139 "state": "closed",
1140 "reason": "not_planned",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1141 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1142 "author": {
1143 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1144 "username": "syntaqx",
1145 "kind": "user",
1146 "verified": false,
1147 "workspaces": []
1148 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1149 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1150 "created_at": "2026-10-01T18:04:11.482Z",
1151 "updated_at": "2026-10-01T19:30:00.214Z",
1152 "closed_at": "2026-10-01T19:30:00.214Z",
1153 "pull_count": 0,
1154 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'1155 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1156 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1157 "queued": false,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1158 "agent": null,
1159 "milestone": null
Merge branch 'worktree-agent-ab2e39e11a6493412'1160 }
1161 },
1162 "reopen_issue": {
1163 "response": {
1164 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1165 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1166 "number": 12,
1167 "title": "Greeting should name the caller",
1168 "body": "Take a name from the first argument; fall back to world.",
1169 "labels": [
1170 "feature"
1171 ],
1172 "state": "open",
1173 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1174 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1175 "author": {
1176 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1177 "username": "syntaqx",
1178 "kind": "user",
1179 "verified": false,
1180 "workspaces": []
1181 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1182 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1183 "created_at": "2026-10-01T18:04:11.482Z",
1184 "updated_at": "2026-10-01T19:41:52.830Z",
1185 "closed_at": null,
1186 "pull_count": 0,
1187 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'1188 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1189 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1190 "queued": false,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1191 "agent": null,
1192 "milestone": null
Merge branch 'worktree-agent-ab2e39e11a6493412'1193 }
1194 },
1195 "assign_issue": {
1196 "request": {
1197 "instructions": "Keep the change to src/main.rs."
1198 },
1199 "response": {
1200 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1201 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1202 "number": 14,
1203 "issue": 12,
1204 "title": "Greeting should name the caller",
1205 "body": null,
g1t is one name: its agent's work, commits and comments show as @g1t, and nobody can claim g1t or g1t-agent1206 "agent": "g1t",
Merge branch 'worktree-agent-ab2e39e11a6493412'1207 "runtime": "hosted",
1208 "status": "draft",
1209 "fork": {
1210 "namespace": "pulls",
1211 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1212 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1213 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1214 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1215 "head_commit": null,
1216 "merge_base": null,
1217 "merged_by": null,
1218 "merged_at": null,
1219 "superseded_by": null,
1220 "check_status": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1221 "files": [],
1222 "assignees": [],
1223 "reviewers": [],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1224 "labels": [],
1225 "milestone": null,
1226 "base": "main",
Merge branch 'worktree-agent-ab2e39e11a6493412'1227 "author": {
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1228 "id": "usr_g1t_agent",
1229 "username": "g1t",
1230 "kind": "agent",
1231 "verified": false,
1232 "workspaces": []
1233 },
1234 "requested_by": {
Merge branch 'worktree-agent-ab2e39e11a6493412'1235 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1236 "username": "syntaqx",
1237 "kind": "user",
1238 "verified": false,
1239 "workspaces": []
1240 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1241 "created_at": "2026-10-01T18:20:02.117Z",
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1242 "updated_at": "2026-10-01T18:20:02.117Z",
1243 "confidence": null
Merge branch 'worktree-agent-ab2e39e11a6493412'1244 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1245 "notes": "The response is the pull request g1t opened, still a draft. g1t is its `author` and you are its `requested_by`: you may manage it as if you had opened it, and cannot approve it yourself. Follow it with [get a pull request](/reference/api/pull-requests/get-pull-request/): `lifecycle` says what the agent is doing."
Merge branch 'worktree-agent-ab2e39e11a6493412'1246 },
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1247 "delegate": {
1248 "request": {
1249 "title": "Retry webhooks with exponential backoff",
Fast pages, required checks on the branch, self-hosted runners, honest incidents1250 "body": "Deliveries that fail are dropped today. Retry them with exponential backoff, up to six times, then mark the delivery failed.\n\n## Definition of done\n\n- A delivery that fails is retried after 1, 2, 4, 8, 16 and 32 seconds.\n- After the sixth failure it is marked failed and shows on the webhook's page."
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1251 },
1252 "response": {
1253 "issue": {
1254 "id": "iss_01m4a2c8v1t7k3q9x5n0r2w6yd",
1255 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1256 "number": 41,
1257 "title": "Retry webhooks with exponential backoff",
1258 "body": "Deliveries that fail are dropped today. Retry them with exponential backoff, up to six times, then mark the delivery failed.",
1259 "labels": [],
1260 "state": "open",
1261 "reason": null,
1262 "resolved_by": null,
1263 "author": {
1264 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1265 "username": "syntaqx",
1266 "kind": "user",
1267 "verified": false,
1268 "workspaces": []
1269 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1270 "requested_by": null,
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1271 "created_at": "2026-10-05T14:02:11.204Z",
1272 "updated_at": "2026-10-05T14:02:11.204Z",
1273 "closed_at": null,
1274 "pull_count": 1,
1275 "comment_count": 0,
1276 "assignees": [],
1277 "blocked_by": [],
1278 "queued": false,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1279 "agent": "g1t",
1280 "milestone": null
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1281 },
1282 "pull": {
1283 "id": "pr_01m4a2c9b6e0h4m8q2t6x0a4d8",
1284 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1285 "number": 42,
1286 "issue": 41,
1287 "title": "Retry webhooks with exponential backoff",
1288 "body": null,
g1t is one name: its agent's work, commits and comments show as @g1t, and nobody can claim g1t or g1t-agent1289 "agent": "g1t",
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1290 "runtime": "hosted",
1291 "status": "draft",
1292 "fork": {
1293 "namespace": "pulls",
1294 "name": "pr_01m4a2c9b6e0h4m8q2t6x0a4d8"
1295 },
1296 "fork_repo_id": "rep_01m4a2c9d2g6k0n4r8v2z6c0f4",
1297 "branch": null,
1298 "head_commit": null,
1299 "merge_base": null,
1300 "merged_by": null,
1301 "merged_at": null,
1302 "superseded_by": null,
1303 "check_status": null,
1304 "files": [],
1305 "assignees": [],
1306 "reviewers": [],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1307 "labels": [],
1308 "milestone": null,
1309 "base": "main",
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1310 "author": {
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1311 "id": "usr_g1t_agent",
1312 "username": "g1t",
1313 "kind": "agent",
1314 "verified": false,
1315 "workspaces": []
1316 },
1317 "requested_by": {
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1318 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1319 "username": "syntaqx",
1320 "kind": "user",
1321 "verified": false,
1322 "workspaces": []
1323 },
1324 "created_at": "2026-10-05T14:02:12.880Z",
1325 "updated_at": "2026-10-05T14:02:12.880Z",
1326 "confidence": null
1327 },
1328 "agent": {
1329 "status": "started",
1330 "code": null,
1331 "message": null,
1332 "fix_url": null
1333 }
1334 },
g1t is one name: its agent's work, commits and comments show as @g1t, and nobody can claim g1t or g1t-agent1335 "notes": "The issue is opened whatever becomes of the agent. When the workspace's plan does not let it start, `pull` is null and `agent` says why and where to fix it, for example `{ \"status\": \"not_started\", \"code\": \"not_paid\", \"message\": \"Agents need a paid workspace. Start the $20 plan or try it with $5 of free usage after a card check: /acme/-/billing\", \"fix_url\": \"https://g1t.sh/acme/-/billing\" }`. With every agent slot busy, `status` is `queued` and it starts by itself when one frees up. See [putting an agent on something](/guides/working-with-g1t/#put-an-agent-on-it-in-one-step)."
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1336 },
Merge branch 'worktree-agent-ab2e39e11a6493412'1337 "add_comment": {
1338 "request": {
1339 "body": "Should an empty name fall back to \"world\"?"
1340 },
1341 "response": {
1342 "id": "cmt_01m43sv4c8e2g6j0m4q8t2x6a1",
1343 "kind": "comment",
1344 "author": {
1345 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1346 "username": "syntaqx",
1347 "kind": "user",
1348 "verified": true,
1349 "workspaces": [
1350 {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look1351 "slug": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'1352 "role": "owner"
1353 }
1354 ]
1355 },
1356 "body": "Should an empty name fall back to \"world\"?",
1357 "path": null,
1358 "line": null,
1359 "verdict": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1360 "created_at": "2026-10-01T18:12:30.551Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1361 }
1362 },
1363 "list_labels": {
1364 "response": [
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1365 {
1366 "name": "bug",
1367 "color": "d73a4a",
1368 "description": "Something isn't working",
1369 "issues": 4,
1370 "pulls": 1
1371 },
1372 {
1373 "name": "dependencies",
1374 "color": "0366d6",
1375 "description": "Updates a dependency",
1376 "issues": 0,
1377 "pulls": 6
1378 },
1379 {
1380 "name": "good first issue",
1381 "color": "7057ff",
1382 "description": "Good for newcomers",
1383 "issues": 2,
1384 "pulls": 0
1385 }
Merge branch 'worktree-agent-ab2e39e11a6493412'1386 ],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1387 "notes": "By name. A new repository starts with the default labels; add_default_labels adds those an older one is missing."
Merge branch 'worktree-agent-ab2e39e11a6493412'1388 },
1389 "plan_work": {
1390 "request": {
1391 "brief": "Greet people by name, from the command line and the web page."
1392 },
1393 "response": {
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1394 "plan_id": "pln_01m43s9c4e8g2j6m0q4t8x2b6d"
Merge branch 'worktree-agent-ab2e39e11a6493412'1395 }
1396 },
1397 "get_plan": {
1398 "params": {
1399 "plan": "pln_01m43s9c4e8g2j6m0q4t8x2b6d"
1400 },
1401 "response": {
1402 "id": "pln_01m43s9c4e8g2j6m0q4t8x2b6d",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1403 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1404 "brief": "Greet people by name, from the command line and the web page.",
1405 "status": "ready",
1406 "summary": "Name parsing first, then the two places that print the greeting.",
1407 "issues": [
1408 {
1409 "title": "Greeting should name the caller",
1410 "body": "Accept an optional name in `greet()` and use it.",
1411 "labels": [
1412 "feature"
1413 ],
Fast pages, required checks on the branch, self-hosted runners, honest incidents1414 "done": [
1415 "`greet` prints \"Hello, ana!\" when given \"ana\", and \"Hello, world!\" with no argument."
Merge branch 'worktree-agent-ab2e39e11a6493412'1416 ],
1417 "files": [
1418 "src/greet.rs"
1419 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1420 "depends_on": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1421 "number": null
1422 },
1423 {
1424 "title": "Show the caller's name on the web page",
1425 "body": "Read `?name=` and pass it to `greet()`.",
1426 "labels": [
1427 "feature"
1428 ],
Fast pages, required checks on the branch, self-hosted runners, honest incidents1429 "done": [
1430 "The page at / shows the name given in ?name=, escaped."
Merge branch 'worktree-agent-ab2e39e11a6493412'1431 ],
1432 "files": [
1433 "src/web.rs"
1434 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1435 "depends_on": [
Merge branch 'worktree-agent-ab2e39e11a6493412'1436 1
1437 ],
1438 "number": null
1439 }
1440 ],
1441 "error": null,
1442 "author": {
1443 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1444 "username": "syntaqx",
1445 "kind": "user",
1446 "verified": false,
1447 "workspaces": []
1448 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1449 "created_at": "2026-10-01T17:58:40.006Z",
1450 "finished_at": "2026-10-01T18:01:12.774Z",
Merge branch 'worktree-agent-ab2e39e11a6493412'1451 "progress": [],
1452 "exchanges": []
1453 },
1454 "notes": "A plan still `planning` after 20 minutes is reported as `failed`. `progress` follows each issue once the plan is applied."
1455 },
1456 "apply_plan": {
1457 "params": {
1458 "plan": "pln_01m43s9c4e8g2j6m0q4t8x2b6d"
1459 },
1460 "request": {
1461 "assign": true
1462 },
1463 "response": {
1464 "id": "pln_01m43s9c4e8g2j6m0q4t8x2b6d",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1465 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1466 "brief": "Greet people by name, from the command line and the web page.",
1467 "status": "applied",
1468 "summary": "Name parsing first, then the two places that print the greeting.",
1469 "issues": [
1470 {
1471 "title": "Greeting should name the caller",
1472 "body": "Accept an optional name in `greet()` and use it.",
1473 "labels": [
1474 "feature"
1475 ],
Fast pages, required checks on the branch, self-hosted runners, honest incidents1476 "done": [
1477 "`greet` prints \"Hello, ana!\" when given \"ana\", and \"Hello, world!\" with no argument."
Merge branch 'worktree-agent-ab2e39e11a6493412'1478 ],
1479 "files": [
1480 "src/greet.rs"
1481 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1482 "depends_on": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1483 "number": 12
1484 },
1485 {
1486 "title": "Show the caller's name on the web page",
1487 "body": "Read `?name=` and pass it to `greet()`.",
1488 "labels": [
1489 "feature"
1490 ],
Fast pages, required checks on the branch, self-hosted runners, honest incidents1491 "done": [
1492 "The page at / shows the name given in ?name=, escaped."
Merge branch 'worktree-agent-ab2e39e11a6493412'1493 ],
1494 "files": [
1495 "src/web.rs"
1496 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1497 "depends_on": [
Merge branch 'worktree-agent-ab2e39e11a6493412'1498 1
1499 ],
1500 "number": 13
1501 }
1502 ],
1503 "error": null,
1504 "author": {
1505 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1506 "username": "syntaqx",
1507 "kind": "user",
1508 "verified": false,
1509 "workspaces": []
1510 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1511 "created_at": "2026-10-01T17:58:40.006Z",
1512 "finished_at": "2026-10-01T18:01:12.774Z",
Merge branch 'worktree-agent-ab2e39e11a6493412'1513 "progress": [],
1514 "exchanges": []
1515 },
1516 "notes": "Each opened issue's `number` is filled in. Issues left out with `keep` stay `null`."
1517 },
1518 "list_pull_requests": {
1519 "query": {
1520 "state": "open"
1521 },
1522 "response": [
1523 {
1524 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1525 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1526 "number": 14,
1527 "issue": 12,
1528 "title": "Greeting should name the caller",
1529 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1530 "agent": "claude-code",
1531 "runtime": "external",
1532 "status": "open",
1533 "fork": {
1534 "namespace": "pulls",
1535 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1536 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1537 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1538 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1539 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1540 "merge_base": null,
1541 "merged_by": null,
1542 "merged_at": null,
1543 "superseded_by": null,
1544 "check_status": "passed",
Merge branch 'worktree-agent-ab2e39e11a6493412'1545 "files": [
1546 {
1547 "path": "src/main.rs",
1548 "additions": 6,
1549 "deletions": 2
1550 }
1551 ],
1552 "assignees": [],
1553 "reviewers": [
1554 "ana"
1555 ],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1556 "team_reviewers": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1557 "author": {
1558 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1559 "username": "syntaqx",
1560 "kind": "user",
1561 "verified": false,
1562 "workspaces": []
1563 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1564 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1565 "created_at": "2026-10-01T18:20:02.117Z",
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1566 "updated_at": "2026-10-01T18:35:44.902Z",
1567 "labels": [],
1568 "milestone": null,
1569 "base": "main"
Merge branch 'worktree-agent-ab2e39e11a6493412'1570 }
1571 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1572 "notes": "Returns at most 100 pull requests, newest first. `check_status` is `queued`, `running`, `passed`, `failed`, `errored`, or `null` when no checks have run against the head."
Merge branch 'worktree-agent-ab2e39e11a6493412'1573 },
1574 "create_pull_request": {
1575 "request": {
1576 "issue": 12,
1577 "agent": "claude-code"
1578 },
1579 "response": {
1580 "pull": {
1581 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1582 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1583 "number": 14,
1584 "issue": 12,
1585 "title": "Greeting should name the caller",
1586 "body": null,
1587 "agent": "claude-code",
1588 "runtime": "external",
1589 "status": "draft",
1590 "fork": {
1591 "namespace": "pulls",
1592 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1593 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1594 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1595 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1596 "head_commit": null,
1597 "merge_base": null,
1598 "merged_by": null,
1599 "merged_at": null,
1600 "superseded_by": null,
1601 "check_status": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1602 "files": [],
1603 "assignees": [],
1604 "reviewers": [],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1605 "labels": [],
1606 "milestone": null,
1607 "base": "main",
Merge branch 'worktree-agent-ab2e39e11a6493412'1608 "author": {
1609 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1610 "username": "syntaqx",
1611 "kind": "user",
1612 "verified": false,
1613 "workspaces": []
1614 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1615 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1616 "created_at": "2026-10-01T18:20:02.117Z",
1617 "updated_at": "2026-10-01T18:20:02.117Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1618 },
1619 "git": {
1620 "remote": "https://g1t.sh/pulls/pr_01m43smh3vexsr5pmp60qwv0vs.git",
1621 "username": "syntaqx",
1622 "password": "your g1t access token"
1623 }
1624 },
1625 "notes": "`title` defaults to the issue's title, and is required when there is no `issue`. Push to `git.remote` with your username and an access token as the password.\n\nSend `branch` to open the pull request from a branch already pushed to the repository. No fork is made, `fork` is `null`, `git.remote` is the repository itself, and the pull request is `open` at once."
1626 },
1627 "get_pull_request": {
1628 "response": {
1629 "pull": {
1630 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1631 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1632 "number": 14,
1633 "issue": 12,
1634 "title": "Greeting should name the caller",
1635 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1636 "agent": "claude-code",
1637 "runtime": "external",
1638 "status": "open",
1639 "fork": {
1640 "namespace": "pulls",
1641 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1642 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1643 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1644 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1645 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1646 "merge_base": null,
1647 "merged_by": null,
1648 "merged_at": null,
1649 "superseded_by": null,
1650 "check_status": "passed",
Merge branch 'worktree-agent-ab2e39e11a6493412'1651 "files": [
1652 {
1653 "path": "src/main.rs",
1654 "additions": 6,
1655 "deletions": 2
1656 }
1657 ],
1658 "assignees": [],
1659 "reviewers": [
1660 "ana"
1661 ],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1662 "team_reviewers": [
1663 "flagon-io/backend"
1664 ],
Merge branch 'worktree-agent-ab2e39e11a6493412'1665 "author": {
1666 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1667 "username": "syntaqx",
1668 "kind": "user",
1669 "verified": false,
1670 "workspaces": []
1671 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1672 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1673 "created_at": "2026-10-01T18:20:02.117Z",
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1674 "updated_at": "2026-10-01T18:35:44.902Z",
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1675 "confidence": null,
1676 "labels": [],
1677 "milestone": null,
1678 "base": "main"
Merge branch 'worktree-agent-ab2e39e11a6493412'1679 },
1680 "issue": {
1681 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1682 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1683 "number": 12,
1684 "title": "Greeting should name the caller",
1685 "body": "Take a name from the first argument; fall back to world.",
1686 "labels": [
1687 "feature"
1688 ],
1689 "state": "open",
1690 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1691 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1692 "author": {
1693 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1694 "username": "syntaqx",
1695 "kind": "user",
1696 "verified": false,
1697 "workspaces": []
1698 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1699 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1700 "created_at": "2026-10-01T18:04:11.482Z",
1701 "updated_at": "2026-10-01T18:20:02.117Z",
1702 "closed_at": null,
1703 "pull_count": 1,
1704 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'1705 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1706 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1707 "queued": false,
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1708 "agent": "claude-code",
1709 "milestone": null
Merge branch 'worktree-agent-ab2e39e11a6493412'1710 },
1711 "comments": [
1712 {
1713 "id": "cmt_01m43st6d0f4h8k2n6r0v4z8c2",
1714 "kind": "event",
1715 "author": {
1716 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1717 "username": "syntaqx",
1718 "kind": "user",
1719 "verified": false,
1720 "workspaces": []
1721 },
1722 "body": "marked this ready for review",
1723 "path": null,
1724 "line": null,
1725 "verdict": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1726 "created_at": "2026-10-01T18:33:10.420Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1727 }
1728 ],
Fast pages, required checks on the branch, self-hosted runners, honest incidents1729 "checks": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1730 "overlaps": [],
1731 "behind": false,
1732 "review_pending": false,
1733 "lifecycle": null,
1734 "landing": false,
1735 "stalled": null,
1736 "messages": [
1737 {
1738 "id": "msg_01m43tx5egeh4t3f9zcnjenqvz",
1739 "author": "syntaqx",
1740 "body": "Keep \"world\" as the default when no name is given.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1741 "created_at": "2026-10-01T18:25:00.310Z",
1742 "delivered_at": "2026-10-01T18:25:31.007Z",
Merge branch 'worktree-agent-ab2e39e11a6493412'1743 "kind": "message",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1744 "from_number": null,
1745 "to_number": 14,
Merge branch 'worktree-agent-ab2e39e11a6493412'1746 "answer": null,
1747 "declined": false
1748 }
1749 ],
Fast pages, required checks on the branch, self-hosted runners, honest incidents1750 "statuses": [
1751 {
1752 "context": "CI / pull_request",
1753 "state": "success",
1754 "description": "CI passed",
1755 "target_url": "https://g1t.sh/syntaqx/hello/actions/runs/run_01m43sw8e2g6j0m4q8t2x6a0c4",
1756 "updated_at": "2026-10-01T18:35:44.902Z"
1757 }
1758 ],
1759 "required_checks": [
1760 {
1761 "name": "CI",
1762 "state": "success",
1763 "description": "CI passed",
1764 "target_url": "https://g1t.sh/syntaqx/hello/actions/runs/run_01m43sw8e2g6j0m4q8t2x6a0c4"
1765 }
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1766 ],
1767 "code_owners": {
1768 "path": ".github/CODEOWNERS",
1769 "required": true,
1770 "reviews": [
1771 {
1772 "section": null,
1773 "line": 3,
1774 "pattern": "/src/",
1775 "owners": [
1776 "@flagon-io/backend"
1777 ],
1778 "files": [
1779 "src/main.rs"
1780 ],
1781 "optional": false,
1782 "required": 1,
1783 "approved_by": [],
1784 "changes_requested_by": [],
1785 "satisfied": false
1786 }
1787 ],
1788 "missing": "Code owners have not approved: @flagon-io/backend for /src/.",
1789 "errors": 0
1790 }
Merge branch 'worktree-agent-ab2e39e11a6493412'1791 },
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1792 "notes": "| Field | |\n| --- | --- |\n| `pull.files` | The files it changes, with lines added and removed. |\n| `statuses` | Its checks: what each workflow run (or another tool, such as a deployment) reported on its head, as `pending`, `success`, `failure` or `error`, with a link to the run. |\n| `required_checks` | Each check the default branch requires (see [`update_repo_settings`](/reference/api/repositories/update-repo-settings/)), as it stands on the head: `success`, `failure`, `pending`, or `expected` when nothing has reported it yet. It merges only once all are `success`. |\n| `checks` | Set when the merge queue took it out, with why in `error`. Older pull requests may show a run of commands from their issue here, from before checks were workflows. |\n| `overlaps` | Other pull requests in progress that change the same files. |\n| `behind` | Whether the default branch has moved since it was made. |\n| `landing` | Whether it is being brought up to date to land. |\n| `lifecycle` | For a pull request g1t is seeing through: its stage, such as `working`, `checking`, `reviewing` or `needs_you`. |\n| `comments` | Comments, reviews and events, with `path`, `line` and `verdict`. |\n| `messages` | Messages sent to the agent working on it. |\n| `pull.reviewers`, `pull.team_reviewers` | The people asked to review it, `g1t` among them when a g1t agent was, and the teams, as `workspace/team`. Change them with [`request_reviewers`](/reference/api/pull-requests/request-reviewers/). |\n| `code_owners` | Present when the branch it merges into has a CODEOWNERS file: its `path`, whether code owners' approval is `required` there, `reviews` (one per section and rule that owns a changed file: `section`, `line`, `pattern`, `owners`, `files`, `optional`, the approvals `required`, `approved_by`, `changes_requested_by` and `satisfied`), what is still `missing`, as the merge box says it, and how many `errors` the file has; [`get_codeowners_errors`](/reference/api/repositories/get-codeowners-errors/) lists them. |\n| `mergeable` | Whether it merges cleanly into its target: `clean`, `conflicting`, `checking` (being worked out) or `unknown`. Worked out ahead of time whenever it or its target moves. |\n| `conflicts` | When `mergeable` is `conflicting`, the files that conflict. Resolve them by merging the target in, or have g1t do it. |\n| `earlier_checks` | Earlier records like `checks`, newest first. |\n\nChecks are the repository's workflows: they run on `pull_request` events when it is opened, marked ready and pushed to. Read why one failed with [`get_workflow_run`](/reference/api/actions/get-workflow-run/) and [`get_job_logs`](/reference/api/actions/get-job-logs/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'1793 },
1794 "get_pull_request_changes": {
1795 "response": {
1796 "base": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
1797 "head": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1798 "files": [
1799 {
1800 "path": "src/main.rs",
1801 "status": "modified",
1802 "additions": 1,
1803 "deletions": 1,
1804 "binary": false,
1805 "hunks": [
1806 {
1807 "lines": [
1808 {
1809 "kind": "context",
1810 "old": 3,
1811 "new": 3,
1812 "text": "fn main() {"
1813 },
1814 {
1815 "kind": "delete",
1816 "old": 4,
1817 "new": null,
1818 "text": " println!(\"Hello, world!\");"
1819 },
1820 {
1821 "kind": "add",
1822 "old": null,
1823 "new": 4,
1824 "text": " println!(\"Hello, {}!\", std::env::args().nth(1).unwrap_or(\"world\".into()));"
1825 },
1826 {
1827 "kind": "context",
1828 "old": 5,
1829 "new": 5,
1830 "text": "}"
1831 }
1832 ]
1833 }
1834 ]
1835 }
1836 ],
1837 "truncated": false
1838 },
1839 "notes": "A file's `status` is `added`, `modified` or `deleted`. A binary file has no `hunks`. In a line, `old` is `null` when it was added and `new` is `null` when it was deleted."
1840 },
1841 "mark_pull_request_ready": {
1842 "request": {
1843 "summary": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\"."
1844 },
1845 "response": {
1846 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1847 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1848 "number": 14,
1849 "issue": 12,
1850 "title": "Greeting should name the caller",
1851 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1852 "agent": "claude-code",
1853 "runtime": "external",
1854 "status": "open",
1855 "fork": {
1856 "namespace": "pulls",
1857 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1858 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1859 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1860 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1861 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1862 "merge_base": null,
1863 "merged_by": null,
1864 "merged_at": null,
1865 "superseded_by": null,
1866 "check_status": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1867 "files": [
1868 {
1869 "path": "src/main.rs",
1870 "additions": 6,
1871 "deletions": 2
1872 }
1873 ],
1874 "assignees": [],
1875 "reviewers": [],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1876 "labels": [],
1877 "milestone": null,
1878 "base": "main",
Merge branch 'worktree-agent-ab2e39e11a6493412'1879 "author": {
1880 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1881 "username": "syntaqx",
1882 "kind": "user",
1883 "verified": false,
1884 "workspaces": []
1885 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights1886 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1887 "created_at": "2026-10-01T18:20:02.117Z",
1888 "updated_at": "2026-10-01T18:33:10.398Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1889 }
1890 },
1891 "review_pull_request": {
1892 "request": {
1893 "verdict": "request_changes",
1894 "body": "Trim the name before using it."
1895 },
1896 "response": {
1897 "id": "cmt_01m43sx9f3h7k1n5r9v3z7d1g5",
1898 "kind": "comment",
1899 "author": {
1900 "id": "usr_01kz9d3f7h1k5n9r3v7z1c5g9b",
1901 "username": "ana",
1902 "kind": "user",
1903 "verified": true,
1904 "workspaces": [
1905 {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look1906 "slug": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'1907 "role": "member"
1908 }
1909 ]
1910 },
1911 "body": "Trim the name before using it.",
1912 "path": null,
1913 "line": null,
1914 "verdict": "request_changes",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1915 "created_at": "2026-10-01T18:40:05.019Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1916 }
1917 },
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar1918 "request_reviewers": {
1919 "params": {
1920 "owner": "flagon-io",
1921 "name": "hello",
1922 "number": 14
1923 },
1924 "request": {
1925 "reviewers": [
1926 "bo"
1927 ],
1928 "team_reviewers": [
1929 "backend"
1930 ]
1931 },
1932 "response": {
1933 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
1934 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1935 "number": 14,
1936 "issue": 12,
1937 "title": "Greeting should name the caller",
1938 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1939 "agent": "claude-code",
1940 "runtime": "external",
1941 "status": "open",
1942 "fork": {
1943 "namespace": "pulls",
1944 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1945 },
1946 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
1947 "branch": null,
1948 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1949 "merge_base": null,
1950 "merged_by": null,
1951 "merged_at": null,
1952 "superseded_by": null,
1953 "check_status": "passed",
1954 "files": [
1955 {
1956 "path": "src/main.rs",
1957 "additions": 6,
1958 "deletions": 2
1959 }
1960 ],
1961 "assignees": [],
1962 "reviewers": [
1963 "ana",
1964 "bo"
1965 ],
1966 "team_reviewers": [
1967 "flagon-io/backend"
1968 ],
1969 "author": {
1970 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1971 "username": "syntaqx",
1972 "kind": "user",
1973 "verified": false,
1974 "workspaces": []
1975 },
1976 "requested_by": null,
1977 "created_at": "2026-10-01T18:20:02.117Z",
1978 "updated_at": "2026-10-01T18:40:12.331Z"
1979 },
1980 "notes": "Adds to who is asked: `reviewers` by username (`g1t` asks a g1t agent), `team_reviewers` as `workspace/team`, or a team's slug in the repository's workspace. A team with review assignment on has the people it picks added to `reviewers`, and stays in `team_reviewers`. Each is told in their inbox. Nobody is asked to review their own pull request. `422` for someone who is not an account, or a team that does not exist or that you cannot see. Whoever opened it, or the Triage role or higher, while it is open. See [Pull requests](/guides/pull-requests/) and [Teams](/guides/teams/)."
1981 },
1982 "remove_requested_reviewers": {
1983 "params": {
1984 "owner": "flagon-io",
1985 "name": "hello",
1986 "number": 14
1987 },
1988 "request": {
1989 "reviewers": [
1990 "bo"
1991 ],
1992 "team_reviewers": [
1993 "flagon-io/backend"
1994 ]
1995 },
1996 "response": {
1997 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
1998 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1999 "number": 14,
2000 "issue": 12,
2001 "title": "Greeting should name the caller",
2002 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
2003 "agent": "claude-code",
2004 "runtime": "external",
2005 "status": "open",
2006 "fork": {
2007 "namespace": "pulls",
2008 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
2009 },
2010 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
2011 "branch": null,
2012 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2013 "merge_base": null,
2014 "merged_by": null,
2015 "merged_at": null,
2016 "superseded_by": null,
2017 "check_status": "passed",
2018 "files": [
2019 {
2020 "path": "src/main.rs",
2021 "additions": 6,
2022 "deletions": 2
2023 }
2024 ],
2025 "assignees": [],
2026 "reviewers": [
2027 "ana"
2028 ],
2029 "team_reviewers": [],
2030 "author": {
2031 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2032 "username": "syntaqx",
2033 "kind": "user",
2034 "verified": false,
2035 "workspaces": []
2036 },
2037 "requested_by": null,
2038 "created_at": "2026-10-01T18:20:02.117Z",
2039 "updated_at": "2026-10-01T18:41:30.904Z"
2040 },
2041 "notes": "Takes them off who is asked; anyone not asked is ignored. Reviews they already gave stay, as do the people a team's review assignment picked: remove them by username."
2042 },
Merge branch 'worktree-agent-ab2e39e11a6493412'2043 "merge_pull_request": {
2044 "request": {
2045 "keep_issue_open": false
2046 },
2047 "response": {
2048 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2049 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'2050 "number": 14,
2051 "issue": 12,
2052 "title": "Greeting should name the caller",
2053 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
2054 "agent": "claude-code",
2055 "runtime": "external",
2056 "status": "merged",
2057 "fork": {
2058 "namespace": "pulls",
2059 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
2060 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2061 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'2062 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2063 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2064 "merge_base": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
2065 "merged_by": "syntaqx",
2066 "merged_at": "2026-10-01T18:52:17.093Z",
2067 "superseded_by": null,
2068 "check_status": "passed",
Merge branch 'worktree-agent-ab2e39e11a6493412'2069 "files": [
2070 {
2071 "path": "src/main.rs",
2072 "additions": 6,
2073 "deletions": 2
2074 }
2075 ],
2076 "assignees": [],
2077 "reviewers": [
2078 "ana"
2079 ],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar2080 "labels": [],
2081 "milestone": null,
2082 "base": "main",
Merge branch 'worktree-agent-ab2e39e11a6493412'2083 "author": {
2084 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2085 "username": "syntaqx",
2086 "kind": "user",
2087 "verified": false,
2088 "workspaces": []
2089 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights2090 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2091 "created_at": "2026-10-01T18:20:02.117Z",
2092 "updated_at": "2026-10-01T18:52:17.093Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2093 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2094 "notes": "A draft, or one whose checks have not passed, answers `409`. A pull request still `open` in the response has not landed yet: `landing` is true on it while it is brought up to date, and [get the merge queue](/reference/api/pull-requests/get-merge-queue/) shows it waiting in the [merge queue](/guides/merge-queue/). Merging records the pull request in the issue's `resolved_by` and sets `superseded_by` on the pull requests it closes."
Merge branch 'worktree-agent-ab2e39e11a6493412'2095 },
2096 "close_pull_request": {
2097 "response": {
2098 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2099 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'2100 "number": 14,
2101 "issue": 12,
2102 "title": "Greeting should name the caller",
2103 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
2104 "agent": "claude-code",
2105 "runtime": "external",
2106 "status": "closed",
2107 "fork": {
2108 "namespace": "pulls",
2109 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
2110 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2111 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'2112 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2113 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2114 "merge_base": null,
2115 "merged_by": null,
2116 "merged_at": null,
2117 "superseded_by": null,
2118 "check_status": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'2119 "files": [
2120 {
2121 "path": "src/main.rs",
2122 "additions": 6,
2123 "deletions": 2
2124 }
2125 ],
2126 "assignees": [],
2127 "reviewers": [],
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar2128 "labels": [],
2129 "milestone": null,
2130 "base": "main",
Merge branch 'worktree-agent-ab2e39e11a6493412'2131 "author": {
2132 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2133 "username": "syntaqx",
2134 "kind": "user",
2135 "verified": false,
2136 "workspaces": []
2137 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights2138 "requested_by": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2139 "created_at": "2026-10-01T18:20:02.117Z",
2140 "updated_at": "2026-10-01T19:02:48.760Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2141 }
2142 },
2143 "get_merge_queue": {
2144 "response": {
2145 "enabled": true,
2146 "active": [
2147 {
2148 "id": "qen_01m43rn0qsft1tpap1awkewzbb",
2149 "number": 14,
2150 "title": "Greeting should name the caller",
2151 "agent": "claude-code",
2152 "state": "testing",
2153 "ahead": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2154 "base_commit": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
2155 "combined_commit": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'2156 "error": null,
2157 "results": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2158 "enqueued_by": "syntaqx",
2159 "created_at": "2026-10-04T15:31:20.441Z",
2160 "finished_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2161 }
2162 ],
2163 "recent": [
2164 {
2165 "id": "qen_01m43khqjmeb5a1magayrnk63z",
2166 "number": 11,
2167 "title": "Fix trailing newline in greeting",
g1t is one name: its agent's work, commits and comments show as @g1t, and nobody can claim g1t or g1t-agent2168 "agent": "g1t",
Merge branch 'worktree-agent-ab2e39e11a6493412'2169 "state": "landed",
2170 "ahead": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2171 "base_commit": "4b1d7e9c2a5f8e3d6c0b9a7e5d3c1b8a6f4e2d0c",
2172 "combined_commit": "c3e8a1f6d4b2097e5c3a1f8d6b4e2c0a9f7d5b3e",
Merge branch 'worktree-agent-ab2e39e11a6493412'2173 "error": null,
2174 "results": [
2175 {
2176 "command": "cargo test",
2177 "passed": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2178 "exit_code": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'2179 "output": "test result: ok. 12 passed; 0 failed\n",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2180 "duration_ms": 48211
Merge branch 'worktree-agent-ab2e39e11a6493412'2181 }
2182 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2183 "enqueued_by": "g1t",
2184 "created_at": "2026-10-04T14:02:09.876Z",
2185 "finished_at": "2026-10-04T14:09:55.102Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2186 }
2187 ]
2188 },
2189 "notes": "An entry's `state` is `waiting`, `testing`, `passed`, `failed`, `landed` or `removed`. `active` is in queue order; `recent` holds at most 20, newest first."
2190 },
2191 "message_agent": {
2192 "request": {
2193 "body": "Keep \"world\" as the default when no name is given."
2194 },
2195 "response": {
2196 "id": "msg_01m43tx5egeh4t3f9zcnjenqvz",
2197 "author": "syntaqx",
2198 "body": "Keep \"world\" as the default when no name is given.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2199 "created_at": "2026-10-01T18:25:00.310Z",
2200 "delivered_at": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'2201 "kind": "message",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2202 "from_number": null,
2203 "to_number": 14,
Merge branch 'worktree-agent-ab2e39e11a6493412'2204 "answer": null,
2205 "declined": false
2206 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2207 "notes": "The response is the message. `delivered_at` is set once the agent has read it."
Merge branch 'worktree-agent-ab2e39e11a6493412'2208 },
2209 "answer_message": {
2210 "params": {
2211 "id": "msg_01m43t66tde8hs2vpxhh3v8tqw"
2212 },
2213 "request": {
2214 "body": "No. greet() keeps its name; only greet_named() is added."
2215 },
2216 "response": {
2217 "id": "msg_01m43t66tde8hs2vpxhh3v8tqw",
g1t is one name: its agent's work, commits and comments show as @g1t, and nobody can claim g1t or g1t-agent2218 "author": "g1t",
Merge branch 'worktree-agent-ab2e39e11a6493412'2219 "body": "Are you renaming greet() in src/lib.rs? I need to call it from #16.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2220 "created_at": "2026-10-01T18:58:12.301Z",
2221 "delivered_at": "2026-10-01T18:58:40.117Z",
Merge branch 'worktree-agent-ab2e39e11a6493412'2222 "kind": "question",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2223 "from_number": 16,
2224 "to_number": 14,
Merge branch 'worktree-agent-ab2e39e11a6493412'2225 "answer": "No. greet() keeps its name; only greet_named() is added.",
2226 "declined": false
2227 },
2228 "notes": "The response is the question or handoff that was answered, with `answer` and `declined` filled in."
2229 },
2230 "take_messages": {
2231 "response": [
2232 {
2233 "id": "msg_01m43tx5egeh4t3f9zcnjenqvz",
2234 "author": "syntaqx",
2235 "body": "Keep \"world\" as the default when no name is given.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2236 "created_at": "2026-10-01T18:25:00.310Z",
2237 "delivered_at": "2026-10-01T18:25:31.007Z",
Merge branch 'worktree-agent-ab2e39e11a6493412'2238 "kind": "message",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2239 "from_number": null,
2240 "to_number": 14,
Merge branch 'worktree-agent-ab2e39e11a6493412'2241 "answer": null,
2242 "declined": false
2243 }
2244 ],
2245 "notes": "Only a g1t agent's token can take messages. They come oldest first, and each is marked delivered."
2246 },
2247 "read_session": {
2248 "query": {
2249 "after": 0
2250 },
2251 "response": [
2252 {
2253 "seq": 1,
2254 "kind": "prompt",
2255 "text": "Make the greeting name the caller (issue #12).",
2256 "tool": null,
2257 "commit": null,
2258 "at": "2026-10-01T18:21:00.004Z"
2259 },
2260 {
2261 "seq": 2,
2262 "kind": "tool_call",
2263 "text": "cargo test",
2264 "tool": "bash",
2265 "commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2266 "at": "2026-10-01T18:30:12.660Z"
2267 }
2268 ]
2269 },
2270 "record_session": {
2271 "request": {
2272 "entries": [
2273 {
2274 "kind": "message",
2275 "text": "Reading src/main.rs."
2276 },
2277 {
2278 "kind": "tool_call",
2279 "text": "cargo test",
2280 "tool": "bash"
2281 }
2282 ]
2283 },
2284 "response": {
2285 "count": 2
2286 },
2287 "notes": "Up to 200 entries can be appended per request. Each is recorded against the pull request's head commit at the time. See [sessions and why-blame](/guides/why-blame/)."
2288 },
2289 "list_workflows": {
2290 "response": [
2291 {
2292 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
2293 "path": ".g1t/workflows/ci.yml",
2294 "name": "CI",
2295 "events": [
2296 "push",
2297 "pull_request",
2298 "workflow_dispatch"
2299 ],
2300 "state": "active",
2301 "error": null,
2302 "notes": [
2303 {
2304 "severity": "unsupported",
2305 "job": "test",
2306 "message": "`services` containers (such as a database) are not started on g1t yet."
2307 }
2308 ],
2309 "dispatch": {
2310 "debug": {
2311 "description": "Verbose logs",
2312 "type": "boolean",
2313 "default": false
2314 }
2315 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2316 "last_run": {
Merge branch 'worktree-agent-ab2e39e11a6493412'2317 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2318 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2319 "path": ".g1t/workflows/ci.yml",
2320 "name": "CI",
2321 "title": "Greeting should name the caller",
2322 "number": 12,
2323 "attempt": 1,
2324 "event": "push",
2325 "ref": "refs/heads/main",
2326 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2327 "pull": null,
2328 "status": "completed",
2329 "conclusion": "success",
2330 "error": null,
2331 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2332 "created_at": "2026-10-04T15:42:07.318Z",
2333 "started_at": "2026-10-04T15:42:09.020Z",
2334 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2335 }
2336 },
2337 {
2338 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
2339 "path": ".g1t/workflows/nightly.yml",
2340 "name": "Nightly",
2341 "events": [
2342 "schedule"
2343 ],
2344 "state": "disabled",
2345 "error": null,
2346 "notes": [],
2347 "dispatch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2348 "last_run": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2349 }
2350 ],
2351 "notes": "`state` is `active` or `disabled`. `dispatch` holds the `workflow_dispatch` inputs, or is `null` when the workflow cannot be run by hand. See [GitHub Actions](/guides/actions/)."
2352 },
2353 "list_workflow_runs": {
2354 "query": {
2355 "workflow": "ci.yml",
2356 "branch": "main",
2357 "per_page": 20
2358 },
2359 "response": [
2360 {
2361 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2362 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2363 "path": ".g1t/workflows/ci.yml",
2364 "name": "CI",
2365 "title": "Greeting should name the caller",
2366 "number": 12,
2367 "attempt": 1,
2368 "event": "push",
2369 "ref": "refs/heads/main",
2370 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2371 "pull": null,
2372 "status": "completed",
2373 "conclusion": "success",
2374 "error": null,
2375 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2376 "created_at": "2026-10-04T15:42:07.318Z",
2377 "started_at": "2026-10-04T15:42:09.020Z",
2378 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2379 }
2380 ],
2381 "notes": "A run's `status` is `queued`, `pending` (waiting for its concurrency group), `in_progress` or `completed`; `conclusion` is set once it completes."
2382 },
2383 "list_runs_of_workflow": {
2384 "params": {
2385 "workflow": "ci.yml"
2386 },
2387 "query": {
2388 "branch": "main",
2389 "per_page": 20
2390 },
2391 "response": [
2392 {
2393 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2394 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2395 "path": ".g1t/workflows/ci.yml",
2396 "name": "CI",
2397 "title": "Greeting should name the caller",
2398 "number": 12,
2399 "attempt": 1,
2400 "event": "push",
2401 "ref": "refs/heads/main",
2402 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2403 "pull": null,
2404 "status": "completed",
2405 "conclusion": "success",
2406 "error": null,
2407 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2408 "created_at": "2026-10-04T15:42:07.318Z",
2409 "started_at": "2026-10-04T15:42:09.020Z",
2410 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2411 }
2412 ]
2413 },
2414 "get_workflow_run": {
2415 "params": {
2416 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
2417 },
2418 "response": {
2419 "run": {
2420 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2421 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2422 "path": ".g1t/workflows/ci.yml",
2423 "name": "CI",
2424 "title": "Greeting should name the caller",
2425 "number": 12,
2426 "attempt": 1,
2427 "event": "push",
2428 "ref": "refs/heads/main",
2429 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2430 "pull": null,
2431 "status": "completed",
2432 "conclusion": "failure",
2433 "error": null,
2434 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2435 "created_at": "2026-10-04T15:42:07.318Z",
2436 "started_at": "2026-10-04T15:42:09.020Z",
2437 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2438 },
2439 "jobs": [
2440 {
2441 "id": "job_01kpx7b3d0e4f8g2h6j0k4m8ns",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2442 "run_id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Merge branch 'worktree-agent-ab2e39e11a6493412'2443 "key": "test",
2444 "name": "test",
2445 "needs": [],
2446 "status": "completed",
2447 "conclusion": "failure",
2448 "steps": [
2449 {
2450 "number": 1,
2451 "name": "Run actions/checkout@v4",
2452 "status": "completed",
2453 "conclusion": "success",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2454 "started_at": "2026-10-04T15:42:10.101Z",
2455 "finished_at": "2026-10-04T15:42:12.433Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2456 },
2457 {
2458 "number": 2,
2459 "name": "Run cargo test",
2460 "status": "completed",
2461 "conclusion": "failure",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2462 "started_at": "2026-10-04T15:42:12.440Z",
2463 "finished_at": "2026-10-04T15:44:30.902Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2464 }
2465 ],
2466 "annotations": [
2467 {
2468 "level": "error",
2469 "message": "assertion failed: greeting names the caller",
2470 "title": "greet",
2471 "file": "src/main.rs",
2472 "line": 41
2473 }
2474 ],
2475 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2476 "started_at": "2026-10-04T15:42:09.020Z",
2477 "finished_at": "2026-10-04T15:44:31.002Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2478 },
2479 {
2480 "id": "job_01kpx7b3d0e4f8g2h6j0k4m8nt",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2481 "run_id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Merge branch 'worktree-agent-ab2e39e11a6493412'2482 "key": "deploy",
2483 "name": "deploy",
2484 "needs": [
2485 "test"
2486 ],
2487 "status": "completed",
2488 "conclusion": "skipped",
2489 "steps": [],
2490 "annotations": [],
2491 "reason": "A job it needs did not succeed.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2492 "started_at": null,
2493 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2494 }
2495 ],
2496 "notes": [
2497 {
2498 "severity": "unsupported",
2499 "job": "test",
2500 "message": "`services` containers (such as a database) are not started on g1t yet."
2501 }
2502 ]
2503 }
2504 },
2505 "get_job_logs": {
2506 "params": {
2507 "job": "job_01kpx7b3d0e4f8g2h6j0k4m8ns"
2508 },
2509 "query": {
2510 "after": 0
2511 },
2512 "response": {
2513 "chunks": [
2514 {
2515 "seq": 1,
2516 "step": 0,
2517 "text": "Preparing the sandbox\n"
2518 },
2519 {
2520 "seq": 2,
2521 "step": 2,
2522 "text": "> cargo test\ntest greet ... FAILED\n"
2523 }
2524 ],
2525 "done": true
2526 },
2527 "notes": "Returns at most 500 chunks. Step 0 is the job's setup. While `done` is false, call again with the last `seq` as `after`."
2528 },
2529 "dispatch_workflow": {
2530 "params": {
2531 "workflow": "ci.yml"
2532 },
2533 "request": {
2534 "ref": "main",
2535 "inputs": {
2536 "debug": true
2537 }
2538 },
2539 "response": {
2540 "id": "run_01kpx8d4e7f0g3h6j9k2m5n8pq",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2541 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2542 "path": ".g1t/workflows/ci.yml",
2543 "name": "CI",
2544 "title": "CI run by syntaqx",
2545 "number": 13,
2546 "attempt": 1,
2547 "event": "workflow_dispatch",
2548 "ref": "refs/heads/main",
2549 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2550 "pull": null,
2551 "status": "queued",
2552 "conclusion": null,
2553 "error": null,
2554 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2555 "created_at": "2026-10-04T16:30:00.512Z",
2556 "started_at": null,
2557 "finished_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2558 }
2559 },
2560 "cancel_workflow_run": {
2561 "params": {
2562 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
2563 },
2564 "response": {
2565 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2566 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2567 "path": ".g1t/workflows/ci.yml",
2568 "name": "CI",
2569 "title": "Greeting should name the caller",
2570 "number": 12,
2571 "attempt": 1,
2572 "event": "push",
2573 "ref": "refs/heads/main",
2574 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2575 "pull": null,
2576 "status": "completed",
2577 "conclusion": "cancelled",
2578 "error": null,
2579 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2580 "created_at": "2026-10-04T15:42:07.318Z",
2581 "started_at": "2026-10-04T15:42:09.020Z",
2582 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2583 }
2584 },
2585 "rerun_workflow_run": {
2586 "params": {
2587 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
2588 },
2589 "request": {
2590 "failed_only": true
2591 },
2592 "response": {
2593 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2594 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2595 "path": ".g1t/workflows/ci.yml",
2596 "name": "CI",
2597 "title": "Greeting should name the caller",
2598 "number": 12,
2599 "attempt": 2,
2600 "event": "push",
2601 "ref": "refs/heads/main",
2602 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2603 "pull": null,
2604 "status": "queued",
2605 "conclusion": null,
2606 "error": null,
2607 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2608 "created_at": "2026-10-04T15:42:07.318Z",
2609 "started_at": null,
2610 "finished_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2611 },
2612 "notes": "The run keeps its id; `attempt` goes up by one."
2613 },
2614 "rerun_failed_jobs": {
2615 "params": {
2616 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
2617 },
2618 "response": {
2619 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2620 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2621 "path": ".g1t/workflows/ci.yml",
2622 "name": "CI",
2623 "title": "Greeting should name the caller",
2624 "number": 12,
2625 "attempt": 2,
2626 "event": "push",
2627 "ref": "refs/heads/main",
2628 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2629 "pull": null,
2630 "status": "queued",
2631 "conclusion": null,
2632 "error": null,
2633 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2634 "created_at": "2026-10-04T15:42:07.318Z",
2635 "started_at": null,
2636 "finished_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2637 }
2638 },
2639 "update_workflow": {
2640 "params": {
2641 "workflow": "nightly.yml"
2642 },
2643 "request": {
2644 "enabled": false
2645 },
2646 "response": {
2647 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
2648 "path": ".g1t/workflows/nightly.yml",
2649 "name": "Nightly",
2650 "events": [
2651 "schedule"
2652 ],
2653 "state": "disabled",
2654 "error": null,
2655 "notes": [],
2656 "dispatch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2657 "last_run": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2658 }
2659 },
2660 "enable_workflow": {
2661 "params": {
2662 "workflow": "nightly.yml"
2663 },
2664 "response": {
2665 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
2666 "path": ".g1t/workflows/nightly.yml",
2667 "name": "Nightly",
2668 "events": [
2669 "schedule"
2670 ],
2671 "state": "active",
2672 "error": null,
2673 "notes": [],
2674 "dispatch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2675 "last_run": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2676 }
2677 },
2678 "disable_workflow": {
2679 "params": {
2680 "workflow": "nightly.yml"
2681 },
2682 "response": {
2683 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
2684 "path": ".g1t/workflows/nightly.yml",
2685 "name": "Nightly",
2686 "events": [
2687 "schedule"
2688 ],
2689 "state": "disabled",
2690 "error": null,
2691 "notes": [],
2692 "dispatch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2693 "last_run": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2694 }
2695 },
2696 "list_actions_secrets": {
2697 "response": [
2698 {
2699 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ab",
2700 "name": "NPM_TOKEN",
2701 "kind": "secret",
2702 "value": null,
2703 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2704 "updated_at": "2026-10-01T09:12:44.020Z",
2705 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2706 "workflows"
2707 ],
2708 "environments": [],
API reference examples use projects2709 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2710 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2711 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2712 },
2713 {
2714 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac",
2715 "name": "STRIPE_KEY",
2716 "kind": "secret",
2717 "value": null,
API reference examples use projects2718 "scope": "project",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2719 "updated_at": "2026-10-04T15:42:07.318Z",
2720 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2721 "workflows",
2722 "deployments"
2723 ],
2724 "environments": [
2725 "production"
2726 ],
API reference examples use projects2727 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2728 "note": "Rotate in the Stripe dashboard.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2729 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2730 }
2731 ],
2732 "notes": "Values are never returned. A repository's list includes the workspace's rows that reach it, with `scope` set to `workspace`. Empty `environments` means every environment."
2733 },
2734 "list_actions_secrets_for_workspace": {
2735 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2736 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'2737 },
2738 "response": [
2739 {
2740 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ab",
2741 "name": "NPM_TOKEN",
2742 "kind": "secret",
2743 "value": null,
2744 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2745 "updated_at": "2026-10-04T15:42:07.318Z",
2746 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2747 "workflows"
2748 ],
2749 "environments": [],
API reference examples use projects2750 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2751 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2752 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2753 }
2754 ],
2755 "notes": "Values are never returned. A repository's list includes the workspace's rows that reach it, with `scope` set to `workspace`. Empty `environments` means every environment."
2756 },
2757 "set_actions_secret": {
2758 "params": {
2759 "setting": "STRIPE_KEY"
2760 },
2761 "request": {
2762 "value": "sk_live_…",
2763 "available_to": [
2764 "workflows",
2765 "deployments"
2766 ],
2767 "environments": [
2768 "production"
2769 ]
2770 },
2771 "response": {
2772 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac",
2773 "name": "STRIPE_KEY",
2774 "kind": "secret",
2775 "value": null,
API reference examples use projects2776 "scope": "project",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2777 "updated_at": "2026-10-04T15:42:07.318Z",
2778 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2779 "workflows",
2780 "deployments"
2781 ],
2782 "environments": [
2783 "production"
2784 ],
API reference examples use projects2785 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2786 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2787 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2788 },
2789 "notes": "Keys are uppercased. See [secrets and variables](/guides/secrets-and-variables/)."
2790 },
2791 "set_actions_secret_for_workspace": {
2792 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2793 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2794 "setting": "NPM_TOKEN"
2795 },
2796 "request": {
2797 "value": "npm_…",
API reference examples use projects2798 "projects": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2799 "hello"
2800 ]
2801 },
2802 "response": {
2803 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac",
2804 "name": "NPM_TOKEN",
2805 "kind": "secret",
2806 "value": null,
2807 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2808 "updated_at": "2026-10-04T15:42:07.318Z",
2809 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2810 "workflows"
2811 ],
2812 "environments": [],
API reference examples use projects2813 "projects": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2814 "hello"
2815 ],
2816 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2817 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2818 }
2819 },
2820 "delete_actions_secret": {
2821 "params": {
2822 "setting": "STRIPE_KEY"
2823 },
2824 "response": true
2825 },
2826 "delete_actions_secret_for_workspace": {
2827 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2828 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2829 "setting": "NPM_TOKEN"
2830 },
2831 "response": true
2832 },
2833 "list_actions_variables": {
2834 "response": [
2835 {
2836 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2837 "name": "NODE_VERSION",
2838 "kind": "variable",
2839 "value": "20",
API reference examples use projects2840 "scope": "project",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2841 "updated_at": "2026-10-04T15:42:07.318Z",
2842 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2843 "workflows",
2844 "deployments"
2845 ],
2846 "environments": [],
API reference examples use projects2847 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2848 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2849 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2850 }
2851 ],
2852 "notes": "A repository's list includes the workspace's rows that reach it, with `scope` set to `workspace`. Empty `environments` means every environment."
2853 },
2854 "list_actions_variables_for_workspace": {
2855 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2856 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'2857 },
2858 "response": [
2859 {
2860 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2861 "name": "NODE_VERSION",
2862 "kind": "variable",
2863 "value": "20",
2864 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2865 "updated_at": "2026-10-04T15:42:07.318Z",
2866 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2867 "workflows",
2868 "deployments"
2869 ],
2870 "environments": [],
API reference examples use projects2871 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2872 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2873 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2874 }
2875 ]
2876 },
2877 "set_actions_variable": {
2878 "request": {
2879 "setting": "NODE_VERSION",
2880 "value": "20"
2881 },
2882 "response": {
2883 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2884 "name": "NODE_VERSION",
2885 "kind": "variable",
2886 "value": "20",
API reference examples use projects2887 "scope": "project",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2888 "updated_at": "2026-10-04T15:42:07.318Z",
2889 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2890 "workflows",
2891 "deployments"
2892 ],
2893 "environments": [],
API reference examples use projects2894 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2895 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2896 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2897 },
2898 "notes": "GitHub's clients send the key as `name`; that is accepted too."
2899 },
2900 "set_actions_variable_for_workspace": {
2901 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2902 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'2903 },
2904 "request": {
2905 "setting": "NODE_VERSION",
2906 "value": "20"
2907 },
2908 "response": {
2909 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2910 "name": "NODE_VERSION",
2911 "kind": "variable",
2912 "value": "20",
2913 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2914 "updated_at": "2026-10-04T15:42:07.318Z",
2915 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2916 "workflows",
2917 "deployments"
2918 ],
2919 "environments": [],
API reference examples use projects2920 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2921 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2922 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2923 }
2924 },
2925 "update_actions_variable": {
2926 "params": {
2927 "setting": "NODE_VERSION"
2928 },
2929 "request": {
2930 "value": "22"
2931 },
2932 "response": {
2933 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2934 "name": "NODE_VERSION",
2935 "kind": "variable",
2936 "value": "22",
API reference examples use projects2937 "scope": "project",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2938 "updated_at": "2026-10-04T15:42:07.318Z",
2939 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2940 "workflows",
2941 "deployments"
2942 ],
2943 "environments": [],
API reference examples use projects2944 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2945 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2946 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2947 }
2948 },
2949 "update_actions_variable_for_workspace": {
2950 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2951 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2952 "setting": "NODE_VERSION"
2953 },
2954 "request": {
2955 "value": "22"
2956 },
2957 "response": {
2958 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2959 "name": "NODE_VERSION",
2960 "kind": "variable",
2961 "value": "22",
2962 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2963 "updated_at": "2026-10-04T15:42:07.318Z",
2964 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2965 "workflows",
2966 "deployments"
2967 ],
2968 "environments": [],
API reference examples use projects2969 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2970 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2971 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2972 }
2973 },
2974 "delete_actions_variable": {
2975 "params": {
2976 "setting": "NODE_VERSION"
2977 },
2978 "response": true
2979 },
2980 "delete_actions_variable_for_workspace": {
2981 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2982 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2983 "setting": "NODE_VERSION"
2984 },
2985 "response": true
2986 },
Fast pages, required checks on the branch, self-hosted runners, honest incidents2987 "list_runners": {
2988 "response": [
2989 {
2990 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w8z",
2991 "name": "build-01",
2992 "workspace": "flagon-io",
2993 "repo": null,
2994 "group": "Default",
2995 "labels": [
2996 "self-hosted",
2997 "linux",
2998 "x64",
2999 "gpu"
3000 ],
3001 "os": "linux",
3002 "arch": "x64",
3003 "version": "0.2.0",
3004 "ephemeral": false,
3005 "status": "busy",
3006 "work": {
3007 "kind": "workflow",
3008 "id": "job_01kq2m9b1d4g7j0m3p6s9v2y5b",
3009 "name": "test (linux, 24)",
3010 "repo": "flagon-io/hello",
3011 "run_id": "run_01kq2m9a8c1f4h7k0n3q6t9w2z",
3012 "started_at": "2026-10-06T14:02:11.000Z"
3013 },
3014 "last_seen_at": "2026-10-06T14:05:40.512Z",
3015 "created_at": "2026-10-02T09:30:00.000Z",
3016 "created_by": null
3017 },
3018 {
3019 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w9a",
3020 "name": "mac-mini",
3021 "workspace": "flagon-io",
3022 "repo": null,
3023 "group": "Default",
3024 "labels": [
3025 "self-hosted",
3026 "macos",
3027 "arm64"
3028 ],
3029 "os": "macos",
3030 "arch": "arm64",
3031 "version": "0.2.0",
3032 "ephemeral": false,
3033 "status": "online",
3034 "work": null,
3035 "last_seen_at": "2026-10-06T14:05:40.512Z",
3036 "created_at": "2026-10-02T09:30:00.000Z",
3037 "created_by": null
3038 }
3039 ],
3040 "notes": "A repository's list holds its own runners (`repo` set) and the workspace's that its runner group lets it use. A runner is `offline` when it has not polled for 90 seconds."
3041 },
3042 "list_runners_for_workspace": {
3043 "params": {
3044 "workspace": "flagon-io"
3045 },
3046 "response": [
3047 {
3048 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w8z",
3049 "name": "build-01",
3050 "workspace": "flagon-io",
3051 "repo": null,
3052 "group": "Default",
3053 "labels": [
3054 "self-hosted",
3055 "linux",
3056 "x64",
3057 "gpu"
3058 ],
3059 "os": "linux",
3060 "arch": "x64",
3061 "version": "0.2.0",
3062 "ephemeral": false,
3063 "status": "busy",
3064 "work": {
3065 "kind": "workflow",
3066 "id": "job_01kq2m9b1d4g7j0m3p6s9v2y5b",
3067 "name": "test (linux, 24)",
3068 "repo": "flagon-io/hello",
3069 "run_id": "run_01kq2m9a8c1f4h7k0n3q6t9w2z",
3070 "started_at": "2026-10-06T14:02:11.000Z"
3071 },
3072 "last_seen_at": "2026-10-06T14:05:40.512Z",
3073 "created_at": "2026-10-02T09:30:00.000Z",
3074 "created_by": null
3075 },
3076 {
3077 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w9a",
3078 "name": "mac-mini",
3079 "workspace": "flagon-io",
3080 "repo": null,
3081 "group": "Default",
3082 "labels": [
3083 "self-hosted",
3084 "macos",
3085 "arm64"
3086 ],
3087 "os": "macos",
3088 "arch": "arm64",
3089 "version": "0.2.0",
3090 "ephemeral": false,
3091 "status": "online",
3092 "work": null,
3093 "last_seen_at": "2026-10-06T14:05:40.512Z",
3094 "created_at": "2026-10-02T09:30:00.000Z",
3095 "created_by": null
3096 }
3097 ]
3098 },
3099 "create_runner_registration_token": {
3100 "response": {
3101 "token": "g1trt_…",
3102 "expires_at": "2026-10-06T15:04:00.000Z",
3103 "workspace": "flagon-io",
3104 "repo": "flagon-io/hello",
3105 "group": null,
3106 "url": "https://g1t.sh"
3107 },
3108 "notes": "Pass it to `g1t-runner register --url https://g1t.sh --token …` within the hour. See [self-hosted runners](/guides/self-hosted-runners/)."
3109 },
3110 "create_runner_registration_token_for_workspace": {
3111 "params": {
3112 "workspace": "flagon-io"
3113 },
3114 "request": {
3115 "group": "Default"
3116 },
3117 "response": {
3118 "token": "g1trt_…",
3119 "expires_at": "2026-10-06T15:04:00.000Z",
3120 "workspace": "flagon-io",
3121 "repo": null,
3122 "group": "Default",
3123 "url": "https://g1t.sh"
3124 }
3125 },
3126 "remove_runner": {
3127 "params": {
3128 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w8z"
3129 },
3130 "response": true
3131 },
3132 "remove_runner_for_workspace": {
3133 "params": {
3134 "workspace": "flagon-io",
3135 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w8z"
3136 },
3137 "response": true
3138 },
3139 "get_runner_settings": {
3140 "response": {
3141 "agents_on_self_hosted": false,
3142 "agent_labels": [
3143 "self-hosted",
3144 "linux"
3145 ],
3146 "fork_pull_requests": false,
3147 "inherited": true
3148 }
3149 },
3150 "get_runner_settings_for_workspace": {
3151 "params": {
3152 "workspace": "flagon-io"
3153 },
3154 "response": {
3155 "agents_on_self_hosted": true,
3156 "agent_labels": [
3157 "self-hosted",
3158 "linux"
3159 ],
3160 "fork_pull_requests": false,
3161 "inherited": false
3162 }
3163 },
3164 "update_runner_settings": {
3165 "request": {
3166 "inherit": true
3167 },
3168 "response": {
3169 "agents_on_self_hosted": false,
3170 "agent_labels": [
3171 "self-hosted",
3172 "linux"
3173 ],
3174 "fork_pull_requests": false,
3175 "inherited": true
3176 }
3177 },
3178 "update_runner_settings_for_workspace": {
3179 "params": {
3180 "workspace": "flagon-io"
3181 },
3182 "request": {
3183 "agents_on_self_hosted": true,
3184 "agent_labels": [
3185 "linux"
3186 ]
3187 },
3188 "response": {
3189 "agents_on_self_hosted": true,
3190 "agent_labels": [
3191 "self-hosted",
3192 "linux"
3193 ],
3194 "fork_pull_requests": false,
3195 "inherited": false
3196 },
3197 "notes": "Agent work on your runners still uses g1t's model proxy, paid as before, unless the workspace has its own model provider."
3198 },
3199 "list_runner_groups": {
3200 "params": {
3201 "workspace": "flagon-io"
3202 },
3203 "response": [
3204 {
3205 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6y",
3206 "name": "Default",
3207 "default": true,
3208 "repositories": [],
3209 "runners": 2,
3210 "updated_at": "2026-10-02T09:30:00.000Z"
3211 },
3212 {
3213 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6z",
3214 "name": "GPU",
3215 "default": false,
3216 "repositories": [
3217 "hello",
3218 "models"
3219 ],
3220 "runners": 1,
3221 "updated_at": "2026-10-05T11:20:00.000Z"
3222 }
3223 ]
3224 },
3225 "create_runner_group": {
3226 "params": {
3227 "workspace": "flagon-io"
3228 },
3229 "request": {
3230 "name": "GPU",
3231 "repositories": [
3232 "hello",
3233 "models"
3234 ]
3235 },
3236 "response": {
3237 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6z",
3238 "name": "GPU",
3239 "default": false,
3240 "repositories": [
3241 "hello",
3242 "models"
3243 ],
3244 "runners": 1,
3245 "updated_at": "2026-10-05T11:20:00.000Z"
3246 }
3247 },
3248 "update_runner_group": {
3249 "params": {
3250 "workspace": "flagon-io",
3251 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6z"
3252 },
3253 "request": {
3254 "repositories": []
3255 },
3256 "response": {
3257 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6z",
3258 "name": "GPU",
3259 "default": false,
3260 "repositories": [],
3261 "runners": 1,
3262 "updated_at": "2026-10-05T11:20:00.000Z"
3263 }
3264 },
3265 "delete_runner_group": {
3266 "params": {
3267 "workspace": "flagon-io",
3268 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6z"
3269 },
3270 "response": true
3271 },
Merge branch 'worktree-agent-ab2e39e11a6493412'3272 "list_webhooks": {
3273 "response": [
3274 {
3275 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3276 "scope": "repo",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3277 "workspace": "flagon-io",
3278 "repo": "flagon-io/hello",
Merge branch 'worktree-agent-ab2e39e11a6493412'3279 "url": "https://hooks.example.com/g1t",
3280 "events": [
3281 "git.push",
3282 "pull.merged"
3283 ],
3284 "active": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3285 "secret_hint": "…9c2e",
3286 "created_by": "syntaqx",
3287 "created_at": "2026-10-04T15:42:07.318Z",
3288 "last_status": "delivered",
3289 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3290 }
3291 ]
3292 },
3293 "list_webhooks_for_workspace": {
3294 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3295 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'3296 },
3297 "response": [
3298 {
3299 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3300 "scope": "workspace",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3301 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3302 "repo": null,
3303 "url": "https://hooks.example.com/g1t",
3304 "events": [
3305 "git.push",
3306 "pull.merged"
3307 ],
3308 "active": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3309 "secret_hint": "…9c2e",
3310 "created_by": "syntaqx",
3311 "created_at": "2026-10-04T15:42:07.318Z",
3312 "last_status": "delivered",
3313 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3314 }
3315 ]
3316 },
3317 "create_webhook": {
3318 "request": {
3319 "url": "https://hooks.example.com/g1t",
3320 "events": [
3321 "git.push",
3322 "pull.merged"
3323 ]
3324 },
3325 "response": {
3326 "hook": {
3327 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3328 "scope": "repo",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3329 "workspace": "flagon-io",
3330 "repo": "flagon-io/hello",
Merge branch 'worktree-agent-ab2e39e11a6493412'3331 "url": "https://hooks.example.com/g1t",
3332 "events": [
3333 "git.push",
3334 "pull.merged"
3335 ],
3336 "active": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3337 "secret_hint": "…9c2e",
3338 "created_by": "syntaqx",
3339 "created_at": "2026-10-04T15:42:07.318Z",
3340 "last_status": "delivered",
3341 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3342 },
API reference: no example reads as a real secret3343 "secret": "whsec_…"
Merge branch 'worktree-agent-ab2e39e11a6493412'3344 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3345 "notes": "A ping is sent before the response, so `last_status` is usually set already. When g1t made the signing secret, `secret` holds it: it is shown only this once. See [webhooks](/guides/webhooks/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'3346 },
3347 "create_webhook_for_workspace": {
3348 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3349 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'3350 },
3351 "request": {
3352 "url": "https://hooks.example.com/g1t"
3353 },
3354 "response": {
3355 "hook": {
3356 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3357 "scope": "workspace",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3358 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3359 "repo": null,
3360 "url": "https://hooks.example.com/g1t",
3361 "events": [
3362 "*"
3363 ],
3364 "active": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3365 "secret_hint": "…9c2e",
3366 "created_by": "syntaqx",
3367 "created_at": "2026-10-04T15:42:07.318Z",
3368 "last_status": "delivered",
3369 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3370 },
API reference: no example reads as a real secret3371 "secret": "whsec_…"
Merge branch 'worktree-agent-ab2e39e11a6493412'3372 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3373 "notes": "A ping is sent before the response, so `last_status` is usually set already. When g1t made the signing secret, `secret` holds it: it is shown only this once. See [webhooks](/guides/webhooks/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'3374 },
3375 "update_webhook": {
3376 "params": {
3377 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
3378 },
3379 "request": {
3380 "active": false
3381 },
3382 "response": {
3383 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3384 "scope": "repo",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3385 "workspace": "flagon-io",
3386 "repo": "flagon-io/hello",
Merge branch 'worktree-agent-ab2e39e11a6493412'3387 "url": "https://hooks.example.com/g1t",
3388 "events": [
3389 "git.push",
3390 "pull.merged"
3391 ],
3392 "active": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3393 "secret_hint": "…9c2e",
3394 "created_by": "syntaqx",
3395 "created_at": "2026-10-04T15:42:07.318Z",
3396 "last_status": "delivered",
3397 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3398 }
3399 },
3400 "update_webhook_for_workspace": {
3401 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3402 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3403 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
3404 },
3405 "request": {
3406 "active": false
3407 },
3408 "response": {
3409 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3410 "scope": "workspace",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3411 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3412 "repo": null,
3413 "url": "https://hooks.example.com/g1t",
3414 "events": [
3415 "git.push",
3416 "pull.merged"
3417 ],
3418 "active": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3419 "secret_hint": "…9c2e",
3420 "created_by": "syntaqx",
3421 "created_at": "2026-10-04T15:42:07.318Z",
3422 "last_status": "delivered",
3423 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3424 }
3425 },
3426 "delete_webhook": {
3427 "params": {
3428 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
3429 },
3430 "response": true
3431 },
3432 "delete_webhook_for_workspace": {
3433 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3434 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3435 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
3436 },
3437 "response": true
3438 },
3439 "ping_webhook": {
3440 "params": {
3441 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
3442 },
3443 "response": {
3444 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3445 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3446 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'3447 "event": "ping",
3448 "status": "delivered",
3449 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3450 "response_status": 200,
3451 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'3452 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3453 "duration_ms": 184,
Merge branch 'worktree-agent-ab2e39e11a6493412'3454 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3455 "created_at": "2026-10-04T16:01:12.440Z",
3456 "delivered_at": "2026-10-04T16:01:12.631Z",
3457 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'3458 },
3459 "notes": "`payload` is the JSON that was sent, as a string."
3460 },
3461 "ping_webhook_for_workspace": {
3462 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3463 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3464 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
3465 },
3466 "response": {
3467 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3468 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3469 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'3470 "event": "ping",
3471 "status": "delivered",
3472 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3473 "response_status": 200,
3474 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'3475 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3476 "duration_ms": 184,
Merge branch 'worktree-agent-ab2e39e11a6493412'3477 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3478 "created_at": "2026-10-04T16:01:12.440Z",
3479 "delivered_at": "2026-10-04T16:01:12.631Z",
3480 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'3481 }
3482 },
3483 "list_webhook_deliveries": {
3484 "params": {
3485 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
3486 },
3487 "response": [
3488 {
3489 "id": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3490 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3491 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'3492 "event": "ping",
3493 "status": "pending",
3494 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3495 "response_status": 503,
3496 "response_body": "Service Unavailable",
Merge branch 'worktree-agent-ab2e39e11a6493412'3497 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3498 "duration_ms": 212,
Merge branch 'worktree-agent-ab2e39e11a6493412'3499 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3500 "created_at": "2026-10-04T16:20:03.100Z",
3501 "delivered_at": null,
3502 "next_attempt_at": "2026-10-04T16:21:03.312Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3503 },
3504 {
3505 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3506 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3507 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'3508 "event": "ping",
3509 "status": "delivered",
3510 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3511 "response_status": 200,
3512 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'3513 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3514 "duration_ms": 184,
Merge branch 'worktree-agent-ab2e39e11a6493412'3515 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3516 "created_at": "2026-10-04T16:01:12.440Z",
3517 "delivered_at": "2026-10-04T16:01:12.631Z",
3518 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'3519 }
3520 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3521 "notes": "Returns at most 50, newest first. `status` is `pending`, `delivered` or `failed`; `next_attempt_at` is set while it is pending."
Merge branch 'worktree-agent-ab2e39e11a6493412'3522 },
3523 "list_webhook_deliveries_for_workspace": {
3524 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3525 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3526 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
3527 },
3528 "response": [
3529 {
3530 "id": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3531 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3532 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'3533 "event": "ping",
3534 "status": "pending",
3535 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3536 "response_status": 503,
3537 "response_body": "Service Unavailable",
Merge branch 'worktree-agent-ab2e39e11a6493412'3538 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3539 "duration_ms": 212,
Merge branch 'worktree-agent-ab2e39e11a6493412'3540 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3541 "created_at": "2026-10-04T16:20:03.100Z",
3542 "delivered_at": null,
3543 "next_attempt_at": "2026-10-04T16:21:03.312Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3544 },
3545 {
3546 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3547 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3548 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'3549 "event": "ping",
3550 "status": "delivered",
3551 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3552 "response_status": 200,
3553 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'3554 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3555 "duration_ms": 184,
Merge branch 'worktree-agent-ab2e39e11a6493412'3556 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3557 "created_at": "2026-10-04T16:01:12.440Z",
3558 "delivered_at": "2026-10-04T16:01:12.631Z",
3559 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'3560 }
3561 ]
3562 },
3563 "redeliver_webhook": {
3564 "params": {
3565 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3566 "delivery": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz"
3567 },
3568 "response": {
3569 "id": "dlv_01kpx6c8d1e2f3g4h5j6k7m8np",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3570 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3571 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'3572 "event": "ping",
3573 "status": "delivered",
3574 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3575 "response_status": 200,
3576 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'3577 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3578 "duration_ms": 171,
Merge branch 'worktree-agent-ab2e39e11a6493412'3579 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3580 "created_at": "2026-10-04T16:25:40.007Z",
3581 "delivered_at": "2026-10-04T16:25:40.178Z",
3582 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'3583 },
3584 "notes": "The response is the new delivery."
3585 },
3586 "redeliver_webhook_for_workspace": {
3587 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3588 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3589 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3590 "delivery": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz"
3591 },
3592 "response": {
3593 "id": "dlv_01kpx6c8d1e2f3g4h5j6k7m8np",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3594 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3595 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'3596 "event": "ping",
3597 "status": "delivered",
3598 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3599 "response_status": 200,
3600 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'3601 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3602 "duration_ms": 171,
Merge branch 'worktree-agent-ab2e39e11a6493412'3603 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3604 "created_at": "2026-10-04T16:25:40.007Z",
3605 "delivered_at": "2026-10-04T16:25:40.178Z",
3606 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'3607 }
3608 },
3609 "list_integrations": {
3610 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3611 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'3612 },
3613 "response": [
3614 {
3615 "id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3616 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3617 "provider": "anthropic",
3618 "kind": "models",
3619 "name": "Anthropic",
3620 "config": {
3621 "assign": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3622 "write_back": true
Merge branch 'worktree-agent-ab2e39e11a6493412'3623 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3624 "secret_hint": "…3f9a",
3625 "webhook_url": null,
3626 "created_by": "syntaqx",
3627 "created_at": "2026-10-04T15:42:07.318Z",
3628 "last_used_at": "2026-10-04T15:42:08.102Z",
3629 "last_error": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'3630 "models": [
3631 "claude-haiku-4-5",
3632 "claude-sonnet-4-5"
3633 ]
3634 },
3635 {
3636 "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bc",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3637 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3638 "provider": "jira",
3639 "kind": "tracker",
3640 "name": "Jira",
3641 "config": {
3642 "assign": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3643 "write_back": true,
Merge branch 'worktree-agent-ab2e39e11a6493412'3644 "site": "https://acme.atlassian.net",
3645 "email": "syntaqx@example.com",
3646 "keys": [
3647 "TECH"
3648 ]
3649 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3650 "secret_hint": "…x7Qe",
3651 "webhook_url": null,
3652 "created_by": "syntaqx",
3653 "created_at": "2026-10-04T15:42:07.318Z",
3654 "last_used_at": null,
3655 "last_error": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'3656 "models": []
3657 }
3658 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3659 "notes": "`kind` is `models`, `alerts` or `tracker`. `secret_hint` shows the end of the secret; the secret itself is never returned. `webhook_url` is where an alert source sends its alerts."
Merge branch 'worktree-agent-ab2e39e11a6493412'3660 },
3661 "connect_integration": {
3662 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3663 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'3664 },
3665 "request": {
3666 "provider": "webhook",
3667 "config": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3668 "repo": "flagon-io/hello",
Merge branch 'worktree-agent-ab2e39e11a6493412'3669 "label": "bug"
3670 }
3671 },
3672 "response": {
3673 "connection": {
3674 "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bd",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3675 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3676 "provider": "webhook",
3677 "kind": "alerts",
3678 "name": "Webhook",
3679 "config": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3680 "repo": "flagon-io/hello",
Merge branch 'worktree-agent-ab2e39e11a6493412'3681 "label": "bug",
3682 "assign": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3683 "write_back": true
Merge branch 'worktree-agent-ab2e39e11a6493412'3684 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3685 "secret_hint": null,
3686 "webhook_url": "https://api.g1t.sh/hooks/con_01kpx4n8r3g9s0v5w7x1z2a3bd",
3687 "created_by": "syntaqx",
3688 "created_at": "2026-10-04T15:42:07.318Z",
3689 "last_used_at": null,
3690 "last_error": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'3691 "models": []
3692 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3693 "signing_secret": "g1ts_9f2c4a7e1b0d3c6f8a2e5b7d9c1f4a6e8b0d2c4f6a8e1b3d"
Merge branch 'worktree-agent-ab2e39e11a6493412'3694 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3695 "notes": "`signing_secret` is set only when g1t made it, for `datadog` and `webhook`, and is shown only this once. A model provider is tested as it is connected. See [integrations](/guides/integrations/) and [model providers](/guides/models/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'3696 },
3697 "disconnect_integration": {
3698 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3699 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3700 "id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab"
3701 },
3702 "response": true
3703 },
3704 "test_integration": {
3705 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3706 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3707 "id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab"
3708 },
3709 "response": {
3710 "ok": true,
3711 "message": "Anthropic accepted the key and offers 9 models."
3712 },
3713 "notes": "Credentials that do not work still answer `200`, with `ok` false and `message` saying what went wrong."
3714 },
3715 "get_model_routes": {
3716 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3717 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'3718 },
3719 "response": [
3720 {
3721 "task": "default",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3722 "connection_id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab",
Merge branch 'worktree-agent-ab2e39e11a6493412'3723 "model": "claude-sonnet-4-5"
3724 },
3725 {
3726 "task": "review",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3727 "connection_id": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'3728 "model": null
3729 }
3730 ]
3731 },
3732 "set_model_routes": {
3733 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3734 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'3735 },
3736 "request": {
3737 "routes": [
3738 {
3739 "task": "default",
3740 "connection_id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab",
3741 "model": "claude-sonnet-4-5"
3742 },
3743 {
Merge branch 'model-routing'3744 "task": "plan",
3745 "connection_id": null,
3746 "model": "frontier"
3747 },
3748 {
Merge branch 'worktree-agent-ab2e39e11a6493412'3749 "task": "review",
3750 "connection_id": null
3751 }
3752 ]
3753 },
3754 "response": [
3755 {
3756 "task": "default",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3757 "connection_id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab",
Merge branch 'worktree-agent-ab2e39e11a6493412'3758 "model": "claude-sonnet-4-5"
3759 },
3760 {
Merge branch 'model-routing'3761 "task": "plan",
3762 "connection_id": null,
3763 "model": "frontier"
3764 },
3765 {
Merge branch 'worktree-agent-ab2e39e11a6493412'3766 "task": "review",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3767 "connection_id": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'3768 "model": null
3769 }
3770 ],
Merge branch 'model-routing'3771 "notes": "The response is the routes as saved, ordered by task. On g1t's hosted models (`connection_id` null), `model` is `small`, `large` or `frontier`, or null for Auto, which picks the cheapest model that can do each job and says why on the run."
Merge branch 'worktree-agent-ab2e39e11a6493412'3772 },
3773 "get_context": {
3774 "query": {
3775 "reference": "TECH-1234"
3776 },
3777 "response": {
3778 "provider": "jira",
3779 "key": "TECH-1234",
3780 "title": "Checkout fails for EU cards",
3781 "url": "https://acme.atlassian.net/browse/TECH-1234",
3782 "status": "In Progress",
3783 "body": "Customers with 3DS cards see a 500 at /pay.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3784 "fetched_at": "2026-10-04T15:42:07.318Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3785 }
3786 },
3787 "import_issue": {
3788 "request": {
3789 "reference": "TECH-1234"
3790 },
3791 "response": {
3792 "number": 42,
3793 "item": {
3794 "provider": "jira",
3795 "key": "TECH-1234",
3796 "title": "Checkout fails for EU cards",
3797 "url": "https://acme.atlassian.net/browse/TECH-1234",
3798 "status": "In Progress",
3799 "body": "Customers with 3DS cards see a 500 at /pay.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3800 "fetched_at": "2026-10-04T15:42:07.318Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3801 },
3802 "created": true
3803 },
3804 "notes": "`created` is false when the ticket was imported before; `number` is then that issue."
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3805 },
3806 "remember": {
3807 "request": {
3808 "text": "The tests need TZ=UTC or the date tests fail.",
3809 "scope": "project",
3810 "kind": "gotcha",
3811 "from_number": 14
3812 },
3813 "response": {
3814 "id": "mem_01m43v8q2w3e4r5t6y7u8i9o0p",
3815 "scope": "project",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3816 "workspace": "flagon-io",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3817 "repo": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3818 "namespace": "flagon-io",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3819 "name": "hello"
3820 },
3821 "text": "The tests need TZ=UTC or the date tests fail.",
3822 "kind": "gotcha",
3823 "source": {
3824 "kind": "run",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3825 "run_id": "arn_01m43v2c1p9k8d7e6f5a4b3c2d",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3826 "repo": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3827 "namespace": "flagon-io",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3828 "name": "hello"
3829 },
3830 "number": 14
3831 },
g1t is one name: its agent's work, commits and comments show as @g1t, and nobody can claim g1t or g1t-agent3832 "created_by": "g1t",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3833 "pinned": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3834 "created_at": "2026-10-01T18:40:12.000Z",
3835 "updated_at": "2026-10-01T18:40:12.000Z",
3836 "last_used_at": null
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3837 },
3838 "notes": "Text that looks like a key, a token or a password is refused with `invalid`: memory is read by every agent in the workspace. Saving the same text again in the same scope returns the memory already kept."
3839 },
3840 "recall": {
3841 "query": {
3842 "q": "pnpm"
3843 },
3844 "response": {
3845 "project": [],
3846 "workspace": [
3847 {
3848 "id": "mem_01m43t0a1s2d3f4g5h6j7k8l9z",
3849 "scope": "workspace",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3850 "workspace": "flagon-io",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3851 "repo": null,
3852 "text": "We use pnpm everywhere, never npm or yarn.",
3853 "kind": "convention",
3854 "source": {
3855 "kind": "person",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3856 "run_id": null,
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3857 "repo": null,
3858 "number": null
3859 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3860 "created_by": "syntaqx",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3861 "pinned": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3862 "created_at": "2026-10-01T18:40:12.000Z",
3863 "updated_at": "2026-10-01T18:40:12.000Z",
3864 "last_used_at": null
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3865 }
3866 ]
3867 },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3868 "notes": "Anyone who can read the repository gets its project memory; `workspace` is filled only for members of the workspace, and is empty for anyone else. Each memory returned is marked used, which keeps it near the front of what agents are given."
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3869 },
Search across all of g1t, Explore, and a command palette3870 "search": {
3871 "query": {
3872 "q": "parse_query language:rust repo:acme/web",
3873 "type": "code"
3874 },
3875 "response": {
3876 "query": "parse_query repo:acme/web language:rust",
3877 "type": "code",
3878 "counts": {
3879 "repositories": 0,
3880 "code": 2,
3881 "issues": 0,
3882 "pulls": 0,
3883 "people": 0
3884 },
3885 "page": 1,
3886 "per_page": 20,
3887 "more": false,
3888 "hits": [
3889 {
3890 "kind": "code",
3891 "title": "src/search/query.rs",
3892 "url": "/acme/web/blob/main/src/search/query.rs#L42",
3893 "repo": "acme/web",
3894 "private": false,
3895 "description": null,
3896 "snippet": [],
3897 "lines": [
3898 {
3899 "number": 41,
3900 "parts": [
3901 {
3902 "text": "/// Reads a query typed into the search box.",
3903 "highlight": false
3904 }
3905 ]
3906 },
3907 {
3908 "number": 42,
3909 "parts": [
3910 {
3911 "text": "pub fn ",
3912 "highlight": false
3913 },
3914 {
3915 "text": "parse_query",
3916 "highlight": true
3917 },
3918 {
3919 "text": "(text: &str) -> Query {",
3920 "highlight": false
3921 }
3922 ]
3923 },
3924 {
3925 "number": 43,
3926 "parts": [
3927 {
3928 "text": " let mut query = Query::default();",
3929 "highlight": false
3930 }
3931 ]
3932 }
3933 ],
3934 "path": "src/search/query.rs",
3935 "language": "rust",
3936 "ref": "main",
3937 "number": null,
3938 "state": null,
3939 "author": null,
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights3940 "requested_by": null,
Search across all of g1t, Explore, and a command palette3941 "labels": [],
3942 "topics": [],
3943 "slug": null,
3944 "avatar": null,
3945 "updated_at": null
3946 }
3947 ],
3948 "notes": []
3949 },
g1t is the stored author of what it opens; the person who asked is requested_by and keeps the author's rights3950 "notes": "`q` takes words, `\"exact phrases\"`, `-words` to leave out, and qualifiers: `repo:owner/name`, `org:` (or `workspace:`), `language:`, `path:` (a glob when it has `*`), `is:issue`, `is:pr`, `is:open`, `is:closed`, `is:merged`, `is:draft`, `is:public`, `is:private`, `author:` and `label:`; most can be left out with a leading `-`, as in `-label:wontfix`. `type` is `repositories`, `code`, `issues`, `pulls` or `people`; without it, `path:` means code, `is:pr` pull requests, `is:open`, `author:` or `label:` issues, and anything else repositories. `counts` says how many results each type has, up to 1,000. Each result's `snippet` (or, for code, each of its `lines`) is a list of parts, `highlight` true where the query matched. Code is searched on default branches and needs a word of three characters or more, unless the query names a `repo:`. Public content is returned to anyone, without a token; private content only to people who can read it (members of its workspace, and people given a role on the repository), checked when the search runs, so a repository made private, or a role taken away, stops appearing at once. A g1t agent's token can search too. An issue or pull request g1t opened has `author` `g1t` and `requested_by` the person it was for; `author:` matches the author."
Search across all of g1t, Explore, and a command palette3951 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3952 "search_context": {
3953 "params": {
3954 "workspace": "acme"
3955 },
3956 "query": {
3957 "q": "how do we run the web tests",
3958 "project": "web"
3959 },
3960 "response": {
3961 "query": "how do we run the web tests",
3962 "mode": "semantic",
3963 "hits": [
3964 {
3965 "kind": "memory",
3966 "id": "mem_01m4a0c2b7k3f9d1e5g8h2j6k4",
3967 "title": "Gotcha",
3968 "snippet": "The date tests fail unless TZ=UTC.",
3969 "project": "web",
3970 "url": "/acme/web/memory",
3971 "score": 0.82,
3972 "source": "AGENTS.md",
3973 "by": "g1t",
3974 "updated_at": "2026-10-04T21:10:02.000Z"
3975 },
3976 {
3977 "kind": "doc",
3978 "id": "ent_5f0c2a9e41d7b3c86a1e2f40:2",
3979 "title": "Web (README.md)",
3980 "snippet": "## Testing Run npm test. The end-to-end tests need the api running locally…",
3981 "project": "web",
3982 "url": "/acme/web/blob/main/README.md",
3983 "score": 0.77,
3984 "source": "README.md",
3985 "by": null,
3986 "updated_at": "2026-10-04T20:58:41.000Z"
3987 },
3988 {
3989 "kind": "project",
3990 "id": "ent_9b1d6f0a2c3e4b5d6e7f8a9b",
3991 "title": "web",
3992 "snippet": "The storefront. Written in TypeScript. Packages: @acme/web. Uses api. Owned by ana.",
3993 "project": "web",
3994 "url": "/acme/web",
3995 "score": 0.71,
3996 "source": "catalog",
3997 "by": null,
3998 "updated_at": "2026-10-04T20:58:41.000Z"
3999 }
4000 ]
4001 },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look4002 "notes": "Give `workspace`, or `repo` as `owner/name` for its workspace. `kinds` narrows to some of `project`, `app`, `api`, `package`, `language`, `owner`, `environment`, `integration`, `doc`, `memory`, `issue` and `pull`; in a URL, comma-separated. `mode` is `text` when the search index could not answer and words were matched instead. Memory is returned only to members of the workspace and its agents; anything from a private project, only to those who can read it (members, unless the base permission is None, and people given a role on its repository). A g1t agent searches its own workspace only."
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API4003 },
4004 "get_entity": {
4005 "params": {
4006 "workspace": "acme",
4007 "kind": "project",
4008 "id": "web"
4009 },
4010 "response": {
4011 "entity": {
4012 "id": "ent_9b1d6f0a2c3e4b5d6e7f8a9b",
4013 "workspace": "acme",
4014 "kind": "project",
4015 "key": "web",
4016 "name": "web",
4017 "summary": "The storefront. Written in TypeScript. Packages: @acme/web. Uses api. Owned by ana.",
4018 "project": "web",
4019 "private": true,
4020 "data": {
4021 "repo": "acme/web",
4022 "root_dir": "",
4023 "default_branch": "main",
4024 "languages": [
4025 "TypeScript"
4026 ],
4027 "owners": [
4028 "ana"
4029 ],
4030 "tests": true,
4031 "test_commands": [
4032 "npm test"
4033 ],
4034 "production_url": "https://web--acme.g1t.page"
4035 },
4036 "source": "scan",
4037 "ref": "/acme/web",
4038 "updated_at": "2026-10-04T20:58:41.000Z"
4039 },
4040 "relations": [
4041 {
4042 "kind": "depends_on",
4043 "direction": "out",
4044 "entity": {
4045 "id": "ent_0a7c3e5b9d1f2a4c6e8b0d2f",
4046 "workspace": "acme",
4047 "kind": "project",
4048 "key": "api",
4049 "name": "api",
4050 "summary": "The public API. Written in Rust.",
4051 "project": "api",
4052 "private": true,
4053 "data": {},
4054 "source": "scan",
4055 "ref": "/acme/api",
4056 "updated_at": "2026-10-04T20:57:12.000Z"
4057 }
4058 },
4059 {
4060 "kind": "owned_by",
4061 "direction": "out",
4062 "entity": {
4063 "id": "ent_3c5e7a9b1d2f4a6c8e0b2d4f",
4064 "workspace": "acme",
4065 "kind": "owner",
4066 "key": "ana",
4067 "name": "ana",
4068 "summary": null,
4069 "project": null,
4070 "private": false,
4071 "data": {},
4072 "source": "scan",
4073 "ref": "/u/ana",
4074 "updated_at": "2026-10-04T20:58:41.000Z"
4075 }
4076 }
4077 ]
4078 },
4079 "notes": "`id` is the entry's id, or its key: a project's or app's slug, `npm:<name>` (or `cargo:`, `go:`, `pypi:`) for a package, a username for an owner, `<project>/production` for an environment. `data` depends on the kind: a package's version and dependencies, an API's routes, an app's production address."
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look4080 },
4081 "list_collaborators": {
4082 "response": {
4083 "repo": "flagon-io/hello",
4084 "base_permission": "write",
4085 "people": [
4086 {
4087 "username": "syntaqx",
4088 "name": "Chase Pierce",
4089 "avatar": null,
4090 "role": "admin",
4091 "source": "owner",
4092 "direct": null,
4093 "workspace_role": "owner"
4094 },
4095 {
4096 "username": "linus",
4097 "name": null,
4098 "avatar": null,
4099 "role": "maintain",
4100 "source": "direct",
4101 "direct": "maintain",
4102 "workspace_role": "member"
4103 },
4104 {
4105 "username": "grace",
4106 "name": "Grace Hopper",
4107 "avatar": null,
4108 "role": "write",
4109 "source": "base",
4110 "direct": null,
4111 "workspace_role": "member"
4112 },
4113 {
4114 "username": "ada",
4115 "name": "Ada Lovelace",
4116 "avatar": null,
4117 "role": "triage",
4118 "source": "direct",
4119 "direct": "triage",
4120 "workspace_role": null
4121 }
4122 ],
4123 "invitations": [
4124 {
4125 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p",
4126 "repo": "flagon-io/hello",
4127 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4128 "invitee": "alan",
4129 "email": null,
4130 "role": "write",
4131 "invited_by": "syntaqx",
4132 "inviter_avatar": null,
4133 "status": "pending",
4134 "created_at": "2026-10-05T17:00:00.000Z",
4135 "expires_at": "2026-10-12T17:00:00.000Z"
4136 },
4137 {
4138 "id": "rin_01kp3d7e8f9g0h1j2k3m4n5p6q",
4139 "repo": "flagon-io/hello",
4140 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4141 "invitee": null,
4142 "email": "joan@example.com",
4143 "role": "read",
4144 "invited_by": "syntaqx",
4145 "inviter_avatar": null,
4146 "status": "pending",
4147 "created_at": "2026-10-05T17:00:00.000Z",
4148 "expires_at": "2026-10-12T17:00:00.000Z"
4149 }
4150 ],
4151 "viewer_role": "admin",
4152 "can_manage": true
4153 },
4154 "notes": "Owners are listed with `source` `owner`, members with the base permission with `base`, and anyone given a role on this repository with `direct`; `role` is the highest of these, and `direct` shows a direct role even when ownership or the base permission gives more. `workspace_role` null means an outside collaborator. Anyone can read a public repository, which is not listed. `invitations` is empty unless you have the Admin role (`can_manage`). Refused with `403` below the Write role, and `404` for a private repository you cannot see. See [Access and roles](/guides/access-and-roles/)."
4155 },
4156 "add_collaborator": {
4157 "request": {
4158 "invitee": "ada",
4159 "role": "triage"
4160 },
4161 "response": {
4162 "result": "invited",
4163 "invitation": {
4164 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
4165 "repo": "flagon-io/hello",
4166 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4167 "invitee": "ada",
4168 "email": null,
4169 "role": "triage",
4170 "invited_by": "syntaqx",
4171 "inviter_avatar": null,
4172 "status": "pending",
4173 "created_at": "2026-10-05T17:00:00.000Z",
4174 "expires_at": "2026-10-12T17:00:00.000Z"
4175 }
4176 },
4177 "notes": "`invitee` is a username or an email address. A member of the workspace answers `{\"result\": \"granted\", \"collaborator\": {…}}` with the role already given, shown as list_collaborators shows a person. Anyone else answers `{\"result\": \"invited\", \"invitation\": {…}}`: the invitation is emailed and waits 7 days, and the role is theirs once they accept it. An email address without an account gets an invitation with `email` set and `invitee` null, and an invite that makes the account and accepts in one step. Refused with `404` when no account has that username, `409` when they already have a role of their own or a pending invitation (change it with update_collaborator), and `403` without the Admin role, from an agent's or a workspace's token, or when the person does not meet what the workspace asks of everyone with access. The `repo.collaborator_added` webhook event is sent once they have the role. See [Access and roles](/guides/access-and-roles/)."
4178 },
4179 "update_collaborator": {
4180 "params": {
4181 "owner": "flagon-io",
4182 "name": "hello",
4183 "username": "ada"
4184 },
4185 "request": {
4186 "role": "write"
4187 },
4188 "response": {
4189 "username": "ada",
4190 "name": "Ada Lovelace",
4191 "avatar": null,
4192 "role": "write",
4193 "source": "direct",
4194 "direct": "write",
4195 "workspace_role": null
4196 },
4197 "notes": "Changes a direct role, or the role of the person's pending invitation. `404` when they have neither: an owner's Admin and a member's base permission are not changed here. Changing a direct role sends the `repo.collaborator_role_changed` webhook event. See [Access and roles](/guides/access-and-roles/)."
4198 },
4199 "remove_collaborator": {
4200 "params": {
4201 "owner": "flagon-io",
4202 "name": "hello",
4203 "username": "ada"
4204 },
4205 "response": true,
4206 "notes": "Takes away a direct role. Anyone may remove their own, to leave a repository. `404` when the person has no role of their own on it. A member keeps the workspace's base permission. Sends the `repo.collaborator_removed` webhook event. See [Access and roles](/guides/access-and-roles/)."
4207 },
4208 "get_collaborator_permission": {
4209 "params": {
4210 "owner": "flagon-io",
4211 "name": "hello",
4212 "username": "ada"
4213 },
4214 "response": {
4215 "username": "ada",
4216 "role": "triage",
4217 "source": "direct",
4218 "capabilities": [
4219 "read",
4220 "participate",
4221 "triage"
4222 ]
4223 },
4224 "notes": "`capabilities` lists what the role allows, in the table's order: `read`, `participate`, `triage`, `push`, `merge`, `run`, `manage_settings`, `manage_protection`, `manage_integrations`, `manage_access`, `administer` and `delete` (which also takes an owner of the workspace). `role` and `source` are null, and `capabilities` empty, for someone with no role. Refused with `403` below the Write role, unless you ask about yourself. See [Access and roles](/guides/access-and-roles/)."
4225 },
4226 "list_repo_invitations": {
4227 "response": [
4228 {
4229 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p",
4230 "repo": "flagon-io/hello",
4231 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4232 "invitee": "alan",
4233 "email": null,
4234 "role": "write",
4235 "invited_by": "syntaqx",
4236 "inviter_avatar": null,
4237 "status": "pending",
4238 "created_at": "2026-10-05T17:00:00.000Z",
4239 "expires_at": "2026-10-12T17:00:00.000Z"
4240 },
4241 {
4242 "id": "rin_01kp3d7e8f9g0h1j2k3m4n5p6q",
4243 "repo": "flagon-io/hello",
4244 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4245 "invitee": null,
4246 "email": "joan@example.com",
4247 "role": "read",
4248 "invited_by": "syntaqx",
4249 "inviter_avatar": null,
4250 "status": "pending",
4251 "created_at": "2026-10-05T17:00:00.000Z",
4252 "expires_at": "2026-10-12T17:00:00.000Z"
4253 }
4254 ],
4255 "notes": "Pending invitations only, newest first. `email` is set for an invitation sent to an address that had no account. Refused with `403` without the Admin role. See [Access and roles](/guides/access-and-roles/)."
4256 },
4257 "revoke_repo_invitation": {
4258 "params": {
4259 "owner": "flagon-io",
4260 "name": "hello",
4261 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p"
4262 },
4263 "response": {
4264 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p",
4265 "repo": "flagon-io/hello",
4266 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4267 "invitee": "alan",
4268 "email": null,
4269 "role": "write",
4270 "invited_by": "syntaqx",
4271 "inviter_avatar": null,
4272 "status": "revoked",
4273 "created_at": "2026-10-05T17:00:00.000Z",
4274 "expires_at": "2026-10-12T17:00:00.000Z"
4275 },
4276 "notes": "`404` when there is no pending invitation with that id on this repository."
4277 },
4278 "list_my_repo_invitations": {
4279 "response": [
4280 {
4281 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
4282 "repo": "flagon-io/hello",
4283 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4284 "invitee": "ada",
4285 "email": null,
4286 "role": "triage",
4287 "invited_by": "syntaqx",
4288 "inviter_avatar": null,
4289 "status": "pending",
4290 "created_at": "2026-10-05T17:00:00.000Z",
4291 "expires_at": "2026-10-12T17:00:00.000Z"
4292 }
4293 ],
4294 "notes": "Invitations sent to your username, and to any of your confirmed addresses before you had an account, newest first. Accept one with `PATCH /user/repository_invitations/{id}`, or decline it with `DELETE`. Expired and answered ones are left out."
4295 },
4296 "accept_repo_invitation": {
4297 "params": {
4298 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r"
4299 },
4300 "response": {
4301 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
4302 "repo": "flagon-io/hello",
4303 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4304 "invitee": "ada",
4305 "email": null,
4306 "role": "triage",
4307 "invited_by": "syntaqx",
4308 "inviter_avatar": null,
4309 "status": "accepted",
4310 "created_at": "2026-10-05T17:00:00.000Z",
4311 "expires_at": "2026-10-12T17:00:00.000Z"
4312 },
4313 "notes": "The role is yours at once. `404` when you have no pending invitation with that id (it may have expired or been revoked), and `403` when your account does not meet what the workspace asks of everyone with access, such as two-factor authentication, with a message that says what to turn on. See [Access and roles](/guides/access-and-roles/)."
4314 },
4315 "decline_repo_invitation": {
4316 "params": {
4317 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r"
4318 },
4319 "response": {
4320 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
4321 "repo": "flagon-io/hello",
4322 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4323 "invitee": "ada",
4324 "email": null,
4325 "role": "triage",
4326 "invited_by": "syntaqx",
4327 "inviter_avatar": null,
4328 "status": "declined",
4329 "created_at": "2026-10-05T17:00:00.000Z",
4330 "expires_at": "2026-10-12T17:00:00.000Z"
4331 },
4332 "notes": "`404` when you have no pending invitation with that id."
4333 },
4334 "set_base_permission": {
4335 "params": {
4336 "workspace": "flagon-io"
4337 },
4338 "request": {
4339 "base_permission": "read"
4340 },
4341 "response": {
4342 "workspace": "flagon-io",
4343 "base_permission": "read"
4344 },
4345 "notes": "`base_permission` is `none`, `read`, `write` (the default) or `admin`. Owners keep Admin, and a role given on a repository directly still counts where it is higher. Refused with `403` for anyone but an owner signed in as a person. See [Access and roles](/guides/access-and-roles/)."
4346 },
4347 "list_outside_collaborators": {
4348 "params": {
4349 "workspace": "flagon-io"
4350 },
4351 "response": [
4352 {
4353 "username": "ada",
4354 "name": "Ada Lovelace",
4355 "avatar": null,
4356 "repos": [
4357 {
4358 "repo": "flagon-io/docs",
4359 "role": "write"
4360 },
4361 {
4362 "repo": "flagon-io/hello",
4363 "role": "triage"
4364 }
4365 ]
4366 }
4367 ],
4368 "notes": "By username, each with the repositories they have a role on. Refused with `403` for anyone but an owner. See [Access and roles](/guides/access-and-roles/)."
Git storage hardened, pages in tens of milliseconds, honest security alerts, and costs reconciled daily4369 },
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar4370 "list_teams": {
4371 "params": {
4372 "workspace": "flagon-io"
4373 },
4374 "query": {
4375 "q": "back"
4376 },
4377 "response": [
4378 {
4379 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
4380 "workspace": "flagon-io",
4381 "slug": "backend",
4382 "name": "Backend",
4383 "description": "The API and the services behind it.",
4384 "visibility": "visible",
4385 "parent": {
4386 "slug": "engineering",
4387 "name": "Engineering"
4388 },
4389 "notify": true,
4390 "review_assignment": {
4391 "enabled": false,
4392 "algorithm": "round_robin",
4393 "count": 1,
4394 "skip_busy": false,
4395 "busy_at": 5,
4396 "include_child_teams": false,
4397 "excluded": [],
4398 "notify_team": false
4399 },
4400 "members_count": 4,
4401 "repos_count": 2,
4402 "child_teams_count": 1,
4403 "viewer_role": "maintainer",
4404 "can_manage": true,
4405 "created_at": "2026-10-06T15:02:11.480Z",
4406 "updated_at": "2026-10-06T15:02:11.480Z"
4407 }
4408 ],
4409 "notes": "Teams you are in come first, then the rest by name. A secret team is listed only for its own people and the workspace's owners. `review_assignment` is what happens when the team is asked to review: see [`set_team_review_assignment`](/reference/api/teams/set-team-review-assignment/). `403` for anyone who is not a member of the workspace. See [Teams](/guides/teams/)."
4410 },
4411 "create_team": {
4412 "params": {
4413 "workspace": "flagon-io"
4414 },
4415 "request": {
4416 "name": "Backend",
4417 "description": "The API and the services behind it.",
4418 "visibility": "visible",
4419 "parent": "engineering",
4420 "members": [
4421 "ana"
4422 ]
4423 },
4424 "response": {
4425 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
4426 "workspace": "flagon-io",
4427 "slug": "backend",
4428 "name": "Backend",
4429 "description": "The API and the services behind it.",
4430 "visibility": "visible",
4431 "parent": {
4432 "slug": "engineering",
4433 "name": "Engineering"
4434 },
4435 "notify": true,
4436 "review_assignment": {
4437 "enabled": false,
4438 "algorithm": "round_robin",
4439 "count": 1,
4440 "skip_busy": false,
4441 "busy_at": 5,
4442 "include_child_teams": false,
4443 "excluded": [],
4444 "notify_team": false
4445 },
4446 "members_count": 2,
4447 "repos_count": 0,
4448 "child_teams_count": 0,
4449 "viewer_role": "maintainer",
4450 "can_manage": true,
4451 "created_at": "2026-10-06T15:02:11.480Z",
4452 "updated_at": "2026-10-06T15:02:11.480Z"
4453 },
4454 "notes": "You become the team's maintainer. `slug` is made from `name` when left out (`Web & Mobile` becomes `web-mobile`), and `409` says one is taken. A workspace has at most 500 teams, nested at most 8 deep; `name` is at most 80 characters and `description` 280. A `secret` team cannot have a parent or child teams. Refused with `403` for an agent's or a workspace's token. See [Teams](/guides/teams/)."
4455 },
4456 "get_team": {
4457 "params": {
4458 "workspace": "flagon-io",
4459 "team": "backend"
4460 },
4461 "response": {
4462 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
4463 "workspace": "flagon-io",
4464 "slug": "backend",
4465 "name": "Backend",
4466 "description": "The API and the services behind it.",
4467 "visibility": "visible",
4468 "parent": {
4469 "slug": "engineering",
4470 "name": "Engineering"
4471 },
4472 "notify": true,
4473 "review_assignment": {
4474 "enabled": false,
4475 "algorithm": "round_robin",
4476 "count": 1,
4477 "skip_busy": false,
4478 "busy_at": 5,
4479 "include_child_teams": false,
4480 "excluded": [],
4481 "notify_team": false
4482 },
4483 "members_count": 4,
4484 "repos_count": 2,
4485 "child_teams_count": 1,
4486 "viewer_role": "maintainer",
4487 "can_manage": true,
4488 "created_at": "2026-10-06T15:02:11.480Z",
4489 "updated_at": "2026-10-06T15:02:11.480Z"
4490 },
4491 "notes": "`404` for a team that does not exist, or a secret one you are not in, unless you are an owner."
4492 },
4493 "update_team": {
4494 "params": {
4495 "workspace": "flagon-io",
4496 "team": "backend"
4497 },
4498 "request": {
4499 "description": "The API, the services behind it, and their on-call.",
4500 "visibility": "secret",
4501 "parent": ""
4502 },
4503 "response": {
4504 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
4505 "workspace": "flagon-io",
4506 "slug": "backend",
4507 "name": "Backend",
4508 "description": "The API, the services behind it, and their on-call.",
4509 "visibility": "secret",
4510 "parent": null,
4511 "notify": true,
4512 "review_assignment": {
4513 "enabled": false,
4514 "algorithm": "round_robin",
4515 "count": 1,
4516 "skip_busy": false,
4517 "busy_at": 5,
4518 "include_child_teams": false,
4519 "excluded": [],
4520 "notify_team": false
4521 },
4522 "members_count": 4,
4523 "repos_count": 2,
4524 "child_teams_count": 1,
4525 "viewer_role": "maintainer",
4526 "can_manage": true,
4527 "created_at": "2026-10-06T15:02:11.480Z",
4528 "updated_at": "2026-10-07T09:41:52.006Z"
4529 },
4530 "notes": "Only the fields given change. `parent` set to `\"\"` takes the team out from under its parent; a team cannot be nested under itself or one of its own child teams. A new `slug` changes how it is mentioned: `@flagon-io/backend` no longer reaches it. `review_assignment` takes the fields [`set_team_review_assignment`](/reference/api/teams/set-team-review-assignment/) does. Owners of the workspace and the team's maintainers (`403` otherwise)."
4531 },
4532 "delete_team": {
4533 "params": {
4534 "workspace": "flagon-io",
4535 "team": "backend"
4536 },
4537 "response": true,
4538 "notes": "Its child teams move up to its parent, or to the top when it has none. The roles it gave on repositories are taken away, and it is no longer asked to review. Owners of the workspace and the team's maintainers (`403` otherwise)."
4539 },
4540 "list_team_members": {
4541 "params": {
4542 "workspace": "flagon-io",
4543 "team": "backend"
4544 },
4545 "query": {
4546 "include_child_teams": "true"
4547 },
4548 "response": [
4549 {
4550 "username": "syntaqx",
4551 "name": "Chase Pierce",
4552 "avatar": null,
4553 "role": "maintainer",
4554 "via": null
4555 },
4556 {
4557 "username": "ana",
4558 "name": "Ana Lima",
4559 "avatar": null,
4560 "role": "member",
4561 "via": null
4562 },
4563 {
4564 "username": "bo",
4565 "name": null,
4566 "avatar": null,
4567 "role": "member",
4568 "via": "payments"
4569 }
4570 ],
4571 "notes": "Maintainers come first, then members, each by username. With `include_child_teams`, the people of its child teams (and theirs) follow, each with `via`, the child team they are in; someone in both is listed once, as the team's own."
4572 },
4573 "set_team_member": {
4574 "params": {
4575 "workspace": "flagon-io",
4576 "team": "backend",
4577 "username": "ana"
4578 },
4579 "request": {
4580 "role": "maintainer"
4581 },
4582 "response": {
4583 "username": "ana",
4584 "name": "Ana Lima",
4585 "avatar": null,
4586 "role": "maintainer",
4587 "via": null
4588 },
4589 "notes": "`role` is `member` (the default) or `maintainer`. `422` when they are not a member of the workspace: add them to it first. Owners of the workspace and the team's maintainers (`403` otherwise)."
4590 },
4591 "remove_team_member": {
4592 "params": {
4593 "workspace": "flagon-io",
4594 "team": "backend",
4595 "username": "ana"
4596 },
4597 "response": true,
4598 "notes": "Anyone may take themselves out of a team. Leaving the workspace takes a person out of all its teams."
4599 },
4600 "list_child_teams": {
4601 "params": {
4602 "workspace": "flagon-io",
4603 "team": "engineering"
4604 },
4605 "response": [
4606 {
4607 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
4608 "workspace": "flagon-io",
4609 "slug": "backend",
4610 "name": "Backend",
4611 "description": "The API and the services behind it.",
4612 "visibility": "visible",
4613 "parent": {
4614 "slug": "engineering",
4615 "name": "Engineering"
4616 },
4617 "notify": true,
4618 "review_assignment": {
4619 "enabled": false,
4620 "algorithm": "round_robin",
4621 "count": 1,
4622 "skip_busy": false,
4623 "busy_at": 5,
4624 "include_child_teams": false,
4625 "excluded": [],
4626 "notify_team": false
4627 },
4628 "members_count": 4,
4629 "repos_count": 2,
4630 "child_teams_count": 0,
4631 "viewer_role": "maintainer",
4632 "can_manage": true,
4633 "created_at": "2026-10-06T15:02:11.480Z",
4634 "updated_at": "2026-10-06T15:02:11.480Z"
4635 }
4636 ],
4637 "notes": "Only the teams directly under it; read each one's own with this again. A child team inherits its parent's roles on repositories, and a mention or review request for the parent reaches its people too."
4638 },
4639 "list_team_repos": {
4640 "params": {
4641 "workspace": "flagon-io",
4642 "team": "backend"
4643 },
4644 "response": [
4645 {
4646 "repo": "flagon-io/hello",
4647 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4648 "role": "write",
4649 "inherited_from": null
4650 },
4651 {
4652 "repo": "flagon-io/docs",
4653 "repo_id": "rep_01m3m5r2a8c4e6g8j0m2p4r6t8",
4654 "role": "read",
4655 "inherited_from": "engineering"
4656 }
4657 ],
4658 "notes": "A role inherited from a parent team names it in `inherited_from`. Where the team has a role of its own on the same repository, the higher one is listed. Only repositories you can see are listed."
4659 },
4660 "set_team_repo": {
4661 "params": {
4662 "workspace": "flagon-io",
4663 "team": "backend",
4664 "repo": "hello"
4665 },
4666 "request": {
4667 "role": "maintain"
4668 },
4669 "response": {
4670 "repo": "flagon-io/hello",
4671 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4672 "role": "maintain",
4673 "inherited_from": null
4674 },
4675 "notes": "`repo` in the path is the repository's name in the team's workspace; a team has roles only on its own workspace's repositories. `role` is `read`, `triage`, `write`, `maintain` or `admin`. Everyone in the team and its child teams gets it; someone with a higher role otherwise keeps that. Needs the Admin role on the repository (`403` otherwise), and the `access:admin` scope. See [Access and roles](/guides/access-and-roles/)."
4676 },
4677 "remove_team_repo": {
4678 "params": {
4679 "workspace": "flagon-io",
4680 "team": "backend",
4681 "repo": "hello"
4682 },
4683 "response": true,
4684 "notes": "A role the team inherits from a parent is taken away on the parent. Needs the Admin role on the repository, or to be an owner or one of the team's maintainers."
4685 },
4686 "set_team_review_assignment": {
4687 "params": {
4688 "workspace": "flagon-io",
4689 "team": "backend"
4690 },
4691 "request": {
4692 "enabled": true,
4693 "algorithm": "load_balance",
4694 "count": 2,
4695 "skip_busy": true,
4696 "busy_at": 5,
4697 "excluded": [
4698 "syntaqx"
4699 ]
4700 },
4701 "response": {
4702 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
4703 "workspace": "flagon-io",
4704 "slug": "backend",
4705 "name": "Backend",
4706 "description": "The API and the services behind it.",
4707 "visibility": "visible",
4708 "parent": {
4709 "slug": "engineering",
4710 "name": "Engineering"
4711 },
4712 "notify": true,
4713 "review_assignment": {
4714 "enabled": true,
4715 "algorithm": "load_balance",
4716 "count": 2,
4717 "skip_busy": true,
4718 "busy_at": 5,
4719 "include_child_teams": false,
4720 "excluded": [
4721 "syntaqx"
4722 ],
4723 "notify_team": false
4724 },
4725 "members_count": 4,
4726 "repos_count": 2,
4727 "child_teams_count": 1,
4728 "viewer_role": "maintainer",
4729 "can_manage": true,
4730 "created_at": "2026-10-06T15:02:11.480Z",
4731 "updated_at": "2026-10-07T09:44:03.512Z"
4732 },
4733 "notes": "| Field | |\n| --- | --- |\n| `enabled` | Off, everyone in the team is asked. On, `count` people are picked and asked, and the team stays shown as asked beside them. |\n| `algorithm` | `round_robin`: whoever this team asked least recently. `load_balance`: whoever has the fewest pull requests waiting on their review. |\n| `count` | How many to pick, 1 to 10. People from the team already asked count towards it. |\n| `skip_busy`, `busy_at` | Leave out anyone with `busy_at` (1 to 100) or more pull requests waiting on their review. |\n| `include_child_teams` | Also pick from its child teams' people. |\n| `excluded` | Usernames never picked. Replaces the whole list. |\n| `notify_team` | Also tell the rest of the team when people are picked. |\n\nFields left out keep their value. The pull request's author is never picked. See [Teams](/guides/teams/)."
4734 },
4735 "list_user_teams": {
4736 "params": {
4737 "workspace": "flagon-io",
4738 "username": "ana"
4739 },
4740 "response": [
4741 {
4742 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
4743 "workspace": "flagon-io",
4744 "slug": "backend",
4745 "name": "Backend",
4746 "description": "The API and the services behind it.",
4747 "visibility": "visible",
4748 "parent": {
4749 "slug": "engineering",
4750 "name": "Engineering"
4751 },
4752 "notify": true,
4753 "review_assignment": {
4754 "enabled": false,
4755 "algorithm": "round_robin",
4756 "count": 1,
4757 "skip_busy": false,
4758 "busy_at": 5,
4759 "include_child_teams": false,
4760 "excluded": [],
4761 "notify_team": false
4762 },
4763 "members_count": 4,
4764 "repos_count": 2,
4765 "child_teams_count": 1,
4766 "viewer_role": null,
4767 "can_manage": false,
4768 "created_at": "2026-10-06T15:02:11.480Z",
4769 "updated_at": "2026-10-06T15:02:11.480Z"
4770 }
4771 ],
4772 "notes": "Only the teams they are in themselves, not the parents those teams are under. Secret teams you are not in are left out unless you are an owner. `403` for anyone who is not a member of the workspace."
4773 },
Git storage hardened, pages in tens of milliseconds, honest security alerts, and costs reconciled daily4774 "list_security_alerts": {
4775 "params": {
4776 "owner": "flagon-io",
4777 "name": "hello"
4778 },
4779 "query": {
4780 "state": "open"
4781 },
4782 "response": [
4783 {
4784 "kind": "secret",
4785 "id": "sec_01kp4a7b2c3d4e5f6g7h8j9k0m",
4786 "state": "dismissed",
4787 "secret_type": "aws_access_key",
4788 "label": "an AWS access key",
4789 "path": "test/fixtures/aws.env",
4790 "line": 3,
4791 "commit": "9f2c1e04b7d3a8e6f5c2b1a0d9e8f7c6b5a4d3e2",
4792 "preview": "AKIA…MPLE",
4793 "status": "allowed",
4794 "source": "history",
4795 "test_value": "the documented example key",
4796 "found_by": null,
4797 "found_at": "2026-10-01T12:00:00.000Z",
4798 "dismissed_reason": "used_in_tests",
4799 "dismissed_comment": "Only in the test fixtures.",
4800 "dismissed_by": "syntaqx",
4801 "dismissed_at": "2026-10-02T09:15:00.000Z"
4802 },
4803 {
4804 "kind": "dependency",
4805 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
4806 "state": "open",
4807 "ecosystem": "npm",
4808 "package": "lodash",
4809 "version": "4.17.20",
4810 "manifest": "package-lock.json",
4811 "advisory": "GHSA-35jh-r3h4-6jhm",
4812 "osv_id": "GHSA-35jh-r3h4-6jhm",
4813 "summary": "Command Injection in lodash",
4814 "severity": "high",
4815 "fixed_version": "4.17.21",
4816 "fixed_at": null,
4817 "update": {
4818 "state": "open",
4819 "target": "4.17.21",
4820 "branch": "g1t/security/lodash-4.17.21",
4821 "pull": 42,
4822 "issue": null,
4823 "error": null,
4824 "updated_at": "2026-10-01T12:20:00.000Z"
4825 },
4826 "found_at": "2026-10-01T12:00:00.000Z",
4827 "dismissed_reason": null,
4828 "dismissed_comment": null,
4829 "dismissed_by": null,
4830 "dismissed_at": null
4831 }
4832 ],
4833 "notes": "Secrets come first, then dependencies. Fields only one kind has are left out of the other: a secret has `secret_type`, `label`, `path`, `line`, `commit`, `preview`, `status` (`open`, `blocked`, `allowed` or `resolved`), `source` (`push` or `history`), `test_value` and `found_by`; a dependency has `ecosystem`, `package`, `version`, `manifest`, `advisory`, `osv_id`, `summary`, `severity`, `fixed_version` (null when no patched version is available), `fixed_at` and `update`, the pull request g1t opens to upgrade it. `dismissed_reason`, `dismissed_comment`, `dismissed_by` and `dismissed_at` are null while an alert is open; a secret fixed by being revoked keeps them. `422` for a `state` or `kind` it does not know, and `404` for anyone without the Write role. See [Security](/guides/security/)."
4834 },
4835 "dismiss_security_alert": {
4836 "params": {
4837 "owner": "flagon-io",
4838 "name": "hello",
4839 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n"
4840 },
4841 "request": {
4842 "reason": "tolerable_risk",
4843 "comment": "Only the build uses it, on trusted input."
4844 },
4845 "response": {
4846 "kind": "dependency",
4847 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
4848 "state": "dismissed",
4849 "ecosystem": "npm",
4850 "package": "lodash",
4851 "version": "4.17.20",
4852 "manifest": "package-lock.json",
4853 "advisory": "GHSA-35jh-r3h4-6jhm",
4854 "osv_id": "GHSA-35jh-r3h4-6jhm",
4855 "summary": "Command Injection in lodash",
4856 "severity": "high",
4857 "fixed_version": "4.17.21",
4858 "fixed_at": null,
4859 "update": {
4860 "state": "open",
4861 "target": "4.17.21",
4862 "branch": "g1t/security/lodash-4.17.21",
4863 "pull": 42,
4864 "issue": null,
4865 "error": null,
4866 "updated_at": "2026-10-01T12:20:00.000Z"
4867 },
4868 "found_at": "2026-10-01T12:00:00.000Z",
4869 "dismissed_reason": "tolerable_risk",
4870 "dismissed_comment": "Only the build uses it, on trusted input.",
4871 "dismissed_by": "syntaqx",
4872 "dismissed_at": "2026-10-06T10:00:00.000Z"
4873 },
4874 "notes": "| Kind | Reasons |\n| --- | --- |\n| `secret` | `false_positive`, `used_in_tests`, `revoked`, `wont_fix` |\n| `dependency` | `fix_started`, `no_bandwidth`, `tolerable_risk`, `inaccurate`, `not_used` |\n\nA reason for the other kind of alert, or one not in the table, is refused with `422`. A secret dismissed as `revoked` becomes `fixed`; with any other reason it becomes `dismissed` and pushes that carry it go through. Dismissing a secret needs the Admin role on the repository; a dependency needs the Write role. A token needs `repo:admin` for either, and a g1t agent’s token never dismisses alerts."
4875 },
4876 "reopen_security_alert": {
4877 "params": {
4878 "owner": "flagon-io",
4879 "name": "hello",
4880 "id": "sec_01kp4a7b2c3d4e5f6g7h8j9k0m"
4881 },
4882 "response": {
4883 "kind": "secret",
4884 "id": "sec_01kp4a7b2c3d4e5f6g7h8j9k0m",
4885 "state": "open",
4886 "secret_type": "aws_access_key",
4887 "label": "an AWS access key",
4888 "path": "test/fixtures/aws.env",
4889 "line": 3,
4890 "commit": "9f2c1e04b7d3a8e6f5c2b1a0d9e8f7c6b5a4d3e2",
4891 "preview": "AKIA…MPLE",
4892 "status": "open",
4893 "source": "history",
4894 "test_value": "the documented example key",
4895 "found_by": null,
4896 "found_at": "2026-10-01T12:00:00.000Z",
4897 "dismissed_reason": null,
4898 "dismissed_comment": null,
4899 "dismissed_by": null,
4900 "dismissed_at": null
4901 },
4902 "notes": "The alert is `open` again, and a reopened secret stops pushes that carry it. The same roles as dismissing: Admin for a secret, Write for a dependency."
API: notifications over REST and MCP, with notifications scopes4903 },
4904 "list_notifications": {
4905 "query": {
4906 "participating": "true"
4907 },
4908 "response": {
4909 "items": [
4910 {
4911 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
4912 "reason": "review_requested",
4913 "severity": "warning",
4914 "title": "ada asked you to review flagon-io/hello#14",
4915 "body": "Add a greeting to the README",
4916 "event": "pull.review_requested",
4917 "repo": "flagon-io/hello",
4918 "workspace": "flagon-io",
4919 "subject": "pull",
4920 "number": 14,
4921 "url": "/flagon-io/hello/pull/14",
4922 "actor": "ada",
4923 "count": 3,
4924 "created_at": "2026-10-06T15:02:11.000Z",
4925 "updated_at": "2026-10-07T09:41:30.000Z",
4926 "read_at": null,
4927 "done_at": null,
4928 "saved": false,
4929 "snoozed_until": null
4930 },
4931 {
4932 "id": "ntf_01kp7k9a8b7c6d5e4f3g2h1j0k",
4933 "reason": "ci_activity",
4934 "severity": "error",
4935 "title": "Production of hello failed to deploy",
4936 "body": "The build failed: npm run build exited with 1.",
4937 "event": "deployment.failed",
4938 "repo": "flagon-io/hello",
4939 "workspace": "flagon-io",
4940 "subject": "deploy",
4941 "number": null,
4942 "url": "/flagon-io/hello/deployments/dpl_01kp7k8z7y6x5w4v3t2s1r0q9p",
4943 "actor": "syntaqx",
4944 "count": 1,
4945 "created_at": "2026-10-07T08:12:40.000Z",
4946 "updated_at": "2026-10-07T08:12:40.000Z",
4947 "read_at": null,
4948 "done_at": null,
4949 "saved": false,
4950 "snoozed_until": null
4951 }
4952 ],
4953 "next": null
4954 },
4955 "notes": "Unread threads only, unless `all=true`. Threads that wait on you (an agent, or a review asked of you) have severity `warning`.\n\n| `reason` | You were told because |\n| --- | --- |\n| `agent` | An agent is waiting on you: it asked a question, or g1t stopped until a person steps in |\n| `review_requested` | You were asked to review |\n| `assign` | You were assigned |\n| `mention` | Someone mentioned you by `@username` |\n| `ci_activity` | Checks, a workflow or a deployment on your work finished |\n| `security_alert` | A security alert on a repository you look after |\n| `state_change` | It was closed, reopened or merged |\n| `author` | You opened it, or asked g1t for it |\n| `comment` | You commented on it |\n| `manual` | You subscribed to it by hand |\n| `subscribed` | You watch its repository |\n\nWith `participating=true`, threads you only follow (`manual`, `subscribed`) are left out. For the next page, pass `next` as `cursor`; `next` is null on the last."
4956 },
4957 "list_repo_notifications": {
4958 "params": {
4959 "owner": "flagon-io",
4960 "name": "hello"
4961 },
4962 "query": {
4963 "all": "true"
4964 },
4965 "response": {
4966 "items": [
4967 {
4968 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
4969 "reason": "review_requested",
4970 "severity": "warning",
4971 "title": "ada asked you to review flagon-io/hello#14",
4972 "body": "Add a greeting to the README",
4973 "event": "pull.review_requested",
4974 "repo": "flagon-io/hello",
4975 "workspace": "flagon-io",
4976 "subject": "pull",
4977 "number": 14,
4978 "url": "/flagon-io/hello/pull/14",
4979 "actor": "ada",
4980 "count": 3,
4981 "created_at": "2026-10-06T15:02:11.000Z",
4982 "updated_at": "2026-10-07T09:41:30.000Z",
4983 "read_at": "2026-10-07T09:50:00.000Z",
4984 "done_at": null,
4985 "saved": false,
4986 "snoozed_until": null
4987 },
4988 {
4989 "id": "ntf_01kp7k9a8b7c6d5e4f3g2h1j0k",
4990 "reason": "ci_activity",
4991 "severity": "error",
4992 "title": "Production of hello failed to deploy",
4993 "body": "The build failed: npm run build exited with 1.",
4994 "event": "deployment.failed",
4995 "repo": "flagon-io/hello",
4996 "workspace": "flagon-io",
4997 "subject": "deploy",
4998 "number": null,
4999 "url": "/flagon-io/hello/deployments/dpl_01kp7k8z7y6x5w4v3t2s1r0q9p",
5000 "actor": "syntaqx",
5001 "count": 1,
5002 "created_at": "2026-10-07T08:12:40.000Z",
5003 "updated_at": "2026-10-07T08:12:40.000Z",
5004 "read_at": null,
5005 "done_at": null,
5006 "saved": false,
5007 "snoozed_until": null
5008 }
5009 ],
5010 "next": "ntf_01kp7k9a8b7c6d5e4f3g2h1j0k"
5011 },
5012 "notes": "The same as `GET /notifications`, for one repository you can read."
5013 },
5014 "mark_notifications_read": {
5015 "request": {
5016 "last_read_at": "2026-10-07T10:00:00Z"
5017 },
5018 "response": {
5019 "marked": 12,
5020 "last_read_at": "2026-10-07T10:00:00.000Z"
5021 },
5022 "notes": "Threads with activity after `last_read_at` stay unread, so send the time you last listed them."
5023 },
5024 "mark_repo_notifications_read": {
5025 "params": {
5026 "owner": "flagon-io",
5027 "name": "hello"
5028 },
5029 "request": {},
5030 "response": {
5031 "marked": 3,
5032 "last_read_at": "2026-10-07T10:02:41.512Z"
5033 }
5034 },
5035 "get_notification_thread": {
5036 "params": {
5037 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5038 },
5039 "response": {
5040 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5041 "reason": "review_requested",
5042 "severity": "warning",
5043 "title": "ada asked you to review flagon-io/hello#14",
5044 "body": "Add a greeting to the README",
5045 "event": "pull.review_requested",
5046 "repo": "flagon-io/hello",
5047 "workspace": "flagon-io",
5048 "subject": "pull",
5049 "number": 14,
5050 "url": "/flagon-io/hello/pull/14",
5051 "actor": "ada",
5052 "count": 3,
5053 "created_at": "2026-10-06T15:02:11.000Z",
5054 "updated_at": "2026-10-07T09:41:30.000Z",
5055 "read_at": null,
5056 "done_at": null,
5057 "saved": false,
5058 "snoozed_until": null,
5059 "activity": [
5060 {
5061 "reason": "review_requested",
5062 "severity": "warning",
5063 "title": "ada asked you to review flagon-io/hello#14",
5064 "body": "Add a greeting to the README",
5065 "event": "pull.review_requested",
5066 "actor": "ada",
5067 "created_at": "2026-10-07T09:41:30.000Z"
5068 },
5069 {
5070 "reason": "comment",
5071 "severity": "info",
5072 "title": "ada commented on flagon-io/hello#14",
5073 "body": "Pushed the fix for the heading.",
5074 "event": "comment.created",
5075 "actor": "ada",
5076 "created_at": "2026-10-06T18:20:02.000Z"
5077 },
5078 {
5079 "reason": "comment",
5080 "severity": "info",
5081 "title": "g1t commented on flagon-io/hello#14",
5082 "body": "The heading level is off by one.",
5083 "event": "comment.created",
5084 "actor": "g1t",
5085 "created_at": "2026-10-06T15:02:11.000Z"
5086 }
5087 ],
5088 "subscription": {
5089 "subscribed": true,
5090 "ignored": false,
5091 "reason": "review_requested",
5092 "repo": "flagon-io/hello",
5093 "number": 14,
5094 "updated_at": null
5095 }
5096 },
5097 "notes": "`activity` keeps the last 10 things that happened on the thread, newest first; `count` is how many there have been. `subscription` is null for a workflow or a deployment, which nobody subscribes to."
5098 },
5099 "mark_thread_read": {
5100 "params": {
5101 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5102 },
5103 "request": {},
5104 "response": {
5105 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5106 "reason": "review_requested",
5107 "severity": "warning",
5108 "title": "ada asked you to review flagon-io/hello#14",
5109 "body": "Add a greeting to the README",
5110 "event": "pull.review_requested",
5111 "repo": "flagon-io/hello",
5112 "workspace": "flagon-io",
5113 "subject": "pull",
5114 "number": 14,
5115 "url": "/flagon-io/hello/pull/14",
5116 "actor": "ada",
5117 "count": 3,
5118 "created_at": "2026-10-06T15:02:11.000Z",
5119 "updated_at": "2026-10-07T09:41:30.000Z",
5120 "read_at": "2026-10-07T10:03:00.000Z",
5121 "done_at": null,
5122 "saved": false,
5123 "snoozed_until": null,
5124 "activity": [
5125 {
5126 "reason": "review_requested",
5127 "severity": "warning",
5128 "title": "ada asked you to review flagon-io/hello#14",
5129 "body": "Add a greeting to the README",
5130 "event": "pull.review_requested",
5131 "actor": "ada",
5132 "created_at": "2026-10-07T09:41:30.000Z"
5133 },
5134 {
5135 "reason": "comment",
5136 "severity": "info",
5137 "title": "ada commented on flagon-io/hello#14",
5138 "body": "Pushed the fix for the heading.",
5139 "event": "comment.created",
5140 "actor": "ada",
5141 "created_at": "2026-10-06T18:20:02.000Z"
5142 },
5143 {
5144 "reason": "comment",
5145 "severity": "info",
5146 "title": "g1t commented on flagon-io/hello#14",
5147 "body": "The heading level is off by one.",
5148 "event": "comment.created",
5149 "actor": "g1t",
5150 "created_at": "2026-10-06T15:02:11.000Z"
5151 }
5152 ],
5153 "subscription": {
5154 "subscribed": true,
5155 "ignored": false,
5156 "reason": "review_requested",
5157 "repo": "flagon-io/hello",
5158 "number": 14,
5159 "updated_at": null
5160 }
5161 }
5162 },
5163 "mark_thread_done": {
5164 "params": {
5165 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5166 },
5167 "response": {
5168 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5169 "reason": "review_requested",
5170 "severity": "warning",
5171 "title": "ada asked you to review flagon-io/hello#14",
5172 "body": "Add a greeting to the README",
5173 "event": "pull.review_requested",
5174 "repo": "flagon-io/hello",
5175 "workspace": "flagon-io",
5176 "subject": "pull",
5177 "number": 14,
5178 "url": "/flagon-io/hello/pull/14",
5179 "actor": "ada",
5180 "count": 3,
5181 "created_at": "2026-10-06T15:02:11.000Z",
5182 "updated_at": "2026-10-07T09:41:30.000Z",
5183 "read_at": "2026-10-07T10:03:00.000Z",
5184 "done_at": "2026-10-07T10:03:00.000Z",
5185 "saved": false,
5186 "snoozed_until": null,
5187 "activity": [
5188 {
5189 "reason": "review_requested",
5190 "severity": "warning",
5191 "title": "ada asked you to review flagon-io/hello#14",
5192 "body": "Add a greeting to the README",
5193 "event": "pull.review_requested",
5194 "actor": "ada",
5195 "created_at": "2026-10-07T09:41:30.000Z"
5196 },
5197 {
5198 "reason": "comment",
5199 "severity": "info",
5200 "title": "ada commented on flagon-io/hello#14",
5201 "body": "Pushed the fix for the heading.",
5202 "event": "comment.created",
5203 "actor": "ada",
5204 "created_at": "2026-10-06T18:20:02.000Z"
5205 },
5206 {
5207 "reason": "comment",
5208 "severity": "info",
5209 "title": "g1t commented on flagon-io/hello#14",
5210 "body": "The heading level is off by one.",
5211 "event": "comment.created",
5212 "actor": "g1t",
5213 "created_at": "2026-10-06T15:02:11.000Z"
5214 }
5215 ],
5216 "subscription": {
5217 "subscribed": true,
5218 "ignored": false,
5219 "reason": "review_requested",
5220 "repo": "flagon-io/hello",
5221 "number": 14,
5222 "updated_at": null
5223 }
5224 },
5225 "notes": "New activity on a done thread brings it back to the inbox, unread."
5226 },
5227 "save_thread": {
5228 "params": {
5229 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5230 },
5231 "request": {},
5232 "response": {
5233 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5234 "reason": "review_requested",
5235 "severity": "warning",
5236 "title": "ada asked you to review flagon-io/hello#14",
5237 "body": "Add a greeting to the README",
5238 "event": "pull.review_requested",
5239 "repo": "flagon-io/hello",
5240 "workspace": "flagon-io",
5241 "subject": "pull",
5242 "number": 14,
5243 "url": "/flagon-io/hello/pull/14",
5244 "actor": "ada",
5245 "count": 3,
5246 "created_at": "2026-10-06T15:02:11.000Z",
5247 "updated_at": "2026-10-07T09:41:30.000Z",
5248 "read_at": null,
5249 "done_at": null,
5250 "saved": true,
5251 "snoozed_until": null,
5252 "activity": [
5253 {
5254 "reason": "review_requested",
5255 "severity": "warning",
5256 "title": "ada asked you to review flagon-io/hello#14",
5257 "body": "Add a greeting to the README",
5258 "event": "pull.review_requested",
5259 "actor": "ada",
5260 "created_at": "2026-10-07T09:41:30.000Z"
5261 },
5262 {
5263 "reason": "comment",
5264 "severity": "info",
5265 "title": "ada commented on flagon-io/hello#14",
5266 "body": "Pushed the fix for the heading.",
5267 "event": "comment.created",
5268 "actor": "ada",
5269 "created_at": "2026-10-06T18:20:02.000Z"
5270 },
5271 {
5272 "reason": "comment",
5273 "severity": "info",
5274 "title": "g1t commented on flagon-io/hello#14",
5275 "body": "The heading level is off by one.",
5276 "event": "comment.created",
5277 "actor": "g1t",
5278 "created_at": "2026-10-06T15:02:11.000Z"
5279 }
5280 ],
5281 "subscription": {
5282 "subscribed": true,
5283 "ignored": false,
5284 "reason": "review_requested",
5285 "repo": "flagon-io/hello",
5286 "number": 14,
5287 "updated_at": null
5288 }
5289 }
5290 },
5291 "unsave_thread": {
5292 "params": {
5293 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5294 },
5295 "response": {
5296 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5297 "reason": "review_requested",
5298 "severity": "warning",
5299 "title": "ada asked you to review flagon-io/hello#14",
5300 "body": "Add a greeting to the README",
5301 "event": "pull.review_requested",
5302 "repo": "flagon-io/hello",
5303 "workspace": "flagon-io",
5304 "subject": "pull",
5305 "number": 14,
5306 "url": "/flagon-io/hello/pull/14",
5307 "actor": "ada",
5308 "count": 3,
5309 "created_at": "2026-10-06T15:02:11.000Z",
5310 "updated_at": "2026-10-07T09:41:30.000Z",
5311 "read_at": null,
5312 "done_at": null,
5313 "saved": false,
5314 "snoozed_until": null,
5315 "activity": [
5316 {
5317 "reason": "review_requested",
5318 "severity": "warning",
5319 "title": "ada asked you to review flagon-io/hello#14",
5320 "body": "Add a greeting to the README",
5321 "event": "pull.review_requested",
5322 "actor": "ada",
5323 "created_at": "2026-10-07T09:41:30.000Z"
5324 },
5325 {
5326 "reason": "comment",
5327 "severity": "info",
5328 "title": "ada commented on flagon-io/hello#14",
5329 "body": "Pushed the fix for the heading.",
5330 "event": "comment.created",
5331 "actor": "ada",
5332 "created_at": "2026-10-06T18:20:02.000Z"
5333 },
5334 {
5335 "reason": "comment",
5336 "severity": "info",
5337 "title": "g1t commented on flagon-io/hello#14",
5338 "body": "The heading level is off by one.",
5339 "event": "comment.created",
5340 "actor": "g1t",
5341 "created_at": "2026-10-06T15:02:11.000Z"
5342 }
5343 ],
5344 "subscription": {
5345 "subscribed": true,
5346 "ignored": false,
5347 "reason": "review_requested",
5348 "repo": "flagon-io/hello",
5349 "number": 14,
5350 "updated_at": null
5351 }
5352 }
5353 },
5354 "snooze_thread": {
5355 "params": {
5356 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5357 },
5358 "request": {
5359 "until": "2026-10-08T09:00:00Z"
5360 },
5361 "response": {
5362 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5363 "reason": "review_requested",
5364 "severity": "warning",
5365 "title": "ada asked you to review flagon-io/hello#14",
5366 "body": "Add a greeting to the README",
5367 "event": "pull.review_requested",
5368 "repo": "flagon-io/hello",
5369 "workspace": "flagon-io",
5370 "subject": "pull",
5371 "number": 14,
5372 "url": "/flagon-io/hello/pull/14",
5373 "actor": "ada",
5374 "count": 3,
5375 "created_at": "2026-10-06T15:02:11.000Z",
5376 "updated_at": "2026-10-07T09:41:30.000Z",
5377 "read_at": "2026-10-07T10:03:00.000Z",
5378 "done_at": null,
5379 "saved": false,
5380 "snoozed_until": "2026-10-08T09:00:00.000Z",
5381 "activity": [
5382 {
5383 "reason": "review_requested",
5384 "severity": "warning",
5385 "title": "ada asked you to review flagon-io/hello#14",
5386 "body": "Add a greeting to the README",
5387 "event": "pull.review_requested",
5388 "actor": "ada",
5389 "created_at": "2026-10-07T09:41:30.000Z"
5390 },
5391 {
5392 "reason": "comment",
5393 "severity": "info",
5394 "title": "ada commented on flagon-io/hello#14",
5395 "body": "Pushed the fix for the heading.",
5396 "event": "comment.created",
5397 "actor": "ada",
5398 "created_at": "2026-10-06T18:20:02.000Z"
5399 },
5400 {
5401 "reason": "comment",
5402 "severity": "info",
5403 "title": "g1t commented on flagon-io/hello#14",
5404 "body": "The heading level is off by one.",
5405 "event": "comment.created",
5406 "actor": "g1t",
5407 "created_at": "2026-10-06T15:02:11.000Z"
5408 }
5409 ],
5410 "subscription": {
5411 "subscribed": true,
5412 "ignored": false,
5413 "reason": "review_requested",
5414 "repo": "flagon-io/hello",
5415 "number": 14,
5416 "updated_at": null
5417 }
5418 }
5419 },
5420 "unsnooze_thread": {
5421 "params": {
5422 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5423 },
5424 "response": {
5425 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5426 "reason": "review_requested",
5427 "severity": "warning",
5428 "title": "ada asked you to review flagon-io/hello#14",
5429 "body": "Add a greeting to the README",
5430 "event": "pull.review_requested",
5431 "repo": "flagon-io/hello",
5432 "workspace": "flagon-io",
5433 "subject": "pull",
5434 "number": 14,
5435 "url": "/flagon-io/hello/pull/14",
5436 "actor": "ada",
5437 "count": 3,
5438 "created_at": "2026-10-06T15:02:11.000Z",
5439 "updated_at": "2026-10-07T09:41:30.000Z",
5440 "read_at": "2026-10-07T10:03:00.000Z",
5441 "done_at": null,
5442 "saved": false,
5443 "snoozed_until": null,
5444 "activity": [
5445 {
5446 "reason": "review_requested",
5447 "severity": "warning",
5448 "title": "ada asked you to review flagon-io/hello#14",
5449 "body": "Add a greeting to the README",
5450 "event": "pull.review_requested",
5451 "actor": "ada",
5452 "created_at": "2026-10-07T09:41:30.000Z"
5453 },
5454 {
5455 "reason": "comment",
5456 "severity": "info",
5457 "title": "ada commented on flagon-io/hello#14",
5458 "body": "Pushed the fix for the heading.",
5459 "event": "comment.created",
5460 "actor": "ada",
5461 "created_at": "2026-10-06T18:20:02.000Z"
5462 },
5463 {
5464 "reason": "comment",
5465 "severity": "info",
5466 "title": "g1t commented on flagon-io/hello#14",
5467 "body": "The heading level is off by one.",
5468 "event": "comment.created",
5469 "actor": "g1t",
5470 "created_at": "2026-10-06T15:02:11.000Z"
5471 }
5472 ],
5473 "subscription": {
5474 "subscribed": true,
5475 "ignored": false,
5476 "reason": "review_requested",
5477 "repo": "flagon-io/hello",
5478 "number": 14,
5479 "updated_at": null
5480 }
5481 }
5482 },
5483 "get_thread_subscription": {
5484 "params": {
5485 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5486 },
5487 "response": {
5488 "subscribed": true,
5489 "ignored": false,
5490 "reason": "review_requested",
5491 "repo": "flagon-io/hello",
5492 "number": 14,
5493 "updated_at": null
5494 }
5495 },
5496 "set_thread_subscription": {
5497 "params": {
5498 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5499 },
5500 "request": {
5501 "ignored": true
5502 },
5503 "response": {
5504 "subscribed": false,
5505 "ignored": true,
5506 "reason": null,
5507 "repo": "flagon-io/hello",
5508 "number": 14,
5509 "updated_at": "2026-10-07T10:04:00.000Z"
5510 },
5511 "notes": "| Body | Then |\n| --- | --- |\n| `{}` or `{\"subscribed\": true}` | You hear of what happens on it |\n| `{\"subscribed\": false}` | You hear only of what is asked of you |\n| `{\"ignored\": true}` | You hear of nothing on it, not even a mention |"
5512 },
5513 "delete_thread_subscription": {
5514 "params": {
5515 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5516 },
5517 "response": {
5518 "subscribed": false,
5519 "ignored": false,
5520 "reason": null,
5521 "repo": "flagon-io/hello",
5522 "number": 14,
5523 "updated_at": "2026-10-07T10:04:00.000Z"
5524 }
5525 },
5526 "get_issue_subscription": {
5527 "params": {
5528 "owner": "flagon-io",
5529 "name": "hello",
5530 "number": 14
5531 },
5532 "response": {
5533 "subscribed": true,
5534 "ignored": false,
5535 "reason": "author",
5536 "repo": null,
5537 "number": 14,
5538 "updated_at": null
5539 }
5540 },
5541 "set_issue_subscription": {
5542 "params": {
5543 "owner": "flagon-io",
5544 "name": "hello",
5545 "number": 14
5546 },
5547 "request": {
5548 "subscribed": true
5549 },
5550 "response": {
5551 "subscribed": true,
5552 "ignored": false,
5553 "reason": "manual",
5554 "repo": null,
5555 "number": 14,
5556 "updated_at": "2026-10-07T10:05:00.000Z"
5557 }
5558 },
5559 "delete_issue_subscription": {
5560 "params": {
5561 "owner": "flagon-io",
5562 "name": "hello",
5563 "number": 14
5564 },
5565 "response": {
5566 "subscribed": false,
5567 "ignored": false,
5568 "reason": null,
5569 "repo": null,
5570 "number": 14,
5571 "updated_at": "2026-10-07T10:05:30.000Z"
5572 }
5573 },
5574 "get_repo_subscription": {
5575 "params": {
5576 "owner": "flagon-io",
5577 "name": "hello"
5578 },
5579 "response": {
5580 "repo": "flagon-io/hello",
5581 "level": "participating",
5582 "events": [],
5583 "subscribed": false,
5584 "ignored": false,
5585 "updated_at": null
5586 }
5587 },
5588 "set_repo_subscription": {
5589 "params": {
5590 "owner": "flagon-io",
5591 "name": "hello"
5592 },
5593 "request": {
5594 "level": "custom",
5595 "events": [
5596 "pulls",
5597 "deployments"
5598 ]
5599 },
5600 "response": {
5601 "repo": "flagon-io/hello",
5602 "level": "custom",
5603 "events": [
5604 "pulls",
5605 "deployments"
5606 ],
5607 "subscribed": true,
5608 "ignored": false,
5609 "updated_at": "2026-10-07T10:06:00.000Z"
5610 },
5611 "notes": "| `level` | You hear of |\n| --- | --- |\n| `participating` | What you take part in, or are mentioned in (the default) |\n| `all` | Every issue and pull request opened, commented on, closed or merged, and every deployment |\n| `custom` | What you take part in, and the kinds in `events`: `issues`, `pulls`, `deployments`, `security` |\n| `ignore` | Nothing, not even a mention |\n\nInstead of `level`, `{\"subscribed\": true}` is `all`, `{\"subscribed\": false}` is `participating` and `{\"ignored\": true}` is `ignore`."
5612 },
5613 "delete_repo_subscription": {
5614 "params": {
5615 "owner": "flagon-io",
5616 "name": "hello"
5617 },
5618 "response": {
5619 "repo": "flagon-io/hello",
5620 "level": "participating",
5621 "events": [],
5622 "subscribed": false,
5623 "ignored": false,
5624 "updated_at": null
5625 }
5626 },
5627 "list_watched_repos": {
5628 "response": [
5629 {
5630 "repo": "flagon-io/hello",
5631 "level": "all",
5632 "events": [],
5633 "subscribed": true,
5634 "ignored": false,
5635 "updated_at": "2026-10-07T10:00:00.000Z"
5636 },
5637 {
5638 "repo": "flagon-io/docs",
5639 "level": "ignore",
5640 "events": [],
5641 "subscribed": false,
5642 "ignored": true,
5643 "updated_at": "2026-10-05T14:30:00.000Z"
5644 }
5645 ]
API: pinned projects over REST and MCP5646 },
Usage, Billing settings and prepaid AI credit; fixes from the UX audit5647 "get_usage": {
5648 "params": {
5649 "workspace": "flagon-io"
5650 },
5651 "query": {
5652 "from": "2026-10-01",
5653 "until": "2026-10-07",
5654 "group_by": "project"
5655 },
5656 "response": {
5657 "from": "2026-10-01",
5658 "until": "2026-10-07",
5659 "totals": {
5660 "price_micros": 48210000,
5661 "discount_micros": 0,
5662 "included_micros": 20000000,
5663 "credits_micros": 18000000,
5664 "charged_micros": 10210000,
5665 "pending_micros": 1340000,
5666 "cost_micros": 40100000
5667 },
5668 "days": [
5669 {
5670 "day": "2026-10-06",
5671 "product": "agent",
5672 "micros": 12400000
5673 },
5674 {
5675 "day": "2026-10-06",
5676 "product": "sandboxes",
5677 "micros": 2100000
5678 },
5679 {
5680 "day": "2026-10-07",
5681 "product": "agent",
5682 "micros": 9800000
5683 }
5684 ],
5685 "products": [
5686 {
5687 "key": "agent",
5688 "label": "Agent",
5689 "micros": 41000000,
5690 "meters": [
5691 {
5692 "key": "agent_models",
5693 "label": "Models",
5694 "product": "agent",
5695 "unit": "tokens",
5696 "quantity": 9120000,
5697 "micros": 41000000,
5698 "pending_micros": 0,
5699 "daily": [
5700 3100000,
5701 5200000,
5702 4400000,
5703 6000000,
5704 0,
5705 12400000,
5706 9800000
5707 ],
5708 "allowance": null,
5709 "by_project": [
5710 {
5711 "project": "flagon-io/g1t",
5712 "micros": 36000000,
5713 "quantity": 8010000
5714 },
5715 {
5716 "project": "flagon-io/hello",
5717 "micros": 5000000,
5718 "quantity": 1110000
5719 }
5720 ]
5721 }
5722 ],
5723 "features": [
5724 {
5725 "key": "runs",
5726 "label": "Runs",
5727 "micros": 33000000,
5728 "count": 14
5729 },
5730 {
5731 "key": "reviews",
5732 "label": "Reviews",
5733 "micros": 8000000,
5734 "count": 9
5735 }
5736 ]
5737 },
5738 {
5739 "key": "sandboxes",
5740 "label": "Sandboxes",
5741 "micros": 7210000,
5742 "meters": [
5743 {
5744 "key": "sandbox",
5745 "label": "Sandbox time",
5746 "product": "sandboxes",
5747 "unit": "seconds",
5748 "quantity": 41300,
5749 "micros": 7210000,
5750 "pending_micros": 0,
5751 "daily": [
5752 900000,
5753 1200000,
5754 800000,
5755 1100000,
5756 0,
5757 2100000,
5758 1110000
5759 ],
5760 "allowance": {
5761 "used": 41300,
5762 "of": 108000,
5763 "unit": "seconds"
5764 },
5765 "by_project": [
5766 {
5767 "project": "flagon-io/g1t",
5768 "micros": 7210000,
5769 "quantity": 41300
5770 }
5771 ]
5772 }
5773 ],
5774 "features": []
5775 }
5776 ],
5777 "projects": [
5778 "flagon-io/g1t",
5779 "flagon-io/hello"
5780 ],
Merge branch 'model-routing'5781 "models": [
5782 {
5783 "model": "claude-sonnet-5-5",
5784 "input": 310000,
5785 "output": 420000,
5786 "cache_read": 7800000,
5787 "cache_write": 590000
5788 }
5789 ],
Usage, Billing settings and prepaid AI credit; fixes from the UX audit5790 "included": {
5791 "used": 20,
5792 "of": 20,
5793 "unit": "dollars"
5794 },
5795 "discount_percent": null,
5796 "ai_credit_micros": 62000000,
5797 "credit_micros": 0,
5798 "trial_micros": null,
5799 "plan": "pro",
5800 "free": false,
5801 "group_by": "project",
5802 "groups": [
5803 {
5804 "key": "flagon-io/g1t",
5805 "micros": 43210000
5806 },
5807 {
5808 "key": "flagon-io/hello",
5809 "micros": 5000000
5810 }
5811 ]
5812 },
5813 "notes": "Every product family is listed, in order, even with nothing used; this example shows two. `daily` has one amount for each day of the range, oldest first. `projects` and `products` take several values separated by commas: `?products=agent,sandboxes`. A range of more than 400 days, or one that ends before it starts, is refused with `invalid`."
5814 },
5815 "get_budget": {
5816 "params": {
5817 "workspace": "flagon-io"
5818 },
5819 "response": {
5820 "workspace": "flagon-io",
5821 "amount_micros": 500000000,
5822 "automatic": false,
5823 "spent_micros": 132450000,
5824 "max_amount_micros": 2000000000,
5825 "alerts": [
5826 50,
5827 75,
5828 90,
5829 100
5830 ],
5831 "pause_at_limit": true,
5832 "webhook": "https://ops.example.com/g1t/budget",
5833 "state": "ok",
5834 "message": null
5835 },
5836 "notes": "All amounts are whole millionths of a dollar: 500000000 is $500. `max_amount_micros` is null for g1t's own workspaces, which have no ceiling. When `state` is `stopped`, new sandboxes, builds and app requests wait until the limit is raised or the month closes."
5837 },
5838 "set_budget": {
5839 "params": {
5840 "workspace": "flagon-io"
5841 },
5842 "request": {
5843 "amount_micros": 500000000,
5844 "alerts": [
5845 50,
5846 75,
5847 90,
5848 100
5849 ],
5850 "webhook": "https://ops.example.com/g1t/budget"
5851 },
5852 "response": {
5853 "workspace": "flagon-io",
5854 "amount_micros": 500000000,
5855 "automatic": false,
5856 "spent_micros": 132450000,
5857 "max_amount_micros": 2000000000,
5858 "alerts": [
5859 50,
5860 75,
5861 90,
5862 100
5863 ],
5864 "pause_at_limit": true,
5865 "webhook": "https://ops.example.com/g1t/budget",
5866 "state": "ok",
5867 "message": null
5868 },
5869 "notes": "Fields left out keep their value. A limit above `max_amount_micros` is refused with `invalid`. Called by anyone but an owner signed in as a person, or by a workspace's own token or one of g1t's agents, it is refused with `forbidden`. Each alert is sent once a month, to the owners by email and, with `webhook`, as a JSON POST."
5870 },
5871 "get_ai_credit": {
5872 "params": {
5873 "workspace": "flagon-io"
5874 },
5875 "response": {
5876 "balance_micros": 62000000,
5877 "purchased_micros": 50000000,
5878 "given_micros": 12000000,
5879 "grants": [
5880 {
5881 "id": "crd_01kkr2m4c8f1t7qh3d6n9w5p0x",
5882 "workspace": "flagon-io",
5883 "kind": "purchase",
5884 "amount_micros": 50000000,
5885 "used_micros": 0,
5886 "left_micros": 50000000,
5887 "note": "AI credit bought",
5888 "refund_for": null,
5889 "refund_day": null,
5890 "expires_at": "2027-10-02T00:00:00.000Z",
5891 "created_by": "ana",
5892 "created_at": "2026-10-02T16:20:00.000Z",
5893 "state": "open",
5894 "closed_at": null,
5895 "closed_note": null,
5896 "closed_by": null
5897 }
5898 ],
5899 "free_via_discount": false,
5900 "postpaid": false,
5901 "blocked": false,
5902 "can_buy": true,
5903 "presets_cents": [
5904 2500,
5905 5000,
5906 10000,
5907 25000
5908 ],
5909 "min_cents": 1000,
5910 "max_cents": 100000,
5911 "card_fee": {
5912 "on": true,
5913 "percent_micros": 29000,
5914 "fixed_cents": 30
5915 },
5916 "reload": {
5917 "enabled": false,
5918 "threshold_micros": 10000000,
5919 "target_micros": 50000000,
5920 "monthly_max_micros": 200000000,
5921 "reloaded_micros": 0,
5922 "failed_at": null,
5923 "error": null
5924 },
5925 "agent_rate_micros": 3.6,
5926 "model_markup_percent": 10,
5927 "gateway_markup_percent": 5,
5928 "upgrade_credit_micros": 10000000,
5929 "expires_days": 365
5930 },
5931 "notes": "`card_fee.percent_micros` is per dollar charged, in millionths: 29000 is 2.9%. `blocked` is true when the credit has run out and new runs on g1t's models wait for more; runs on a model provider the workspace connected itself never need it."
5932 },
5933 "buy_ai_credit": {
5934 "params": {
5935 "workspace": "flagon-io"
5936 },
5937 "request": {
5938 "amount_cents": 5000
5939 },
5940 "response": {
5941 "url": "https://checkout.example.com/c/pay/cs_test_a1b2c3"
5942 },
5943 "notes": "Open `url` in a browser to pay. Nothing is charged until the payment is made there; the credit then shows in get_ai_credit. An amount outside `min_cents` to `max_cents`, or not in whole dollars, is refused with `invalid`; a workspace that cannot buy credit (see `can_buy`) gets `conflict` or `payment_required`."
5944 },
5945 "list_invoices": {
5946 "params": {
5947 "workspace": "flagon-io"
5948 },
5949 "response": {
5950 "invoices": [
5951 {
5952 "id": "in_1Q2w3E4r5T6y7U8i",
5953 "number": "FLAGON-0004",
5954 "status": "paid",
5955 "total_cents": 4210,
5956 "currency": "usd",
5957 "created_at": "2026-10-01T00:05:00.000Z",
5958 "description": "Usage for 2026-09",
5959 "hosted_url": "https://invoice.example.com/i/acct_1/in_1Q2w3E4r5T6y7U8i",
5960 "pdf_url": "https://invoice.example.com/i/acct_1/in_1Q2w3E4r5T6y7U8i/pdf"
5961 }
5962 ],
5963 "usage_invoices": [
5964 {
5965 "id": "inv_01kkqz8d3c6f9t2wq5n8h1m4r7",
5966 "workspace": "flagon-io",
5967 "reason": "month",
5968 "period": "2026-09",
5969 "amount_micros": 42100000,
5970 "status": "paid",
5971 "hosted_url": "https://invoice.example.com/i/acct_1/in_1Q2w3E4r5T6y7U8i",
5972 "pdf_url": "https://invoice.example.com/i/acct_1/in_1Q2w3E4r5T6y7U8i/pdf",
5973 "lines": [
5974 {
5975 "description": "Agent: models",
5976 "amount_micros": 35900000
5977 },
5978 {
5979 "description": "Sandbox time",
5980 "amount_micros": 6200000
5981 }
5982 ],
5983 "created_at": "2026-10-01T00:05:00.000Z"
5984 }
5985 ],
5986 "upcoming": {
5987 "closes_at": "2026-11-01T00:00:00.000Z",
5988 "subscriptions_micros": 20000000,
5989 "usage_micros": 10210000,
5990 "total_micros": 30210000
5991 },
5992 "unavailable": null
5993 },
5994 "notes": "`invoices` are in cents (`total_cents`); `usage_invoices` and `upcoming` in millionths of a dollar. A usage invoice's `reason` is `month` (the month closed) or `threshold` (charged near the limit), and its `status` `paid`, `open`, `failed` or `void`. An invoice's `status` is `paid`, `open`, `void`, `uncollectible` or `draft`."
5995 },
5996 "get_billing_details": {
5997 "params": {
5998 "workspace": "flagon-io"
5999 },
6000 "response": {
6001 "customer": true,
6002 "email": "billing@flagon.example.com",
6003 "name": "Flagon, Inc.",
6004 "address": {
6005 "line1": "100 Market Street",
6006 "line2": "",
6007 "city": "San Francisco",
6008 "state": "CA",
6009 "postal_code": "94105",
6010 "country": "US"
6011 },
6012 "tax_id_type": "us_ein",
6013 "tax_id": "12-3456789",
6014 "po_number": null,
6015 "language": "en",
6016 "payment_method": {
6017 "kind": "card",
6018 "brand": "visa",
6019 "last4": "4242",
6020 "exp_month": 12,
6021 "exp_year": 2028
6022 }
6023 },
6024 "notes": "Owners change these on the workspace's billing page. `payment_method` is null until a card or other way to pay is saved."
6025 },
API: pinned projects over REST and MCP6026 "list_pinned_projects": {
6027 "params": {
6028 "workspace": "flagon-io"
6029 },
6030 "response": [
6031 {
6032 "position": 0,
6033 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
6034 "workspace": "flagon-io",
6035 "slug": "g1t",
6036 "name": "g1t",
6037 "description": null,
6038 "private": false,
6039 "archived": false,
6040 "kind": "app",
6041 "url": "https://g1t.sh/flagon-io/g1t",
6042 "pushed_at": "2026-10-07T10:00:00.000Z",
6043 "updated_at": "2026-10-01T09:12:00.000Z"
6044 },
6045 {
6046 "position": 1,
6047 "id": "prj_01kkq0c4d9h2w7rn5f8t3k6p2z",
6048 "workspace": "flagon-io",
6049 "slug": "lab-api",
6050 "name": "lab-api",
6051 "description": null,
6052 "private": true,
6053 "archived": false,
6054 "kind": "app",
6055 "url": "https://g1t.sh/flagon-io/lab-api",
6056 "pushed_at": "2026-10-06T18:40:00.000Z",
6057 "updated_at": "2026-10-01T09:12:00.000Z"
6058 },
6059 {
6060 "position": 2,
6061 "id": "prj_01kkp3n2a7e5v8sk3b6g9j4m1y",
6062 "workspace": "flagon-io",
6063 "slug": "hello",
6064 "name": "hello",
6065 "description": "Greets people from the command line.",
6066 "private": false,
6067 "archived": false,
6068 "kind": "library",
6069 "url": "https://g1t.sh/flagon-io/hello",
6070 "pushed_at": null,
6071 "updated_at": "2026-10-01T09:12:00.000Z"
6072 }
6073 ],
6074 "notes": "In your order: `position` 0 first. The sidebar shows these, then the projects you opened last. `pushed_at` is null until the project's repository is pushed to."
6075 },
6076 "pin_project": {
6077 "params": {
6078 "workspace": "flagon-io",
6079 "project": "hello"
6080 },
6081 "request": {
6082 "position": 0
6083 },
6084 "response": [
6085 {
6086 "position": 0,
6087 "id": "prj_01kkp3n2a7e5v8sk3b6g9j4m1y",
6088 "workspace": "flagon-io",
6089 "slug": "hello",
6090 "name": "hello",
6091 "description": "Greets people from the command line.",
6092 "private": false,
6093 "archived": false,
6094 "kind": "library",
6095 "url": "https://g1t.sh/flagon-io/hello",
6096 "pushed_at": null,
6097 "updated_at": "2026-10-01T09:12:00.000Z"
6098 },
6099 {
6100 "position": 1,
6101 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
6102 "workspace": "flagon-io",
6103 "slug": "g1t",
6104 "name": "g1t",
6105 "description": null,
6106 "private": false,
6107 "archived": false,
6108 "kind": "app",
6109 "url": "https://g1t.sh/flagon-io/g1t",
6110 "pushed_at": "2026-10-07T10:00:00.000Z",
6111 "updated_at": "2026-10-01T09:12:00.000Z"
6112 },
6113 {
6114 "position": 2,
6115 "id": "prj_01kkq0c4d9h2w7rn5f8t3k6p2z",
6116 "workspace": "flagon-io",
6117 "slug": "lab-api",
6118 "name": "lab-api",
6119 "description": null,
6120 "private": true,
6121 "archived": false,
6122 "kind": "app",
6123 "url": "https://g1t.sh/flagon-io/lab-api",
6124 "pushed_at": "2026-10-06T18:40:00.000Z",
6125 "updated_at": "2026-10-01T09:12:00.000Z"
6126 }
6127 ],
6128 "notes": "A ninth pin in a workspace is refused with `409 conflict`: unpin one first."
6129 },
6130 "unpin_project": {
6131 "params": {
6132 "workspace": "flagon-io",
6133 "project": "lab-api"
6134 },
6135 "response": [
6136 {
6137 "position": 0,
6138 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
6139 "workspace": "flagon-io",
6140 "slug": "g1t",
6141 "name": "g1t",
6142 "description": null,
6143 "private": false,
6144 "archived": false,
6145 "kind": "app",
6146 "url": "https://g1t.sh/flagon-io/g1t",
6147 "pushed_at": "2026-10-07T10:00:00.000Z",
6148 "updated_at": "2026-10-01T09:12:00.000Z"
6149 },
6150 {
6151 "position": 1,
6152 "id": "prj_01kkp3n2a7e5v8sk3b6g9j4m1y",
6153 "workspace": "flagon-io",
6154 "slug": "hello",
6155 "name": "hello",
6156 "description": "Greets people from the command line.",
6157 "private": false,
6158 "archived": false,
6159 "kind": "library",
6160 "url": "https://g1t.sh/flagon-io/hello",
6161 "pushed_at": null,
6162 "updated_at": "2026-10-01T09:12:00.000Z"
6163 }
6164 ]
6165 },
6166 "reorder_pinned_projects": {
6167 "params": {
6168 "workspace": "flagon-io"
6169 },
6170 "request": {
6171 "projects": [
6172 "lab-api",
6173 "g1t",
6174 "hello"
6175 ]
6176 },
6177 "response": [
6178 {
6179 "position": 0,
6180 "id": "prj_01kkq0c4d9h2w7rn5f8t3k6p2z",
6181 "workspace": "flagon-io",
6182 "slug": "lab-api",
6183 "name": "lab-api",
6184 "description": null,
6185 "private": true,
6186 "archived": false,
6187 "kind": "app",
6188 "url": "https://g1t.sh/flagon-io/lab-api",
6189 "pushed_at": "2026-10-06T18:40:00.000Z",
6190 "updated_at": "2026-10-01T09:12:00.000Z"
6191 },
6192 {
6193 "position": 1,
6194 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
6195 "workspace": "flagon-io",
6196 "slug": "g1t",
6197 "name": "g1t",
6198 "description": null,
6199 "private": false,
6200 "archived": false,
6201 "kind": "app",
6202 "url": "https://g1t.sh/flagon-io/g1t",
6203 "pushed_at": "2026-10-07T10:00:00.000Z",
6204 "updated_at": "2026-10-01T09:12:00.000Z"
6205 },
6206 {
6207 "position": 2,
6208 "id": "prj_01kkp3n2a7e5v8sk3b6g9j4m1y",
6209 "workspace": "flagon-io",
6210 "slug": "hello",
6211 "name": "hello",
6212 "description": "Greets people from the command line.",
6213 "private": false,
6214 "archived": false,
6215 "kind": "library",
6216 "url": "https://g1t.sh/flagon-io/hello",
6217 "pushed_at": null,
6218 "updated_at": "2026-10-01T09:12:00.000Z"
6219 }
6220 ],
6221 "notes": "Name every pinned project once; anything else is refused with `422 invalid`."
Teams and CODEOWNERS, labels and milestones, dependency updates, the security suite, and a clearer top bar6222 },
6223 "list_secret_scanning_alerts": {
6224 "params": {
6225 "owner": "flagon-io",
6226 "name": "hello"
6227 },
6228 "query": {
6229 "state": "open"
6230 },
6231 "response": [
6232 {
6233 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
6234 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6235 "kind": "github_token",
6236 "label": "a GitHub token",
6237 "path": "scripts/release.sh",
6238 "line": 12,
6239 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6240 "preview": "ghp_X7…",
6241 "status": "open",
6242 "source": "push",
6243 "found_by": "syntaqx",
6244 "found_at": "2026-10-06T09:14:02.118Z",
6245 "decided_by": null,
6246 "reason": null,
6247 "decided_at": null,
6248 "dismissed_reason": null,
6249 "test_value": null,
6250 "state": "open",
6251 "validity": "active",
6252 "validity_checked_at": "2026-10-06T09:20:41.502Z",
6253 "bypass": {
6254 "reason": "will_fix_later",
6255 "comment": "Rotating it this afternoon.",
6256 "by": "syntaqx",
6257 "at": "2026-10-06T09:14:02.118Z",
6258 "approved_by": null
6259 },
6260 "pattern_id": null,
6261 "pattern_name": null,
6262 "locations": 1
6263 }
6264 ],
6265 "notes": "| Filter | Values |\n| --- | --- |\n| `state` | `open` (in the history, or blocked at a push), `dismissed`, `fixed` |\n| `secret_type` | `aws_access_key`, `github_token`, `custom_pattern`, … |\n| `validity` | `active`, `inactive`, `unknown`, `unsupported` |\n| `bypassed` | `true` or `false` |\n\nThe secret itself is never returned: `preview` is enough to recognise it. `status` says where it stands: `open`, `blocked` (stopped at a push, never landed), `allowed` or `resolved`."
6266 },
6267 "list_secret_scanning_alerts_for_workspace": {
6268 "params": {
6269 "workspace": "flagon-io"
6270 },
6271 "query": {
6272 "state": "open"
6273 },
6274 "response": [
6275 {
6276 "repo": "hello",
6277 "secret": {
6278 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
6279 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6280 "kind": "github_token",
6281 "label": "a GitHub token",
6282 "path": "scripts/release.sh",
6283 "line": 12,
6284 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6285 "preview": "ghp_X7…",
6286 "status": "open",
6287 "source": "push",
6288 "found_by": "syntaqx",
6289 "found_at": "2026-10-06T09:14:02.118Z",
6290 "decided_by": null,
6291 "reason": null,
6292 "decided_at": null,
6293 "dismissed_reason": null,
6294 "test_value": null,
6295 "state": "open",
6296 "validity": "active",
6297 "validity_checked_at": "2026-10-06T09:20:41.502Z",
6298 "bypass": {
6299 "reason": "will_fix_later",
6300 "comment": "Rotating it this afternoon.",
6301 "by": "syntaqx",
6302 "at": "2026-10-06T09:14:02.118Z",
6303 "approved_by": null
6304 },
6305 "pattern_id": null,
6306 "pattern_name": null,
6307 "locations": 1
6308 }
6309 }
6310 ],
6311 "notes": "Every repository whose findings you may see, each alert with its repository's name."
6312 },
6313 "get_secret_scanning_alert": {
6314 "params": {
6315 "owner": "flagon-io",
6316 "name": "hello",
6317 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p"
6318 },
6319 "response": {
6320 "secret": {
6321 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
6322 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6323 "kind": "github_token",
6324 "label": "a GitHub token",
6325 "path": "scripts/release.sh",
6326 "line": 12,
6327 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6328 "preview": "ghp_X7…",
6329 "status": "blocked",
6330 "source": "push",
6331 "found_by": "syntaqx",
6332 "found_at": "2026-10-06T09:14:02.118Z",
6333 "decided_by": null,
6334 "reason": null,
6335 "decided_at": null,
6336 "dismissed_reason": null,
6337 "test_value": null,
6338 "state": "open",
6339 "validity": null,
6340 "validity_checked_at": null,
6341 "bypass": null,
6342 "pattern_id": null,
6343 "pattern_name": null,
6344 "locations": 1
6345 },
6346 "locations": [
6347 {
6348 "path": "scripts/release.sh",
6349 "line": 12,
6350 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6351 "source": "push",
6352 "found_at": "2026-10-06T09:14:02.118Z"
6353 }
6354 ],
6355 "activity": [],
6356 "requests": [],
6357 "checkable": true,
6358 "can_bypass": true,
6359 "can_request_bypass": false
6360 }
6361 },
6362 "update_secret_scanning_alert": {
6363 "params": {
6364 "owner": "flagon-io",
6365 "name": "hello",
6366 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p"
6367 },
6368 "request": {
6369 "state": "dismissed",
6370 "reason": "revoked",
6371 "comment": "Rotated in the issuer's settings."
6372 },
6373 "response": {
6374 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
6375 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6376 "kind": "github_token",
6377 "label": "a GitHub token",
6378 "path": "scripts/release.sh",
6379 "line": 12,
6380 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6381 "preview": "ghp_X7…",
6382 "status": "resolved",
6383 "source": "push",
6384 "found_by": "syntaqx",
6385 "found_at": "2026-10-06T09:14:02.118Z",
6386 "decided_by": "syntaqx",
6387 "reason": "Rotated in the issuer's settings.",
6388 "decided_at": "2026-10-06T09:20:41.502Z",
6389 "dismissed_reason": "revoked",
6390 "test_value": null,
6391 "state": "fixed",
6392 "validity": "active",
6393 "validity_checked_at": "2026-10-06T09:20:41.502Z",
6394 "bypass": {
6395 "reason": "will_fix_later",
6396 "comment": "Rotating it this afternoon.",
6397 "by": "syntaqx",
6398 "at": "2026-10-06T09:14:02.118Z",
6399 "approved_by": null
6400 },
6401 "pattern_id": null,
6402 "pattern_name": null,
6403 "locations": 1
6404 },
6405 "notes": "Takes the Admin role: a dismissed secret is let through push protection, unless it was `revoked`, which marks it fixed. `state` `open` reopens it."
6406 },
6407 "list_secret_scanning_locations": {
6408 "params": {
6409 "owner": "flagon-io",
6410 "name": "hello",
6411 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p"
6412 },
6413 "response": [
6414 {
6415 "path": "scripts/release.sh",
6416 "line": 12,
6417 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6418 "source": "push",
6419 "found_at": "2026-10-06T09:14:02.118Z"
6420 }
6421 ]
6422 },
6423 "bypass_push_protection": {
6424 "params": {
6425 "owner": "flagon-io",
6426 "name": "hello",
6427 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p"
6428 },
6429 "request": {
6430 "reason": "will_fix_later",
6431 "comment": "Rotating it this afternoon."
6432 },
6433 "response": {
6434 "secret": {
6435 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
6436 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6437 "kind": "github_token",
6438 "label": "a GitHub token",
6439 "path": "scripts/release.sh",
6440 "line": 12,
6441 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6442 "preview": "ghp_X7…",
6443 "status": "open",
6444 "source": "push",
6445 "found_by": "syntaqx",
6446 "found_at": "2026-10-06T09:14:02.118Z",
6447 "decided_by": null,
6448 "reason": null,
6449 "decided_at": null,
6450 "dismissed_reason": null,
6451 "test_value": null,
6452 "state": "open",
6453 "validity": null,
6454 "validity_checked_at": null,
6455 "bypass": {
6456 "reason": "will_fix_later",
6457 "comment": "Rotating it this afternoon.",
6458 "by": "syntaqx",
6459 "at": "2026-10-06T09:14:02.118Z",
6460 "approved_by": null
6461 },
6462 "pattern_id": null,
6463 "pattern_name": null,
6464 "locations": 1
6465 },
6466 "request": null
6467 },
6468 "notes": "| Reason | The alert |\n| --- | --- |\n| `false_positive` | Closed as a false positive |\n| `used_in_tests` | Closed as used in tests |\n| `will_fix_later` | Stays open, to be rotated |\n\nWith delegated bypass on, a call from someone who does not review bypasses makes a request instead: `request` is set and the secret is still blocked until an owner or admin approves it. Push again once it is bypassed."
6469 },
6470 "check_secret_validity": {
6471 "params": {
6472 "owner": "flagon-io",
6473 "name": "hello",
6474 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p"
6475 },
6476 "response": {
6477 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
6478 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6479 "kind": "github_token",
6480 "label": "a GitHub token",
6481 "path": "scripts/release.sh",
6482 "line": 12,
6483 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6484 "preview": "ghp_X7…",
6485 "status": "open",
6486 "source": "push",
6487 "found_by": "syntaqx",
6488 "found_at": "2026-10-06T09:14:02.118Z",
6489 "decided_by": null,
6490 "reason": null,
6491 "decided_at": null,
6492 "dismissed_reason": null,
6493 "test_value": null,
6494 "state": "open",
6495 "validity": "active",
6496 "validity_checked_at": "2026-10-06T09:20:41.502Z",
6497 "bypass": {
6498 "reason": "will_fix_later",
6499 "comment": "Rotating it this afternoon.",
6500 "by": "syntaqx",
6501 "at": "2026-10-06T09:14:02.118Z",
6502 "approved_by": null
6503 },
6504 "pattern_id": null,
6505 "pattern_name": null,
6506 "locations": 1
6507 },
6508 "notes": "Made for GitHub, GitLab, Stripe, Slack, npm, OpenAI, Anthropic and SendGrid tokens, with the issuer's own read-only call. Other formats answer `unsupported`; a secret that never landed answers `unknown`."
6509 },
6510 "list_bypass_requests": {
6511 "params": {
6512 "workspace": "flagon-io"
6513 },
6514 "query": {
6515 "state": "pending"
6516 },
6517 "response": [
6518 {
6519 "id": "byp_01kq2n8e5f6g7h8j9k0m1n2p3q",
6520 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6521 "workspace": "flagon-io",
6522 "repo": "hello",
6523 "secret_id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
6524 "label": "a GitHub token",
6525 "path": "scripts/release.sh",
6526 "line": 12,
6527 "preview": "ghp_X7…",
6528 "requester": "ana",
6529 "reason": "used_in_tests",
6530 "comment": "A token from the test fixtures, never issued.",
6531 "state": "pending",
6532 "reviewer": null,
6533 "review_comment": null,
6534 "created_at": "2026-10-06T09:14:02.118Z",
6535 "reviewed_at": null
6536 }
6537 ]
6538 },
6539 "review_bypass_request": {
6540 "params": {
6541 "workspace": "flagon-io",
6542 "id": "byp_01kq2n8e5f6g7h8j9k0m1n2p3q"
6543 },
6544 "request": {
6545 "decision": "approve",
6546 "comment": "A fixture."
6547 },
6548 "response": {
6549 "id": "byp_01kq2n8e5f6g7h8j9k0m1n2p3q",
6550 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6551 "workspace": "flagon-io",
6552 "repo": "hello",
6553 "secret_id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
6554 "label": "a GitHub token",
6555 "path": "scripts/release.sh",
6556 "line": 12,
6557 "preview": "ghp_X7…",
6558 "requester": "ana",
6559 "reason": "used_in_tests",
6560 "comment": "A token from the test fixtures, never issued.",
6561 "state": "approved",
6562 "reviewer": "syntaqx",
6563 "review_comment": "A fixture.",
6564 "created_at": "2026-10-06T09:14:02.118Z",
6565 "reviewed_at": "2026-10-06T09:20:41.502Z"
6566 }
6567 },
6568 "list_custom_patterns": {
6569 "params": {
6570 "owner": "flagon-io",
6571 "name": "hello"
6572 },
6573 "response": {
6574 "patterns": [
6575 {
6576 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
6577 "scope": "repository",
6578 "workspace": "flagon-io",
6579 "repo": "hello",
6580 "name": "Acme API key",
6581 "pattern": "acme_[a-z0-9]{32}",
6582 "before": null,
6583 "after": null,
6584 "test_strings": [
6585 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
6586 ],
6587 "state": "published",
6588 "created_by": "syntaqx",
6589 "created_at": "2026-10-06T09:14:02.118Z",
6590 "updated_by": "syntaqx",
6591 "updated_at": "2026-10-06T09:14:02.118Z",
6592 "open_alerts": 0
6593 }
6594 ],
6595 "entitled": true
6596 },
6597 "notes": "A repository's list includes its workspace's patterns, with `scope` `workspace`. `entitled` says whether they run here: always on a public repository, and on a private one with the Security and quality activation."
6598 },
6599 "list_custom_patterns_for_workspace": {
6600 "params": {
6601 "workspace": "flagon-io"
6602 },
6603 "response": {
6604 "patterns": [
6605 {
6606 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
6607 "scope": "workspace",
6608 "workspace": "flagon-io",
6609 "repo": null,
6610 "name": "Acme API key",
6611 "pattern": "acme_[a-z0-9]{32}",
6612 "before": null,
6613 "after": null,
6614 "test_strings": [
6615 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
6616 ],
6617 "state": "published",
6618 "created_by": "syntaqx",
6619 "created_at": "2026-10-06T09:14:02.118Z",
6620 "updated_by": "syntaqx",
6621 "updated_at": "2026-10-06T09:14:02.118Z",
6622 "open_alerts": 0
6623 }
6624 ],
6625 "entitled": true
6626 }
6627 },
6628 "create_custom_pattern": {
6629 "params": {
6630 "owner": "flagon-io",
6631 "name": "hello"
6632 },
6633 "request": {
6634 "pattern_name": "Acme API key",
6635 "pattern": "acme_[a-z0-9]{32}",
6636 "test_strings": [
6637 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
6638 ],
6639 "publish": true
6640 },
6641 "response": {
6642 "pattern": {
6643 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
6644 "scope": "repository",
6645 "workspace": "flagon-io",
6646 "repo": "hello",
6647 "name": "Acme API key",
6648 "pattern": "acme_[a-z0-9]{32}",
6649 "before": null,
6650 "after": null,
6651 "test_strings": [
6652 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
6653 ],
6654 "state": "published",
6655 "created_by": "syntaqx",
6656 "created_at": "2026-10-06T09:14:02.118Z",
6657 "updated_by": "syntaqx",
6658 "updated_at": "2026-10-06T09:14:02.118Z",
6659 "open_alerts": 0
6660 },
6661 "tests": [
6662 [
6663 9,
6664 46
6665 ]
6666 ]
6667 },
6668 "notes": "`tests` gives, for each test string, where the pattern matched (start and end, in characters), or `null`. A pattern that does not compile, matches an empty string, or is too complex is refused with `422` and says why."
6669 },
6670 "create_custom_pattern_for_workspace": {
6671 "params": {
6672 "workspace": "flagon-io"
6673 },
6674 "request": {
6675 "pattern_name": "Acme API key",
6676 "pattern": "acme_[a-z0-9]{32}",
6677 "publish": false
6678 },
6679 "response": {
6680 "pattern": {
6681 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
6682 "scope": "workspace",
6683 "workspace": "flagon-io",
6684 "repo": null,
6685 "name": "Acme API key",
6686 "pattern": "acme_[a-z0-9]{32}",
6687 "before": null,
6688 "after": null,
6689 "test_strings": [],
6690 "state": "draft",
6691 "created_by": "syntaqx",
6692 "created_at": "2026-10-06T09:14:02.118Z",
6693 "updated_by": "syntaqx",
6694 "updated_at": "2026-10-06T09:14:02.118Z",
6695 "open_alerts": 0
6696 },
6697 "tests": []
6698 }
6699 },
6700 "update_custom_pattern": {
6701 "params": {
6702 "owner": "flagon-io",
6703 "name": "hello",
6704 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r"
6705 },
6706 "request": {
6707 "pattern_name": "Acme API key",
6708 "pattern": "acme_[a-z0-9]{32,40}",
6709 "publish": true
6710 },
6711 "response": {
6712 "pattern": {
6713 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
6714 "scope": "repository",
6715 "workspace": "flagon-io",
6716 "repo": "hello",
6717 "name": "Acme API key",
6718 "pattern": "acme_[a-z0-9]{32,40}",
6719 "before": null,
6720 "after": null,
6721 "test_strings": [
6722 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
6723 ],
6724 "state": "published",
6725 "created_by": "syntaqx",
6726 "created_at": "2026-10-06T09:14:02.118Z",
6727 "updated_by": "syntaqx",
6728 "updated_at": "2026-10-06T09:14:02.118Z",
6729 "open_alerts": 0
6730 },
6731 "tests": [
6732 [
6733 9,
6734 46
6735 ]
6736 ]
6737 }
6738 },
6739 "update_custom_pattern_for_workspace": {
6740 "params": {
6741 "workspace": "flagon-io",
6742 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r"
6743 },
6744 "request": {
6745 "pattern_name": "Acme API key",
6746 "pattern": "acme_[a-z0-9]{32}",
6747 "publish": true
6748 },
6749 "response": {
6750 "pattern": {
6751 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
6752 "scope": "workspace",
6753 "workspace": "flagon-io",
6754 "repo": null,
6755 "name": "Acme API key",
6756 "pattern": "acme_[a-z0-9]{32}",
6757 "before": null,
6758 "after": null,
6759 "test_strings": [
6760 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
6761 ],
6762 "state": "published",
6763 "created_by": "syntaqx",
6764 "created_at": "2026-10-06T09:14:02.118Z",
6765 "updated_by": "syntaqx",
6766 "updated_at": "2026-10-06T09:14:02.118Z",
6767 "open_alerts": 0
6768 },
6769 "tests": [
6770 [
6771 9,
6772 46
6773 ]
6774 ]
6775 }
6776 },
6777 "delete_custom_pattern": {
6778 "params": {
6779 "owner": "flagon-io",
6780 "name": "hello",
6781 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r"
6782 },
6783 "response": {
6784 "deleted": true
6785 }
6786 },
6787 "delete_custom_pattern_for_workspace": {
6788 "params": {
6789 "workspace": "flagon-io",
6790 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r"
6791 },
6792 "response": {
6793 "deleted": true
6794 }
6795 },
6796 "dry_run_custom_pattern": {
6797 "params": {
6798 "owner": "flagon-io",
6799 "name": "hello"
6800 },
6801 "request": {
6802 "pattern": "acme_[a-z0-9]{32}"
6803 },
6804 "response": {
6805 "repos": [
6806 {
6807 "name": "hello",
6808 "files_scanned": 214,
6809 "matches": [
6810 {
6811 "path": "config/dev.env",
6812 "line": 3,
6813 "preview": "ACME_KEY=acme_01••••••••••••••••••••••••"
6814 }
6815 ],
6816 "truncated": false,
6817 "commit": "4807077b296e6edbf410d55e72749d3e1170c291"
6818 }
6819 ]
6820 },
6821 "notes": "Reads up to 2,000 files and 20 MB of the default branch, skipping what secret scanning skips. Nothing is recorded."
6822 },
6823 "dry_run_custom_pattern_for_workspace": {
6824 "params": {
6825 "workspace": "flagon-io"
6826 },
6827 "request": {
6828 "pattern": "acme_[a-z0-9]{32}",
6829 "repos": [
6830 "hello"
6831 ]
6832 },
6833 "response": {
6834 "repos": [
6835 {
6836 "name": "hello",
6837 "files_scanned": 214,
6838 "matches": [],
6839 "truncated": false,
6840 "commit": "4807077b296e6edbf410d55e72749d3e1170c291"
6841 }
6842 ]
6843 }
6844 },
6845 "list_code_scanning_alerts": {
6846 "params": {
6847 "owner": "flagon-io",
6848 "name": "hello"
6849 },
6850 "query": {
6851 "state": "open",
6852 "severity": "high"
6853 },
6854 "response": [
6855 {
6856 "id": "cod_01kq2qag7h8j9k0m1n2p3q4r5s",
6857 "number": 4,
6858 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6859 "tool": "Semgrep OSS",
6860 "category": "Semgrep OSS",
6861 "rule_id": "javascript.lang.security.detect-child-process.detect-child-process",
6862 "rule_name": "javascript.lang.security.detect-child-process.detect-child-process",
6863 "rule_description": "Detected calls to child_process from a function argument.",
6864 "help": null,
6865 "help_uri": "https://semgrep.dev/r/javascript.lang.security.detect-child-process.detect-child-process",
6866 "tags": [
6867 "security",
6868 "CWE-78"
6869 ],
6870 "level": "error",
6871 "security_severity": null,
6872 "severity": "high",
6873 "message": "Detected calls to child_process from a function argument `req`. This could lead to a command injection.",
6874 "path": "src/server.js",
6875 "start_line": 6,
6876 "end_line": 6,
6877 "start_column": 3,
6878 "end_column": 60,
6879 "state": "open",
6880 "fingerprint": "3f1c9a0e7b2d4c5e6f708192a3b4c5d6",
6881 "first_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6882 "last_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6883 "created_at": "2026-10-06T09:14:02.118Z",
6884 "updated_at": "2026-10-06T09:14:02.118Z",
6885 "fixed_at": null,
6886 "dismissed_by": null,
6887 "dismissed_reason": null,
6888 "dismissed_comment": null,
6889 "dismissed_at": null,
6890 "issue": null
6891 }
6892 ],
6893 "notes": "`severity` is the rule's security severity when it has one (from its `security-severity` score), else from the result's level: `error` high, `warning` medium, `note` low."
6894 },
6895 "list_code_scanning_alerts_for_workspace": {
6896 "params": {
6897 "workspace": "flagon-io"
6898 },
6899 "query": {
6900 "state": "open"
6901 },
6902 "response": [
6903 {
6904 "repo": "hello",
6905 "code": {
6906 "id": "cod_01kq2qag7h8j9k0m1n2p3q4r5s",
6907 "number": 4,
6908 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6909 "tool": "Semgrep OSS",
6910 "category": "Semgrep OSS",
6911 "rule_id": "javascript.lang.security.detect-child-process.detect-child-process",
6912 "rule_name": "javascript.lang.security.detect-child-process.detect-child-process",
6913 "rule_description": "Detected calls to child_process from a function argument.",
6914 "help": null,
6915 "help_uri": "https://semgrep.dev/r/javascript.lang.security.detect-child-process.detect-child-process",
6916 "tags": [
6917 "security",
6918 "CWE-78"
6919 ],
6920 "level": "error",
6921 "security_severity": null,
6922 "severity": "high",
6923 "message": "Detected calls to child_process from a function argument `req`. This could lead to a command injection.",
6924 "path": "src/server.js",
6925 "start_line": 6,
6926 "end_line": 6,
6927 "start_column": 3,
6928 "end_column": 60,
6929 "state": "open",
6930 "fingerprint": "3f1c9a0e7b2d4c5e6f708192a3b4c5d6",
6931 "first_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6932 "last_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6933 "created_at": "2026-10-06T09:14:02.118Z",
6934 "updated_at": "2026-10-06T09:14:02.118Z",
6935 "fixed_at": null,
6936 "dismissed_by": null,
6937 "dismissed_reason": null,
6938 "dismissed_comment": null,
6939 "dismissed_at": null,
6940 "issue": null
6941 }
6942 }
6943 ]
6944 },
6945 "get_code_scanning_alert": {
6946 "params": {
6947 "owner": "flagon-io",
6948 "name": "hello",
6949 "number": 4
6950 },
6951 "response": {
6952 "alert": {
6953 "id": "cod_01kq2qag7h8j9k0m1n2p3q4r5s",
6954 "number": 4,
6955 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6956 "tool": "Semgrep OSS",
6957 "category": "Semgrep OSS",
6958 "rule_id": "javascript.lang.security.detect-child-process.detect-child-process",
6959 "rule_name": "javascript.lang.security.detect-child-process.detect-child-process",
6960 "rule_description": "Detected calls to child_process from a function argument.",
6961 "help": null,
6962 "help_uri": "https://semgrep.dev/r/javascript.lang.security.detect-child-process.detect-child-process",
6963 "tags": [
6964 "security",
6965 "CWE-78"
6966 ],
6967 "level": "error",
6968 "security_severity": null,
6969 "severity": "high",
6970 "message": "Detected calls to child_process from a function argument `req`. This could lead to a command injection.",
6971 "path": "src/server.js",
6972 "start_line": 6,
6973 "end_line": 6,
6974 "start_column": 3,
6975 "end_column": 60,
6976 "state": "open",
6977 "fingerprint": "3f1c9a0e7b2d4c5e6f708192a3b4c5d6",
6978 "first_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6979 "last_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
6980 "created_at": "2026-10-06T09:14:02.118Z",
6981 "updated_at": "2026-10-06T09:14:02.118Z",
6982 "fixed_at": null,
6983 "dismissed_by": null,
6984 "dismissed_reason": null,
6985 "dismissed_comment": null,
6986 "dismissed_at": null,
6987 "issue": null
6988 },
6989 "activity": [],
6990 "analyses": [
6991 {
6992 "id": "ana_01kq2rbh8j9k0m1n2p3q4r5s6t",
6993 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
6994 "sarif_id": "sar_01kq2scj9k0m1n2p3q4r5s6t7v",
6995 "tool": "Semgrep OSS",
6996 "tool_version": "1.140.0",
6997 "category": "Semgrep OSS",
6998 "commit_sha": "4807077b296e6edbf410d55e72749d3e1170c291",
6999 "git_ref": "refs/heads/main",
7000 "pull": null,
7001 "results": 7,
7002 "new_alerts": 2,
7003 "fixed_alerts": 1,
7004 "dropped": 0,
7005 "created_at": "2026-10-06T09:14:02.118Z"
7006 }
7007 ]
7008 }
7009 },
7010 "update_code_scanning_alert": {
7011 "params": {
7012 "owner": "flagon-io",
7013 "name": "hello",
7014 "number": 4
7015 },
7016 "request": {
7017 "state": "dismissed",
7018 "dismissed_reason": "false_positive",
7019 "dismissed_comment": "The argument is a constant."
7020 },
7021 "response": {
7022 "id": "cod_01kq2qag7h8j9k0m1n2p3q4r5s",
7023 "number": 4,
7024 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7025 "tool": "Semgrep OSS",
7026 "category": "Semgrep OSS",
7027 "rule_id": "javascript.lang.security.detect-child-process.detect-child-process",
7028 "rule_name": "javascript.lang.security.detect-child-process.detect-child-process",
7029 "rule_description": "Detected calls to child_process from a function argument.",
7030 "help": null,
7031 "help_uri": "https://semgrep.dev/r/javascript.lang.security.detect-child-process.detect-child-process",
7032 "tags": [
7033 "security",
7034 "CWE-78"
7035 ],
7036 "level": "error",
7037 "security_severity": null,
7038 "severity": "high",
7039 "message": "Detected calls to child_process from a function argument `req`. This could lead to a command injection.",
7040 "path": "src/server.js",
7041 "start_line": 6,
7042 "end_line": 6,
7043 "start_column": 3,
7044 "end_column": 60,
7045 "state": "dismissed",
7046 "fingerprint": "3f1c9a0e7b2d4c5e6f708192a3b4c5d6",
7047 "first_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7048 "last_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7049 "created_at": "2026-10-06T09:14:02.118Z",
7050 "updated_at": "2026-10-06T09:14:02.118Z",
7051 "fixed_at": null,
7052 "dismissed_by": "syntaqx",
7053 "dismissed_reason": "false_positive",
7054 "dismissed_comment": "The argument is a constant.",
7055 "dismissed_at": "2026-10-06T09:20:41.502Z",
7056 "issue": null
7057 }
7058 },
7059 "list_code_scanning_analyses": {
7060 "params": {
7061 "owner": "flagon-io",
7062 "name": "hello"
7063 },
7064 "response": [
7065 {
7066 "id": "ana_01kq2rbh8j9k0m1n2p3q4r5s6t",
7067 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7068 "sarif_id": "sar_01kq2scj9k0m1n2p3q4r5s6t7v",
7069 "tool": "Semgrep OSS",
7070 "tool_version": "1.140.0",
7071 "category": "Semgrep OSS",
7072 "commit_sha": "4807077b296e6edbf410d55e72749d3e1170c291",
7073 "git_ref": "refs/heads/main",
7074 "pull": null,
7075 "results": 7,
7076 "new_alerts": 2,
7077 "fixed_alerts": 1,
7078 "dropped": 0,
7079 "created_at": "2026-10-06T09:14:02.118Z"
7080 }
7081 ]
7082 },
7083 "upload_sarif": {
7084 "params": {
7085 "owner": "flagon-io",
7086 "name": "hello"
7087 },
7088 "request": {
7089 "commit_sha": "4807077b296e6edbf410d55e72749d3e1170c291",
7090 "ref": "refs/heads/main",
7091 "sarif": "H4sIAAAAAAAA…",
7092 "checkout_uri": "file:///home/runner/work/repo"
7093 },
7094 "response": {
7095 "id": "sar_01kq2scj9k0m1n2p3q4r5s6t7v",
7096 "processing_status": "complete",
7097 "analyses": [
7098 "ana_01kq2rbh8j9k0m1n2p3q4r5s6t"
7099 ],
7100 "errors": [],
7101 "commit_sha": "4807077b296e6edbf410d55e72749d3e1170c291",
7102 "git_ref": "refs/heads/main",
7103 "created_at": "2026-10-06T09:14:02.118Z"
7104 },
7105 "notes": "`sarif` is the SARIF 2.1.0 file gzipped, then base64-encoded: `gzip -c results.sarif | base64 -w0`. The upload is read at once: `processing_status` is `complete` or `failed`, with `errors` saying why. For `refs/pull/<number>/head`, the results become the pull request's `Code scanning` check instead of alerts."
7106 },
7107 "get_sarif_upload": {
7108 "params": {
7109 "owner": "flagon-io",
7110 "name": "hello",
7111 "id": "sar_01kq2scj9k0m1n2p3q4r5s6t7v"
7112 },
7113 "response": {
7114 "id": "sar_01kq2scj9k0m1n2p3q4r5s6t7v",
7115 "processing_status": "complete",
7116 "analyses": [
7117 "ana_01kq2rbh8j9k0m1n2p3q4r5s6t"
7118 ],
7119 "errors": [],
7120 "commit_sha": "4807077b296e6edbf410d55e72749d3e1170c291",
7121 "git_ref": "refs/heads/main",
7122 "created_at": "2026-10-06T09:14:02.118Z"
7123 }
7124 },
7125 "list_vulnerability_alerts": {
7126 "params": {
7127 "owner": "flagon-io",
7128 "name": "hello"
7129 },
7130 "query": {
7131 "state": "open"
7132 },
7133 "response": [
7134 {
7135 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
7136 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7137 "ecosystem": "npm",
7138 "package": "lodash",
7139 "version": "4.17.20",
7140 "manifest": "package-lock.json",
7141 "advisory": "GHSA-35jh-r3h4-6jhm",
7142 "osv_id": "GHSA-35jh-r3h4-6jhm",
7143 "summary": "Command Injection in lodash",
7144 "severity": "high",
7145 "fixed_version": "4.17.21",
7146 "status": "open",
7147 "issue": null,
7148 "found_at": "2026-10-06T09:14:02.118Z",
7149 "fixed_at": null,
7150 "state": "open",
7151 "dismissed_by": null,
7152 "dismissed_reason": null,
7153 "dismissed_comment": null,
7154 "dismissed_at": null,
7155 "update": null
7156 }
7157 ]
7158 },
7159 "list_vulnerability_alerts_for_workspace": {
7160 "params": {
7161 "workspace": "flagon-io"
7162 },
7163 "query": {
7164 "severity": "critical"
7165 },
7166 "response": [
7167 {
7168 "repo": "hello",
7169 "vulnerability": {
7170 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
7171 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7172 "ecosystem": "npm",
7173 "package": "lodash",
7174 "version": "4.17.20",
7175 "manifest": "package-lock.json",
7176 "advisory": "GHSA-35jh-r3h4-6jhm",
7177 "osv_id": "GHSA-35jh-r3h4-6jhm",
7178 "summary": "Command Injection in lodash",
7179 "severity": "high",
7180 "fixed_version": "4.17.21",
7181 "status": "open",
7182 "issue": null,
7183 "found_at": "2026-10-06T09:14:02.118Z",
7184 "fixed_at": null,
7185 "state": "open",
7186 "dismissed_by": null,
7187 "dismissed_reason": null,
7188 "dismissed_comment": null,
7189 "dismissed_at": null,
7190 "update": null
7191 }
7192 }
7193 ]
7194 },
7195 "get_vulnerability_alert": {
7196 "params": {
7197 "owner": "flagon-io",
7198 "name": "hello",
7199 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n"
7200 },
7201 "response": {
7202 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
7203 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7204 "ecosystem": "npm",
7205 "package": "lodash",
7206 "version": "4.17.20",
7207 "manifest": "package-lock.json",
7208 "advisory": "GHSA-35jh-r3h4-6jhm",
7209 "osv_id": "GHSA-35jh-r3h4-6jhm",
7210 "summary": "Command Injection in lodash",
7211 "severity": "high",
7212 "fixed_version": "4.17.21",
7213 "status": "open",
7214 "issue": null,
7215 "found_at": "2026-10-06T09:14:02.118Z",
7216 "fixed_at": null,
7217 "state": "open",
7218 "dismissed_by": null,
7219 "dismissed_reason": null,
7220 "dismissed_comment": null,
7221 "dismissed_at": null,
7222 "update": null
7223 }
7224 },
7225 "update_vulnerability_alert": {
7226 "params": {
7227 "owner": "flagon-io",
7228 "name": "hello",
7229 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n"
7230 },
7231 "request": {
7232 "state": "dismissed",
7233 "reason": "tolerable_risk",
7234 "comment": "Only the build uses it."
7235 },
7236 "response": {
7237 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
7238 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7239 "ecosystem": "npm",
7240 "package": "lodash",
7241 "version": "4.17.20",
7242 "manifest": "package-lock.json",
7243 "advisory": "GHSA-35jh-r3h4-6jhm",
7244 "osv_id": "GHSA-35jh-r3h4-6jhm",
7245 "summary": "Command Injection in lodash",
7246 "severity": "high",
7247 "fixed_version": "4.17.21",
7248 "status": "dismissed",
7249 "issue": null,
7250 "found_at": "2026-10-06T09:14:02.118Z",
7251 "fixed_at": null,
7252 "state": "dismissed",
7253 "dismissed_by": "syntaqx",
7254 "dismissed_reason": "tolerable_risk",
7255 "dismissed_comment": "Only the build uses it.",
7256 "dismissed_at": "2026-10-06T09:20:41.502Z",
7257 "update": null
7258 }
7259 },
7260 "fix_security_alert": {
7261 "params": {
7262 "owner": "flagon-io",
7263 "name": "hello",
7264 "id": "cod_01kq2qag7h8j9k0m1n2p3q4r5s"
7265 },
7266 "response": {
7267 "issue": 57,
7268 "started": true,
7269 "message": null
7270 },
7271 "notes": "Opens an issue with what is wrong and what done means, and puts g1t on it as you. Its run is charged as agent usage, and its pull request lands through the repository's required checks. Asking again while the issue is open returns it."
7272 },
7273 "get_dependency_graph": {
7274 "params": {
7275 "owner": "flagon-io",
7276 "name": "hello"
7277 },
7278 "response": {
7279 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7280 "manifests": [
7281 {
7282 "path": "package-lock.json",
7283 "ecosystem": "npm",
7284 "dependencies": 2,
7285 "direct": 1
7286 }
7287 ],
7288 "dependencies": [
7289 {
7290 "ecosystem": "npm",
7291 "name": "lodash",
7292 "version": "4.17.20",
7293 "manifest": "package-lock.json",
7294 "relationship": "direct",
7295 "development": false,
7296 "license": "MIT",
7297 "purl": "pkg:npm/lodash@4.17.20",
7298 "vulnerabilities": 1
7299 },
7300 {
7301 "ecosystem": "npm",
7302 "name": "ms",
7303 "version": "2.1.3",
7304 "manifest": "package-lock.json",
7305 "relationship": "transitive",
7306 "development": false,
7307 "license": "MIT",
7308 "purl": "pkg:npm/ms@2.1.3",
7309 "vulnerabilities": 0
7310 }
7311 ]
7312 }
7313 },
7314 "get_sbom": {
7315 "params": {
7316 "owner": "flagon-io",
7317 "name": "hello"
7318 },
7319 "response": {
7320 "sbom": {
7321 "spdxVersion": "SPDX-2.3",
7322 "dataLicense": "CC0-1.0",
7323 "SPDXID": "SPDXRef-DOCUMENT",
7324 "name": "flagon-io/hello dependency graph",
7325 "documentNamespace": "https://g1t.sh/flagon-io/hello/sbom/sbom_01kq2tdk0m1n2p3q4r5s6t7v8w",
7326 "creationInfo": {
7327 "created": "2026-10-06T09:14:02Z",
7328 "creators": [
7329 "Tool: g1t",
7330 "Organization: g1t"
7331 ],
7332 "comment": "Read from the repository's lockfiles on its default branch."
7333 },
7334 "documentDescribes": [
7335 "SPDXRef-Repository-flagon-io-hello"
7336 ],
7337 "packages": [
7338 {
7339 "SPDXID": "SPDXRef-Repository-flagon-io-hello",
7340 "name": "flagon-io/hello",
7341 "versionInfo": "4807077b296e6edbf410d55e72749d3e1170c291",
7342 "downloadLocation": "git+https://g1t.sh/flagon-io/hello.git",
7343 "filesAnalyzed": false,
7344 "licenseConcluded": "NOASSERTION",
7345 "licenseDeclared": "NOASSERTION",
7346 "copyrightText": "NOASSERTION",
7347 "primaryPackagePurpose": "SOURCE",
7348 "externalRefs": []
7349 },
7350 {
7351 "SPDXID": "SPDXRef-Package-npm-lodash-4.17.20",
7352 "name": "lodash",
7353 "versionInfo": "4.17.20",
7354 "downloadLocation": "NOASSERTION",
7355 "filesAnalyzed": false,
7356 "licenseConcluded": "NOASSERTION",
7357 "licenseDeclared": "MIT",
7358 "copyrightText": "NOASSERTION",
7359 "primaryPackagePurpose": "LIBRARY",
7360 "comment": "Resolved by package-lock.json (direct dependency).",
7361 "externalRefs": [
7362 {
7363 "referenceCategory": "PACKAGE-MANAGER",
7364 "referenceType": "purl",
7365 "referenceLocator": "pkg:npm/lodash@4.17.20"
7366 }
7367 ]
7368 }
7369 ],
7370 "relationships": [
7371 {
7372 "spdxElementId": "SPDXRef-DOCUMENT",
7373 "relationshipType": "DESCRIBES",
7374 "relatedSpdxElement": "SPDXRef-Repository-flagon-io-hello"
7375 },
7376 {
7377 "spdxElementId": "SPDXRef-Repository-flagon-io-hello",
7378 "relationshipType": "DEPENDS_ON",
7379 "relatedSpdxElement": "SPDXRef-Package-npm-lodash-4.17.20"
7380 }
7381 ]
7382 }
7383 },
7384 "notes": "`sbom` is an SPDX 2.3 JSON document, sent as SPDX spells it. Save it with `jq .sbom`."
7385 },
7386 "compare_dependencies": {
7387 "params": {
7388 "owner": "flagon-io",
7389 "name": "hello",
7390 "basehead": "main...upgrade-deps"
7391 },
7392 "response": {
7393 "base": "main",
7394 "head": "upgrade-deps",
7395 "changes": [
7396 {
7397 "change_type": "added",
7398 "manifest": "package-lock.json",
7399 "ecosystem": "npm",
7400 "name": "lodash",
7401 "version": "4.17.20",
7402 "relationship": "direct",
7403 "development": false,
7404 "license": "MIT",
7405 "purl": "pkg:npm/lodash@4.17.20",
7406 "vulnerabilities": [
7407 {
7408 "advisory": "GHSA-35jh-r3h4-6jhm",
7409 "osv_id": "GHSA-35jh-r3h4-6jhm",
7410 "summary": "Command Injection in lodash",
7411 "severity": "high",
7412 "fixed_version": "4.17.21",
7413 "url": "https://osv.dev/vulnerability/GHSA-35jh-r3h4-6jhm"
7414 }
7415 ],
7416 "denied_license": false,
7417 "failing": true
7418 },
7419 {
7420 "change_type": "removed",
7421 "manifest": "package-lock.json",
7422 "ecosystem": "npm",
7423 "name": "lodash",
7424 "version": "4.17.21",
7425 "relationship": "direct",
7426 "development": false,
7427 "license": "MIT",
7428 "purl": "pkg:npm/lodash@4.17.21",
7429 "vulnerabilities": [],
7430 "denied_license": false,
7431 "failing": false
7432 }
7433 ],
7434 "passed": false,
7435 "headline": "Adds 1 vulnerable package",
7436 "fail_on": "high",
7437 "deny_licenses": []
7438 }
7439 },
7440 "get_security_settings": {
7441 "params": {
7442 "owner": "flagon-io",
7443 "name": "hello"
7444 },
7445 "response": {
7446 "settings": {
7447 "code_scanning_gate": "high",
7448 "dependency_review": true,
7449 "review_fail_on": "high",
7450 "review_deny_licenses": [
7451 "AGPL-3.0-only"
7452 ],
7453 "review_comment": true
7454 },
7455 "workspace": {
7456 "delegated_bypass": true,
7457 "validity_checks": true
7458 },
7459 "private": true,
7460 "entitled": true,
7461 "upkeep": true
7462 }
7463 },
7464 "update_security_settings": {
7465 "params": {
7466 "owner": "flagon-io",
7467 "name": "hello"
7468 },
7469 "request": {
7470 "code_scanning_gate": "high",
7471 "review_deny_licenses": [
7472 "AGPL-3.0-only"
7473 ]
7474 },
7475 "response": {
7476 "settings": {
7477 "code_scanning_gate": "high",
7478 "dependency_review": true,
7479 "review_fail_on": "high",
7480 "review_deny_licenses": [
7481 "AGPL-3.0-only"
7482 ],
7483 "review_comment": true
7484 },
7485 "workspace": {
7486 "delegated_bypass": true,
7487 "validity_checks": true
7488 },
7489 "private": true,
7490 "entitled": true,
7491 "upkeep": true
7492 },
7493 "notes": "Only what you send changes. The `Code scanning` and `Dependency review` checks gate merges once you require them in branch protection."
7494 },
7495 "get_workspace_security_settings": {
7496 "params": {
7497 "workspace": "flagon-io"
7498 },
7499 "response": {
7500 "settings": {
7501 "delegated_bypass": true,
7502 "validity_checks": true
7503 },
7504 "activated": true
7505 }
7506 },
7507 "update_workspace_security_settings": {
7508 "params": {
7509 "workspace": "flagon-io"
7510 },
7511 "request": {
7512 "delegated_bypass": true
7513 },
7514 "response": {
7515 "settings": {
7516 "delegated_bypass": true,
7517 "validity_checks": true
7518 },
7519 "activated": true
7520 }
7521 },
7522 "get_security_overview": {
7523 "params": {
7524 "workspace": "flagon-io"
7525 },
7526 "query": {
7527 "days": "30"
7528 },
7529 "response": {
7530 "activated": true,
7531 "private_hidden": 0,
7532 "totals": [
7533 {
7534 "alert_type": "secret_scanning",
7535 "open": {
7536 "critical": 1,
7537 "high": 0,
7538 "medium": 0,
7539 "low": 0,
7540 "unknown": 0
7541 },
7542 "opened": 2,
7543 "closed": 1
7544 },
7545 {
7546 "alert_type": "code_scanning",
7547 "open": {
7548 "critical": 0,
7549 "high": 3,
7550 "medium": 4,
7551 "low": 0,
7552 "unknown": 0
7553 },
7554 "opened": 7,
7555 "closed": 2
7556 },
7557 {
7558 "alert_type": "vulnerability",
7559 "open": {
7560 "critical": 0,
7561 "high": 1,
7562 "medium": 2,
7563 "low": 1,
7564 "unknown": 0
7565 },
7566 "opened": 3,
7567 "closed": 5
7568 }
7569 ],
7570 "trend": [
7571 {
7572 "day": "2026-10-05",
7573 "secret_scanning": 1,
7574 "code_scanning": 8,
7575 "vulnerability": 6
7576 },
7577 {
7578 "day": "2026-10-06",
7579 "secret_scanning": 1,
7580 "code_scanning": 7,
7581 "vulnerability": 4
7582 }
7583 ],
7584 "repos": [
7585 {
7586 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7587 "name": "hello",
7588 "private": true,
7589 "custom_patterns": 1,
7590 "validity_checks": true,
7591 "code_scanning_at": "2026-10-06T09:14:02.118Z",
7592 "dependency_review": true,
7593 "security_updates": true,
7594 "lockfiles": 1,
7595 "secrets": {
7596 "critical": 1,
7597 "high": 0,
7598 "medium": 0,
7599 "low": 0,
7600 "unknown": 0
7601 },
7602 "code": {
7603 "critical": 0,
7604 "high": 3,
7605 "medium": 4,
7606 "low": 0,
7607 "unknown": 0
7608 },
7609 "vulnerabilities": {
7610 "critical": 0,
7611 "high": 1,
7612 "medium": 2,
7613 "low": 1,
7614 "unknown": 0
7615 }
7616 }
7617 ]
7618 }
7619 },
7620 "create_label": {
7621 "request": {
7622 "label": "area: cli",
7623 "color": "1d76db",
7624 "description": "The command-line tool"
7625 },
7626 "response": {
7627 "name": "area: cli",
7628 "color": "1d76db",
7629 "description": "The command-line tool",
7630 "issues": 0,
7631 "pulls": 0
7632 }
7633 },
7634 "update_label": {
7635 "params": {
7636 "label": "area: cli"
7637 },
7638 "request": {
7639 "new_name": "cli",
7640 "color": "0052cc"
7641 },
7642 "response": {
7643 "name": "cli",
7644 "color": "0052cc",
7645 "description": "The command-line tool",
7646 "issues": 3,
7647 "pulls": 1
7648 },
7649 "notes": "Renaming a label renames it on every issue and pull request that carries it."
7650 },
7651 "delete_label": {
7652 "params": {
7653 "label": "wontfix"
7654 },
7655 "response": true
7656 },
7657 "add_default_labels": {
7658 "response": [
7659 {
7660 "name": "bug",
7661 "color": "d73a4a",
7662 "description": "Something isn't working",
7663 "issues": 4,
7664 "pulls": 1
7665 },
7666 {
7667 "name": "documentation",
7668 "color": "0075ca",
7669 "description": "Improvements or additions to documentation",
7670 "issues": 0,
7671 "pulls": 0
7672 }
7673 ],
7674 "notes": "Every label the repository has afterwards, shortened here. Labels it already had are left as they were."
7675 },
7676 "list_issue_labels": {
7677 "response": [
7678 {
7679 "name": "bug",
7680 "color": "d73a4a",
7681 "description": "Something isn't working",
7682 "issues": 4,
7683 "pulls": 1
7684 },
7685 {
7686 "name": "help wanted",
7687 "color": "008672",
7688 "description": "Extra attention is needed",
7689 "issues": 1,
7690 "pulls": 0
7691 }
7692 ]
7693 },
7694 "add_issue_labels": {
7695 "request": {
7696 "labels": [
7697 "help wanted"
7698 ]
7699 },
7700 "response": [
7701 "bug",
7702 "help wanted"
7703 ],
7704 "notes": "Returns its labels now, by name."
7705 },
7706 "set_issue_labels": {
7707 "request": {
7708 "labels": [
7709 "bug"
7710 ]
7711 },
7712 "response": [
7713 "bug"
7714 ]
7715 },
7716 "remove_issue_labels": {
7717 "response": []
7718 },
7719 "remove_issue_label": {
7720 "params": {
7721 "label": "help wanted"
7722 },
7723 "response": [
7724 "bug"
7725 ]
7726 },
7727 "list_milestones": {
7728 "response": [
7729 {
7730 "number": 3,
7731 "title": "Launch",
7732 "description": "Everything that has to land before the launch on October 14.",
7733 "due_on": "2026-10-14",
7734 "state": "open",
7735 "open_items": 5,
7736 "closed_items": 12,
7737 "created_at": "2026-09-20T09:00:00.000Z",
7738 "updated_at": "2026-10-06T16:12:40.118Z",
7739 "closed_at": null
7740 }
7741 ],
7742 "notes": "Open milestones soonest due first, then closed ones. Progress is closed_items out of open_items plus closed_items."
7743 },
7744 "create_milestone": {
7745 "request": {
7746 "title": "Launch",
7747 "description": "Everything that has to land before the launch on October 14.",
7748 "due_on": "2026-10-14"
7749 },
7750 "response": {
7751 "number": 3,
7752 "title": "Launch",
7753 "description": "Everything that has to land before the launch on October 14.",
7754 "due_on": "2026-10-14",
7755 "state": "open",
7756 "open_items": 0,
7757 "closed_items": 0,
7758 "created_at": "2026-09-20T09:00:00.000Z",
7759 "updated_at": "2026-09-20T09:00:00.000Z",
7760 "closed_at": null
7761 }
7762 },
7763 "update_milestone": {
7764 "params": {
7765 "milestone": 3
7766 },
7767 "request": {
7768 "state": "closed"
7769 },
7770 "response": {
7771 "number": 3,
7772 "title": "Launch",
7773 "description": "Everything that has to land before the launch on October 14.",
7774 "due_on": "2026-10-14",
7775 "state": "closed",
7776 "open_items": 0,
7777 "closed_items": 17,
7778 "created_at": "2026-09-20T09:00:00.000Z",
7779 "updated_at": "2026-10-14T18:00:00.000Z",
7780 "closed_at": "2026-10-14T18:00:00.000Z"
7781 }
7782 },
7783 "delete_milestone": {
7784 "params": {
7785 "milestone": 3
7786 },
7787 "response": true
7788 },
7789 "get_milestone": {
7790 "params": {
7791 "milestone": 3
7792 },
7793 "response": {
7794 "milestone": {
7795 "number": 3,
7796 "title": "Launch",
7797 "description": "Everything that has to land before the launch on October 14.",
7798 "due_on": "2026-10-14",
7799 "state": "open",
7800 "open_items": 5,
7801 "closed_items": 12,
7802 "created_at": "2026-09-20T09:00:00.000Z",
7803 "updated_at": "2026-10-06T16:12:40.118Z",
7804 "closed_at": null
7805 },
7806 "issues": [
7807 {
7808 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
7809 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
7810 "number": 12,
7811 "title": "Greeting should name the caller",
7812 "body": "Take a name from the first argument; fall back to world.",
7813 "labels": [
7814 "feature",
7815 "good first issue"
7816 ],
7817 "state": "open",
7818 "reason": null,
7819 "resolved_by": null,
7820 "author": {
7821 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
7822 "username": "syntaqx",
7823 "kind": "user",
7824 "verified": false,
7825 "workspaces": []
7826 },
7827 "requested_by": null,
7828 "created_at": "2026-10-01T18:04:11.482Z",
7829 "updated_at": "2026-10-01T18:09:47.305Z",
7830 "closed_at": null,
7831 "pull_count": 0,
7832 "comment_count": 0,
7833 "assignees": [
7834 "syntaqx"
7835 ],
7836 "blocked_by": [],
7837 "queued": false,
7838 "agent": null,
7839 "milestone": {
7840 "number": 3,
7841 "title": "Launch"
7842 }
7843 }
7844 ],
7845 "pulls": [
7846 {
7847 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
7848 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
7849 "number": 14,
7850 "issue": 12,
7851 "title": "Greeting should name the caller",
7852 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
7853 "agent": "claude-code",
7854 "runtime": "external",
7855 "status": "open",
7856 "fork": {
7857 "namespace": "pulls",
7858 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
7859 },
7860 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
7861 "branch": null,
7862 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
7863 "merge_base": null,
7864 "merged_by": null,
7865 "merged_at": null,
7866 "superseded_by": null,
7867 "check_status": "passed",
7868 "files": [
7869 {
7870 "path": "src/main.rs",
7871 "additions": 6,
7872 "deletions": 2
7873 }
7874 ],
7875 "assignees": [],
7876 "reviewers": [
7877 "ana"
7878 ],
7879 "labels": [],
7880 "milestone": {
7881 "number": 3,
7882 "title": "Launch"
7883 },
7884 "base": "main",
7885 "author": {
7886 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
7887 "username": "syntaqx",
7888 "kind": "user",
7889 "verified": false,
7890 "workspaces": []
7891 },
7892 "requested_by": null,
7893 "created_at": "2026-10-01T18:20:02.117Z",
7894 "updated_at": "2026-10-01T18:35:44.902Z",
7895 "confidence": null
7896 }
7897 ]
7898 }
7899 },
7900 "update_pull_request": {
7901 "request": {
7902 "base": "release/1.x",
7903 "labels": [
7904 "bug"
7905 ]
7906 },
7907 "response": {
7908 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
7909 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
7910 "number": 14,
7911 "issue": 12,
7912 "title": "Greeting should name the caller",
7913 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
7914 "agent": "claude-code",
7915 "runtime": "external",
7916 "status": "open",
7917 "fork": {
7918 "namespace": "pulls",
7919 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
7920 },
7921 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
7922 "branch": null,
7923 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
7924 "merge_base": null,
7925 "merged_by": null,
7926 "merged_at": null,
7927 "superseded_by": null,
7928 "check_status": "passed",
7929 "files": [
7930 {
7931 "path": "src/main.rs",
7932 "additions": 6,
7933 "deletions": 2
7934 }
7935 ],
7936 "assignees": [],
7937 "reviewers": [
7938 "ana"
7939 ],
7940 "labels": [
7941 "bug"
7942 ],
7943 "milestone": null,
7944 "base": "release/1.x",
7945 "author": {
7946 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
7947 "username": "syntaqx",
7948 "kind": "user",
7949 "verified": false,
7950 "workspaces": []
7951 },
7952 "requested_by": null,
7953 "created_at": "2026-10-01T18:20:02.117Z",
7954 "updated_at": "2026-10-01T18:35:44.902Z",
7955 "confidence": null
7956 },
7957 "notes": "A new base takes it out of the merge queue, and whether it is behind, merges cleanly and has the checks it needs is worked out against the new base."
Merge branch 'worktree-agent-ab2e39e11a6493412'7958 }
7959}

This file's history is long; its oldest lines are credited to the oldest commit read.