Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh
14,269 linesCodeBlameRaw

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.

sudo: discounts listed among what was given away1{
Merge Stripe Tax, the card fee on card payments, and one free workspace per person2 "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",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar23 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person24 "verified": true
25 }
26 },
27 "whoami": {
28 "response": {
29 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
30 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar31 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person32 "kind": "user",
33 "verified": true,
34 "workspaces": [
35 {
36 "slug": "acme",
37 "role": "member",
38 "base_permission": "write"
39 },
40 {
41 "slug": "flagon-io",
42 "role": "owner",
43 "base_permission": "write"
44 }
45 ],
46 "token": {
47 "token_id": "tok_01kkntd3p2v8x6ym5r0c1q7a9e",
48 "scopes": [
49 "repo:read",
50 "issues:read",
51 "issues:write",
52 "pull_requests:read",
53 "pull_requests:write"
54 ]
55 }
56 },
57 "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/)."
58 },
59 "create_workspace": {
60 "request": {
61 "slug": "acme-labs",
62 "name": "Acme Labs"
63 },
64 "response": {
65 "id": "wsp_01m43teqa9em6bje0bhvdj4jkb",
66 "slug": "acme-labs",
67 "name": "Acme Labs",
68 "description": null,
69 "created_at": "2026-10-04T16:02:51.337Z",
70 "member_count": 1,
Merge main (membership, two-factor, GitHub repo roles) into tokens71 "base_permission": "read",
72 "team_creation": "members",
73 "members_can_create_public_repositories": true,
74 "members_can_create_private_repositories": true,
75 "members_can_change_repo_visibility": true,
76 "members_can_delete_repositories": false,
77 "members_can_invite_outside_collaborators": true,
78 "two_factor_requirement_enabled": false
Merge Stripe Tax, the card fee on card payments, and one free workspace per person79 },
Merge main (membership, two-factor, GitHub repo roles) into tokens80 "notes": "`base_permission` is what every member gets on each of its repositories: `read` for a new workspace until an owner changes it with `PATCH /workspaces/{workspace}` or `PUT /workspaces/{workspace}/base_permission`. See [Access and roles](/guides/access-and-roles/). `team_creation` is who may create its teams: `members` (any member) until an owner sets `owners` with `PATCH /workspaces/{workspace}`. A new workspace is free, and each person owns at most one free workspace: while you own one, this answers `402` with `payment_required` and says which, until it is on the plan or deleted. See [One free workspace per person](/guides/usage-and-billing/#one-free-workspace-per-person)."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person81 },
82 "get_workspace": {
83 "params": {
84 "workspace": "acme-labs"
85 },
86 "response": {
87 "id": "wsp_01m43teqa9em6bje0bhvdj4jkb",
88 "slug": "acme-labs",
89 "name": "Acme Labs",
90 "description": "Rockets, and the software that flies them.",
91 "created_at": "2026-10-04T16:02:51.337Z",
92 "member_count": 3,
93 "base_permission": "write",
Merge main (membership, two-factor, GitHub repo roles) into tokens94 "team_creation": "members",
95 "members_can_create_public_repositories": true,
96 "members_can_create_private_repositories": true,
97 "members_can_change_repo_visibility": true,
98 "members_can_delete_repositories": false,
99 "members_can_invite_outside_collaborators": true,
100 "two_factor_requirement_enabled": false
Merge Stripe Tax, the card fee on card payments, and one free workspace per person101 },
Merge main (membership, two-factor, GitHub repo roles) into tokens102 "notes": "`team_creation` is who may create its teams: `members` (any member, the default) or `owners`. The `members_can_…` fields are its [member privileges](/guides/workspaces/#member-privileges), and `two_factor_requirement_enabled` whether it [requires two-factor authentication](/guides/authentication/#require-two-factor-authentication). Change it, and the rest, with [`PATCH /workspaces/{workspace}`](/reference/api/workspaces/update-workspace/). `404` for anyone who is not a member. See [Workspaces](/guides/workspaces/)."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person103 },
104 "update_workspace": {
105 "params": {
106 "workspace": "acme-labs"
107 },
108 "request": {
109 "name": "Acme Labs",
110 "description": "Rockets, and the software that flies them.",
Merge main (membership, two-factor, GitHub repo roles) into tokens111 "team_creation": "owners",
112 "members_can_delete_repositories": true
Merge Stripe Tax, the card fee on card payments, and one free workspace per person113 },
114 "response": {
115 "id": "wsp_01m43teqa9em6bje0bhvdj4jkb",
116 "slug": "acme-labs",
117 "name": "Acme Labs",
118 "description": "Rockets, and the software that flies them.",
119 "created_at": "2026-10-04T16:02:51.337Z",
120 "member_count": 3,
121 "base_permission": "write",
Merge main (membership, two-factor, GitHub repo roles) into tokens122 "team_creation": "owners",
123 "members_can_create_public_repositories": true,
124 "members_can_create_private_repositories": true,
125 "members_can_change_repo_visibility": true,
126 "members_can_delete_repositories": true,
127 "members_can_invite_outside_collaborators": true,
128 "two_factor_requirement_enabled": false
129 },
130 "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. `team_creation` is `members` (any member may create a team, the default) or `owners`; teams already made stay. The `members_can_…` fields are the workspace's member privileges: who may create public and private repositories, and whether members with the Admin role on a repository may change its visibility, delete or transfer it, and invite outside collaborators. `two_factor_requirement_enabled` holds everyone without two-factor authentication out of the workspace until they turn it on, and needs it on your own account first. 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/)."
131 },
132 "list_members": {
133 "params": {
134 "workspace": "acme-labs"
135 },
136 "response": [
137 {
138 "username": "ada",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar139 "display_username": "Ada",
Merge main (membership, two-factor, GitHub repo roles) into tokens140 "role": "owner",
141 "org_roles": [],
142 "two_factor": true,
143 "name": "Ada Lovelace",
144 "avatar": null
145 },
146 {
147 "username": "grace",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar148 "display_username": "grace",
Merge main (membership, two-factor, GitHub repo roles) into tokens149 "role": "member",
150 "org_roles": [
151 "security_manager"
152 ],
153 "two_factor": false,
154 "name": "Grace Hopper",
155 "avatar": null
156 }
157 ],
158 "notes": "Owners first, then by username. `two_factor` is shown to owners only, and is `null` for anyone else. `403` for anyone who is not a member. See [Workspaces](/guides/workspaces/#members-and-owners)."
159 },
160 "update_member": {
161 "params": {
162 "workspace": "acme-labs",
163 "username": "grace"
164 },
165 "request": {
166 "role": "member",
167 "org_roles": [
168 "security_manager"
169 ]
Merge Stripe Tax, the card fee on card payments, and one free workspace per person170 },
Merge main (membership, two-factor, GitHub repo roles) into tokens171 "response": {
172 "username": "grace",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar173 "display_username": "grace",
Merge main (membership, two-factor, GitHub repo roles) into tokens174 "role": "member",
175 "org_roles": [
176 "security_manager"
177 ],
178 "two_factor": null,
179 "name": "Grace Hopper",
180 "avatar": null
181 },
182 "notes": "Only the fields given change; `org_roles` replaces the list. `409` when it would leave the workspace without an owner. Refused with `403` for anyone but an owner signed in as a person. Recorded in the [audit log](/guides/audit-log/) as `member.role_changed`, `member.org_role_added` or `member.org_role_removed`. See [Workspaces](/guides/workspaces/#members-and-owners)."
183 },
184 "remove_member": {
185 "params": {
186 "workspace": "acme-labs",
187 "username": "grace"
188 },
189 "response": true,
190 "notes": "Their roles on the workspace's repositories and their place in its teams go with them. Your own username is leaving, as [`leave_workspace`](/reference/api/members/leave-workspace/). `409` for the last owner. Recorded as `member.removed`."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person191 },
Merge main (membership, two-factor, GitHub repo roles) into tokens192 "transfer_ownership": {
193 "params": {
194 "workspace": "acme-labs"
195 },
196 "request": {
197 "username": "grace"
198 },
199 "response": true,
200 "notes": "`username` becomes an owner and you a member, in one step. Recorded as `workspace.ownership_transferred`."
201 },
202 "leave_workspace": {
203 "params": {
204 "workspace": "acme-labs"
205 },
206 "response": true,
207 "notes": "`409` for the last owner: make another member an owner first, or delete the workspace. Recorded as `member.left`."
208 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person209 "delete_workspace": {
210 "request": {
211 "confirm": "acme-labs"
212 },
213 "response": true,
214 "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)."
215 },
216 "list_emails": {
217 "response": {
218 "emails": [
219 {
220 "email": "ada@example.com",
221 "verified": true,
222 "primary": true,
223 "backup": false,
224 "created_at": "2026-09-01T10:00:00.000Z",
225 "verified_at": "2026-09-01T10:02:11.000Z"
226 },
227 {
228 "email": "ada@acme.com",
229 "verified": true,
230 "primary": false,
231 "backup": true,
232 "created_at": "2026-10-02T09:30:00.000Z",
233 "verified_at": "2026-10-02T09:31:40.000Z"
234 },
235 {
236 "email": "ada.l@example.org",
237 "verified": false,
238 "primary": false,
239 "backup": false,
240 "created_at": "2026-10-05T14:12:03.000Z",
241 "verified_at": null
242 }
243 ],
244 "private_email": true,
245 "block_private_pushes": false,
246 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
247 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
248 "limit": 10
249 },
250 "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)."
251 },
252 "add_email": {
253 "request": {
254 "email": "ada.l@example.org",
255 "password": "…"
256 },
257 "response": {
258 "emails": [
259 {
260 "email": "ada@example.com",
261 "verified": true,
262 "primary": true,
263 "backup": false,
264 "created_at": "2026-09-01T10:00:00.000Z",
265 "verified_at": "2026-09-01T10:02:11.000Z"
266 },
267 {
268 "email": "ada@acme.com",
269 "verified": true,
270 "primary": false,
271 "backup": true,
272 "created_at": "2026-10-02T09:30:00.000Z",
273 "verified_at": "2026-10-02T09:31:40.000Z"
274 },
275 {
276 "email": "ada.l@example.org",
277 "verified": false,
278 "primary": false,
279 "backup": false,
280 "created_at": "2026-10-05T14:12:03.000Z",
281 "verified_at": null
282 }
283 ],
284 "private_email": true,
285 "block_private_pushes": false,
286 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
287 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
288 "limit": 10
289 },
Merge email confirmation gate: a code and a link, nothing until confirmed (identity 0036)290 "notes": "Answers `403` with code `reauth_required` when `password` is missing or wrong, and `409` when another account has confirmed the address. g1t emails the address a six-digit code and a link; it stays unconfirmed until the code is sent to [`confirm_email`](/reference/api/accounts/confirm-email/) or the link is followed."
291 },
292 "confirm_email": {
293 "request": {
294 "code": "482913"
295 },
296 "response": {
297 "username": "ada",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar298 "display_username": "Ada",
Merge email confirmation gate: a code and a link, nothing until confirmed (identity 0036)299 "email": "ada@example.com",
300 "verified": true,
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)301 "joined": null,
302 "invited_to": "acme",
Merge email confirmation gate: a code and a link, nothing until confirmed (identity 0036)303 "invite_lapsed": null
304 },
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)305 "notes": "The code confirms the address it was sent to, and ends the link sent with it. A wrong, used or expired code answers `422` with one message for all three; after ten wrong codes in an hour the account answers `409` for a while, and the link in the email still works. `verified` says whether the account is confirmed: whether its primary address is. `invited_to` is set when the invite the account signed up with brings it into a workspace: confirming the address sends the account an invitation to that workspace, which it accepts with `POST /user/invitations/{id}/accept` or declines; nobody joins a workspace without saying yes. `joined` is kept for older clients and is null. When the invite was revoked or expired, or the workspace deleted, while the account waited, the address is confirmed all the same and `invite_lapsed` says so. See [Confirming your email address](/guides/authentication/#confirming-your-email-address)."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person306 },
307 "remove_email": {
308 "request": {
309 "password": "…"
310 },
311 "response": {
312 "emails": [
313 {
314 "email": "ada@example.com",
315 "verified": true,
316 "primary": true,
317 "backup": false,
318 "created_at": "2026-09-01T10:00:00.000Z",
319 "verified_at": "2026-09-01T10:02:11.000Z"
320 },
321 {
322 "email": "ada@acme.com",
323 "verified": true,
324 "primary": false,
325 "backup": true,
326 "created_at": "2026-10-02T09:30:00.000Z",
327 "verified_at": "2026-10-02T09:31:40.000Z"
328 },
329 {
330 "email": "ada.l@example.org",
331 "verified": false,
332 "primary": false,
333 "backup": false,
334 "created_at": "2026-10-05T14:12:03.000Z",
335 "verified_at": null
336 }
337 ],
338 "private_email": true,
339 "block_private_pushes": false,
340 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
341 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
342 "limit": 10
343 },
344 "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."
345 },
346 "update_email_settings": {
347 "request": {
348 "primary": "ada@acme.com",
349 "password": "…"
350 },
351 "response": {
352 "emails": [
353 {
354 "email": "ada@example.com",
355 "verified": true,
356 "primary": true,
357 "backup": false,
358 "created_at": "2026-09-01T10:00:00.000Z",
359 "verified_at": "2026-09-01T10:02:11.000Z"
360 },
361 {
362 "email": "ada@acme.com",
363 "verified": true,
364 "primary": false,
365 "backup": true,
366 "created_at": "2026-10-02T09:30:00.000Z",
367 "verified_at": "2026-10-02T09:31:40.000Z"
368 },
369 {
370 "email": "ada.l@example.org",
371 "verified": false,
372 "primary": false,
373 "backup": false,
374 "created_at": "2026-10-05T14:12:03.000Z",
375 "verified_at": null
376 }
377 ],
378 "private_email": true,
379 "block_private_pushes": false,
380 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
381 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
382 "limit": 10
383 },
384 "notes": "Only the fields given change. `primary` and `backup` need `password`; `private_email` and `block_private_pushes` do not."
385 },
386 "list_workspace_invites": {
387 "response": [
388 {
389 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
390 "code": "g1t-k7m2-q9xd-4hpw-…",
391 "hint": "g1t-k7m2",
392 "email": "ada@example.com",
393 "kind": "account",
394 "workspace": "acme-labs",
395 "status": "pending",
396 "invited_by": "syntaqx",
397 "redeemed_by": null,
398 "created_at": "2026-10-05T17:00:00.000Z",
399 "expires_at": "2026-11-04T17:00:00.000Z",
400 "redeemed_at": null,
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)401 "revoked_at": null,
402 "invitee": null,
403 "role": "member"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person404 },
405 {
406 "id": "inv_01kp1z9y8x7w6v5t4s3r2q1p0n",
407 "code": "g1t-k7m2-q9xd-4hpw-…",
408 "hint": "g1t-w2vb",
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)409 "email": null,
Merge Stripe Tax, the card fee on card payments, and one free workspace per person410 "kind": "workspace",
411 "workspace": "acme-labs",
412 "status": "pending",
413 "invited_by": "syntaqx",
414 "redeemed_by": null,
415 "created_at": "2026-10-05T17:00:00.000Z",
416 "expires_at": "2026-11-04T17:00:00.000Z",
417 "redeemed_at": null,
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)418 "revoked_at": null,
419 "invitee": "linus",
420 "role": "owner"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person421 }
422 ]
423 },
424 "invite_member": {
425 "request": {
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)426 "username": "ada",
427 "role": "member"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person428 },
429 "response": {
430 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
431 "code": "g1t-k7m2-q9xd-4hpw-…",
432 "hint": "g1t-k7m2",
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)433 "email": null,
434 "kind": "workspace",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person435 "workspace": "acme-labs",
436 "status": "pending",
437 "invited_by": "syntaqx",
438 "redeemed_by": null,
439 "created_at": "2026-10-05T17:00:00.000Z",
440 "expires_at": "2026-11-04T17:00:00.000Z",
441 "redeemed_at": null,
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)442 "revoked_at": null,
443 "invitee": "ada",
444 "role": "member"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person445 },
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)446 "notes": "Give `username` or `email`. Nobody is added without saying yes: the person gets an invitation to accept or decline, and joins with `role` when they accept. By username, `invitee` names the account and it costs nothing; `404` when there is no account with that username. By email, `kind` is `workspace` when the address already has a g1t account (`charged_to` is then `none`), and `account` when the link makes one; both answers look alike to the caller on purpose, and `invitee` stays null until an account is known. `409` when the person is already a member or already has a pending invitation to the workspace. A free workspace cannot invite anyone: `402` with `payment_required`, until it starts the g1t plan. See [Workspace invitations](/reference/api/invites/list-invitations/) for the other side."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person447 },
448 "revoke_workspace_invite": {
449 "response": {
450 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
451 "code": null,
452 "hint": "g1t-k7m2",
453 "email": "ada@example.com",
454 "kind": "account",
455 "workspace": "acme-labs",
456 "status": "revoked",
457 "invited_by": "syntaqx",
458 "redeemed_by": null,
459 "created_at": "2026-10-05T17:00:00.000Z",
460 "expires_at": "2026-11-04T17:00:00.000Z",
461 "redeemed_at": null,
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)462 "revoked_at": "2026-10-06T08:00:00.000Z",
463 "invitee": null,
464 "role": "member"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person465 }
466 },
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)467 "list_invitations": {
468 "response": [
469 {
470 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
471 "workspace": {
472 "slug": "acme-labs",
473 "name": "Acme Labs",
474 "avatar": null
475 },
476 "role": "member",
477 "invited_by": {
478 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar479 "display_username": "syntaqx",
Merge workspace invitations: nobody joins a workspace without saying yes, people are found by username, your own invites can bring someone in, and nobody is left without a workspace (identity 0040)480 "name": "Chase",
481 "avatar": null
482 },
483 "created_at": "2026-10-05T17:00:00.000Z",
484 "expires_at": "2026-11-04T17:00:00.000Z"
485 }
486 ],
487 "notes": "Accept one with `POST /user/invitations/{id}/accept`, or decline it with `POST /user/invitations/{id}/decline`. An agent's or a workspace's token gets an empty list."
488 },
489 "accept_invitation": {
490 "params": {
491 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y"
492 },
493 "response": {
494 "workspace": "acme-labs"
495 },
496 "notes": "You join at once with the invitation's `role`. `404` when you have no open invitation with that id (it may have been answered, revoked or expired). `403` until you confirm your email address, and when your account does not meet what the workspace asks of its members, such as two-factor authentication, with a message that says what to turn on. `402` with `payment_required` while the workspace is on the free plan; the invitation stays open until it starts the g1t plan. Recorded as `member.added`."
497 },
498 "decline_invitation": {
499 "params": {
500 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y"
501 },
502 "response": true,
503 "notes": "Whoever sent it is told in their inbox. The workspace's owners can invite you again. `404` when you have no open invitation with that id."
504 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person505 "list_repos": {
506 "query": {
507 "q": "hello"
508 },
509 "response": [
510 {
511 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
512 "namespace": "flagon-io",
513 "name": "hello",
514 "description": "A tiny service that says hello.",
515 "is_private": false,
516 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
517 "default_branch": "main",
518 "fork_of": null,
519 "protected": true,
520 "created_at": "2026-09-28T14:11:52.640Z",
521 "website": "https://hello.g1t.page",
522 "archived_at": null
523 }
524 ],
525 "notes": "Returns at most 50 repositories, newest first. Forks made for pull requests are left out."
526 },
527 "create_repo": {
528 "request": {
529 "workspace": "flagon-io",
530 "name": "hello-cli",
531 "description": "Command-line client for hello.",
532 "private": false
533 },
534 "response": {
535 "id": "rep_01m43tk1jhehztx23drs87f5fc",
536 "namespace": "flagon-io",
537 "name": "hello-cli",
538 "description": "Command-line client for hello.",
539 "is_private": false,
540 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
541 "default_branch": "main",
542 "fork_of": null,
543 "protected": false,
544 "created_at": "2026-10-04T16:05:12.913Z",
545 "website": "https://hello.g1t.page",
546 "archived_at": null
547 },
548 "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."
549 },
550 "get_repo": {
551 "response": {
552 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
553 "namespace": "flagon-io",
554 "name": "hello",
555 "description": "A tiny service that says hello.",
556 "is_private": false,
557 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
558 "default_branch": "main",
559 "fork_of": null,
560 "protected": true,
561 "created_at": "2026-09-28T14:11:52.640Z",
562 "website": "https://hello.g1t.page",
563 "archived_at": null
564 }
565 },
566 "update_repo": {
567 "request": {
568 "description": "Says hello, politely.",
569 "website": "hello.g1t.page",
570 "default_branch": "trunk",
571 "protected": true
572 },
573 "response": {
574 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
575 "namespace": "flagon-io",
576 "name": "hello",
577 "description": "Says hello, politely.",
578 "is_private": false,
579 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
580 "default_branch": "trunk",
581 "fork_of": null,
582 "protected": true,
583 "created_at": "2026-09-28T14:11:52.640Z",
584 "topics": [
585 "http",
586 "example"
587 ],
588 "website": "https://hello.g1t.page",
589 "archived_at": null
590 },
591 "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/)."
592 },
593 "transfer_repo": {
594 "request": {
595 "to": "flagon-io"
596 },
597 "response": {
598 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
599 "namespace": "flagon-io",
600 "name": "hello",
601 "description": "A tiny service that says hello.",
602 "is_private": false,
603 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
604 "default_branch": "main",
605 "fork_of": null,
606 "protected": true,
607 "created_at": "2026-09-28T14:11:52.640Z",
608 "website": "https://hello.g1t.page",
609 "archived_at": null
610 },
611 "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/)."
612 },
613 "rename_repo": {
614 "request": {
615 "name": "greeter"
616 },
617 "response": {
618 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
619 "namespace": "flagon-io",
620 "name": "greeter",
621 "description": "A tiny service that says hello.",
622 "is_private": false,
623 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
624 "default_branch": "main",
625 "fork_of": null,
626 "protected": true,
627 "created_at": "2026-09-28T14:11:52.640Z",
628 "topics": [
629 "http",
630 "example"
631 ],
632 "website": "https://hello.g1t.page",
633 "archived_at": null
634 },
635 "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)."
636 },
637 "rename_branch": {
638 "params": {
639 "owner": "flagon-io",
640 "name": "hello",
641 "branch": "feature/login"
642 },
643 "request": {
644 "new_name": "feature/sign-in"
645 },
646 "response": {
647 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
648 "namespace": "flagon-io",
649 "name": "hello",
650 "description": "A tiny service that says hello.",
651 "is_private": false,
652 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
653 "default_branch": "main",
654 "fork_of": null,
655 "protected": true,
656 "created_at": "2026-09-28T14:11:52.640Z",
657 "topics": [
658 "http",
659 "example"
660 ],
661 "website": "https://hello.g1t.page",
662 "archived_at": null
663 },
664 "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)."
665 },
The Branches page does things to branches now. It has tabs (Overview, Yours, Active, Stale, All, kept in the address as ?tab=) and search; Overview shows the default branch, then the first five of your branches, the active ones and the stale ones, each linking to the rest. Each branch is a row with its name in a code chip with a copy button, who made its latest commit and when, that commit's checks, behind and ahead counts with bars drawn against the largest shown, and its pull request (the open one, else the newest merged or closed) with its state; on a phone the columns fold under the name. Yours is branches whose latest commit is the viewer's; stale is no commit in 90 days.666 "create_branch": {
667 "request": {
668 "name": "feature/login",
669 "from": "main"
670 },
671 "response": {
672 "name": "feature/login",
673 "hash": "9f2c4e1b7a3d5c6e8f0a1b2c3d4e5f6a7b8c9d0e"
674 },
675 "notes": "The new branch and the commit it points to. `from` is a branch, a tag or a commit, the default branch when left out; to restore a deleted branch, send the `hash` that deleting it answered with. Refused with `404` when `from` names nothing, `409` when the name is taken or is a folder of another branch's name (or holds one), `422` when it is not a valid branch name, and `403` without the Write role or when the repository's rules refuse it. See [Branches](/guides/git/#branches)."
676 },
677 "delete_branch": {
678 "params": {
679 "owner": "flagon-io",
680 "name": "hello",
681 "branch": "feature/login"
682 },
683 "response": {
684 "name": "feature/login",
685 "hash": "9f2c4e1b7a3d5c6e8f0a1b2c3d4e5f6a7b8c9d0e"
686 },
687 "notes": "The branch as it was. Its commits stay in the repository: `POST /repos/{owner}/{name}/branches` with this `hash` as `from` restores it. Add `?head=<sha>` to leave it alone (`409`) if it has moved from the commit you saw. Refused with `403` for the default branch, without the Write role, or when the repository's rules refuse it, and `404` when there is no such branch. Send a branch name with slashes URL-encoded, as one path segment. See [Branches](/guides/git/#branches)."
688 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person689 "set_repo_visibility": {
690 "request": {
691 "private": true,
692 "confirm": "flagon-io/hello"
693 },
694 "response": {
695 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
696 "namespace": "flagon-io",
697 "name": "hello",
698 "description": "A tiny service that says hello.",
699 "is_private": true,
700 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
701 "default_branch": "main",
702 "fork_of": null,
703 "protected": true,
704 "created_at": "2026-09-28T14:11:52.640Z",
705 "topics": [
706 "http",
707 "example"
708 ],
709 "website": "https://hello.g1t.page",
710 "archived_at": null
711 },
712 "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)."
713 },
714 "archive_repo": {
715 "response": {
716 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
717 "namespace": "flagon-io",
718 "name": "hello",
719 "description": "A tiny service that says hello.",
720 "is_private": false,
721 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
722 "default_branch": "main",
723 "fork_of": null,
724 "protected": true,
725 "created_at": "2026-09-28T14:11:52.640Z",
726 "topics": [
727 "http",
728 "example"
729 ],
730 "website": "https://hello.g1t.page",
731 "archived_at": "2026-10-05T09:30:00.000Z"
732 },
733 "notes": "The repository, with `archived_at` set. Needs the Admin role (`403` otherwise). See [Archive a repository](/guides/managing-repositories/#archive-a-repository)."
734 },
735 "unarchive_repo": {
736 "response": {
737 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
738 "namespace": "flagon-io",
739 "name": "hello",
740 "description": "A tiny service that says hello.",
741 "is_private": false,
742 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
743 "default_branch": "main",
744 "fork_of": null,
745 "protected": true,
746 "created_at": "2026-09-28T14:11:52.640Z",
747 "topics": [
748 "http",
749 "example"
750 ],
751 "website": "https://hello.g1t.page",
752 "archived_at": null
753 },
754 "notes": "The repository, with `archived_at` null. Needs the Admin role (`403` otherwise)."
755 },
756 "delete_repo": {
757 "request": {
758 "confirm": "flagon-io/hello"
759 },
760 "response": {
761 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
762 "namespace": "flagon-io",
763 "name": "hello",
764 "description": "A tiny service that says hello.",
765 "is_private": false,
766 "deleted_at": "2026-10-05T09:30:00.000Z",
767 "deleted_by": "syntaqx",
768 "purge_after": "2026-11-04T09:30:00.000Z"
769 },
770 "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)."
771 },
772 "list_deleted_repos": {
773 "params": {
774 "workspace": "flagon-io"
775 },
776 "response": [
777 {
778 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
779 "namespace": "flagon-io",
780 "name": "hello",
781 "description": "A tiny service that says hello.",
782 "is_private": false,
783 "deleted_at": "2026-10-05T09:30:00.000Z",
784 "deleted_by": "syntaqx",
785 "purge_after": "2026-11-04T09:30:00.000Z"
786 }
787 ],
788 "notes": "Newest first. Empty for anyone who is not an owner of the workspace."
789 },
790 "restore_repo": {
791 "response": {
792 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
793 "namespace": "flagon-io",
794 "name": "hello",
795 "description": "A tiny service that says hello.",
796 "is_private": false,
797 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
798 "default_branch": "main",
799 "fork_of": null,
800 "protected": true,
801 "created_at": "2026-09-28T14:11:52.640Z",
802 "topics": [
803 "http",
804 "example"
805 ],
806 "website": "https://hello.g1t.page",
807 "archived_at": null
808 },
809 "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)."
810 },
811 "purge_repo": {
812 "request": {
813 "confirm": "flagon-io/hello"
814 },
815 "response": true,
816 "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."
817 },
818 "get_repo_settings": {
819 "response": {
820 "auto_merge": false,
821 "required_checks": [
822 "CI"
823 ],
824 "require_up_to_date": false,
825 "required_approvals": 0,
826 "count_agent_approvals": true,
827 "allow_ignoring_checks": true,
828 "merge_queue": false,
829 "require_code_owner_review": false,
830 "updated_by": null,
831 "updated_at": null
832 }
833 },
834 "update_repo_settings": {
835 "request": {
836 "required_checks": [
837 "CI",
838 "g1t / deploy"
839 ],
840 "required_approvals": 1,
841 "count_agent_approvals": false,
842 "merge_queue": true,
843 "require_code_owner_review": true
844 },
845 "response": {
846 "auto_merge": false,
847 "required_checks": [
848 "CI",
849 "g1t / deploy"
850 ],
851 "require_up_to_date": false,
852 "required_approvals": 1,
853 "count_agent_approvals": false,
854 "allow_ignoring_checks": true,
855 "merge_queue": true,
856 "require_code_owner_review": true,
857 "updated_by": "syntaqx",
858 "updated_at": "2026-10-04T16:20:37.508Z"
859 },
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.860 "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. See [what a repository can ask for](/guides/working-with-g1t/#what-a-repository-can-ask-for). 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 Stripe Tax, the card fee on card payments, and one free workspace per person861 },
862 "list_check_names": {
863 "response": [
864 {
865 "name": "CI",
866 "events": [
867 "pull_request",
868 "merge_group",
869 "push"
870 ],
871 "last_seen": "2026-10-06T09:14:02.118Z"
872 },
873 {
874 "name": "g1t / deploy",
875 "events": [],
876 "last_seen": "2026-10-06T08:51:40.006Z"
877 }
878 ],
879 "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."
880 },
881 "get_codeowners_errors": {
882 "params": {
883 "owner": "flagon-io",
884 "name": "hello"
885 },
886 "query": {
887 "ref": "main"
888 },
889 "response": {
890 "path": ".github/CODEOWNERS",
891 "ref": "main",
892 "size": 412,
893 "rules": 9,
894 "sections": [
895 "Docs"
896 ],
897 "errors": [
898 {
899 "line": 4,
900 "kind": "unknown_team",
901 "token": "@flagon-io/platform",
902 "message": "@flagon-io/platform is not a team of flagon-io."
903 },
904 {
905 "line": 7,
906 "kind": "negation",
907 "token": "!docs/internal/",
908 "message": "!docs/internal/ starts with !, and negation is not supported; this line is skipped. Give the path a later rule with no owners instead."
909 }
910 ]
911 },
912 "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/)."
913 },
914 "list_events": {
915 "query": {
916 "before": "evt_01m43t2a6c9e3g7j1m5q9t3x7b"
917 },
918 "response": [
919 {
920 "id": "evt_01m43smh3ve52vkcna207vqctf",
921 "type": "pull.opened",
922 "source": "work",
923 "time": "2026-10-01T18:20:02.117Z",
924 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
925 "actor": "usr_01kkntcg1eeb98j62xjm7eh09p",
926 "data": {
927 "pull_id": "pr_01m43smh3vexsr5pmp60qwv0vs",
928 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
929 "number": 14,
930 "issue": 12,
931 "agent": "claude-code"
932 }
933 },
934 {
935 "id": "evt_01m43shrzpf2vt5rxbb02z0xjt",
936 "type": "issue.opened",
937 "source": "work",
938 "time": "2026-10-01T18:04:11.482Z",
939 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
940 "actor": "usr_01kkntcg1eeb98j62xjm7eh09p",
941 "data": {
942 "issue_id": "iss_01m43shrzpfe49x74ga7sj1c6v",
943 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
944 "number": 12,
945 "title": "Greeting should name the caller"
946 }
947 }
948 ],
Merge branch 'worktree-agent-ad531323a21f4c975'949 "notes": "Returns 50 events a page, newest first. To page back, send the `id` of the last event you have as `before`. `actor` is a user id, and `data` depends on `type`.\n\nTo follow a repository without a webhook, send `after` instead: the events written after that event come oldest first, and the last one's `id` is your next `after`. Add `wait` (seconds, at most 25) and a call that finds nothing holds on until a matching event is written or the time is up, then returns what it has, which may be an empty list; call again with the same `after`. Events come in the order g1t wrote them, so none is skipped when two arrive close together.\n\n```sh\ncurl -H \"Authorization: Bearer $G1T_TOKEN\" \\\n \"https://api.g1t.sh/repos/acme/rocket/events?after=evt_01m43smh3ve52vkcna207vqctf&types=work.claimed,integration.failed&numbers=12&wait=25\"\n```\n\n`types` and `numbers` are comma-separated lists in a query string, arrays in a body or an MCP call. `numbers` matches events about those issues and pull requests (`data.number`) and comments, reviews and links on them (`data.issue`). `since` is an RFC 3339 time. `after` and `before` cannot be given together."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person950 },
951 "list_issues": {
952 "query": {
953 "state": "open",
954 "label": "feature"
955 },
956 "response": [
957 {
958 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
959 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
960 "number": 12,
961 "title": "Greeting should name the caller",
962 "body": "Take a name from the first argument; fall back to world.",
963 "labels": [
964 "feature"
965 ],
966 "state": "open",
967 "reason": null,
968 "resolved_by": null,
969 "author": {
970 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
971 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar972 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person973 "kind": "user",
974 "verified": false,
975 "workspaces": []
976 },
977 "requested_by": null,
978 "created_at": "2026-10-01T18:04:11.482Z",
979 "updated_at": "2026-10-01T18:04:11.482Z",
980 "closed_at": null,
981 "pull_count": 1,
982 "comment_count": 0,
983 "assignees": [],
984 "blocked_by": [],
985 "queued": false,
986 "agent": "claude-code",
987 "milestone": null
988 }
989 ],
990 "notes": "Returns at most 100 issues, newest first. `comment_count` counts comments, not events such as \"opened #14 for this\"."
991 },
992 "create_issue": {
993 "request": {
994 "title": "Greeting should name the caller",
995 "body": "Take a name from the first argument; fall back to world.",
996 "labels": [
997 "feature"
998 ]
999 },
1000 "response": {
1001 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
1002 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1003 "number": 12,
1004 "title": "Greeting should name the caller",
1005 "body": "Take a name from the first argument; fall back to world.",
1006 "labels": [
1007 "feature"
1008 ],
1009 "state": "open",
1010 "reason": null,
1011 "resolved_by": null,
1012 "author": {
1013 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1014 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1015 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1016 "kind": "user",
1017 "verified": false,
1018 "workspaces": []
1019 },
1020 "requested_by": null,
1021 "created_at": "2026-10-01T18:04:11.482Z",
1022 "updated_at": "2026-10-01T18:04:11.482Z",
1023 "closed_at": null,
1024 "pull_count": 0,
1025 "comment_count": 0,
1026 "assignees": [],
1027 "blocked_by": [],
1028 "queued": false,
1029 "agent": null,
1030 "milestone": null
1031 },
1032 "notes": "Labels are lowercased. A label not used before is created."
1033 },
1034 "get_issue": {
1035 "response": {
1036 "issue": {
1037 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
1038 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1039 "number": 12,
1040 "title": "Greeting should name the caller",
1041 "body": "Take a name from the first argument; fall back to world.",
1042 "labels": [
1043 "feature"
1044 ],
1045 "state": "closed",
1046 "reason": "completed",
1047 "resolved_by": 14,
1048 "author": {
1049 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1050 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1051 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1052 "kind": "user",
1053 "verified": false,
1054 "workspaces": []
1055 },
1056 "requested_by": null,
1057 "created_at": "2026-10-01T18:04:11.482Z",
1058 "updated_at": "2026-10-01T18:52:17.093Z",
1059 "closed_at": "2026-10-01T18:52:17.093Z",
1060 "pull_count": 2,
1061 "comment_count": 0,
1062 "assignees": [],
1063 "blocked_by": [],
1064 "queued": false,
1065 "agent": null,
1066 "milestone": null
1067 },
1068 "pulls": [
1069 {
1070 "id": "pr_01m43sjq8tcz5rbm2a7k4d9e6w",
1071 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1072 "number": 13,
1073 "issue": 12,
1074 "title": "Greeting should name the caller",
1075 "body": null,
1076 "agent": "claude-code",
1077 "runtime": "external",
1078 "status": "closed",
1079 "fork": {
1080 "namespace": "pulls",
1081 "name": "pr_01m43sjq8tcz5rbm2a7k4d9e6w"
1082 },
1083 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
1084 "branch": null,
1085 "head_commit": null,
1086 "merge_base": null,
1087 "merged_by": null,
1088 "merged_at": null,
1089 "superseded_by": 14,
1090 "check_status": null,
1091 "files": [],
1092 "assignees": [],
1093 "reviewers": [],
1094 "labels": [],
1095 "milestone": null,
1096 "base": "main",
1097 "author": {
1098 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1099 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1100 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1101 "kind": "user",
1102 "verified": false,
1103 "workspaces": []
1104 },
1105 "requested_by": null,
1106 "created_at": "2026-10-01T18:20:02.117Z",
1107 "updated_at": "2026-10-01T18:20:02.117Z"
1108 },
1109 {
1110 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
1111 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1112 "number": 14,
1113 "issue": 12,
1114 "title": "Greeting should name the caller",
1115 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1116 "agent": "claude-code",
1117 "runtime": "external",
1118 "status": "merged",
1119 "fork": {
1120 "namespace": "pulls",
1121 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1122 },
1123 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
1124 "branch": null,
1125 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1126 "merge_base": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
1127 "merged_by": "syntaqx",
1128 "merged_at": "2026-10-01T18:52:17.093Z",
1129 "superseded_by": null,
1130 "check_status": "passed",
1131 "files": [
1132 {
1133 "path": "src/main.rs",
1134 "additions": 6,
1135 "deletions": 2
1136 }
1137 ],
1138 "assignees": [],
1139 "reviewers": [
1140 "ana"
1141 ],
1142 "labels": [],
1143 "milestone": null,
1144 "base": "main",
1145 "author": {
1146 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1147 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1148 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1149 "kind": "user",
1150 "verified": false,
1151 "workspaces": []
1152 },
1153 "requested_by": null,
1154 "created_at": "2026-10-01T18:20:02.117Z",
1155 "updated_at": "2026-10-01T18:52:17.093Z"
1156 }
1157 ],
1158 "comments": [
1159 {
1160 "id": "cmt_01m43sr2b7d5f0j6k3n8p1q4v9",
1161 "kind": "event",
1162 "author": {
1163 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1164 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1165 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1166 "kind": "user",
1167 "verified": false,
1168 "workspaces": []
1169 },
1170 "body": "opened #14 for this",
1171 "path": null,
1172 "line": null,
1173 "verdict": null,
1174 "created_at": "2026-10-01T18:20:02.141Z"
1175 }
1176 ]
1177 },
1178 "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."
1179 },
1180 "update_issue": {
1181 "request": {
1182 "labels": [
1183 "feature",
1184 "good first issue"
1185 ],
1186 "assignees": [
1187 "syntaqx"
1188 ],
Merge branch 'worktree-agent-a6ec0a89d7fe7a9ae'1189 "milestone": 3,
1190 "blocked_by": [9]
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1191 },
1192 "response": {
1193 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
1194 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1195 "number": 12,
1196 "title": "Greeting should name the caller",
1197 "body": "Take a name from the first argument; fall back to world.",
1198 "labels": [
1199 "feature",
1200 "good first issue"
1201 ],
1202 "state": "open",
1203 "reason": null,
1204 "resolved_by": null,
1205 "author": {
1206 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1207 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1208 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1209 "kind": "user",
1210 "verified": false,
1211 "workspaces": []
1212 },
1213 "requested_by": null,
1214 "created_at": "2026-10-01T18:04:11.482Z",
1215 "updated_at": "2026-10-01T18:09:47.305Z",
1216 "closed_at": null,
1217 "pull_count": 0,
1218 "comment_count": 0,
1219 "assignees": [
1220 "syntaqx"
1221 ],
Merge branch 'worktree-agent-a6ec0a89d7fe7a9ae'1222 "blocked_by": [9],
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1223 "queued": false,
1224 "agent": null,
1225 "milestone": {
1226 "number": 3,
1227 "title": "Launch"
1228 }
1229 }
1230 },
1231 "close_issue": {
1232 "request": {
1233 "reason": "not_planned"
1234 },
1235 "response": {
1236 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
1237 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1238 "number": 12,
1239 "title": "Greeting should name the caller",
1240 "body": "Take a name from the first argument; fall back to world.",
1241 "labels": [
1242 "feature"
1243 ],
1244 "state": "closed",
1245 "reason": "not_planned",
1246 "resolved_by": null,
1247 "author": {
1248 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1249 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1250 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1251 "kind": "user",
1252 "verified": false,
1253 "workspaces": []
1254 },
1255 "requested_by": null,
1256 "created_at": "2026-10-01T18:04:11.482Z",
1257 "updated_at": "2026-10-01T19:30:00.214Z",
1258 "closed_at": "2026-10-01T19:30:00.214Z",
1259 "pull_count": 0,
1260 "comment_count": 0,
1261 "assignees": [],
1262 "blocked_by": [],
1263 "queued": false,
1264 "agent": null,
1265 "milestone": null
1266 }
1267 },
1268 "reopen_issue": {
1269 "response": {
1270 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
1271 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1272 "number": 12,
1273 "title": "Greeting should name the caller",
1274 "body": "Take a name from the first argument; fall back to world.",
1275 "labels": [
1276 "feature"
1277 ],
1278 "state": "open",
1279 "reason": null,
1280 "resolved_by": null,
1281 "author": {
1282 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1283 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1284 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1285 "kind": "user",
1286 "verified": false,
1287 "workspaces": []
1288 },
1289 "requested_by": null,
1290 "created_at": "2026-10-01T18:04:11.482Z",
1291 "updated_at": "2026-10-01T19:41:52.830Z",
1292 "closed_at": null,
1293 "pull_count": 0,
1294 "comment_count": 0,
1295 "assignees": [],
1296 "blocked_by": [],
1297 "queued": false,
1298 "agent": null,
1299 "milestone": null
1300 }
1301 },
1302 "add_comment": {
1303 "request": {
1304 "body": "Should an empty name fall back to \"world\"?"
1305 },
1306 "response": {
1307 "id": "cmt_01m43sv4c8e2g6j0m4q8t2x6a1",
1308 "kind": "comment",
1309 "author": {
1310 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1311 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1312 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1313 "kind": "user",
1314 "verified": true,
1315 "workspaces": [
1316 {
1317 "slug": "flagon-io",
1318 "role": "owner"
1319 }
1320 ]
1321 },
1322 "body": "Should an empty name fall back to \"world\"?",
1323 "path": null,
1324 "line": null,
1325 "verdict": null,
1326 "created_at": "2026-10-01T18:12:30.551Z"
1327 }
1328 },
Merge Actions: cross-repo workflows and actions, release and deployment triggers, step timeouts1329 "edit_comment": {
1330 "params": {
1331 "comment_id": "cmt_01m43sv4c8e2g6j0m4q8t2x6a1"
1332 },
1333 "request": {
1334 "body": "Should an empty name fall back to \"world\", or print the usage?"
1335 },
1336 "response": {
1337 "id": "cmt_01m43sv4c8e2g6j0m4q8t2x6a1",
1338 "kind": "comment",
1339 "author": {
1340 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1341 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1342 "display_username": "syntaqx",
Merge Actions: cross-repo workflows and actions, release and deployment triggers, step timeouts1343 "kind": "user",
1344 "verified": true,
1345 "workspaces": [
1346 {
1347 "slug": "flagon-io",
1348 "role": "owner"
1349 }
1350 ]
1351 },
1352 "body": "Should an empty name fall back to \"world\", or print the usage?",
1353 "path": null,
1354 "line": null,
1355 "verdict": null,
1356 "created_at": "2026-10-01T18:12:30.551Z",
1357 "edited_at": "2026-10-01T18:30:04.210Z"
1358 },
1359 "notes": "Its author, or someone with the Maintain role or higher. A note of something that happened answers `409`."
1360 },
1361 "delete_comment": {
1362 "params": {
1363 "comment_id": "cmt_01m43sv4c8e2g6j0m4q8t2x6a1"
1364 },
1365 "notes": "Answers `204` with no body. Its author, or someone with the Maintain role or higher. A review that approved or requested changes answers `409`: edit it instead."
1366 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1367 "list_labels": {
1368 "response": [
1369 {
1370 "name": "bug",
1371 "color": "d73a4a",
1372 "description": "Something isn't working",
1373 "issues": 4,
1374 "pulls": 1
1375 },
1376 {
1377 "name": "dependencies",
1378 "color": "0366d6",
1379 "description": "Updates a dependency",
1380 "issues": 0,
1381 "pulls": 6
1382 },
1383 {
1384 "name": "good first issue",
1385 "color": "7057ff",
1386 "description": "Good for newcomers",
1387 "issues": 2,
1388 "pulls": 0
1389 }
1390 ],
1391 "notes": "By name. A new repository starts with the default labels; add_default_labels adds those an older one is missing."
1392 },
1393 "list_pull_requests": {
1394 "query": {
1395 "state": "open"
1396 },
1397 "response": [
1398 {
1399 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
1400 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1401 "number": 14,
1402 "issue": 12,
1403 "title": "Greeting should name the caller",
1404 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1405 "agent": "claude-code",
1406 "runtime": "external",
1407 "status": "open",
1408 "fork": {
1409 "namespace": "pulls",
1410 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1411 },
1412 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
1413 "branch": null,
1414 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1415 "merge_base": null,
1416 "merged_by": null,
1417 "merged_at": null,
1418 "superseded_by": null,
1419 "check_status": "passed",
1420 "files": [
1421 {
1422 "path": "src/main.rs",
1423 "additions": 6,
1424 "deletions": 2
1425 }
1426 ],
1427 "assignees": [],
1428 "reviewers": [
1429 "ana"
1430 ],
1431 "team_reviewers": [],
1432 "author": {
1433 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1434 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1435 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1436 "kind": "user",
1437 "verified": false,
1438 "workspaces": []
1439 },
1440 "requested_by": null,
1441 "created_at": "2026-10-01T18:20:02.117Z",
1442 "updated_at": "2026-10-01T18:35:44.902Z",
1443 "labels": [],
1444 "milestone": null,
1445 "base": "main"
1446 }
1447 ],
1448 "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."
1449 },
1450 "create_pull_request": {
1451 "request": {
1452 "issue": 12,
1453 "agent": "claude-code"
1454 },
1455 "response": {
1456 "pull": {
1457 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
1458 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1459 "number": 14,
1460 "issue": 12,
1461 "title": "Greeting should name the caller",
1462 "body": null,
1463 "agent": "claude-code",
1464 "runtime": "external",
1465 "status": "draft",
1466 "fork": {
1467 "namespace": "pulls",
1468 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1469 },
1470 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
1471 "branch": null,
1472 "head_commit": null,
1473 "merge_base": null,
1474 "merged_by": null,
1475 "merged_at": null,
1476 "superseded_by": null,
1477 "check_status": null,
1478 "files": [],
1479 "assignees": [],
1480 "reviewers": [],
1481 "labels": [],
1482 "milestone": null,
1483 "base": "main",
1484 "author": {
1485 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1486 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1487 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1488 "kind": "user",
1489 "verified": false,
1490 "workspaces": []
1491 },
1492 "requested_by": null,
1493 "created_at": "2026-10-01T18:20:02.117Z",
1494 "updated_at": "2026-10-01T18:20:02.117Z"
1495 },
1496 "git": {
1497 "remote": "https://g1t.sh/pulls/pr_01m43smh3vexsr5pmp60qwv0vs.git",
1498 "username": "syntaqx",
1499 "password": "your g1t access token"
1500 }
1501 },
1502 "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."
1503 },
1504 "get_pull_request": {
1505 "response": {
1506 "pull": {
1507 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
1508 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1509 "number": 14,
1510 "issue": 12,
1511 "title": "Greeting should name the caller",
1512 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1513 "agent": "claude-code",
1514 "runtime": "external",
1515 "status": "open",
1516 "fork": {
1517 "namespace": "pulls",
1518 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1519 },
1520 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
1521 "branch": null,
1522 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1523 "merge_base": null,
1524 "merged_by": null,
1525 "merged_at": null,
1526 "superseded_by": null,
1527 "check_status": "passed",
1528 "files": [
1529 {
1530 "path": "src/main.rs",
1531 "additions": 6,
1532 "deletions": 2
1533 }
1534 ],
1535 "assignees": [],
1536 "reviewers": [
1537 "ana"
1538 ],
1539 "team_reviewers": [
1540 "flagon-io/backend"
1541 ],
1542 "author": {
1543 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1544 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1545 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1546 "kind": "user",
1547 "verified": false,
1548 "workspaces": []
1549 },
1550 "requested_by": null,
1551 "created_at": "2026-10-01T18:20:02.117Z",
1552 "updated_at": "2026-10-01T18:35:44.902Z",
1553 "labels": [],
1554 "milestone": null,
1555 "base": "main"
1556 },
1557 "issue": {
1558 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
1559 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1560 "number": 12,
1561 "title": "Greeting should name the caller",
1562 "body": "Take a name from the first argument; fall back to world.",
1563 "labels": [
1564 "feature"
1565 ],
1566 "state": "open",
1567 "reason": null,
1568 "resolved_by": null,
1569 "author": {
1570 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1571 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1572 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1573 "kind": "user",
1574 "verified": false,
1575 "workspaces": []
1576 },
1577 "requested_by": null,
1578 "created_at": "2026-10-01T18:04:11.482Z",
1579 "updated_at": "2026-10-01T18:20:02.117Z",
1580 "closed_at": null,
1581 "pull_count": 1,
1582 "comment_count": 0,
1583 "assignees": [],
1584 "blocked_by": [],
1585 "queued": false,
1586 "agent": "claude-code",
1587 "milestone": null
1588 },
1589 "comments": [
1590 {
1591 "id": "cmt_01m43st6d0f4h8k2n6r0v4z8c2",
1592 "kind": "event",
1593 "author": {
1594 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1595 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1596 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1597 "kind": "user",
1598 "verified": false,
1599 "workspaces": []
1600 },
1601 "body": "marked this ready for review",
1602 "path": null,
1603 "line": null,
1604 "verdict": null,
1605 "created_at": "2026-10-01T18:33:10.420Z"
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1606 },
1607 {
1608 "id": "cmt_01m43sw2a6c0e4h8k2n6r0v4z8",
1609 "kind": "comment",
1610 "author": {
1611 "id": "agt_01m43q8d2f6h0k4n8r2v6z0c4g",
1612 "username": "margo",
1613 "kind": "agent",
1614 "verified": false,
1615 "workspaces": []
1616 },
1617 "body": "The empty-name case is handled and tested. One nit: trim the name before using it.",
1618 "path": null,
1619 "line": null,
1620 "verdict": "approve",
1621 "created_at": "2026-10-01T18:36:41.207Z",
1622 "agent": {
1623 "id": "agt_01m43q8d2f6h0k4n8r2v6z0c4g",
1624 "handle": "margo",
1625 "display_name": "Margo",
1626 "avatar_seed": "margo"
1627 },
1628 "acting_for": {
1629 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1630 "username": "syntaqx",
1631 "kind": "user",
1632 "verified": false,
1633 "workspaces": []
1634 },
1635 "advisory": true
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1636 }
1637 ],
1638 "checks": null,
1639 "overlaps": [],
1640 "behind": false,
1641 "lifecycle": null,
1642 "landing": false,
1643 "stalled": null,
1644 "statuses": [
1645 {
1646 "context": "CI / pull_request",
1647 "state": "success",
1648 "description": "CI passed",
1649 "target_url": "https://g1t.sh/syntaqx/hello/actions/runs/run_01m43sw8e2g6j0m4q8t2x6a0c4",
1650 "updated_at": "2026-10-01T18:35:44.902Z"
1651 }
1652 ],
1653 "required_checks": [
1654 {
1655 "name": "CI",
1656 "state": "success",
1657 "description": "CI passed",
1658 "target_url": "https://g1t.sh/syntaqx/hello/actions/runs/run_01m43sw8e2g6j0m4q8t2x6a0c4"
1659 }
1660 ],
1661 "code_owners": {
1662 "path": ".github/CODEOWNERS",
1663 "required": true,
1664 "reviews": [
1665 {
1666 "section": null,
1667 "line": 3,
1668 "pattern": "/src/",
1669 "owners": [
1670 "@flagon-io/backend"
1671 ],
1672 "files": [
1673 "src/main.rs"
1674 ],
1675 "optional": false,
1676 "required": 1,
1677 "approved_by": [],
1678 "changes_requested_by": [],
1679 "satisfied": false
1680 }
1681 ],
1682 "missing": "Code owners have not approved: @flagon-io/backend for /src/.",
1683 "errors": 0
1684 }
1685 },
1686 "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/)."
1687 },
1688 "get_pull_request_changes": {
1689 "response": {
1690 "base": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
1691 "head": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1692 "files": [
1693 {
1694 "path": "src/main.rs",
1695 "status": "modified",
1696 "additions": 1,
1697 "deletions": 1,
1698 "binary": false,
1699 "hunks": [
1700 {
1701 "lines": [
1702 {
1703 "kind": "context",
1704 "old": 3,
1705 "new": 3,
1706 "text": "fn main() {"
1707 },
1708 {
1709 "kind": "delete",
1710 "old": 4,
1711 "new": null,
1712 "text": " println!(\"Hello, world!\");"
1713 },
1714 {
1715 "kind": "add",
1716 "old": null,
1717 "new": 4,
1718 "text": " println!(\"Hello, {}!\", std::env::args().nth(1).unwrap_or(\"world\".into()));"
1719 },
1720 {
1721 "kind": "context",
1722 "old": 5,
1723 "new": 5,
1724 "text": "}"
1725 }
1726 ]
1727 }
1728 ]
1729 }
1730 ],
1731 "truncated": false
1732 },
1733 "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."
1734 },
1735 "mark_pull_request_ready": {
1736 "request": {
1737 "summary": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\"."
1738 },
1739 "response": {
1740 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
1741 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1742 "number": 14,
1743 "issue": 12,
1744 "title": "Greeting should name the caller",
1745 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1746 "agent": "claude-code",
1747 "runtime": "external",
1748 "status": "open",
1749 "fork": {
1750 "namespace": "pulls",
1751 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1752 },
1753 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
1754 "branch": null,
1755 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1756 "merge_base": null,
1757 "merged_by": null,
1758 "merged_at": null,
1759 "superseded_by": null,
1760 "check_status": null,
1761 "files": [
1762 {
1763 "path": "src/main.rs",
1764 "additions": 6,
1765 "deletions": 2
1766 }
1767 ],
1768 "assignees": [],
1769 "reviewers": [],
1770 "labels": [],
1771 "milestone": null,
1772 "base": "main",
1773 "author": {
1774 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1775 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1776 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1777 "kind": "user",
1778 "verified": false,
1779 "workspaces": []
1780 },
1781 "requested_by": null,
1782 "created_at": "2026-10-01T18:20:02.117Z",
1783 "updated_at": "2026-10-01T18:33:10.398Z"
1784 }
1785 },
1786 "review_pull_request": {
1787 "request": {
1788 "verdict": "request_changes",
1789 "body": "Trim the name before using it."
1790 },
1791 "response": {
1792 "id": "cmt_01m43sx9f3h7k1n5r9v3z7d1g5",
1793 "kind": "comment",
1794 "author": {
1795 "id": "usr_01kz9d3f7h1k5n9r3v7z1c5g9b",
1796 "username": "ana",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1797 "display_username": "Ana",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1798 "kind": "user",
1799 "verified": true,
1800 "workspaces": [
1801 {
1802 "slug": "flagon-io",
1803 "role": "member"
1804 }
1805 ]
1806 },
1807 "body": "Trim the name before using it.",
1808 "path": null,
1809 "line": null,
1810 "verdict": "request_changes",
1811 "created_at": "2026-10-01T18:40:05.019Z"
1812 }
1813 },
1814 "request_reviewers": {
1815 "params": {
1816 "owner": "flagon-io",
1817 "name": "hello",
1818 "number": 14
1819 },
1820 "request": {
1821 "reviewers": [
1822 "bo"
1823 ],
1824 "team_reviewers": [
1825 "backend"
1826 ]
1827 },
1828 "response": {
1829 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
1830 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1831 "number": 14,
1832 "issue": 12,
1833 "title": "Greeting should name the caller",
1834 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1835 "agent": "claude-code",
1836 "runtime": "external",
1837 "status": "open",
1838 "fork": {
1839 "namespace": "pulls",
1840 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1841 },
1842 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
1843 "branch": null,
1844 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1845 "merge_base": null,
1846 "merged_by": null,
1847 "merged_at": null,
1848 "superseded_by": null,
1849 "check_status": "passed",
1850 "files": [
1851 {
1852 "path": "src/main.rs",
1853 "additions": 6,
1854 "deletions": 2
1855 }
1856 ],
1857 "assignees": [],
1858 "reviewers": [
1859 "ana",
1860 "bo"
1861 ],
1862 "team_reviewers": [
1863 "flagon-io/backend"
1864 ],
1865 "author": {
1866 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1867 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1868 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1869 "kind": "user",
1870 "verified": false,
1871 "workspaces": []
1872 },
1873 "requested_by": null,
1874 "created_at": "2026-10-01T18:20:02.117Z",
1875 "updated_at": "2026-10-01T18:40:12.331Z"
1876 },
1877 "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/)."
1878 },
1879 "remove_requested_reviewers": {
1880 "params": {
1881 "owner": "flagon-io",
1882 "name": "hello",
1883 "number": 14
1884 },
1885 "request": {
1886 "reviewers": [
1887 "bo"
1888 ],
1889 "team_reviewers": [
1890 "flagon-io/backend"
1891 ]
1892 },
1893 "response": {
1894 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
1895 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1896 "number": 14,
1897 "issue": 12,
1898 "title": "Greeting should name the caller",
1899 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1900 "agent": "claude-code",
1901 "runtime": "external",
1902 "status": "open",
1903 "fork": {
1904 "namespace": "pulls",
1905 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1906 },
1907 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
1908 "branch": null,
1909 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1910 "merge_base": null,
1911 "merged_by": null,
1912 "merged_at": null,
1913 "superseded_by": null,
1914 "check_status": "passed",
1915 "files": [
1916 {
1917 "path": "src/main.rs",
1918 "additions": 6,
1919 "deletions": 2
1920 }
1921 ],
1922 "assignees": [],
1923 "reviewers": [
1924 "ana"
1925 ],
1926 "team_reviewers": [],
1927 "author": {
1928 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1929 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1930 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1931 "kind": "user",
1932 "verified": false,
1933 "workspaces": []
1934 },
1935 "requested_by": null,
1936 "created_at": "2026-10-01T18:20:02.117Z",
1937 "updated_at": "2026-10-01T18:41:30.904Z"
1938 },
1939 "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."
1940 },
1941 "merge_pull_request": {
1942 "request": {
1943 "keep_issue_open": false
1944 },
1945 "response": {
1946 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
1947 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1948 "number": 14,
1949 "issue": 12,
1950 "title": "Greeting should name the caller",
1951 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1952 "agent": "claude-code",
1953 "runtime": "external",
1954 "status": "merged",
1955 "fork": {
1956 "namespace": "pulls",
1957 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1958 },
1959 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
1960 "branch": null,
1961 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1962 "merge_base": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
1963 "merged_by": "syntaqx",
1964 "merged_at": "2026-10-01T18:52:17.093Z",
1965 "superseded_by": null,
1966 "check_status": "passed",
1967 "files": [
1968 {
1969 "path": "src/main.rs",
1970 "additions": 6,
1971 "deletions": 2
1972 }
1973 ],
1974 "assignees": [],
1975 "reviewers": [
1976 "ana"
1977 ],
1978 "labels": [],
1979 "milestone": null,
1980 "base": "main",
1981 "author": {
1982 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1983 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar1984 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person1985 "kind": "user",
1986 "verified": false,
1987 "workspaces": []
1988 },
1989 "requested_by": null,
1990 "created_at": "2026-10-01T18:20:02.117Z",
1991 "updated_at": "2026-10-01T18:52:17.093Z"
1992 },
1993 "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."
1994 },
1995 "close_pull_request": {
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": "closed",
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": null,
2018 "files": [
2019 {
2020 "path": "src/main.rs",
2021 "additions": 6,
2022 "deletions": 2
2023 }
2024 ],
2025 "assignees": [],
2026 "reviewers": [],
2027 "labels": [],
2028 "milestone": null,
2029 "base": "main",
2030 "author": {
2031 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2032 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar2033 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person2034 "kind": "user",
2035 "verified": false,
2036 "workspaces": []
2037 },
2038 "requested_by": null,
2039 "created_at": "2026-10-01T18:20:02.117Z",
2040 "updated_at": "2026-10-01T19:02:48.760Z"
2041 }
2042 },
Merge Actions: cross-repo workflows and actions, release and deployment triggers, step timeouts2043 "reopen_pull_request": {
2044 "response": {
2045 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
2046 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2047 "number": 14,
2048 "issue": 12,
2049 "title": "Greeting should name the caller",
2050 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
2051 "agent": "claude-code",
2052 "runtime": "external",
2053 "status": "open",
2054 "fork": {
2055 "namespace": "pulls",
2056 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
2057 },
2058 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
2059 "branch": null,
2060 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2061 "merge_base": null,
2062 "merged_by": null,
2063 "merged_at": null,
2064 "superseded_by": null,
2065 "check_status": null,
2066 "files": [
2067 {
2068 "path": "src/main.rs",
2069 "additions": 6,
2070 "deletions": 2
2071 }
2072 ],
2073 "assignees": [],
2074 "reviewers": [],
2075 "labels": [],
2076 "milestone": null,
2077 "base": "main",
2078 "author": {
2079 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2080 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar2081 "display_username": "syntaqx",
Merge Actions: cross-repo workflows and actions, release and deployment triggers, step timeouts2082 "kind": "user",
2083 "verified": false,
2084 "workspaces": []
2085 },
2086 "requested_by": null,
2087 "created_at": "2026-10-01T18:20:02.117Z",
2088 "updated_at": "2026-10-01T19:14:05.322Z"
2089 },
2090 "notes": "A merged pull request, or one that is not closed, answers `409`. A pull request closed as a draft comes back as a draft; any other comes back ready for review. A pull request from a branch of the repository whose branch was deleted answers `409` until the branch is pushed again. The same as `PATCH /repos/{owner}/{repo}/pulls/{number}` with `state` `open`."
2091 },
2092 "convert_pull_request_to_draft": {
2093 "response": {
2094 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
2095 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2096 "number": 14,
2097 "issue": 12,
2098 "title": "Greeting should name the caller",
2099 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
2100 "agent": "claude-code",
2101 "runtime": "external",
2102 "status": "draft",
2103 "fork": {
2104 "namespace": "pulls",
2105 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
2106 },
2107 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
2108 "branch": null,
2109 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2110 "merge_base": null,
2111 "merged_by": null,
2112 "merged_at": null,
2113 "superseded_by": null,
2114 "check_status": null,
2115 "files": [
2116 {
2117 "path": "src/main.rs",
2118 "additions": 6,
2119 "deletions": 2
2120 }
2121 ],
2122 "assignees": [],
2123 "reviewers": [],
2124 "labels": [],
2125 "milestone": null,
2126 "base": "main",
2127 "author": {
2128 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2129 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar2130 "display_username": "syntaqx",
Merge Actions: cross-repo workflows and actions, release and deployment triggers, step timeouts2131 "kind": "user",
2132 "verified": false,
2133 "workspaces": []
2134 },
2135 "requested_by": null,
2136 "created_at": "2026-10-01T18:20:02.117Z",
2137 "updated_at": "2026-10-01T19:20:41.908Z"
2138 },
2139 "notes": "Only a pull request that is open and ready for review can be made a draft; any other answers `409`. It leaves the [merge queue](/guides/merge-queue/)."
2140 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person2141 "get_merge_queue": {
2142 "response": {
2143 "enabled": true,
2144 "active": [
2145 {
2146 "id": "qen_01m43rn0qsft1tpap1awkewzbb",
2147 "number": 14,
2148 "title": "Greeting should name the caller",
2149 "agent": "claude-code",
2150 "state": "testing",
2151 "ahead": [],
2152 "base_commit": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
2153 "combined_commit": null,
2154 "error": null,
2155 "results": [],
2156 "enqueued_by": "syntaqx",
2157 "created_at": "2026-10-04T15:31:20.441Z",
2158 "finished_at": null
2159 }
2160 ],
2161 "recent": [
2162 {
2163 "id": "qen_01m43khqjmeb5a1magayrnk63z",
2164 "number": 11,
2165 "title": "Fix trailing newline in greeting",
2166 "agent": "g1t",
2167 "state": "landed",
2168 "ahead": [],
2169 "base_commit": "4b1d7e9c2a5f8e3d6c0b9a7e5d3c1b8a6f4e2d0c",
2170 "combined_commit": "c3e8a1f6d4b2097e5c3a1f8d6b4e2c0a9f7d5b3e",
2171 "error": null,
2172 "results": [
2173 {
2174 "command": "cargo test",
2175 "passed": true,
2176 "exit_code": 0,
2177 "output": "test result: ok. 12 passed; 0 failed\n",
2178 "duration_ms": 48211
2179 }
2180 ],
2181 "enqueued_by": "g1t",
2182 "created_at": "2026-10-04T14:02:09.876Z",
2183 "finished_at": "2026-10-04T14:09:55.102Z"
2184 }
2185 ]
2186 },
2187 "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."
2188 },
2189 "read_session": {
2190 "query": {
2191 "after": 0
2192 },
2193 "response": [
2194 {
2195 "seq": 1,
2196 "kind": "prompt",
2197 "text": "Make the greeting name the caller (issue #12).",
2198 "tool": null,
2199 "commit": null,
2200 "at": "2026-10-01T18:21:00.004Z"
2201 },
2202 {
2203 "seq": 2,
2204 "kind": "tool_call",
2205 "text": "cargo test",
2206 "tool": "bash",
2207 "commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2208 "at": "2026-10-01T18:30:12.660Z"
2209 }
2210 ]
2211 },
2212 "record_session": {
2213 "request": {
2214 "entries": [
2215 {
2216 "kind": "message",
2217 "text": "Reading src/main.rs."
2218 },
2219 {
2220 "kind": "tool_call",
2221 "text": "cargo test",
2222 "tool": "bash"
2223 }
2224 ]
2225 },
2226 "response": {
2227 "count": 2
2228 },
2229 "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/)."
2230 },
Merge branch 'worktree-agent-a6ec0a89d7fe7a9ae'2231 "start_session": {
2232 "request": {
2233 "harness": "claude_code",
2234 "harness_session_id": "5b0c1f9e-3d2a-4e8b-9f61-0c7d2a9e4b13",
2235 "issue": 12,
2236 "branch": "greet-caller",
2237 "title": "Make the greeting name the caller"
2238 },
2239 "response": {
2240 "id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2241 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2242 "issue": 12,
2243 "pull": null,
2244 "branch": "greet-caller",
2245 "actor": {
2246 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2247 "username": "syntaqx"
2248 },
2249 "harness": "claude_code",
2250 "harness_session_id": "5b0c1f9e-3d2a-4e8b-9f61-0c7d2a9e4b13",
2251 "title": "Make the greeting name the caller",
2252 "state": "active",
2253 "head_commit": null,
2254 "started_at": "2026-10-12T14:02:11.204Z",
2255 "last_seen_at": "2026-10-12T14:02:11.204Z",
2256 "ended_at": null,
2257 "end_reason": null
2258 },
g1t coordinates the work and the person's own sessions do it: Ask g1t reads g1t with the same tools any agent gets, answers in one conversation shared with the @g1t direct message in Chat, and hands work to sessions in the person's own harness, whose subagents g1t records, ties to issues and pull requests, and lets see each other.2259 "notes": "Idempotent on `harness_session_id`: a second start with it returns this session, so call it from a hook without checking first. `state` is `active`, `idle` (no heartbeat for 15 minutes) or `ended` (ended, or no heartbeat for 2 hours: `end_reason` `timed_out`). A subagent gives `parent_id`, `agent_type`, `task` and `prompt`. See [Sessions](/guides/sessions/)."
Merge branch 'worktree-agent-a6ec0a89d7fe7a9ae'2260 },
g1t coordinates the work and the person's own sessions do it: Ask g1t reads g1t with the same tools any agent gets, answers in one conversation shared with the @g1t direct message in Chat, and hands work to sessions in the person's own harness, whose subagents g1t records, ties to issues and pull requests, and lets see each other.2261 "start_agent_session": {
2262 "request": {
2263 "issue": 12,
2264 "mode": "implement",
2265 "instruction": "Keep the old greeting behind a flag."
2266 },
2267 "response": {
2268 "issue": 12,
2269 "session": {
2270 "id": "ses_01m4c9a8b7c6d5e4f3g2h1j0k9",
2271 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2272 "issue": 12,
2273 "pull": null,
2274 "branch": null,
2275 "actor": {
2276 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2277 "username": "syntaqx"
2278 },
2279 "harness": "claude_managed_agents",
2280 "harness_session_id": "sesn_011CZkZAtmR3yMPDzynEDxu7",
2281 "title": "#12 Make the greeting name the caller",
2282 "state": "active",
2283 "head_commit": null,
2284 "started_at": "2026-10-12T15:10:02.117Z",
2285 "last_seen_at": "2026-10-12T15:10:02.117Z",
2286 "ended_at": null,
2287 "end_reason": null,
2288 "parent_id": null,
2289 "agent_type": null,
2290 "task": null,
2291 "prompt": null,
2292 "result": null,
2293 "model": "claude-opus-5-5",
2294 "subagents": 0
2295 },
2296 "session_url": "https://g1t.sh/syntaqx/hello/work/sessions/ses_01m4c9a8b7c6d5e4f3g2h1j0k9",
2297 "provider": "anthropic",
2298 "provider_session_id": "sesn_011CZkZAtmR3yMPDzynEDxu7",
2299 "provider_session_url": "https://platform.claude.com/workspaces/default/sessions/sesn_011CZkZAtmR3yMPDzynEDxu7",
2300 "handoff": false,
2301 "command": null,
2302 "prompt": "Work on issue #12 in syntaqx/hello: Make the greeting name the caller.\n\n…"
2303 },
2304 "notes": "Runs on the workspace's own Anthropic key: g1t runs no model and bills nothing for it. Without an Anthropic connection (or with `handoff: true`) nothing is started and `command` is a Claude Code command line to run with g1t's plugin. See [Sessions](/guides/sessions/#start-a-session-on-your-anthropic-account)."
2305 },
Merge branch 'worktree-agent-a6ec0a89d7fe7a9ae'2306 "update_session": {
2307 "request": {
2308 "pull": 14,
2309 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13"
2310 },
2311 "response": {
2312 "id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2313 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2314 "issue": 12,
2315 "pull": 14,
2316 "branch": "greet-caller",
2317 "actor": {
2318 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2319 "username": "syntaqx"
2320 },
2321 "harness": "claude_code",
2322 "harness_session_id": "5b0c1f9e-3d2a-4e8b-9f61-0c7d2a9e4b13",
2323 "title": "Make the greeting name the caller",
2324 "state": "active",
2325 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2326 "started_at": "2026-10-12T14:02:11.204Z",
2327 "last_seen_at": "2026-10-12T14:31:40.518Z",
2328 "ended_at": null,
2329 "end_reason": null
2330 },
2331 "notes": "Send `{}` as a heartbeat. Each call renews the session's claims and brings back one that timed out. Refused with `404` for a session that is not yours, and `409` for one you ended."
2332 },
2333 "end_session": {
2334 "request": {
2335 "reason": "done"
2336 },
2337 "response": {
2338 "id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2339 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2340 "issue": 12,
2341 "pull": 14,
2342 "branch": "greet-caller",
2343 "actor": {
2344 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2345 "username": "syntaqx"
2346 },
2347 "harness": "claude_code",
2348 "harness_session_id": "5b0c1f9e-3d2a-4e8b-9f61-0c7d2a9e4b13",
2349 "title": "Make the greeting name the caller",
2350 "state": "ended",
2351 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2352 "started_at": "2026-10-12T14:02:11.204Z",
2353 "last_seen_at": "2026-10-12T14:40:03.115Z",
2354 "ended_at": "2026-10-12T14:40:03.115Z",
2355 "end_reason": "done"
2356 }
2357 },
2358 "get_session": {
2359 "query": {
2360 "after": 0
2361 },
2362 "response": {
2363 "session": {
2364 "id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2365 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2366 "issue": 12,
2367 "pull": 14,
2368 "branch": "greet-caller",
2369 "actor": {
2370 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2371 "username": "syntaqx"
2372 },
2373 "harness": "claude_code",
2374 "harness_session_id": "5b0c1f9e-3d2a-4e8b-9f61-0c7d2a9e4b13",
2375 "title": "Make the greeting name the caller",
2376 "state": "active",
2377 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2378 "started_at": "2026-10-12T14:02:11.204Z",
2379 "last_seen_at": "2026-10-12T14:31:40.518Z",
2380 "ended_at": null,
2381 "end_reason": null
2382 },
2383 "entries": [
2384 {
2385 "seq": 1,
2386 "kind": "prompt",
2387 "text": "Make the greeting name the caller (issue #12).",
2388 "tool": null,
2389 "commit": null,
2390 "at": "2026-10-12T14:02:12.008Z"
2391 },
2392 {
2393 "seq": 2,
2394 "kind": "tool_call",
2395 "text": "cargo test",
2396 "tool": "Bash",
2397 "commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2398 "at": "2026-10-12T14:30:12.660Z"
2399 }
g1t coordinates the work and the person's own sessions do it: Ask g1t reads g1t with the same tools any agent gets, answers in one conversation shared with the @g1t direct message in Chat, and hands work to sessions in the person's own harness, whose subagents g1t records, ties to issues and pull requests, and lets see each other.2400 ],
2401 "children": [
2402 {
2403 "id": "ses_01m4b2d8x1y2z3a4b5c6d7e8f9",
2404 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2405 "issue": 12,
2406 "pull": null,
2407 "branch": "greet-caller",
2408 "actor": {
2409 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2410 "username": "syntaqx"
2411 },
2412 "harness": "claude_code",
2413 "harness_session_id": "5b0c1f9e-3d2a-4e8b-9f61-0c7d2a9e4b13/agent/a4d2c8f1e0b3a297",
2414 "title": null,
2415 "state": "ended",
2416 "head_commit": null,
2417 "started_at": "2026-10-12T14:05:40.112Z",
2418 "last_seen_at": "2026-10-12T14:07:02.930Z",
2419 "ended_at": "2026-10-12T14:07:02.930Z",
2420 "end_reason": "done",
2421 "parent_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2422 "agent_type": "Explore",
2423 "task": "Find where the greeting is built",
2424 "prompt": "Find every place the greeting text is built and say which file to change.",
2425 "result": "The greeting is built in src/greet.rs (greet) and nowhere else.",
2426 "model": "claude-sonnet-5-5",
2427 "subagents": 0
2428 }
2429 ],
2430 "touched": [
2431 {
2432 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2433 "kind": "file",
2434 "value": "src/greet.rs",
2435 "at": "2026-10-12T14:12:30.004Z"
2436 },
2437 {
2438 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2439 "kind": "branch",
2440 "value": "greet-caller",
2441 "at": "2026-10-12T14:30:40.871Z"
2442 }
2443 ],
2444 "links": [
2445 {
2446 "kind": "pull",
2447 "number": 14,
2448 "title": "Name the caller in the greeting",
2449 "state": "open",
2450 "via": ["attached", "branch"],
2451 "session_ids": ["ses_01m4b2c3d4e5f6g7h8j9k0m1n2"]
2452 },
2453 {
2454 "kind": "issue",
2455 "number": 12,
2456 "title": "Make the greeting name the caller",
2457 "state": "open",
2458 "via": ["attached", "claim"],
2459 "session_ids": ["ses_01m4b2c3d4e5f6g7h8j9k0m1n2", "ses_01m4b2d8x1y2z3a4b5c6d7e8f9"]
2460 }
2461 ],
2462 "skills": [
2463 {
2464 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2465 "name": "work-on-issue",
2466 "uses": 1
2467 }
2468 ],
2469 "root": null
Merge branch 'worktree-agent-a6ec0a89d7fe7a9ae'2470 },
g1t coordinates the work and the person's own sessions do it: Ask g1t reads g1t with the same tools any agent gets, answers in one conversation shared with the @g1t direct message in Chat, and hands work to sessions in the person's own harness, whose subagents g1t records, ties to issues and pull requests, and lets see each other.2471 "notes": "Entries are numbered within the session and come 500 at a time; send the last `seq` you have as `after` for the next page. `children` are the session's subagents and theirs; `touched`, `links` and `skills` cover the whole tree."
Merge branch 'worktree-agent-a6ec0a89d7fe7a9ae'2472 },
2473 "list_sessions": {
2474 "query": {
2475 "state": "active",
2476 "issue": 12
2477 },
2478 "response": [
2479 {
2480 "id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2481 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2482 "issue": 12,
2483 "pull": 14,
2484 "branch": "greet-caller",
2485 "actor": {
2486 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2487 "username": "syntaqx"
2488 },
2489 "harness": "claude_code",
2490 "harness_session_id": "5b0c1f9e-3d2a-4e8b-9f61-0c7d2a9e4b13",
2491 "title": "Make the greeting name the caller",
2492 "state": "active",
2493 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2494 "started_at": "2026-10-12T14:02:11.204Z",
2495 "last_seen_at": "2026-10-12T14:31:40.518Z",
2496 "ended_at": null,
2497 "end_reason": null
2498 }
2499 ]
2500 },
2501 "record_session_entries": {
2502 "request": {
2503 "entries": [
2504 {
2505 "kind": "prompt",
2506 "text": "Make the greeting name the caller (issue #12).",
2507 "key": "prompt-1"
2508 },
2509 {
2510 "kind": "tool_call",
2511 "text": "cargo test",
2512 "tool": "Bash",
2513 "key": "tool-7"
g1t coordinates the work and the person's own sessions do it: Ask g1t reads g1t with the same tools any agent gets, answers in one conversation shared with the @g1t direct message in Chat, and hands work to sessions in the person's own harness, whose subagents g1t records, ties to issues and pull requests, and lets see each other.2514 },
2515 {
2516 "kind": "skill",
2517 "text": "work-on-issue",
2518 "key": "skill-3"
Merge branch 'worktree-agent-a6ec0a89d7fe7a9ae'2519 }
g1t coordinates the work and the person's own sessions do it: Ask g1t reads g1t with the same tools any agent gets, answers in one conversation shared with the @g1t direct message in Chat, and hands work to sessions in the person's own harness, whose subagents g1t records, ties to issues and pull requests, and lets see each other.2520 ],
2521 "touched": [
2522 { "kind": "file", "value": "src/greet.rs" },
2523 { "kind": "branch", "value": "greet-caller" }
Merge branch 'worktree-agent-a6ec0a89d7fe7a9ae'2524 ]
2525 },
2526 "response": {
g1t coordinates the work and the person's own sessions do it: Ask g1t reads g1t with the same tools any agent gets, answers in one conversation shared with the @g1t direct message in Chat, and hands work to sessions in the person's own harness, whose subagents g1t records, ties to issues and pull requests, and lets see each other.2527 "recorded": 3,
Merge branch 'worktree-agent-a6ec0a89d7fe7a9ae'2528 "duplicates": 0
2529 },
2530 "notes": "Up to 200 entries a request. An entry whose `key` the session recorded before is counted in `duplicates` and not recorded again. Entries of a session on a pull request show in that pull request's session too (read_session)."
2531 },
2532 "claim_issue": {
2533 "request": {
2534 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2535 "note": "Taking the argument parsing first.",
2536 "ttl_minutes": 30
2537 },
2538 "response": {
2539 "claim": {
2540 "id": "clm_01m4b3d5f7h9k1m3p5r7t9w1y3",
2541 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2542 "issue": 12,
2543 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2544 "actor": {
2545 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2546 "username": "syntaqx"
2547 },
2548 "harness": "claude_code",
2549 "note": "Taking the argument parsing first.",
2550 "state": "active",
2551 "created_at": "2026-10-12T14:03:02.771Z",
2552 "expires_at": "2026-10-12T15:01:40.518Z",
2553 "ended_at": null,
2554 "end_reason": null,
2555 "handoff_to": null
2556 },
2557 "others": [
2558 {
2559 "id": "clm_01m4b2a4c6e8g0j2l4n6q8s0u2",
2560 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2561 "issue": 12,
2562 "session_id": null,
2563 "actor": {
2564 "id": "usr_01kkp2v7d4fh8m3q6t9w2z5c8e",
2565 "username": "ana"
2566 },
2567 "harness": null,
2568 "note": "Looking at the tests.",
2569 "state": "active",
2570 "created_at": "2026-10-12T13:50:12.000Z",
2571 "expires_at": "2026-10-12T14:20:12.000Z",
2572 "ended_at": null,
2573 "end_reason": null,
2574 "handoff_to": null
2575 }
2576 ],
2577 "blocked_by": [
2578 {
2579 "number": 9,
2580 "title": "Read arguments with a parser",
2581 "state": "open",
2582 "claims": [
2583 {
2584 "id": "clm_01m4b2a4c6e8g0j2l4n6q8s0u2",
2585 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2586 "issue": 9,
2587 "session_id": null,
2588 "actor": {
2589 "id": "usr_01kkp2v7d4fh8m3q6t9w2z5c8e",
2590 "username": "ana"
2591 },
2592 "harness": null,
2593 "note": null,
2594 "state": "active",
2595 "created_at": "2026-10-12T13:50:12.000Z",
2596 "expires_at": "2026-10-12T14:20:12.000Z",
2597 "ended_at": null,
2598 "end_reason": null,
2599 "handoff_to": null
2600 }
2601 ],
2602 "pulls": [
2603 {
2604 "number": 11,
2605 "title": "Parse arguments with clap",
2606 "status": "open"
2607 }
2608 ]
2609 }
2610 ]
2611 },
2612 "notes": "A claim is advisory: it is made even when `others` lists someone already on the issue. Claiming an issue you hold renews your claim. Refused with `409` for a closed issue. See [Claims](/guides/sessions/#claims)."
2613 },
2614 "release_claim": {
2615 "request": {
2616 "reason": "Ana has it covered."
2617 },
2618 "response": {
2619 "id": "clm_01m4b3d5f7h9k1m3p5r7t9w1y3",
2620 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2621 "issue": 12,
2622 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2623 "actor": {
2624 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2625 "username": "syntaqx"
2626 },
2627 "harness": "claude_code",
2628 "note": "Taking the argument parsing first.",
2629 "state": "released",
2630 "created_at": "2026-10-12T14:03:02.771Z",
2631 "expires_at": "2026-10-12T15:01:40.518Z",
2632 "ended_at": "2026-10-12T14:12:30.000Z",
2633 "end_reason": "Ana has it covered.",
2634 "handoff_to": null
2635 }
2636 },
2637 "hand_off_issue": {
2638 "request": {
2639 "to": "ana",
2640 "note": "Parsing is done and tested; the README still needs the new usage."
2641 },
2642 "response": {
2643 "id": "clm_01m4b3d5f7h9k1m3p5r7t9w1y3",
2644 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2645 "issue": 12,
2646 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2647 "actor": {
2648 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2649 "username": "syntaqx"
2650 },
2651 "harness": "claude_code",
2652 "note": "Parsing is done and tested; the README still needs the new usage.",
2653 "state": "handed_off",
2654 "created_at": "2026-10-12T14:03:02.771Z",
2655 "expires_at": "2026-10-12T15:01:40.518Z",
2656 "ended_at": "2026-10-12T14:38:00.000Z",
2657 "end_reason": "handed_off",
2658 "handoff_to": "ana"
2659 }
2660 },
2661 "list_claims": {
2662 "query": {
2663 "state": "active"
2664 },
2665 "response": [
2666 {
2667 "id": "clm_01m4b3d5f7h9k1m3p5r7t9w1y3",
2668 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2669 "issue": 12,
2670 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2671 "actor": {
2672 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2673 "username": "syntaqx"
2674 },
2675 "harness": "claude_code",
2676 "note": "Taking the argument parsing first.",
2677 "state": "active",
2678 "created_at": "2026-10-12T14:03:02.771Z",
2679 "expires_at": "2026-10-12T15:01:40.518Z",
2680 "ended_at": null,
2681 "end_reason": null,
2682 "handoff_to": null
2683 },
2684 {
2685 "id": "clm_01m4b2a4c6e8g0j2l4n6q8s0u2",
2686 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2687 "issue": 12,
2688 "session_id": null,
2689 "actor": {
2690 "id": "usr_01kkp2v7d4fh8m3q6t9w2z5c8e",
2691 "username": "ana"
2692 },
2693 "harness": null,
2694 "note": "Looking at the tests.",
2695 "state": "active",
2696 "created_at": "2026-10-12T13:50:12.000Z",
2697 "expires_at": "2026-10-12T14:20:12.000Z",
2698 "ended_at": null,
2699 "end_reason": null,
2700 "handoff_to": null
2701 }
2702 ]
2703 },
2704 "get_work": {
2705 "response": {
2706 "issue": {
2707 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
2708 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2709 "number": 12,
2710 "title": "Greeting should name the caller",
2711 "body": "Take a name from the first argument; fall back to world.\n\n## Definition of done\n\n- `cargo test` passes.\n- The README shows the new usage.",
2712 "labels": [
2713 "feature",
2714 "good first issue"
2715 ],
2716 "state": "open",
2717 "reason": null,
2718 "resolved_by": null,
2719 "author": {
2720 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2721 "username": "syntaqx",
2722 "display_username": "syntaqx",
2723 "kind": "user",
2724 "verified": false,
2725 "workspaces": []
2726 },
2727 "requested_by": null,
2728 "created_at": "2026-10-01T18:04:11.482Z",
2729 "updated_at": "2026-10-01T18:09:47.305Z",
2730 "closed_at": null,
2731 "pull_count": 0,
2732 "comment_count": 0,
2733 "assignees": [
2734 "syntaqx"
2735 ],
2736 "blocked_by": [
2737 9
2738 ],
2739 "queued": false,
2740 "agent": null,
2741 "milestone": {
2742 "number": 3,
2743 "title": "Launch"
2744 }
2745 },
2746 "definition_of_done": [
2747 "`cargo test` passes.",
2748 "The README shows the new usage."
2749 ],
2750 "required_checks": [
2751 "CI"
2752 ],
2753 "claims": [
2754 {
2755 "id": "clm_01m4b3d5f7h9k1m3p5r7t9w1y3",
2756 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2757 "issue": 12,
2758 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2759 "actor": {
2760 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2761 "username": "syntaqx"
2762 },
2763 "harness": "claude_code",
2764 "note": "Taking the argument parsing first.",
2765 "state": "active",
2766 "created_at": "2026-10-12T14:03:02.771Z",
2767 "expires_at": "2026-10-12T15:01:40.518Z",
2768 "ended_at": null,
2769 "end_reason": null,
2770 "handoff_to": null
2771 }
2772 ],
2773 "sessions": [
2774 {
2775 "id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2776 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2777 "issue": 12,
2778 "pull": 14,
2779 "branch": "greet-caller",
2780 "actor": {
2781 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2782 "username": "syntaqx"
2783 },
2784 "harness": "claude_code",
2785 "harness_session_id": "5b0c1f9e-3d2a-4e8b-9f61-0c7d2a9e4b13",
2786 "title": "Make the greeting name the caller",
2787 "state": "active",
2788 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2789 "started_at": "2026-10-12T14:02:11.204Z",
2790 "last_seen_at": "2026-10-12T14:31:40.518Z",
2791 "ended_at": null,
2792 "end_reason": null
2793 }
2794 ],
2795 "pulls": [
2796 {
2797 "number": 14,
2798 "title": "Greeting should name the caller",
2799 "status": "draft",
2800 "branch": "greet-caller",
2801 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2802 "author": {
2803 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2804 "username": "syntaqx"
2805 },
2806 "check_status": null,
2807 "required_checks": [
2808 {
2809 "name": "CI",
2810 "state": "success",
2811 "description": "CI passed",
2812 "target_url": "https://g1t.sh/syntaqx/hello/actions/runs/run_01m43sw8e2g6j0m4q8t2x6a0c4"
2813 }
2814 ],
2815 "mergeable": "clean",
2816 "overlaps": [
2817 {
2818 "number": 11,
2819 "title": "Parse arguments with clap",
2820 "issue": 9,
2821 "paths": [
2822 "src/main.rs"
2823 ]
2824 }
2825 ],
2826 "queue": null
2827 }
2828 ],
2829 "blocked_by": [
2830 {
2831 "number": 9,
2832 "title": "Read arguments with a parser",
2833 "state": "open",
2834 "claims": [
2835 {
2836 "id": "clm_01m4b2a4c6e8g0j2l4n6q8s0u2",
2837 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2838 "issue": 9,
2839 "session_id": null,
2840 "actor": {
2841 "id": "usr_01kkp2v7d4fh8m3q6t9w2z5c8e",
2842 "username": "ana"
2843 },
2844 "harness": null,
2845 "note": null,
2846 "state": "active",
2847 "created_at": "2026-10-12T13:50:12.000Z",
2848 "expires_at": "2026-10-12T14:20:12.000Z",
2849 "ended_at": null,
2850 "end_reason": null,
2851 "handoff_to": null
2852 }
2853 ],
2854 "pulls": [
2855 {
2856 "number": 11,
2857 "title": "Parse arguments with clap",
2858 "status": "open"
2859 }
2860 ]
2861 }
2862 ],
2863 "blocks": [
2864 {
2865 "number": 15,
2866 "title": "Greet in the caller's language",
2867 "state": "open"
2868 }
2869 ],
2870 "decisions": [
2871 {
2872 "id": "dec_01m4b3e7g9j1l3n5q7s9u1w3y5",
2873 "issue": 12,
2874 "pull": 14,
2875 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2876 "actor": "syntaqx",
2877 "kind": "proposal",
2878 "confidence": "claimed",
2879 "summary": "Read the name with the argument parser #9 brings, rather than by hand.",
2880 "evidence": {
2881 "commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13"
2882 },
2883 "created_at": "2026-10-12T14:20:00.000Z"
2884 }
2885 ],
2886 "last_integration_failure": null,
2887 "recent": [
2888 {
2889 "id": "evt_01m4b3d5f7h9k1m3p5r7t9w1y4",
2890 "type": "work.claimed",
2891 "source": "work",
2892 "time": "2026-10-12T14:03:02.771Z",
2893 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2894 "actor": "usr_01kkntcg1eeb98j62xjm7eh09p",
2895 "data": {
2896 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2897 "number": 12,
2898 "issue": 12,
2899 "claim": {
2900 "id": "clm_01m4b3d5f7h9k1m3p5r7t9w1y3",
2901 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2902 "issue": 12,
2903 "session_id": "ses_01m4b2c3d4e5f6g7h8j9k0m1n2",
2904 "actor": {
2905 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
2906 "username": "syntaqx"
2907 },
2908 "harness": "claude_code",
2909 "note": "Taking the argument parsing first.",
2910 "state": "active",
2911 "created_at": "2026-10-12T14:03:02.771Z",
2912 "expires_at": "2026-10-12T15:01:40.518Z",
2913 "ended_at": null,
2914 "end_reason": null,
2915 "handoff_to": null
2916 },
2917 "others": [
2918 {
2919 "id": "clm_01m4b2a4c6e8g0j2l4n6q8s0u2",
2920 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
2921 "issue": 12,
2922 "session_id": null,
2923 "actor": {
2924 "id": "usr_01kkp2v7d4fh8m3q6t9w2z5c8e",
2925 "username": "ana"
2926 },
2927 "harness": null,
2928 "note": "Looking at the tests.",
2929 "state": "active",
2930 "created_at": "2026-10-12T13:50:12.000Z",
2931 "expires_at": "2026-10-12T14:20:12.000Z",
2932 "ended_at": null,
2933 "end_reason": null,
2934 "handoff_to": null
2935 }
2936 ]
2937 }
2938 }
2939 ]
2940 },
2941 "notes": "`pulls` are the issue's pull requests, oldest first; `required_checks`, `mergeable`, `overlaps` and `queue` (its `state` and `position` in the merge queue, 1 at the front) are filled in for those still open or draft. `recent` holds up to 20 coordination events about the issue or its pull requests, newest first. See [Picking up an issue](/guides/sessions/#picking-up-an-issue)."
2942 },
Merge branch 'worktree-agent-ab8033ab973f8d99a'2943 "record_decision": {
2944 "request": {
2945 "kind": "fix",
2946 "summary": "Renamed the config key #12 also introduced, so both read retry_limit.",
2947 "evidence": {
2948 "commit": "7d3e9a1c5b2f4e6a8c0d2e4f6a8b0c2d4e6f8a0b"
2949 },
2950 "session_id": "ses_01kpz7x9y1z3a5b7c9d1e3f5gh"
2951 },
2952 "response": {
2953 "id": "dec_01kpz9a1b3c5d7e9f1g3h5j7kb",
2954 "issue": 9,
2955 "pull": 14,
2956 "session_id": "ses_01kpz7x9y1z3a5b7c9d1e3f5gh",
2957 "actor": "ana",
2958 "kind": "fix",
2959 "confidence": "claimed",
2960 "summary": "Renamed the config key #12 also introduced, so both read retry_limit.",
2961 "evidence": {
2962 "commit": "7d3e9a1c5b2f4e6a8c0d2e4f6a8b0c2d4e6f8a0b"
2963 },
2964 "created_at": "2026-10-12T15:31:40.019Z"
2965 },
2966 "notes": "Kept as `claimed`. g1t records `integration_failure`, `integration_passed`, `approval` and `merge` itself. Publishes `decision.recorded`. See [decision records](/guides/why-blame/#decision-records)."
2967 },
2968 "list_decisions": {
2969 "response": [
2970 {
2971 "id": "dec_01kpz8m2q4r6s8t0v2w4x6y8za",
2972 "issue": 9,
2973 "pull": 14,
2974 "session_id": null,
2975 "actor": null,
2976 "kind": "integration_failure",
2977 "confidence": "tested",
2978 "summary": "#14 failed in the merge queue together with #12: `CI / merge_group` failed when they were combined.",
2979 "evidence": {
2980 "commit": "4be1c0d9a2f3e4b5c6d7e8f90a1b2c3d4e5f6a7b",
2981 "check": {
2982 "name": "CI / merge_group",
2983 "conclusion": "failure",
2984 "url": "https://g1t.sh/acme/web/actions/runs/run_01kpz8k0"
2985 },
2986 "combination": [
2987 11,
2988 12,
2989 14
2990 ],
2991 "other_pulls": [
2992 11,
2993 12
2994 ],
2995 "suspects": [
2996 12
2997 ],
Merge branch 'worktree-agent-a0796e9a7a41f51e5'2998 "bisected": true,
2999 "landed": []
Merge branch 'worktree-agent-ab8033ab973f8d99a'3000 },
3001 "created_at": "2026-10-12T15:04:11.204Z"
3002 },
3003 {
3004 "id": "dec_01kpz9a1b3c5d7e9f1g3h5j7kb",
3005 "issue": 9,
3006 "pull": 14,
3007 "session_id": "ses_01kpz7x9y1z3a5b7c9d1e3f5gh",
3008 "actor": "ana",
3009 "kind": "fix",
3010 "confidence": "claimed",
3011 "summary": "Renamed the config key #12 also introduced, so both read retry_limit.",
3012 "evidence": {
3013 "commit": "7d3e9a1c5b2f4e6a8c0d2e4f6a8b0c2d4e6f8a0b"
3014 },
3015 "created_at": "2026-10-12T15:31:40.019Z"
3016 }
3017 ],
3018 "notes": "`GET /repos/{owner}/{name}/issues/{number}/decisions` lists an issue's, with those on its pull requests."
3019 },
3020 "why": {
3021 "query": {
3022 "path": "src/config.rs",
3023 "line": 42
3024 },
3025 "response": {
3026 "path": "src/config.rs",
3027 "line": 42,
3028 "commit": {
3029 "hash": "7d3e9a1c5b2f4e6a8c0d2e4f6a8b0c2d4e6f8a0b",
3030 "tree_hash": "c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0",
3031 "message": "Read retry_limit, as #12 names it",
3032 "author": {
3033 "name": "Ana Lima",
3034 "email": "ana@example.com"
3035 },
3036 "parents": [
3037 "4be1c0d9a2f3e4b5c6d7e8f90a1b2c3d4e5f6a7b"
3038 ],
3039 "authored_at": "2026-10-12T15:29:02Z"
3040 },
3041 "pull": {
3042 "number": 14,
3043 "title": "Retry failed webhook deliveries",
3044 "author": "ana",
3045 "agent": "claude-code",
3046 "merged_by": "g1t",
3047 "merged_at": "2026-10-12T15:52:18.330Z"
3048 },
3049 "issue": {
3050 "number": 9,
3051 "title": "Webhook deliveries are not retried",
3052 "state": "closed",
3053 "body": "A delivery that times out is never sent again."
3054 },
3055 "decisions": [
3056 {
3057 "id": "dec_01kpz8m2q4r6s8t0v2w4x6y8za",
3058 "issue": 9,
3059 "pull": 14,
3060 "session_id": null,
3061 "actor": null,
3062 "kind": "integration_failure",
3063 "confidence": "tested",
3064 "summary": "#14 failed in the merge queue together with #12: `CI / merge_group` failed when they were combined.",
3065 "evidence": {
3066 "commit": "4be1c0d9a2f3e4b5c6d7e8f90a1b2c3d4e5f6a7b",
3067 "check": {
3068 "name": "CI / merge_group",
3069 "conclusion": "failure",
3070 "url": "https://g1t.sh/acme/web/actions/runs/run_01kpz8k0"
3071 },
3072 "combination": [
3073 11,
3074 12,
3075 14
3076 ],
3077 "other_pulls": [
3078 11,
3079 12
3080 ],
3081 "suspects": [
3082 12
3083 ],
Merge branch 'worktree-agent-a0796e9a7a41f51e5'3084 "bisected": true,
3085 "landed": []
Merge branch 'worktree-agent-ab8033ab973f8d99a'3086 },
3087 "created_at": "2026-10-12T15:04:11.204Z"
3088 },
3089 {
3090 "id": "dec_01kpz9a1b3c5d7e9f1g3h5j7kb",
3091 "issue": 9,
3092 "pull": 14,
3093 "session_id": "ses_01kpz7x9y1z3a5b7c9d1e3f5gh",
3094 "actor": "ana",
3095 "kind": "fix",
3096 "confidence": "claimed",
3097 "summary": "Renamed the config key #12 also introduced, so both read retry_limit.",
3098 "evidence": {
3099 "commit": "7d3e9a1c5b2f4e6a8c0d2e4f6a8b0c2d4e6f8a0b"
3100 },
3101 "created_at": "2026-10-12T15:31:40.019Z"
3102 }
3103 ],
3104 "sessions": [
3105 {
3106 "seq": 31,
3107 "kind": "message",
3108 "text": "#12 renamed retries to retry_limit; reading the new name here.",
3109 "tool": null,
3110 "commit": null,
3111 "at": "2026-10-12T15:27:40.118Z"
3112 }
3113 ]
3114 },
3115 "notes": "`ref` reads the file at a branch, tag or commit. See [sessions and why-blame](/guides/why-blame/#why-over-the-api)."
3116 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3117 "list_workflows": {
3118 "response": [
3119 {
3120 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3121 "path": ".g1t/workflows/ci.yml",
3122 "name": "CI",
3123 "events": [
3124 "push",
3125 "pull_request",
3126 "workflow_dispatch"
3127 ],
3128 "state": "active",
3129 "error": null,
3130 "notes": [
3131 {
3132 "severity": "unsupported",
3133 "job": "test",
3134 "message": "`services` containers (such as a database) are not started on g1t yet."
3135 }
3136 ],
3137 "dispatch": {
3138 "debug": {
3139 "description": "Verbose logs",
3140 "type": "boolean",
3141 "default": false
3142 }
3143 },
3144 "last_run": {
3145 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3146 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3147 "path": ".g1t/workflows/ci.yml",
3148 "name": "CI",
3149 "title": "Greeting should name the caller",
3150 "number": 12,
3151 "attempt": 1,
3152 "event": "push",
3153 "ref": "refs/heads/main",
3154 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
3155 "pull": null,
3156 "status": "completed",
3157 "conclusion": "success",
3158 "error": null,
3159 "actor": "syntaqx",
3160 "created_at": "2026-10-04T15:42:07.318Z",
3161 "started_at": "2026-10-04T15:42:09.020Z",
3162 "finished_at": "2026-10-04T15:44:31.877Z"
3163 }
3164 },
3165 {
3166 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
3167 "path": ".g1t/workflows/nightly.yml",
3168 "name": "Nightly",
3169 "events": [
3170 "schedule"
3171 ],
3172 "state": "disabled",
3173 "error": null,
3174 "notes": [],
3175 "dispatch": null,
3176 "last_run": null
3177 }
3178 ],
3179 "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/)."
3180 },
Merge branch 'worktree-agent-a4db4b523bb973765'3181 "get_workflow": {
3182 "params": {
3183 "workflow": "release.yml"
3184 },
3185 "query": {
3186 "ref": "main"
3187 },
3188 "response": {
3189 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nr",
3190 "path": ".g1t/workflows/release.yml",
3191 "name": "Release",
3192 "events": [
3193 "workflow_dispatch"
3194 ],
3195 "state": "active",
3196 "error": null,
3197 "notes": [],
3198 "dispatch": {
3199 "channel": {
3200 "type": "choice",
3201 "options": [
3202 "beta",
3203 "stable"
3204 ],
3205 "default": "beta"
3206 }
3207 },
3208 "last_run": null,
3209 "ref": "main",
3210 "source": "name: Release\non:\n workflow_dispatch:\n inputs:\n channel:\n type: choice\n options: [beta, stable]\n default: beta\njobs:\n release:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - run: ./scripts/release.sh ${{ inputs.channel }}\n"
3211 },
3212 "notes": "`workflow` is the workflow's id, file name, path or name. `source` is its file as written on `ref`; `404` when the file is not on that branch or tag."
3213 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3214 "list_workflow_runs": {
3215 "query": {
3216 "workflow": "ci.yml",
3217 "branch": "main",
3218 "per_page": 20
3219 },
3220 "response": [
3221 {
3222 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3223 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3224 "path": ".g1t/workflows/ci.yml",
3225 "name": "CI",
3226 "title": "Greeting should name the caller",
3227 "number": 12,
3228 "attempt": 1,
3229 "event": "push",
3230 "ref": "refs/heads/main",
3231 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
3232 "pull": null,
3233 "status": "completed",
3234 "conclusion": "success",
3235 "error": null,
3236 "actor": "syntaqx",
3237 "created_at": "2026-10-04T15:42:07.318Z",
3238 "started_at": "2026-10-04T15:42:09.020Z",
3239 "finished_at": "2026-10-04T15:44:31.877Z"
3240 }
3241 ],
3242 "notes": "A run's `status` is `queued`, `pending` (waiting for its concurrency group), `in_progress` or `completed`; `conclusion` is set once it completes."
3243 },
3244 "list_runs_of_workflow": {
3245 "params": {
3246 "workflow": "ci.yml"
3247 },
3248 "query": {
3249 "branch": "main",
3250 "per_page": 20
3251 },
3252 "response": [
3253 {
3254 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3255 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3256 "path": ".g1t/workflows/ci.yml",
3257 "name": "CI",
3258 "title": "Greeting should name the caller",
3259 "number": 12,
3260 "attempt": 1,
3261 "event": "push",
3262 "ref": "refs/heads/main",
3263 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
3264 "pull": null,
3265 "status": "completed",
3266 "conclusion": "success",
3267 "error": null,
3268 "actor": "syntaqx",
3269 "created_at": "2026-10-04T15:42:07.318Z",
3270 "started_at": "2026-10-04T15:42:09.020Z",
3271 "finished_at": "2026-10-04T15:44:31.877Z"
3272 }
3273 ]
3274 },
3275 "get_workflow_run": {
3276 "params": {
3277 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
3278 },
3279 "response": {
3280 "run": {
3281 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3282 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3283 "path": ".g1t/workflows/ci.yml",
3284 "name": "CI",
3285 "title": "Greeting should name the caller",
3286 "number": 12,
3287 "attempt": 1,
3288 "event": "push",
3289 "ref": "refs/heads/main",
3290 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
3291 "pull": null,
3292 "status": "completed",
3293 "conclusion": "failure",
3294 "error": null,
3295 "actor": "syntaqx",
3296 "created_at": "2026-10-04T15:42:07.318Z",
3297 "started_at": "2026-10-04T15:42:09.020Z",
3298 "finished_at": "2026-10-04T15:44:31.877Z"
3299 },
3300 "jobs": [
3301 {
3302 "id": "job_01kpx7b3d0e4f8g2h6j0k4m8ns",
3303 "run_id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3304 "key": "test",
3305 "name": "test",
3306 "needs": [],
3307 "status": "completed",
3308 "conclusion": "failure",
3309 "steps": [
3310 {
3311 "number": 1,
3312 "name": "Run actions/checkout@v4",
3313 "status": "completed",
3314 "conclusion": "success",
3315 "started_at": "2026-10-04T15:42:10.101Z",
3316 "finished_at": "2026-10-04T15:42:12.433Z"
3317 },
3318 {
3319 "number": 2,
3320 "name": "Run cargo test",
3321 "status": "completed",
3322 "conclusion": "failure",
3323 "started_at": "2026-10-04T15:42:12.440Z",
3324 "finished_at": "2026-10-04T15:44:30.902Z"
3325 }
3326 ],
3327 "annotations": [
3328 {
3329 "level": "error",
3330 "message": "assertion failed: greeting names the caller",
3331 "title": "greet",
3332 "file": "src/main.rs",
3333 "line": 41
3334 }
3335 ],
3336 "reason": null,
3337 "started_at": "2026-10-04T15:42:09.020Z",
3338 "finished_at": "2026-10-04T15:44:31.002Z"
3339 },
3340 {
3341 "id": "job_01kpx7b3d0e4f8g2h6j0k4m8nt",
3342 "run_id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3343 "key": "deploy",
3344 "name": "deploy",
3345 "needs": [
3346 "test"
3347 ],
3348 "status": "completed",
3349 "conclusion": "skipped",
3350 "steps": [],
3351 "annotations": [],
3352 "reason": "A job it needs did not succeed.",
3353 "started_at": null,
3354 "finished_at": "2026-10-04T15:44:31.877Z"
3355 }
3356 ],
3357 "notes": [
3358 {
3359 "severity": "unsupported",
3360 "job": "test",
3361 "message": "`services` containers (such as a database) are not started on g1t yet."
3362 }
Merge Actions runs: summaries, attempts and re-runs, graceful cancel, log downloads, badges (actions 0009)3363 ],
3364 "attempts": [
3365 {
3366 "attempt": 1,
3367 "status": "completed",
3368 "conclusion": "failure",
3369 "actor": "syntaqx",
3370 "debug": false,
3371 "started_at": "2026-10-04T15:42:09.020Z",
3372 "finished_at": "2026-10-04T15:44:31.877Z"
3373 }
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3374 ]
Merge Actions runs: summaries, attempts and re-runs, graceful cancel, log downloads, badges (actions 0009)3375 },
3376 "notes": "Each re-run is a new attempt. Read an earlier one with `attempt`, or at `GET /repos/{owner}/{repo}/actions/runs/{id}/attempts/{attempt}`; its jobs have ids of their own, so `get_job_logs` reads the log each had then. A job that is `cancelling` was cancelled and is running its cleanup steps."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3377 },
3378 "get_job_logs": {
3379 "params": {
3380 "job": "job_01kpx7b3d0e4f8g2h6j0k4m8ns"
3381 },
3382 "query": {
3383 "after": 0
3384 },
3385 "response": {
3386 "chunks": [
3387 {
3388 "seq": 1,
3389 "step": 0,
3390 "text": "Preparing the sandbox\n"
3391 },
3392 {
3393 "seq": 2,
3394 "step": 2,
3395 "text": "> cargo test\ntest greet ... FAILED\n"
3396 }
3397 ],
3398 "done": true
3399 },
3400 "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`."
3401 },
3402 "dispatch_workflow": {
3403 "params": {
3404 "workflow": "ci.yml"
3405 },
3406 "request": {
3407 "ref": "main",
3408 "inputs": {
3409 "debug": true
3410 }
3411 },
3412 "response": {
3413 "id": "run_01kpx8d4e7f0g3h6j9k2m5n8pq",
3414 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3415 "path": ".g1t/workflows/ci.yml",
3416 "name": "CI",
3417 "title": "CI run by syntaqx",
3418 "number": 13,
3419 "attempt": 1,
3420 "event": "workflow_dispatch",
3421 "ref": "refs/heads/main",
3422 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
3423 "pull": null,
3424 "status": "queued",
3425 "conclusion": null,
3426 "error": null,
3427 "actor": "syntaqx",
3428 "created_at": "2026-10-04T16:30:00.512Z",
3429 "started_at": null,
3430 "finished_at": null
3431 }
3432 },
3433 "cancel_workflow_run": {
3434 "params": {
3435 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
3436 },
3437 "response": {
3438 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3439 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3440 "path": ".g1t/workflows/ci.yml",
3441 "name": "CI",
3442 "title": "Greeting should name the caller",
3443 "number": 12,
3444 "attempt": 1,
3445 "event": "push",
3446 "ref": "refs/heads/main",
3447 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
3448 "pull": null,
3449 "status": "completed",
3450 "conclusion": "cancelled",
3451 "error": null,
3452 "actor": "syntaqx",
3453 "created_at": "2026-10-04T15:42:07.318Z",
3454 "started_at": "2026-10-04T15:42:09.020Z",
3455 "finished_at": "2026-10-04T15:44:31.877Z"
3456 }
3457 },
3458 "rerun_workflow_run": {
3459 "params": {
3460 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
3461 },
3462 "request": {
3463 "failed_only": true
3464 },
3465 "response": {
3466 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3467 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3468 "path": ".g1t/workflows/ci.yml",
3469 "name": "CI",
3470 "title": "Greeting should name the caller",
3471 "number": 12,
3472 "attempt": 2,
3473 "event": "push",
3474 "ref": "refs/heads/main",
3475 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
3476 "pull": null,
3477 "status": "queued",
3478 "conclusion": null,
3479 "error": null,
3480 "actor": "syntaqx",
3481 "created_at": "2026-10-04T15:42:07.318Z",
3482 "started_at": null,
3483 "finished_at": null
3484 },
3485 "notes": "The run keeps its id; `attempt` goes up by one."
3486 },
3487 "rerun_failed_jobs": {
3488 "params": {
3489 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
3490 },
3491 "response": {
3492 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3493 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3494 "path": ".g1t/workflows/ci.yml",
3495 "name": "CI",
3496 "title": "Greeting should name the caller",
3497 "number": 12,
3498 "attempt": 2,
3499 "event": "push",
3500 "ref": "refs/heads/main",
3501 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
3502 "pull": null,
3503 "status": "queued",
3504 "conclusion": null,
3505 "error": null,
3506 "actor": "syntaqx",
3507 "created_at": "2026-10-04T15:42:07.318Z",
3508 "started_at": null,
3509 "finished_at": null
3510 }
3511 },
Merge Actions runs: summaries, attempts and re-runs, graceful cancel, log downloads, badges (actions 0009)3512 "rerun_job": {
3513 "params": {
3514 "job": "job_01kpx7b3d0e4f8g2h6j0k4m8ns"
3515 },
3516 "request": {
3517 "enable_debug_logging": true
3518 },
3519 "response": {
3520 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3521 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3522 "path": ".g1t/workflows/ci.yml",
3523 "name": "CI",
3524 "title": "Greeting should name the caller",
3525 "number": 12,
3526 "attempt": 2,
3527 "event": "push",
3528 "ref": "refs/heads/main",
3529 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
3530 "pull": null,
3531 "status": "queued",
3532 "conclusion": null,
3533 "error": null,
3534 "actor": "syntaqx",
3535 "created_at": "2026-10-04T15:42:07.318Z",
3536 "started_at": null,
3537 "finished_at": null
3538 },
3539 "notes": "Runs the job again with every job that needs it, as a new attempt; the rest keep how they ended. A job of a matrix runs again with the rest of its matrix, and a job of a called workflow with the job that calls it. The run must have finished."
3540 },
3541 "force_cancel_workflow_run": {
3542 "params": {
3543 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
3544 },
3545 "response": {
3546 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
3547 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
3548 "path": ".g1t/workflows/ci.yml",
3549 "name": "CI",
3550 "title": "Greeting should name the caller",
3551 "number": 12,
3552 "attempt": 1,
3553 "event": "push",
3554 "ref": "refs/heads/main",
3555 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
3556 "pull": null,
3557 "status": "completed",
3558 "conclusion": "cancelled",
3559 "error": null,
3560 "actor": "syntaqx",
3561 "created_at": "2026-10-04T15:42:07.318Z",
3562 "started_at": "2026-10-04T15:42:09.020Z",
3563 "finished_at": "2026-10-04T15:43:02.411Z"
3564 },
3565 "notes": "Stops running jobs at once, without their `if: always()`, `cancelled()` or post steps. Use it when a job's cleanup hangs."
3566 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3567 "update_workflow": {
3568 "params": {
3569 "workflow": "nightly.yml"
3570 },
3571 "request": {
3572 "enabled": false
3573 },
3574 "response": {
3575 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
3576 "path": ".g1t/workflows/nightly.yml",
3577 "name": "Nightly",
3578 "events": [
3579 "schedule"
3580 ],
3581 "state": "disabled",
3582 "error": null,
3583 "notes": [],
3584 "dispatch": null,
3585 "last_run": null
3586 }
3587 },
3588 "enable_workflow": {
3589 "params": {
3590 "workflow": "nightly.yml"
3591 },
3592 "response": {
3593 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
3594 "path": ".g1t/workflows/nightly.yml",
3595 "name": "Nightly",
3596 "events": [
3597 "schedule"
3598 ],
3599 "state": "active",
3600 "error": null,
3601 "notes": [],
3602 "dispatch": null,
3603 "last_run": null
3604 }
3605 },
3606 "disable_workflow": {
3607 "params": {
3608 "workflow": "nightly.yml"
3609 },
3610 "response": {
3611 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
3612 "path": ".g1t/workflows/nightly.yml",
3613 "name": "Nightly",
3614 "events": [
3615 "schedule"
3616 ],
3617 "state": "disabled",
3618 "error": null,
3619 "notes": [],
3620 "dispatch": null,
3621 "last_run": null
3622 }
3623 },
3624 "list_actions_secrets": {
3625 "response": [
3626 {
3627 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ab",
3628 "name": "NPM_TOKEN",
3629 "kind": "secret",
3630 "value": null,
3631 "scope": "workspace",
3632 "updated_at": "2026-10-01T09:12:44.020Z",
3633 "available_to": [
3634 "workflows"
3635 ],
3636 "environments": [],
3637 "projects": [],
3638 "note": null,
Merge brokered secrets: a secret a job uses only to call an API can be tied to the hosts it is for, and the job gets a stand-in in its place, which g1t fills in on the way out to those hosts and nowhere else, so the value never enters the sandbox; and a request to an allowed host that fails upstream is retried when it can be, or answered with a 502 that says why, rather than reset.3639 "updated_by": "syntaqx",
3640 "brokered_hosts": [
3641 "registry.npmjs.org"
3642 ]
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3643 },
3644 {
3645 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac",
3646 "name": "STRIPE_KEY",
3647 "kind": "secret",
3648 "value": null,
3649 "scope": "project",
3650 "updated_at": "2026-10-04T15:42:07.318Z",
3651 "available_to": [
3652 "workflows",
3653 "deployments"
3654 ],
3655 "environments": [
3656 "production"
3657 ],
3658 "projects": [],
3659 "note": "Rotate in the Stripe dashboard.",
Merge brokered secrets: a secret a job uses only to call an API can be tied to the hosts it is for, and the job gets a stand-in in its place, which g1t fills in on the way out to those hosts and nowhere else, so the value never enters the sandbox; and a request to an allowed host that fails upstream is retried when it can be, or answered with a 502 that says why, rather than reset.3660 "updated_by": "syntaqx",
3661 "brokered_hosts": []
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3662 }
3663 ],
Merge brokered secrets: a secret a job uses only to call an API can be tied to the hosts it is for, and the job gets a stand-in in its place, which g1t fills in on the way out to those hosts and nowhere else, so the value never enters the sandbox; and a request to an allowed host that fails upstream is retried when it can be, or answered with a 502 that says why, rather than reset.3664 "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; empty `brokered_hosts`, a secret that is not brokered."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3665 },
3666 "list_actions_secrets_for_workspace": {
3667 "params": {
3668 "workspace": "flagon-io"
3669 },
3670 "response": [
3671 {
3672 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ab",
3673 "name": "NPM_TOKEN",
3674 "kind": "secret",
3675 "value": null,
3676 "scope": "workspace",
3677 "updated_at": "2026-10-04T15:42:07.318Z",
3678 "available_to": [
3679 "workflows"
3680 ],
3681 "environments": [],
3682 "projects": [],
3683 "note": null,
Merge brokered secrets: a secret a job uses only to call an API can be tied to the hosts it is for, and the job gets a stand-in in its place, which g1t fills in on the way out to those hosts and nowhere else, so the value never enters the sandbox; and a request to an allowed host that fails upstream is retried when it can be, or answered with a 502 that says why, rather than reset.3684 "updated_by": "syntaqx",
3685 "brokered_hosts": [
3686 "registry.npmjs.org"
3687 ]
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3688 }
3689 ],
Merge brokered secrets: a secret a job uses only to call an API can be tied to the hosts it is for, and the job gets a stand-in in its place, which g1t fills in on the way out to those hosts and nowhere else, so the value never enters the sandbox; and a request to an allowed host that fails upstream is retried when it can be, or answered with a 502 that says why, rather than reset.3690 "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; empty `brokered_hosts`, a secret that is not brokered."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3691 },
3692 "set_actions_secret": {
3693 "params": {
3694 "setting": "STRIPE_KEY"
3695 },
3696 "request": {
3697 "value": "sk_live_…",
3698 "available_to": [
3699 "workflows",
3700 "deployments"
3701 ],
3702 "environments": [
3703 "production"
3704 ]
3705 },
3706 "response": {
3707 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac",
3708 "name": "STRIPE_KEY",
3709 "kind": "secret",
3710 "value": null,
3711 "scope": "project",
3712 "updated_at": "2026-10-04T15:42:07.318Z",
3713 "available_to": [
3714 "workflows",
3715 "deployments"
3716 ],
3717 "environments": [
3718 "production"
3719 ],
3720 "projects": [],
3721 "note": null,
Merge brokered secrets: a secret a job uses only to call an API can be tied to the hosts it is for, and the job gets a stand-in in its place, which g1t fills in on the way out to those hosts and nowhere else, so the value never enters the sandbox; and a request to an allowed host that fails upstream is retried when it can be, or answered with a 502 that says why, rather than reset.3722 "updated_by": "syntaqx",
3723 "brokered_hosts": []
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3724 },
3725 "notes": "Keys are uppercased. See [secrets and variables](/guides/secrets-and-variables/)."
3726 },
3727 "set_actions_secret_for_workspace": {
3728 "params": {
3729 "workspace": "flagon-io",
3730 "setting": "NPM_TOKEN"
3731 },
3732 "request": {
3733 "value": "npm_…",
3734 "projects": [
3735 "hello"
Merge brokered secrets: a secret a job uses only to call an API can be tied to the hosts it is for, and the job gets a stand-in in its place, which g1t fills in on the way out to those hosts and nowhere else, so the value never enters the sandbox; and a request to an allowed host that fails upstream is retried when it can be, or answered with a 502 that says why, rather than reset.3736 ],
3737 "brokered_hosts": [
3738 "registry.npmjs.org"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3739 ]
3740 },
3741 "response": {
3742 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac",
3743 "name": "NPM_TOKEN",
3744 "kind": "secret",
3745 "value": null,
3746 "scope": "workspace",
3747 "updated_at": "2026-10-04T15:42:07.318Z",
3748 "available_to": [
3749 "workflows"
3750 ],
3751 "environments": [],
3752 "projects": [
3753 "hello"
3754 ],
3755 "note": null,
Merge brokered secrets: a secret a job uses only to call an API can be tied to the hosts it is for, and the job gets a stand-in in its place, which g1t fills in on the way out to those hosts and nowhere else, so the value never enters the sandbox; and a request to an allowed host that fails upstream is retried when it can be, or answered with a 502 that says why, rather than reset.3756 "updated_by": "syntaqx",
3757 "brokered_hosts": [
3758 "registry.npmjs.org"
3759 ]
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3760 }
3761 },
3762 "delete_actions_secret": {
3763 "params": {
3764 "setting": "STRIPE_KEY"
3765 },
3766 "response": true
3767 },
3768 "delete_actions_secret_for_workspace": {
3769 "params": {
3770 "workspace": "flagon-io",
3771 "setting": "NPM_TOKEN"
3772 },
3773 "response": true
3774 },
3775 "list_actions_variables": {
3776 "response": [
3777 {
3778 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
3779 "name": "NODE_VERSION",
3780 "kind": "variable",
3781 "value": "20",
3782 "scope": "project",
3783 "updated_at": "2026-10-04T15:42:07.318Z",
3784 "available_to": [
3785 "workflows",
3786 "deployments"
3787 ],
3788 "environments": [],
3789 "projects": [],
3790 "note": null,
3791 "updated_by": "syntaqx"
3792 }
3793 ],
3794 "notes": "A repository's list includes the workspace's rows that reach it, with `scope` set to `workspace`. Empty `environments` means every environment."
3795 },
3796 "list_actions_variables_for_workspace": {
3797 "params": {
3798 "workspace": "flagon-io"
3799 },
3800 "response": [
3801 {
3802 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
3803 "name": "NODE_VERSION",
3804 "kind": "variable",
3805 "value": "20",
3806 "scope": "workspace",
3807 "updated_at": "2026-10-04T15:42:07.318Z",
3808 "available_to": [
3809 "workflows",
3810 "deployments"
3811 ],
3812 "environments": [],
3813 "projects": [],
3814 "note": null,
3815 "updated_by": "syntaqx"
3816 }
3817 ]
3818 },
3819 "set_actions_variable": {
3820 "request": {
3821 "setting": "NODE_VERSION",
3822 "value": "20"
3823 },
3824 "response": {
3825 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
3826 "name": "NODE_VERSION",
3827 "kind": "variable",
3828 "value": "20",
3829 "scope": "project",
3830 "updated_at": "2026-10-04T15:42:07.318Z",
3831 "available_to": [
3832 "workflows",
3833 "deployments"
3834 ],
3835 "environments": [],
3836 "projects": [],
3837 "note": null,
3838 "updated_by": "syntaqx"
3839 },
3840 "notes": "GitHub's clients send the key as `name`; that is accepted too."
3841 },
3842 "set_actions_variable_for_workspace": {
3843 "params": {
3844 "workspace": "flagon-io"
3845 },
3846 "request": {
3847 "setting": "NODE_VERSION",
3848 "value": "20"
3849 },
3850 "response": {
3851 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
3852 "name": "NODE_VERSION",
3853 "kind": "variable",
3854 "value": "20",
3855 "scope": "workspace",
3856 "updated_at": "2026-10-04T15:42:07.318Z",
3857 "available_to": [
3858 "workflows",
3859 "deployments"
3860 ],
3861 "environments": [],
3862 "projects": [],
3863 "note": null,
3864 "updated_by": "syntaqx"
3865 }
3866 },
3867 "update_actions_variable": {
3868 "params": {
3869 "setting": "NODE_VERSION"
3870 },
3871 "request": {
3872 "value": "22"
3873 },
3874 "response": {
3875 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
3876 "name": "NODE_VERSION",
3877 "kind": "variable",
3878 "value": "22",
3879 "scope": "project",
3880 "updated_at": "2026-10-04T15:42:07.318Z",
3881 "available_to": [
3882 "workflows",
3883 "deployments"
3884 ],
3885 "environments": [],
3886 "projects": [],
3887 "note": null,
3888 "updated_by": "syntaqx"
3889 }
3890 },
3891 "update_actions_variable_for_workspace": {
3892 "params": {
3893 "workspace": "flagon-io",
3894 "setting": "NODE_VERSION"
3895 },
3896 "request": {
3897 "value": "22"
3898 },
3899 "response": {
3900 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
3901 "name": "NODE_VERSION",
3902 "kind": "variable",
3903 "value": "22",
3904 "scope": "workspace",
3905 "updated_at": "2026-10-04T15:42:07.318Z",
3906 "available_to": [
3907 "workflows",
3908 "deployments"
3909 ],
3910 "environments": [],
3911 "projects": [],
3912 "note": null,
3913 "updated_by": "syntaqx"
3914 }
3915 },
3916 "delete_actions_variable": {
3917 "params": {
3918 "setting": "NODE_VERSION"
3919 },
3920 "response": true
3921 },
3922 "delete_actions_variable_for_workspace": {
3923 "params": {
3924 "workspace": "flagon-io",
3925 "setting": "NODE_VERSION"
3926 },
3927 "response": true
3928 },
3929 "list_runners": {
3930 "response": [
3931 {
3932 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w8z",
3933 "name": "build-01",
3934 "workspace": "flagon-io",
3935 "repo": null,
3936 "group": "Default",
3937 "labels": [
3938 "self-hosted",
3939 "linux",
3940 "x64",
3941 "gpu"
3942 ],
3943 "os": "linux",
3944 "arch": "x64",
3945 "version": "0.2.0",
3946 "ephemeral": false,
3947 "status": "busy",
3948 "work": {
3949 "kind": "workflow",
3950 "id": "job_01kq2m9b1d4g7j0m3p6s9v2y5b",
3951 "name": "test (linux, 24)",
3952 "repo": "flagon-io/hello",
3953 "run_id": "run_01kq2m9a8c1f4h7k0n3q6t9w2z",
3954 "started_at": "2026-10-06T14:02:11.000Z"
3955 },
3956 "last_seen_at": "2026-10-06T14:05:40.512Z",
3957 "created_at": "2026-10-02T09:30:00.000Z",
Merge the runner sandbox: g1t-runner sandbox up makes a person's own computer a self-hosted runner that nothing a job runs can get out of. Linux jobs run in a Linux VM of the runner's own (a WSL 2 distribution with no host mounts, interop or Docker socket on Windows; vfkit on macOS; Sysbox, or QEMU and KVM, on Linux), each in a fresh container under Sysbox inside it; on Windows 11 Pro and up, Windows jobs each run in a Windows Sandbox discarded after the job. Runners report their isolation, and the Runners page shows it.3958 "created_by": null,
3959 "isolation": "nested-container"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3960 },
3961 {
3962 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w9a",
3963 "name": "mac-mini",
3964 "workspace": "flagon-io",
3965 "repo": null,
3966 "group": "Default",
3967 "labels": [
3968 "self-hosted",
3969 "macos",
3970 "arm64"
3971 ],
3972 "os": "macos",
3973 "arch": "arm64",
3974 "version": "0.2.0",
3975 "ephemeral": false,
3976 "status": "online",
3977 "work": null,
3978 "last_seen_at": "2026-10-06T14:05:40.512Z",
3979 "created_at": "2026-10-02T09:30:00.000Z",
Merge the runner sandbox: g1t-runner sandbox up makes a person's own computer a self-hosted runner that nothing a job runs can get out of. Linux jobs run in a Linux VM of the runner's own (a WSL 2 distribution with no host mounts, interop or Docker socket on Windows; vfkit on macOS; Sysbox, or QEMU and KVM, on Linux), each in a fresh container under Sysbox inside it; on Windows 11 Pro and up, Windows jobs each run in a Windows Sandbox discarded after the job. Runners report their isolation, and the Runners page shows it.3980 "created_by": null,
3981 "isolation": "host"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person3982 }
3983 ],
3984 "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."
3985 },
3986 "list_runners_for_workspace": {
3987 "params": {
3988 "workspace": "flagon-io"
3989 },
3990 "response": [
3991 {
3992 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w8z",
3993 "name": "build-01",
3994 "workspace": "flagon-io",
3995 "repo": null,
3996 "group": "Default",
3997 "labels": [
3998 "self-hosted",
3999 "linux",
4000 "x64",
4001 "gpu"
4002 ],
4003 "os": "linux",
4004 "arch": "x64",
4005 "version": "0.2.0",
4006 "ephemeral": false,
4007 "status": "busy",
4008 "work": {
4009 "kind": "workflow",
4010 "id": "job_01kq2m9b1d4g7j0m3p6s9v2y5b",
4011 "name": "test (linux, 24)",
4012 "repo": "flagon-io/hello",
4013 "run_id": "run_01kq2m9a8c1f4h7k0n3q6t9w2z",
4014 "started_at": "2026-10-06T14:02:11.000Z"
4015 },
4016 "last_seen_at": "2026-10-06T14:05:40.512Z",
4017 "created_at": "2026-10-02T09:30:00.000Z",
Merge the runner sandbox: g1t-runner sandbox up makes a person's own computer a self-hosted runner that nothing a job runs can get out of. Linux jobs run in a Linux VM of the runner's own (a WSL 2 distribution with no host mounts, interop or Docker socket on Windows; vfkit on macOS; Sysbox, or QEMU and KVM, on Linux), each in a fresh container under Sysbox inside it; on Windows 11 Pro and up, Windows jobs each run in a Windows Sandbox discarded after the job. Runners report their isolation, and the Runners page shows it.4018 "created_by": null,
4019 "isolation": "nested-container"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4020 },
4021 {
4022 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w9a",
4023 "name": "mac-mini",
4024 "workspace": "flagon-io",
4025 "repo": null,
4026 "group": "Default",
4027 "labels": [
4028 "self-hosted",
4029 "macos",
4030 "arm64"
4031 ],
4032 "os": "macos",
4033 "arch": "arm64",
4034 "version": "0.2.0",
4035 "ephemeral": false,
4036 "status": "online",
4037 "work": null,
4038 "last_seen_at": "2026-10-06T14:05:40.512Z",
4039 "created_at": "2026-10-02T09:30:00.000Z",
Merge the runner sandbox: g1t-runner sandbox up makes a person's own computer a self-hosted runner that nothing a job runs can get out of. Linux jobs run in a Linux VM of the runner's own (a WSL 2 distribution with no host mounts, interop or Docker socket on Windows; vfkit on macOS; Sysbox, or QEMU and KVM, on Linux), each in a fresh container under Sysbox inside it; on Windows 11 Pro and up, Windows jobs each run in a Windows Sandbox discarded after the job. Runners report their isolation, and the Runners page shows it.4040 "created_by": null,
4041 "isolation": "host"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4042 }
4043 ]
4044 },
4045 "create_runner_registration_token": {
4046 "response": {
4047 "token": "g1trt_…",
4048 "expires_at": "2026-10-06T15:04:00.000Z",
4049 "workspace": "flagon-io",
4050 "repo": "flagon-io/hello",
4051 "group": null,
4052 "url": "https://g1t.sh"
4053 },
4054 "notes": "Pass it to `g1t-runner register --url https://g1t.sh --token …` within the hour. See [self-hosted runners](/guides/self-hosted-runners/)."
4055 },
4056 "create_runner_registration_token_for_workspace": {
4057 "params": {
4058 "workspace": "flagon-io"
4059 },
4060 "request": {
4061 "group": "Default"
4062 },
4063 "response": {
4064 "token": "g1trt_…",
4065 "expires_at": "2026-10-06T15:04:00.000Z",
4066 "workspace": "flagon-io",
4067 "repo": null,
4068 "group": "Default",
4069 "url": "https://g1t.sh"
4070 }
4071 },
4072 "remove_runner": {
4073 "params": {
4074 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w8z"
4075 },
4076 "response": true
4077 },
4078 "remove_runner_for_workspace": {
4079 "params": {
4080 "workspace": "flagon-io",
4081 "id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w8z"
4082 },
4083 "response": true
4084 },
4085 "get_runner_settings": {
4086 "response": {
4087 "agents_on_self_hosted": false,
4088 "agent_labels": [
4089 "self-hosted",
4090 "linux"
4091 ],
4092 "fork_pull_requests": false,
4093 "inherited": true
4094 }
4095 },
4096 "get_runner_settings_for_workspace": {
4097 "params": {
4098 "workspace": "flagon-io"
4099 },
4100 "response": {
4101 "agents_on_self_hosted": true,
4102 "agent_labels": [
4103 "self-hosted",
4104 "linux"
4105 ],
4106 "fork_pull_requests": false,
4107 "inherited": false
4108 }
4109 },
4110 "update_runner_settings": {
4111 "request": {
4112 "inherit": true
4113 },
4114 "response": {
4115 "agents_on_self_hosted": false,
4116 "agent_labels": [
4117 "self-hosted",
4118 "linux"
4119 ],
4120 "fork_pull_requests": false,
4121 "inherited": true
4122 }
4123 },
4124 "update_runner_settings_for_workspace": {
4125 "params": {
4126 "workspace": "flagon-io"
4127 },
4128 "request": {
4129 "agents_on_self_hosted": true,
4130 "agent_labels": [
4131 "linux"
4132 ]
4133 },
4134 "response": {
4135 "agents_on_self_hosted": true,
4136 "agent_labels": [
4137 "self-hosted",
4138 "linux"
4139 ],
4140 "fork_pull_requests": false,
4141 "inherited": false
4142 },
4143 "notes": "Agent work on your runners still uses g1t's model proxy, paid as before, unless the workspace has its own model provider."
4144 },
4145 "list_runner_groups": {
4146 "params": {
4147 "workspace": "flagon-io"
4148 },
4149 "response": [
4150 {
4151 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6y",
4152 "name": "Default",
4153 "default": true,
4154 "repositories": [],
4155 "runners": 2,
4156 "updated_at": "2026-10-02T09:30:00.000Z"
4157 },
4158 {
4159 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6z",
4160 "name": "GPU",
4161 "default": false,
4162 "repositories": [
4163 "hello",
4164 "models"
4165 ],
4166 "runners": 1,
4167 "updated_at": "2026-10-05T11:20:00.000Z"
Every agent can have its own computer. A session that needs one wakes it: a home of its own on g1t cloud, one per agent and never shared, where it runs commands, reads and writes files and keeps what it made, with each session working in its own folder under a shared home; after ten idle minutes it sleeps, its home kept as a snapshot and restored when it wakes, and Reset wipes the home while memory and artifacts stay. Its shell and files are abilities with the usual choices, Alone, Alone when asked, Ask first or Never, offered only inside sessions and never to a chat reply; every command shows on the session with its output, and the agent's new Computer tab shows the state, the disk used of the five gigabytes included, the recent commands, and Wake, Put to sleep and Reset. Machine time counts only while it is awake, on the sandbox lines of the ledger that name the agent and who asked, held to the same spend caps as the session; the disk itself costs nothing in this version. The runner gained a long-lived supervisor that answers the computer's requests inside the container, and the runner service a computer per agent that keeps its snapshot in the agent homes bucket when one is attached, and says so when none is. The REST API and the agent tool can read a computer, wake it, put it to sleep and reset it. The agents, abilities, sessions, runners, billing and deploy guides say how it works and what an operator sets up; pinning a computer to your own runner, its browser and take-over come next.4168 }
4169 ]
4170 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4171 "create_runner_group": {
4172 "params": {
4173 "workspace": "flagon-io"
4174 },
4175 "request": {
4176 "name": "GPU",
4177 "repositories": [
4178 "hello",
4179 "models"
4180 ]
4181 },
4182 "response": {
4183 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6z",
4184 "name": "GPU",
4185 "default": false,
4186 "repositories": [
4187 "hello",
4188 "models"
4189 ],
4190 "runners": 1,
4191 "updated_at": "2026-10-05T11:20:00.000Z"
4192 }
4193 },
4194 "update_runner_group": {
4195 "params": {
4196 "workspace": "flagon-io",
4197 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6z"
4198 },
4199 "request": {
4200 "repositories": []
4201 },
4202 "response": {
4203 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6z",
4204 "name": "GPU",
4205 "default": false,
4206 "repositories": [],
4207 "runners": 1,
4208 "updated_at": "2026-10-05T11:20:00.000Z"
4209 }
4210 },
4211 "delete_runner_group": {
4212 "params": {
4213 "workspace": "flagon-io",
4214 "id": "rng_01kq2m7r2a5d8g1j4m7p0s3v6z"
4215 },
4216 "response": true
4217 },
4218 "list_webhooks": {
4219 "response": [
4220 {
4221 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4222 "scope": "repo",
4223 "workspace": "flagon-io",
4224 "repo": "flagon-io/hello",
4225 "url": "https://hooks.example.com/g1t",
4226 "events": [
4227 "git.push",
4228 "pull.merged"
4229 ],
4230 "active": true,
4231 "secret_hint": "…9c2e",
4232 "created_by": "syntaqx",
4233 "created_at": "2026-10-04T15:42:07.318Z",
4234 "last_status": "delivered",
4235 "last_delivered_at": "2026-10-04T15:42:07.611Z"
4236 }
4237 ]
4238 },
4239 "list_webhooks_for_workspace": {
4240 "params": {
4241 "workspace": "flagon-io"
4242 },
4243 "response": [
4244 {
4245 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4246 "scope": "workspace",
4247 "workspace": "flagon-io",
4248 "repo": null,
4249 "url": "https://hooks.example.com/g1t",
4250 "events": [
4251 "git.push",
4252 "pull.merged"
4253 ],
4254 "active": true,
4255 "secret_hint": "…9c2e",
4256 "created_by": "syntaqx",
4257 "created_at": "2026-10-04T15:42:07.318Z",
4258 "last_status": "delivered",
4259 "last_delivered_at": "2026-10-04T15:42:07.611Z"
4260 }
4261 ]
4262 },
4263 "create_webhook": {
4264 "request": {
4265 "url": "https://hooks.example.com/g1t",
4266 "events": [
4267 "git.push",
4268 "pull.merged"
4269 ]
4270 },
4271 "response": {
4272 "hook": {
4273 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4274 "scope": "repo",
4275 "workspace": "flagon-io",
4276 "repo": "flagon-io/hello",
4277 "url": "https://hooks.example.com/g1t",
4278 "events": [
4279 "git.push",
4280 "pull.merged"
4281 ],
4282 "active": true,
4283 "secret_hint": "…9c2e",
4284 "created_by": "syntaqx",
4285 "created_at": "2026-10-04T15:42:07.318Z",
4286 "last_status": "delivered",
4287 "last_delivered_at": "2026-10-04T15:42:07.611Z"
4288 },
4289 "secret": "whsec_…"
4290 },
4291 "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/)."
4292 },
4293 "create_webhook_for_workspace": {
4294 "params": {
4295 "workspace": "flagon-io"
4296 },
4297 "request": {
4298 "url": "https://hooks.example.com/g1t"
4299 },
4300 "response": {
4301 "hook": {
4302 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4303 "scope": "workspace",
4304 "workspace": "flagon-io",
4305 "repo": null,
4306 "url": "https://hooks.example.com/g1t",
4307 "events": [
4308 "*"
4309 ],
4310 "active": true,
4311 "secret_hint": "…9c2e",
4312 "created_by": "syntaqx",
4313 "created_at": "2026-10-04T15:42:07.318Z",
4314 "last_status": "delivered",
4315 "last_delivered_at": "2026-10-04T15:42:07.611Z"
4316 },
4317 "secret": "whsec_…"
4318 },
4319 "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/)."
4320 },
4321 "update_webhook": {
4322 "params": {
4323 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
4324 },
4325 "request": {
4326 "active": false
4327 },
4328 "response": {
4329 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4330 "scope": "repo",
4331 "workspace": "flagon-io",
4332 "repo": "flagon-io/hello",
4333 "url": "https://hooks.example.com/g1t",
4334 "events": [
4335 "git.push",
4336 "pull.merged"
4337 ],
4338 "active": false,
4339 "secret_hint": "…9c2e",
4340 "created_by": "syntaqx",
4341 "created_at": "2026-10-04T15:42:07.318Z",
4342 "last_status": "delivered",
4343 "last_delivered_at": "2026-10-04T15:42:07.611Z"
4344 }
4345 },
4346 "update_webhook_for_workspace": {
4347 "params": {
4348 "workspace": "flagon-io",
4349 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
4350 },
4351 "request": {
4352 "active": false
4353 },
4354 "response": {
4355 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4356 "scope": "workspace",
4357 "workspace": "flagon-io",
4358 "repo": null,
4359 "url": "https://hooks.example.com/g1t",
4360 "events": [
4361 "git.push",
4362 "pull.merged"
4363 ],
4364 "active": false,
4365 "secret_hint": "…9c2e",
4366 "created_by": "syntaqx",
4367 "created_at": "2026-10-04T15:42:07.318Z",
4368 "last_status": "delivered",
4369 "last_delivered_at": "2026-10-04T15:42:07.611Z"
4370 }
4371 },
4372 "delete_webhook": {
4373 "params": {
4374 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
4375 },
4376 "response": true
4377 },
4378 "delete_webhook_for_workspace": {
4379 "params": {
4380 "workspace": "flagon-io",
4381 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
4382 },
4383 "response": true
4384 },
4385 "ping_webhook": {
4386 "params": {
4387 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
4388 },
4389 "response": {
4390 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
4391 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4392 "event_id": "",
4393 "event": "ping",
4394 "status": "delivered",
4395 "attempts": 1,
4396 "response_status": 200,
4397 "response_body": "ok",
4398 "error": null,
4399 "duration_ms": 184,
4400 "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\"}",
4401 "created_at": "2026-10-04T16:01:12.440Z",
4402 "delivered_at": "2026-10-04T16:01:12.631Z",
4403 "next_attempt_at": null
4404 },
4405 "notes": "`payload` is the JSON that was sent, as a string."
4406 },
4407 "ping_webhook_for_workspace": {
4408 "params": {
4409 "workspace": "flagon-io",
4410 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
4411 },
4412 "response": {
4413 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
4414 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4415 "event_id": "",
4416 "event": "ping",
4417 "status": "delivered",
4418 "attempts": 1,
4419 "response_status": 200,
4420 "response_body": "ok",
4421 "error": null,
4422 "duration_ms": 184,
4423 "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\"}",
4424 "created_at": "2026-10-04T16:01:12.440Z",
4425 "delivered_at": "2026-10-04T16:01:12.631Z",
4426 "next_attempt_at": null
4427 }
4428 },
4429 "list_webhook_deliveries": {
4430 "params": {
4431 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
4432 },
4433 "response": [
4434 {
4435 "id": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz",
4436 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4437 "event_id": "",
4438 "event": "ping",
4439 "status": "pending",
4440 "attempts": 1,
4441 "response_status": 503,
4442 "response_body": "Service Unavailable",
4443 "error": null,
4444 "duration_ms": 212,
4445 "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\"}",
4446 "created_at": "2026-10-04T16:20:03.100Z",
4447 "delivered_at": null,
4448 "next_attempt_at": "2026-10-04T16:21:03.312Z"
4449 },
4450 {
4451 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
4452 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4453 "event_id": "",
4454 "event": "ping",
4455 "status": "delivered",
4456 "attempts": 1,
4457 "response_status": 200,
4458 "response_body": "ok",
4459 "error": null,
4460 "duration_ms": 184,
4461 "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\"}",
4462 "created_at": "2026-10-04T16:01:12.440Z",
4463 "delivered_at": "2026-10-04T16:01:12.631Z",
4464 "next_attempt_at": null
4465 }
4466 ],
4467 "notes": "Returns at most 50, newest first. `status` is `pending`, `delivered` or `failed`; `next_attempt_at` is set while it is pending."
4468 },
4469 "list_webhook_deliveries_for_workspace": {
4470 "params": {
4471 "workspace": "flagon-io",
4472 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
4473 },
4474 "response": [
4475 {
4476 "id": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz",
4477 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4478 "event_id": "",
4479 "event": "ping",
4480 "status": "pending",
4481 "attempts": 1,
4482 "response_status": 503,
4483 "response_body": "Service Unavailable",
4484 "error": null,
4485 "duration_ms": 212,
4486 "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\"}",
4487 "created_at": "2026-10-04T16:20:03.100Z",
4488 "delivered_at": null,
4489 "next_attempt_at": "2026-10-04T16:21:03.312Z"
4490 },
4491 {
4492 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
4493 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4494 "event_id": "",
4495 "event": "ping",
4496 "status": "delivered",
4497 "attempts": 1,
4498 "response_status": 200,
4499 "response_body": "ok",
4500 "error": null,
4501 "duration_ms": 184,
4502 "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\"}",
4503 "created_at": "2026-10-04T16:01:12.440Z",
4504 "delivered_at": "2026-10-04T16:01:12.631Z",
4505 "next_attempt_at": null
4506 }
4507 ]
4508 },
4509 "redeliver_webhook": {
4510 "params": {
4511 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4512 "delivery": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz"
4513 },
4514 "response": {
4515 "id": "dlv_01kpx6c8d1e2f3g4h5j6k7m8np",
4516 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4517 "event_id": "",
4518 "event": "ping",
4519 "status": "delivered",
4520 "attempts": 1,
4521 "response_status": 200,
4522 "response_body": "ok",
4523 "error": null,
4524 "duration_ms": 171,
4525 "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\"}",
4526 "created_at": "2026-10-04T16:25:40.007Z",
4527 "delivered_at": "2026-10-04T16:25:40.178Z",
4528 "next_attempt_at": null
4529 },
4530 "notes": "The response is the new delivery."
4531 },
4532 "redeliver_webhook_for_workspace": {
4533 "params": {
4534 "workspace": "flagon-io",
4535 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4536 "delivery": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz"
4537 },
4538 "response": {
4539 "id": "dlv_01kpx6c8d1e2f3g4h5j6k7m8np",
4540 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
4541 "event_id": "",
4542 "event": "ping",
4543 "status": "delivered",
4544 "attempts": 1,
4545 "response_status": 200,
4546 "response_body": "ok",
4547 "error": null,
4548 "duration_ms": 171,
4549 "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\"}",
4550 "created_at": "2026-10-04T16:25:40.007Z",
4551 "delivered_at": "2026-10-04T16:25:40.178Z",
4552 "next_attempt_at": null
4553 }
4554 },
4555 "list_integrations": {
4556 "params": {
4557 "workspace": "flagon-io"
4558 },
4559 "response": [
4560 {
4561 "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bc",
4562 "workspace": "flagon-io",
4563 "provider": "jira",
4564 "kind": "tracker",
4565 "name": "Jira",
4566 "config": {
4567 "write_back": true,
4568 "site": "https://acme.atlassian.net",
4569 "email": "syntaqx@example.com",
4570 "keys": [
4571 "TECH"
4572 ]
4573 },
4574 "secret_hint": "…x7Qe",
4575 "webhook_url": null,
4576 "created_by": "syntaqx",
4577 "created_at": "2026-10-04T15:42:07.318Z",
4578 "last_used_at": null,
4579 "last_error": null,
4580 "models": []
4581 }
4582 ],
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4583 "notes": "`kind` is `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 Stripe Tax, the card fee on card payments, and one free workspace per person4584 },
4585 "connect_integration": {
4586 "params": {
4587 "workspace": "flagon-io"
4588 },
4589 "request": {
4590 "provider": "webhook",
4591 "config": {
4592 "repo": "flagon-io/hello",
4593 "label": "bug"
4594 }
4595 },
4596 "response": {
4597 "connection": {
4598 "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bd",
4599 "workspace": "flagon-io",
4600 "provider": "webhook",
4601 "kind": "alerts",
4602 "name": "Webhook",
4603 "config": {
4604 "repo": "flagon-io/hello",
4605 "label": "bug",
4606 "write_back": true
4607 },
4608 "secret_hint": null,
4609 "webhook_url": "https://api.g1t.sh/hooks/con_01kpx4n8r3g9s0v5w7x1z2a3bd",
4610 "created_by": "syntaqx",
4611 "created_at": "2026-10-04T15:42:07.318Z",
4612 "last_used_at": null,
4613 "last_error": null,
4614 "models": []
4615 },
4616 "signing_secret": "g1ts_9f2c4a7e1b0d3c6f8a2e5b7d9c1f4a6e8b0d2c4f6a8e1b3d"
4617 },
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4618 "notes": "`signing_secret` is set only when g1t made it, for `datadog` and `webhook`, and is shown only this once. See [integrations](/guides/integrations/)."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4619 },
AI Gateway: OpenAI's format, open models, and your own providers4620 "update_integration": {
4621 "params": {
4622 "workspace": "flagon-io",
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4623 "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bc"
AI Gateway: OpenAI's format, open models, and your own providers4624 },
4625 "request": {
4626 "config": {
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4627 "site": "https://acme.atlassian.net",
4628 "email": "syntaqx@example.com",
4629 "keys": [
4630 "TECH",
4631 "OPS"
Merge main (membership, two-factor, GitHub repo roles) into tokens4632 ]
AI Gateway: OpenAI's format, open models, and your own providers4633 },
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4634 "secret": "atlassian-api-token"
AI Gateway: OpenAI's format, open models, and your own providers4635 },
4636 "response": {
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4637 "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bc",
AI Gateway: OpenAI's format, open models, and your own providers4638 "workspace": "flagon-io",
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4639 "provider": "jira",
4640 "kind": "tracker",
4641 "name": "Jira",
AI Gateway: OpenAI's format, open models, and your own providers4642 "config": {
4643 "write_back": true,
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4644 "site": "https://acme.atlassian.net",
4645 "email": "syntaqx@example.com",
4646 "keys": [
4647 "TECH",
4648 "OPS"
Merge main (membership, two-factor, GitHub repo roles) into tokens4649 ]
AI Gateway: OpenAI's format, open models, and your own providers4650 },
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4651 "secret_hint": "…oken",
AI Gateway: OpenAI's format, open models, and your own providers4652 "webhook_url": null,
4653 "created_by": "syntaqx",
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4654 "created_at": "2026-10-04T15:42:07.318Z",
AI Gateway: OpenAI's format, open models, and your own providers4655 "last_used_at": "2026-10-07T14:00:02.000Z",
4656 "last_error": null,
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4657 "models": []
AI Gateway: OpenAI's format, open models, and your own providers4658 },
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4659 "notes": "The secret is write-only: it is kept encrypted and only its last four characters come back, as `secret_hint`. Use it to rotate a key."
AI Gateway: OpenAI's format, open models, and your own providers4660 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4661 "disconnect_integration": {
4662 "params": {
4663 "workspace": "flagon-io",
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4664 "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bd"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4665 },
4666 "response": true
4667 },
4668 "test_integration": {
4669 "params": {
4670 "workspace": "flagon-io",
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4671 "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bc"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4672 },
4673 "response": {
4674 "ok": true,
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.4675 "message": "Connected to https://acme.atlassian.net as Chase Pierce."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4676 },
4677 "notes": "Credentials that do not work still answer `200`, with `ok` false and `message` saying what went wrong."
Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r94678 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4679 "get_context": {
4680 "query": {
4681 "reference": "TECH-1234"
4682 },
4683 "response": {
4684 "provider": "jira",
4685 "key": "TECH-1234",
4686 "title": "Checkout fails for EU cards",
4687 "url": "https://acme.atlassian.net/browse/TECH-1234",
4688 "status": "In Progress",
4689 "body": "Customers with 3DS cards see a 500 at /pay.",
4690 "fetched_at": "2026-10-04T15:42:07.318Z"
4691 }
4692 },
4693 "import_issue": {
4694 "request": {
4695 "reference": "TECH-1234"
4696 },
4697 "response": {
4698 "number": 42,
4699 "item": {
4700 "provider": "jira",
4701 "key": "TECH-1234",
4702 "title": "Checkout fails for EU cards",
4703 "url": "https://acme.atlassian.net/browse/TECH-1234",
4704 "status": "In Progress",
4705 "body": "Customers with 3DS cards see a 500 at /pay.",
4706 "fetched_at": "2026-10-04T15:42:07.318Z"
4707 },
4708 "created": true
4709 },
4710 "notes": "`created` is false when the ticket was imported before; `number` is then that issue."
4711 },
4712 "remember": {
4713 "request": {
4714 "text": "The tests need TZ=UTC or the date tests fail.",
4715 "scope": "project",
4716 "kind": "gotcha",
4717 "from_number": 14
4718 },
4719 "response": {
4720 "id": "mem_01m43v8q2w3e4r5t6y7u8i9o0p",
4721 "scope": "project",
4722 "workspace": "flagon-io",
4723 "repo": {
4724 "namespace": "flagon-io",
4725 "name": "hello"
4726 },
4727 "text": "The tests need TZ=UTC or the date tests fail.",
4728 "kind": "gotcha",
4729 "source": {
4730 "kind": "run",
4731 "run_id": "arn_01m43v2c1p9k8d7e6f5a4b3c2d",
4732 "repo": {
4733 "namespace": "flagon-io",
4734 "name": "hello"
4735 },
4736 "number": 14
4737 },
4738 "created_by": "g1t",
4739 "pinned": false,
4740 "created_at": "2026-10-01T18:40:12.000Z",
4741 "updated_at": "2026-10-01T18:40:12.000Z",
4742 "last_used_at": null
4743 },
4744 "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."
4745 },
4746 "recall": {
4747 "query": {
4748 "q": "pnpm"
4749 },
4750 "response": {
4751 "project": [],
4752 "workspace": [
4753 {
4754 "id": "mem_01m43t0a1s2d3f4g5h6j7k8l9z",
4755 "scope": "workspace",
4756 "workspace": "flagon-io",
4757 "repo": null,
4758 "text": "We use pnpm everywhere, never npm or yarn.",
4759 "kind": "convention",
4760 "source": {
4761 "kind": "person",
4762 "run_id": null,
4763 "repo": null,
4764 "number": null
4765 },
4766 "created_by": "syntaqx",
4767 "pinned": true,
4768 "created_at": "2026-10-01T18:40:12.000Z",
4769 "updated_at": "2026-10-01T18:40:12.000Z",
4770 "last_used_at": null
4771 }
4772 ]
4773 },
4774 "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."
4775 },
4776 "search": {
4777 "query": {
4778 "q": "parse_query language:rust repo:acme/web",
4779 "type": "code"
4780 },
4781 "response": {
4782 "query": "parse_query repo:acme/web language:rust",
4783 "type": "code",
4784 "counts": {
4785 "repositories": 0,
4786 "code": 2,
4787 "issues": 0,
4788 "pulls": 0,
4789 "people": 0
4790 },
4791 "page": 1,
4792 "per_page": 20,
4793 "more": false,
4794 "hits": [
4795 {
4796 "kind": "code",
4797 "title": "src/search/query.rs",
4798 "url": "/acme/web/blob/main/src/search/query.rs#L42",
4799 "repo": "acme/web",
4800 "private": false,
4801 "description": null,
4802 "snippet": [],
4803 "lines": [
4804 {
4805 "number": 41,
4806 "parts": [
4807 {
4808 "text": "/// Reads a query typed into the search box.",
4809 "highlight": false
4810 }
4811 ]
4812 },
4813 {
4814 "number": 42,
4815 "parts": [
4816 {
4817 "text": "pub fn ",
4818 "highlight": false
4819 },
4820 {
4821 "text": "parse_query",
4822 "highlight": true
4823 },
4824 {
4825 "text": "(text: &str) -> Query {",
4826 "highlight": false
4827 }
4828 ]
4829 },
4830 {
4831 "number": 43,
4832 "parts": [
4833 {
4834 "text": " let mut query = Query::default();",
4835 "highlight": false
4836 }
4837 ]
4838 }
4839 ],
4840 "path": "src/search/query.rs",
4841 "language": "rust",
4842 "ref": "main",
4843 "number": null,
4844 "state": null,
4845 "author": null,
4846 "requested_by": null,
4847 "labels": [],
4848 "topics": [],
4849 "slug": null,
4850 "avatar": null,
4851 "updated_at": null
4852 }
4853 ],
4854 "notes": []
4855 },
4856 "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."
4857 },
4858 "list_collaborators": {
4859 "response": {
4860 "repo": "flagon-io/hello",
4861 "base_permission": "write",
4862 "people": [
4863 {
4864 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar4865 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4866 "name": "Chase Pierce",
4867 "avatar": null,
4868 "role": "admin",
4869 "source": "owner",
4870 "direct": null,
4871 "workspace_role": "owner"
4872 },
4873 {
4874 "username": "linus",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar4875 "display_username": "linus",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4876 "name": null,
4877 "avatar": null,
4878 "role": "maintain",
4879 "source": "direct",
4880 "direct": "maintain",
4881 "workspace_role": "member"
4882 },
4883 {
4884 "username": "grace",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar4885 "display_username": "grace",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4886 "name": "Grace Hopper",
4887 "avatar": null,
4888 "role": "write",
4889 "source": "base",
4890 "direct": null,
4891 "workspace_role": "member"
4892 },
4893 {
4894 "username": "ada",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar4895 "display_username": "Ada",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4896 "name": "Ada Lovelace",
4897 "avatar": null,
4898 "role": "triage",
4899 "source": "direct",
4900 "direct": "triage",
4901 "workspace_role": null
4902 }
4903 ],
4904 "invitations": [
4905 {
4906 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p",
4907 "repo": "flagon-io/hello",
4908 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4909 "invitee": "alan",
4910 "email": null,
4911 "role": "write",
4912 "invited_by": "syntaqx",
4913 "inviter_avatar": null,
4914 "status": "pending",
4915 "created_at": "2026-10-05T17:00:00.000Z",
4916 "expires_at": "2026-10-12T17:00:00.000Z"
4917 },
4918 {
4919 "id": "rin_01kp3d7e8f9g0h1j2k3m4n5p6q",
4920 "repo": "flagon-io/hello",
4921 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4922 "invitee": null,
4923 "email": "joan@example.com",
4924 "role": "read",
4925 "invited_by": "syntaqx",
4926 "inviter_avatar": null,
4927 "status": "pending",
4928 "created_at": "2026-10-05T17:00:00.000Z",
4929 "expires_at": "2026-10-12T17:00:00.000Z"
4930 }
4931 ],
4932 "viewer_role": "admin",
4933 "can_manage": true
4934 },
4935 "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/)."
4936 },
4937 "add_collaborator": {
4938 "request": {
4939 "invitee": "ada",
4940 "role": "triage"
4941 },
4942 "response": {
4943 "result": "invited",
4944 "invitation": {
4945 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
4946 "repo": "flagon-io/hello",
4947 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
4948 "invitee": "ada",
4949 "email": null,
4950 "role": "triage",
4951 "invited_by": "syntaqx",
4952 "inviter_avatar": null,
4953 "status": "pending",
4954 "created_at": "2026-10-05T17:00:00.000Z",
4955 "expires_at": "2026-10-12T17:00:00.000Z"
4956 }
4957 },
Merge site-audit: SEO routes, analytics with consent first in Europe, security page, founder and X account, docs header; the tour opens on the pull request and leads with Code, on the real shell, with Agents and Docs working today4958 "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. A `collaborator_added` webhook event is sent once they have the role. See [Access and roles](/guides/access-and-roles/). On a free workspace, inviting anyone who is not a member answers `402` with `payment_required` until it starts the g1t plan."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4959 },
4960 "update_collaborator": {
4961 "params": {
4962 "owner": "flagon-io",
4963 "name": "hello",
4964 "username": "ada"
4965 },
4966 "request": {
4967 "role": "write"
4968 },
4969 "response": {
4970 "username": "ada",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar4971 "display_username": "Ada",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4972 "name": "Ada Lovelace",
4973 "avatar": null,
4974 "role": "write",
4975 "source": "direct",
4976 "direct": "write",
4977 "workspace_role": null
4978 },
4979 "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/)."
4980 },
4981 "remove_collaborator": {
4982 "params": {
4983 "owner": "flagon-io",
4984 "name": "hello",
4985 "username": "ada"
4986 },
4987 "response": true,
4988 "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/)."
4989 },
4990 "get_collaborator_permission": {
4991 "params": {
4992 "owner": "flagon-io",
4993 "name": "hello",
4994 "username": "ada"
4995 },
4996 "response": {
4997 "username": "ada",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar4998 "display_username": "Ada",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person4999 "role": "triage",
5000 "source": "direct",
5001 "capabilities": [
5002 "read",
5003 "participate",
5004 "triage"
5005 ]
5006 },
5007 "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/)."
5008 },
5009 "list_repo_invitations": {
5010 "response": [
5011 {
5012 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p",
5013 "repo": "flagon-io/hello",
5014 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
5015 "invitee": "alan",
5016 "email": null,
5017 "role": "write",
5018 "invited_by": "syntaqx",
5019 "inviter_avatar": null,
5020 "status": "pending",
5021 "created_at": "2026-10-05T17:00:00.000Z",
5022 "expires_at": "2026-10-12T17:00:00.000Z"
5023 },
5024 {
5025 "id": "rin_01kp3d7e8f9g0h1j2k3m4n5p6q",
5026 "repo": "flagon-io/hello",
5027 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
5028 "invitee": null,
5029 "email": "joan@example.com",
5030 "role": "read",
5031 "invited_by": "syntaqx",
5032 "inviter_avatar": null,
5033 "status": "pending",
5034 "created_at": "2026-10-05T17:00:00.000Z",
5035 "expires_at": "2026-10-12T17:00:00.000Z"
5036 }
5037 ],
5038 "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/)."
5039 },
5040 "revoke_repo_invitation": {
5041 "params": {
5042 "owner": "flagon-io",
5043 "name": "hello",
5044 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p"
5045 },
5046 "response": {
5047 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p",
5048 "repo": "flagon-io/hello",
5049 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
5050 "invitee": "alan",
5051 "email": null,
5052 "role": "write",
5053 "invited_by": "syntaqx",
5054 "inviter_avatar": null,
5055 "status": "revoked",
5056 "created_at": "2026-10-05T17:00:00.000Z",
5057 "expires_at": "2026-10-12T17:00:00.000Z"
5058 },
5059 "notes": "`404` when there is no pending invitation with that id on this repository."
5060 },
5061 "list_my_repo_invitations": {
5062 "response": [
5063 {
5064 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
5065 "repo": "flagon-io/hello",
5066 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
5067 "invitee": "ada",
5068 "email": null,
5069 "role": "triage",
5070 "invited_by": "syntaqx",
5071 "inviter_avatar": null,
5072 "status": "pending",
5073 "created_at": "2026-10-05T17:00:00.000Z",
5074 "expires_at": "2026-10-12T17:00:00.000Z"
5075 }
5076 ],
5077 "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."
5078 },
5079 "accept_repo_invitation": {
5080 "params": {
5081 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r"
5082 },
5083 "response": {
5084 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
5085 "repo": "flagon-io/hello",
5086 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
5087 "invitee": "ada",
5088 "email": null,
5089 "role": "triage",
5090 "invited_by": "syntaqx",
5091 "inviter_avatar": null,
5092 "status": "accepted",
5093 "created_at": "2026-10-05T17:00:00.000Z",
5094 "expires_at": "2026-10-12T17:00:00.000Z"
5095 },
5096 "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/)."
5097 },
5098 "decline_repo_invitation": {
5099 "params": {
5100 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r"
5101 },
5102 "response": {
5103 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
5104 "repo": "flagon-io/hello",
5105 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
5106 "invitee": "ada",
5107 "email": null,
5108 "role": "triage",
5109 "invited_by": "syntaqx",
5110 "inviter_avatar": null,
5111 "status": "declined",
5112 "created_at": "2026-10-05T17:00:00.000Z",
5113 "expires_at": "2026-10-12T17:00:00.000Z"
5114 },
5115 "notes": "`404` when you have no pending invitation with that id."
5116 },
5117 "set_base_permission": {
5118 "params": {
5119 "workspace": "flagon-io"
5120 },
5121 "request": {
5122 "base_permission": "read"
5123 },
5124 "response": {
5125 "workspace": "flagon-io",
5126 "base_permission": "read"
5127 },
5128 "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/)."
5129 },
5130 "list_outside_collaborators": {
5131 "params": {
5132 "workspace": "flagon-io"
5133 },
5134 "response": [
5135 {
5136 "username": "ada",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar5137 "display_username": "Ada",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person5138 "name": "Ada Lovelace",
5139 "avatar": null,
5140 "repos": [
5141 {
5142 "repo": "flagon-io/docs",
5143 "role": "write"
5144 },
5145 {
5146 "repo": "flagon-io/hello",
5147 "role": "triage"
5148 }
5149 ]
5150 }
5151 ],
5152 "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/)."
5153 },
Merge branch 'worktree-agent-a5a5de74d8863d554' into worktree-agent-a16631325aecf58ca5154 "list_deploy_keys": {
5155 "params": {
5156 "owner": "flagon-io",
5157 "name": "hello"
5158 },
5159 "response": [
5160 {
5161 "id": "dk_01kp3f2g3h4j5k6m7n8p9q0r1s",
5162 "title": "Docs build",
5163 "key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGb9ECWmEzf6FQbrBZ9w7lshQhqowtrbLDFw4rXAxZuE",
5164 "fingerprint": "SHA256:ubxEl41fJDnUoEPKSZE0y6R0ZjjAQf/wV5vZgeBV8qk",
5165 "read_only": true,
5166 "created_at": "2026-10-06T09:12:00.000Z",
5167 "created_by": "syntaqx",
5168 "last_used_at": "2026-10-08T07:40:00.000Z"
5169 },
5170 {
5171 "id": "dk_01kp3g4h5j6k7m8n9p0q1r2s3t",
5172 "title": "Release bot",
5173 "key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ8Vq2nLr5Xw0sT3yK7mP1cH4dF6gB9aE2uZ5oN8iR0j",
5174 "fingerprint": "SHA256:2h7VyLkcqBHwKVtfFUchGsE5pDwpgBPV/VvJgYiS27M",
5175 "read_only": false,
5176 "created_at": "2026-10-07T15:30:00.000Z",
5177 "created_by": "syntaqx",
5178 "last_used_at": null
5179 }
5180 ],
5181 "notes": "Oldest first. `read_only` false means the key may push, workflow files included. `last_used_at` is when it last signed in over SSH, to within 5 minutes, and null when it never has. Refused with `403` without the Admin role, and for an agent's token or a workspace token without Admin; `404` for a private repository you cannot see. See [Deploy keys](/guides/git/#deploy-keys)."
5182 },
5183 "get_deploy_key": {
5184 "params": {
5185 "owner": "flagon-io",
5186 "name": "hello",
5187 "id": "dk_01kp3f2g3h4j5k6m7n8p9q0r1s"
5188 },
5189 "response": {
5190 "id": "dk_01kp3f2g3h4j5k6m7n8p9q0r1s",
5191 "title": "Docs build",
5192 "key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGb9ECWmEzf6FQbrBZ9w7lshQhqowtrbLDFw4rXAxZuE",
5193 "fingerprint": "SHA256:ubxEl41fJDnUoEPKSZE0y6R0ZjjAQf/wV5vZgeBV8qk",
5194 "read_only": true,
5195 "created_at": "2026-10-06T09:12:00.000Z",
5196 "created_by": "syntaqx",
5197 "last_used_at": "2026-10-08T07:40:00.000Z"
5198 },
5199 "notes": "`404` when the repository has no deploy key with that id."
5200 },
5201 "create_deploy_key": {
5202 "params": {
5203 "owner": "flagon-io",
5204 "name": "hello"
5205 },
5206 "request": {
5207 "title": "Release bot",
5208 "key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ8Vq2nLr5Xw0sT3yK7mP1cH4dF6gB9aE2uZ5oN8iR0j release@ci",
5209 "read_only": false
5210 },
5211 "response": {
5212 "id": "dk_01kp3g4h5j6k7m8n9p0q1r2s3t",
5213 "title": "Release bot",
5214 "key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ8Vq2nLr5Xw0sT3yK7mP1cH4dF6gB9aE2uZ5oN8iR0j",
5215 "fingerprint": "SHA256:2h7VyLkcqBHwKVtfFUchGsE5pDwpgBPV/VvJgYiS27M",
5216 "read_only": false,
5217 "created_at": "2026-10-07T15:30:00.000Z",
5218 "created_by": "syntaqx",
5219 "last_used_at": null
5220 },
5221 "notes": "`read_only` is true unless you send false. The key's comment is not kept; it becomes the title when you send none. Refused with `400` for a line that is not an OpenSSH public key, `409` with `Key is already in use.` when the key is registered already (as anyone's SSH key or as a deploy key anywhere), `409` past 100 keys, and `403` without the Admin role, from an agent's token, from a workspace token without Admin, or before your email address is confirmed. Recorded in the workspace's audit log as `repo.deploy_key_added`."
5222 },
5223 "delete_deploy_key": {
5224 "params": {
5225 "owner": "flagon-io",
5226 "name": "hello",
5227 "id": "dk_01kp3g4h5j6k7m8n9p0q1r2s3t"
5228 },
5229 "response": true,
5230 "notes": "The key stops working at once. `404` when the repository has no deploy key with that id. Recorded in the workspace's audit log as `repo.deploy_key_removed`."
5231 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person5232 "list_teams": {
5233 "params": {
5234 "workspace": "flagon-io"
5235 },
5236 "query": {
5237 "q": "back"
5238 },
5239 "response": [
5240 {
5241 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
5242 "workspace": "flagon-io",
5243 "slug": "backend",
5244 "name": "Backend",
5245 "description": "The API and the services behind it.",
5246 "visibility": "visible",
5247 "parent": {
5248 "slug": "engineering",
5249 "name": "Engineering"
5250 },
5251 "notify": true,
5252 "review_assignment": {
5253 "enabled": false,
5254 "algorithm": "round_robin",
5255 "count": 1,
5256 "skip_busy": false,
5257 "busy_at": 5,
5258 "include_child_teams": false,
5259 "excluded": [],
5260 "notify_team": false
5261 },
5262 "members_count": 4,
5263 "repos_count": 2,
5264 "child_teams_count": 1,
5265 "viewer_role": "maintainer",
5266 "can_manage": true,
5267 "created_at": "2026-10-06T15:02:11.480Z",
5268 "updated_at": "2026-10-06T15:02:11.480Z"
5269 }
5270 ],
5271 "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/)."
5272 },
5273 "create_team": {
5274 "params": {
5275 "workspace": "flagon-io"
5276 },
5277 "request": {
5278 "name": "Backend",
5279 "description": "The API and the services behind it.",
5280 "visibility": "visible",
5281 "parent": "engineering",
5282 "members": [
5283 "ana"
5284 ]
5285 },
5286 "response": {
5287 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
5288 "workspace": "flagon-io",
5289 "slug": "backend",
5290 "name": "Backend",
5291 "description": "The API and the services behind it.",
5292 "visibility": "visible",
5293 "parent": {
5294 "slug": "engineering",
5295 "name": "Engineering"
5296 },
5297 "notify": true,
5298 "review_assignment": {
5299 "enabled": false,
5300 "algorithm": "round_robin",
5301 "count": 1,
5302 "skip_busy": false,
5303 "busy_at": 5,
5304 "include_child_teams": false,
5305 "excluded": [],
5306 "notify_team": false
5307 },
5308 "members_count": 2,
5309 "repos_count": 0,
5310 "child_teams_count": 0,
5311 "viewer_role": "maintainer",
5312 "can_manage": true,
5313 "created_at": "2026-10-06T15:02:11.480Z",
5314 "updated_at": "2026-10-06T15:02:11.480Z"
5315 },
5316 "notes": "You become the team's maintainer. Refused with `403` for a member when the workspace's `team_creation` is `owners`. `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/)."
5317 },
5318 "get_team": {
5319 "params": {
5320 "workspace": "flagon-io",
5321 "team": "backend"
5322 },
5323 "response": {
5324 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
5325 "workspace": "flagon-io",
5326 "slug": "backend",
5327 "name": "Backend",
5328 "description": "The API and the services behind it.",
5329 "visibility": "visible",
5330 "parent": {
5331 "slug": "engineering",
5332 "name": "Engineering"
5333 },
5334 "notify": true,
5335 "review_assignment": {
5336 "enabled": false,
5337 "algorithm": "round_robin",
5338 "count": 1,
5339 "skip_busy": false,
5340 "busy_at": 5,
5341 "include_child_teams": false,
5342 "excluded": [],
5343 "notify_team": false
5344 },
5345 "members_count": 4,
5346 "repos_count": 2,
5347 "child_teams_count": 1,
5348 "viewer_role": "maintainer",
5349 "can_manage": true,
5350 "created_at": "2026-10-06T15:02:11.480Z",
5351 "updated_at": "2026-10-06T15:02:11.480Z"
5352 },
5353 "notes": "`404` for a team that does not exist, or a secret one you are not in, unless you are an owner."
5354 },
5355 "update_team": {
5356 "params": {
5357 "workspace": "flagon-io",
5358 "team": "backend"
5359 },
5360 "request": {
5361 "description": "The API, the services behind it, and their on-call.",
5362 "visibility": "secret",
5363 "parent": ""
5364 },
5365 "response": {
5366 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
5367 "workspace": "flagon-io",
5368 "slug": "backend",
5369 "name": "Backend",
5370 "description": "The API, the services behind it, and their on-call.",
5371 "visibility": "secret",
5372 "parent": null,
5373 "notify": true,
5374 "review_assignment": {
5375 "enabled": false,
5376 "algorithm": "round_robin",
5377 "count": 1,
5378 "skip_busy": false,
5379 "busy_at": 5,
5380 "include_child_teams": false,
5381 "excluded": [],
5382 "notify_team": false
5383 },
5384 "members_count": 4,
5385 "repos_count": 2,
5386 "child_teams_count": 1,
5387 "viewer_role": "maintainer",
5388 "can_manage": true,
5389 "created_at": "2026-10-06T15:02:11.480Z",
5390 "updated_at": "2026-10-07T09:41:52.006Z"
5391 },
5392 "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)."
5393 },
5394 "delete_team": {
5395 "params": {
5396 "workspace": "flagon-io",
5397 "team": "backend"
5398 },
5399 "response": true,
5400 "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)."
5401 },
5402 "list_team_members": {
5403 "params": {
5404 "workspace": "flagon-io",
5405 "team": "backend"
5406 },
5407 "query": {
5408 "include_child_teams": "true"
5409 },
5410 "response": [
5411 {
5412 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar5413 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person5414 "name": "Chase Pierce",
5415 "avatar": null,
5416 "role": "maintainer",
5417 "via": null
5418 },
5419 {
5420 "username": "ana",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar5421 "display_username": "Ana",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person5422 "name": "Ana Lima",
5423 "avatar": null,
5424 "role": "member",
5425 "via": null
5426 },
5427 {
5428 "username": "bo",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar5429 "display_username": "bo",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person5430 "name": null,
5431 "avatar": null,
5432 "role": "member",
5433 "via": "payments"
5434 }
5435 ],
5436 "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."
5437 },
5438 "set_team_member": {
5439 "params": {
5440 "workspace": "flagon-io",
5441 "team": "backend",
5442 "username": "ana"
5443 },
5444 "request": {
5445 "role": "maintainer"
5446 },
5447 "response": {
5448 "username": "ana",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar5449 "display_username": "Ana",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person5450 "name": "Ana Lima",
5451 "avatar": null,
5452 "role": "maintainer",
5453 "via": null
5454 },
5455 "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)."
5456 },
5457 "remove_team_member": {
5458 "params": {
5459 "workspace": "flagon-io",
5460 "team": "backend",
5461 "username": "ana"
5462 },
5463 "response": true,
5464 "notes": "Anyone may take themselves out of a team. Leaving the workspace takes a person out of all its teams."
5465 },
5466 "list_child_teams": {
5467 "params": {
5468 "workspace": "flagon-io",
5469 "team": "engineering"
5470 },
5471 "response": [
5472 {
5473 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
5474 "workspace": "flagon-io",
5475 "slug": "backend",
5476 "name": "Backend",
5477 "description": "The API and the services behind it.",
5478 "visibility": "visible",
5479 "parent": {
5480 "slug": "engineering",
5481 "name": "Engineering"
5482 },
5483 "notify": true,
5484 "review_assignment": {
5485 "enabled": false,
5486 "algorithm": "round_robin",
5487 "count": 1,
5488 "skip_busy": false,
5489 "busy_at": 5,
5490 "include_child_teams": false,
5491 "excluded": [],
5492 "notify_team": false
5493 },
5494 "members_count": 4,
5495 "repos_count": 2,
5496 "child_teams_count": 0,
5497 "viewer_role": "maintainer",
5498 "can_manage": true,
5499 "created_at": "2026-10-06T15:02:11.480Z",
5500 "updated_at": "2026-10-06T15:02:11.480Z"
5501 }
5502 ],
5503 "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."
5504 },
5505 "list_team_repos": {
5506 "params": {
5507 "workspace": "flagon-io",
5508 "team": "backend"
5509 },
5510 "response": [
5511 {
5512 "repo": "flagon-io/hello",
5513 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
5514 "role": "write",
5515 "inherited_from": null
5516 },
5517 {
5518 "repo": "flagon-io/docs",
5519 "repo_id": "rep_01m3m5r2a8c4e6g8j0m2p4r6t8",
5520 "role": "read",
5521 "inherited_from": "engineering"
5522 }
5523 ],
5524 "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."
5525 },
5526 "set_team_repo": {
5527 "params": {
5528 "workspace": "flagon-io",
5529 "team": "backend",
5530 "repo": "hello"
5531 },
5532 "request": {
5533 "role": "maintain"
5534 },
5535 "response": {
5536 "repo": "flagon-io/hello",
5537 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
5538 "role": "maintain",
5539 "inherited_from": null
5540 },
5541 "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/)."
5542 },
5543 "remove_team_repo": {
5544 "params": {
5545 "workspace": "flagon-io",
5546 "team": "backend",
5547 "repo": "hello"
5548 },
5549 "response": true,
5550 "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."
5551 },
5552 "set_team_review_assignment": {
5553 "params": {
5554 "workspace": "flagon-io",
5555 "team": "backend"
5556 },
5557 "request": {
5558 "enabled": true,
5559 "algorithm": "load_balance",
5560 "count": 2,
5561 "skip_busy": true,
5562 "busy_at": 5,
5563 "excluded": [
5564 "syntaqx"
5565 ]
5566 },
5567 "response": {
5568 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
5569 "workspace": "flagon-io",
5570 "slug": "backend",
5571 "name": "Backend",
5572 "description": "The API and the services behind it.",
5573 "visibility": "visible",
5574 "parent": {
5575 "slug": "engineering",
5576 "name": "Engineering"
5577 },
5578 "notify": true,
5579 "review_assignment": {
5580 "enabled": true,
5581 "algorithm": "load_balance",
5582 "count": 2,
5583 "skip_busy": true,
5584 "busy_at": 5,
5585 "include_child_teams": false,
5586 "excluded": [
5587 "syntaqx"
5588 ],
5589 "notify_team": false
5590 },
5591 "members_count": 4,
5592 "repos_count": 2,
5593 "child_teams_count": 1,
5594 "viewer_role": "maintainer",
5595 "can_manage": true,
5596 "created_at": "2026-10-06T15:02:11.480Z",
5597 "updated_at": "2026-10-07T09:44:03.512Z"
5598 },
5599 "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/)."
5600 },
5601 "list_user_teams": {
5602 "params": {
5603 "workspace": "flagon-io",
5604 "username": "ana"
5605 },
5606 "response": [
5607 {
5608 "id": "team_01m52k8d3f7h1k5n9r3v7z1c5g",
5609 "workspace": "flagon-io",
5610 "slug": "backend",
5611 "name": "Backend",
5612 "description": "The API and the services behind it.",
5613 "visibility": "visible",
5614 "parent": {
5615 "slug": "engineering",
5616 "name": "Engineering"
5617 },
5618 "notify": true,
5619 "review_assignment": {
5620 "enabled": false,
5621 "algorithm": "round_robin",
5622 "count": 1,
5623 "skip_busy": false,
5624 "busy_at": 5,
5625 "include_child_teams": false,
5626 "excluded": [],
5627 "notify_team": false
5628 },
5629 "members_count": 4,
5630 "repos_count": 2,
5631 "child_teams_count": 1,
5632 "viewer_role": null,
5633 "can_manage": false,
5634 "created_at": "2026-10-06T15:02:11.480Z",
5635 "updated_at": "2026-10-06T15:02:11.480Z"
5636 }
5637 ],
5638 "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."
5639 },
5640 "list_security_alerts": {
5641 "params": {
5642 "owner": "flagon-io",
5643 "name": "hello"
5644 },
5645 "query": {
5646 "state": "open"
5647 },
5648 "response": [
5649 {
5650 "kind": "secret",
5651 "id": "sec_01kp4a7b2c3d4e5f6g7h8j9k0m",
5652 "state": "dismissed",
5653 "secret_type": "aws_access_key",
5654 "label": "an AWS access key",
5655 "path": "test/fixtures/aws.env",
5656 "line": 3,
5657 "commit": "9f2c1e04b7d3a8e6f5c2b1a0d9e8f7c6b5a4d3e2",
5658 "preview": "AKIA…MPLE",
5659 "status": "allowed",
5660 "source": "history",
5661 "test_value": "the documented example key",
5662 "found_by": null,
5663 "found_at": "2026-10-01T12:00:00.000Z",
5664 "dismissed_reason": "used_in_tests",
5665 "dismissed_comment": "Only in the test fixtures.",
5666 "dismissed_by": "syntaqx",
5667 "dismissed_at": "2026-10-02T09:15:00.000Z"
5668 },
5669 {
5670 "kind": "dependency",
5671 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
5672 "state": "open",
5673 "ecosystem": "npm",
5674 "package": "lodash",
5675 "version": "4.17.20",
5676 "manifest": "package-lock.json",
5677 "advisory": "GHSA-35jh-r3h4-6jhm",
5678 "osv_id": "GHSA-35jh-r3h4-6jhm",
5679 "summary": "Command Injection in lodash",
5680 "severity": "high",
5681 "fixed_version": "4.17.21",
5682 "fixed_at": null,
5683 "update": {
5684 "state": "open",
5685 "target": "4.17.21",
5686 "branch": "g1t/security/lodash-4.17.21",
5687 "pull": 42,
5688 "issue": null,
5689 "error": null,
5690 "updated_at": "2026-10-01T12:20:00.000Z"
5691 },
5692 "found_at": "2026-10-01T12:00:00.000Z",
5693 "dismissed_reason": null,
5694 "dismissed_comment": null,
5695 "dismissed_by": null,
5696 "dismissed_at": null
5697 }
5698 ],
5699 "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/)."
5700 },
5701 "dismiss_security_alert": {
5702 "params": {
5703 "owner": "flagon-io",
5704 "name": "hello",
5705 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n"
5706 },
5707 "request": {
5708 "reason": "tolerable_risk",
5709 "comment": "Only the build uses it, on trusted input."
5710 },
5711 "response": {
5712 "kind": "dependency",
5713 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
5714 "state": "dismissed",
5715 "ecosystem": "npm",
5716 "package": "lodash",
5717 "version": "4.17.20",
5718 "manifest": "package-lock.json",
5719 "advisory": "GHSA-35jh-r3h4-6jhm",
5720 "osv_id": "GHSA-35jh-r3h4-6jhm",
5721 "summary": "Command Injection in lodash",
5722 "severity": "high",
5723 "fixed_version": "4.17.21",
5724 "fixed_at": null,
5725 "update": {
5726 "state": "open",
5727 "target": "4.17.21",
5728 "branch": "g1t/security/lodash-4.17.21",
5729 "pull": 42,
5730 "issue": null,
5731 "error": null,
5732 "updated_at": "2026-10-01T12:20:00.000Z"
5733 },
5734 "found_at": "2026-10-01T12:00:00.000Z",
5735 "dismissed_reason": "tolerable_risk",
5736 "dismissed_comment": "Only the build uses it, on trusted input.",
5737 "dismissed_by": "syntaqx",
5738 "dismissed_at": "2026-10-06T10:00:00.000Z"
5739 },
5740 "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."
5741 },
5742 "reopen_security_alert": {
5743 "params": {
5744 "owner": "flagon-io",
5745 "name": "hello",
5746 "id": "sec_01kp4a7b2c3d4e5f6g7h8j9k0m"
5747 },
5748 "response": {
5749 "kind": "secret",
5750 "id": "sec_01kp4a7b2c3d4e5f6g7h8j9k0m",
5751 "state": "open",
5752 "secret_type": "aws_access_key",
5753 "label": "an AWS access key",
5754 "path": "test/fixtures/aws.env",
5755 "line": 3,
5756 "commit": "9f2c1e04b7d3a8e6f5c2b1a0d9e8f7c6b5a4d3e2",
5757 "preview": "AKIA…MPLE",
5758 "status": "open",
5759 "source": "history",
5760 "test_value": "the documented example key",
5761 "found_by": null,
5762 "found_at": "2026-10-01T12:00:00.000Z",
5763 "dismissed_reason": null,
5764 "dismissed_comment": null,
5765 "dismissed_by": null,
5766 "dismissed_at": null
5767 },
5768 "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."
5769 },
5770 "list_notifications": {
5771 "query": {
5772 "participating": "true"
5773 },
5774 "response": {
5775 "items": [
5776 {
5777 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5778 "reason": "review_requested",
5779 "severity": "warning",
5780 "title": "ada asked you to review flagon-io/hello#14",
5781 "body": "Add a greeting to the README",
5782 "event": "pull.review_requested",
5783 "repo": "flagon-io/hello",
5784 "workspace": "flagon-io",
5785 "subject": "pull",
5786 "number": 14,
5787 "url": "/flagon-io/hello/pull/14",
5788 "actor": "ada",
5789 "count": 3,
5790 "created_at": "2026-10-06T15:02:11.000Z",
5791 "updated_at": "2026-10-07T09:41:30.000Z",
5792 "read_at": null,
5793 "done_at": null,
5794 "saved": false,
5795 "snoozed_until": null
5796 },
5797 {
5798 "id": "ntf_01kp7k9a8b7c6d5e4f3g2h1j0k",
5799 "reason": "ci_activity",
5800 "severity": "error",
5801 "title": "Production of hello failed to deploy",
5802 "body": "The build failed: npm run build exited with 1.",
5803 "event": "deployment.failed",
5804 "repo": "flagon-io/hello",
5805 "workspace": "flagon-io",
5806 "subject": "deploy",
5807 "number": null,
5808 "url": "/flagon-io/hello/deployments/dpl_01kp7k8z7y6x5w4v3t2s1r0q9p",
5809 "actor": "syntaqx",
5810 "count": 1,
5811 "created_at": "2026-10-07T08:12:40.000Z",
5812 "updated_at": "2026-10-07T08:12:40.000Z",
5813 "read_at": null,
5814 "done_at": null,
5815 "saved": false,
5816 "snoozed_until": null
5817 }
5818 ],
5819 "next": null
5820 },
5821 "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."
5822 },
5823 "list_repo_notifications": {
5824 "params": {
5825 "owner": "flagon-io",
5826 "name": "hello"
5827 },
5828 "query": {
5829 "all": "true"
5830 },
5831 "response": {
5832 "items": [
5833 {
5834 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5835 "reason": "review_requested",
5836 "severity": "warning",
5837 "title": "ada asked you to review flagon-io/hello#14",
5838 "body": "Add a greeting to the README",
5839 "event": "pull.review_requested",
5840 "repo": "flagon-io/hello",
5841 "workspace": "flagon-io",
5842 "subject": "pull",
5843 "number": 14,
5844 "url": "/flagon-io/hello/pull/14",
5845 "actor": "ada",
5846 "count": 3,
5847 "created_at": "2026-10-06T15:02:11.000Z",
5848 "updated_at": "2026-10-07T09:41:30.000Z",
5849 "read_at": "2026-10-07T09:50:00.000Z",
5850 "done_at": null,
5851 "saved": false,
5852 "snoozed_until": null
5853 },
5854 {
5855 "id": "ntf_01kp7k9a8b7c6d5e4f3g2h1j0k",
5856 "reason": "ci_activity",
5857 "severity": "error",
5858 "title": "Production of hello failed to deploy",
5859 "body": "The build failed: npm run build exited with 1.",
5860 "event": "deployment.failed",
5861 "repo": "flagon-io/hello",
5862 "workspace": "flagon-io",
5863 "subject": "deploy",
5864 "number": null,
5865 "url": "/flagon-io/hello/deployments/dpl_01kp7k8z7y6x5w4v3t2s1r0q9p",
5866 "actor": "syntaqx",
5867 "count": 1,
5868 "created_at": "2026-10-07T08:12:40.000Z",
5869 "updated_at": "2026-10-07T08:12:40.000Z",
5870 "read_at": null,
5871 "done_at": null,
5872 "saved": false,
5873 "snoozed_until": null
5874 }
5875 ],
5876 "next": "ntf_01kp7k9a8b7c6d5e4f3g2h1j0k"
5877 },
5878 "notes": "The same as `GET /notifications`, for one repository you can read."
5879 },
5880 "mark_notifications_read": {
5881 "request": {
5882 "last_read_at": "2026-10-07T10:00:00Z"
5883 },
5884 "response": {
5885 "marked": 12,
5886 "last_read_at": "2026-10-07T10:00:00.000Z"
5887 },
5888 "notes": "Threads with activity after `last_read_at` stay unread, so send the time you last listed them."
5889 },
5890 "mark_repo_notifications_read": {
5891 "params": {
5892 "owner": "flagon-io",
5893 "name": "hello"
5894 },
5895 "request": {},
5896 "response": {
5897 "marked": 3,
5898 "last_read_at": "2026-10-07T10:02:41.512Z"
5899 }
5900 },
5901 "get_notification_thread": {
5902 "params": {
5903 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5904 },
5905 "response": {
5906 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5907 "reason": "review_requested",
5908 "severity": "warning",
5909 "title": "ada asked you to review flagon-io/hello#14",
5910 "body": "Add a greeting to the README",
5911 "event": "pull.review_requested",
5912 "repo": "flagon-io/hello",
5913 "workspace": "flagon-io",
5914 "subject": "pull",
5915 "number": 14,
5916 "url": "/flagon-io/hello/pull/14",
5917 "actor": "ada",
5918 "count": 3,
5919 "created_at": "2026-10-06T15:02:11.000Z",
5920 "updated_at": "2026-10-07T09:41:30.000Z",
5921 "read_at": null,
5922 "done_at": null,
5923 "saved": false,
5924 "snoozed_until": null,
5925 "activity": [
5926 {
5927 "reason": "review_requested",
5928 "severity": "warning",
5929 "title": "ada asked you to review flagon-io/hello#14",
5930 "body": "Add a greeting to the README",
5931 "event": "pull.review_requested",
5932 "actor": "ada",
5933 "created_at": "2026-10-07T09:41:30.000Z"
5934 },
5935 {
5936 "reason": "comment",
5937 "severity": "info",
5938 "title": "ada commented on flagon-io/hello#14",
5939 "body": "Pushed the fix for the heading.",
5940 "event": "comment.created",
5941 "actor": "ada",
5942 "created_at": "2026-10-06T18:20:02.000Z"
5943 },
5944 {
5945 "reason": "comment",
5946 "severity": "info",
5947 "title": "g1t commented on flagon-io/hello#14",
5948 "body": "The heading level is off by one.",
5949 "event": "comment.created",
5950 "actor": "g1t",
5951 "created_at": "2026-10-06T15:02:11.000Z"
5952 }
5953 ],
5954 "subscription": {
5955 "subscribed": true,
5956 "ignored": false,
5957 "reason": "review_requested",
5958 "repo": "flagon-io/hello",
5959 "number": 14,
5960 "updated_at": null
5961 }
5962 },
5963 "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."
5964 },
5965 "mark_thread_read": {
5966 "params": {
5967 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
5968 },
5969 "request": {},
5970 "response": {
5971 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
5972 "reason": "review_requested",
5973 "severity": "warning",
5974 "title": "ada asked you to review flagon-io/hello#14",
5975 "body": "Add a greeting to the README",
5976 "event": "pull.review_requested",
5977 "repo": "flagon-io/hello",
5978 "workspace": "flagon-io",
5979 "subject": "pull",
5980 "number": 14,
5981 "url": "/flagon-io/hello/pull/14",
5982 "actor": "ada",
5983 "count": 3,
5984 "created_at": "2026-10-06T15:02:11.000Z",
5985 "updated_at": "2026-10-07T09:41:30.000Z",
5986 "read_at": "2026-10-07T10:03:00.000Z",
5987 "done_at": null,
5988 "saved": false,
5989 "snoozed_until": null,
5990 "activity": [
5991 {
5992 "reason": "review_requested",
5993 "severity": "warning",
5994 "title": "ada asked you to review flagon-io/hello#14",
5995 "body": "Add a greeting to the README",
5996 "event": "pull.review_requested",
5997 "actor": "ada",
5998 "created_at": "2026-10-07T09:41:30.000Z"
5999 },
6000 {
6001 "reason": "comment",
6002 "severity": "info",
6003 "title": "ada commented on flagon-io/hello#14",
6004 "body": "Pushed the fix for the heading.",
6005 "event": "comment.created",
6006 "actor": "ada",
6007 "created_at": "2026-10-06T18:20:02.000Z"
6008 },
6009 {
6010 "reason": "comment",
6011 "severity": "info",
6012 "title": "g1t commented on flagon-io/hello#14",
6013 "body": "The heading level is off by one.",
6014 "event": "comment.created",
6015 "actor": "g1t",
6016 "created_at": "2026-10-06T15:02:11.000Z"
6017 }
6018 ],
6019 "subscription": {
6020 "subscribed": true,
6021 "ignored": false,
6022 "reason": "review_requested",
6023 "repo": "flagon-io/hello",
6024 "number": 14,
6025 "updated_at": null
6026 }
6027 }
6028 },
6029 "mark_thread_done": {
6030 "params": {
6031 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
6032 },
6033 "response": {
6034 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
6035 "reason": "review_requested",
6036 "severity": "warning",
6037 "title": "ada asked you to review flagon-io/hello#14",
6038 "body": "Add a greeting to the README",
6039 "event": "pull.review_requested",
6040 "repo": "flagon-io/hello",
6041 "workspace": "flagon-io",
6042 "subject": "pull",
6043 "number": 14,
6044 "url": "/flagon-io/hello/pull/14",
6045 "actor": "ada",
6046 "count": 3,
6047 "created_at": "2026-10-06T15:02:11.000Z",
6048 "updated_at": "2026-10-07T09:41:30.000Z",
6049 "read_at": "2026-10-07T10:03:00.000Z",
6050 "done_at": "2026-10-07T10:03:00.000Z",
6051 "saved": false,
6052 "snoozed_until": null,
6053 "activity": [
6054 {
6055 "reason": "review_requested",
6056 "severity": "warning",
6057 "title": "ada asked you to review flagon-io/hello#14",
6058 "body": "Add a greeting to the README",
6059 "event": "pull.review_requested",
6060 "actor": "ada",
6061 "created_at": "2026-10-07T09:41:30.000Z"
6062 },
6063 {
6064 "reason": "comment",
6065 "severity": "info",
6066 "title": "ada commented on flagon-io/hello#14",
6067 "body": "Pushed the fix for the heading.",
6068 "event": "comment.created",
6069 "actor": "ada",
6070 "created_at": "2026-10-06T18:20:02.000Z"
6071 },
6072 {
6073 "reason": "comment",
6074 "severity": "info",
6075 "title": "g1t commented on flagon-io/hello#14",
6076 "body": "The heading level is off by one.",
6077 "event": "comment.created",
6078 "actor": "g1t",
6079 "created_at": "2026-10-06T15:02:11.000Z"
6080 }
6081 ],
6082 "subscription": {
6083 "subscribed": true,
6084 "ignored": false,
6085 "reason": "review_requested",
6086 "repo": "flagon-io/hello",
6087 "number": 14,
6088 "updated_at": null
6089 }
6090 },
6091 "notes": "New activity on a done thread brings it back to the inbox, unread."
6092 },
6093 "save_thread": {
6094 "params": {
6095 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
6096 },
6097 "request": {},
6098 "response": {
6099 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
6100 "reason": "review_requested",
6101 "severity": "warning",
6102 "title": "ada asked you to review flagon-io/hello#14",
6103 "body": "Add a greeting to the README",
6104 "event": "pull.review_requested",
6105 "repo": "flagon-io/hello",
6106 "workspace": "flagon-io",
6107 "subject": "pull",
6108 "number": 14,
6109 "url": "/flagon-io/hello/pull/14",
6110 "actor": "ada",
6111 "count": 3,
6112 "created_at": "2026-10-06T15:02:11.000Z",
6113 "updated_at": "2026-10-07T09:41:30.000Z",
6114 "read_at": null,
6115 "done_at": null,
6116 "saved": true,
6117 "snoozed_until": null,
6118 "activity": [
6119 {
6120 "reason": "review_requested",
6121 "severity": "warning",
6122 "title": "ada asked you to review flagon-io/hello#14",
6123 "body": "Add a greeting to the README",
6124 "event": "pull.review_requested",
6125 "actor": "ada",
6126 "created_at": "2026-10-07T09:41:30.000Z"
6127 },
6128 {
6129 "reason": "comment",
6130 "severity": "info",
6131 "title": "ada commented on flagon-io/hello#14",
6132 "body": "Pushed the fix for the heading.",
6133 "event": "comment.created",
6134 "actor": "ada",
6135 "created_at": "2026-10-06T18:20:02.000Z"
6136 },
6137 {
6138 "reason": "comment",
6139 "severity": "info",
6140 "title": "g1t commented on flagon-io/hello#14",
6141 "body": "The heading level is off by one.",
6142 "event": "comment.created",
6143 "actor": "g1t",
6144 "created_at": "2026-10-06T15:02:11.000Z"
6145 }
6146 ],
6147 "subscription": {
6148 "subscribed": true,
6149 "ignored": false,
6150 "reason": "review_requested",
6151 "repo": "flagon-io/hello",
6152 "number": 14,
6153 "updated_at": null
6154 }
6155 }
6156 },
6157 "unsave_thread": {
6158 "params": {
6159 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
6160 },
6161 "response": {
6162 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
6163 "reason": "review_requested",
6164 "severity": "warning",
6165 "title": "ada asked you to review flagon-io/hello#14",
6166 "body": "Add a greeting to the README",
6167 "event": "pull.review_requested",
6168 "repo": "flagon-io/hello",
6169 "workspace": "flagon-io",
6170 "subject": "pull",
6171 "number": 14,
6172 "url": "/flagon-io/hello/pull/14",
6173 "actor": "ada",
6174 "count": 3,
6175 "created_at": "2026-10-06T15:02:11.000Z",
6176 "updated_at": "2026-10-07T09:41:30.000Z",
6177 "read_at": null,
6178 "done_at": null,
6179 "saved": false,
6180 "snoozed_until": null,
6181 "activity": [
6182 {
6183 "reason": "review_requested",
6184 "severity": "warning",
6185 "title": "ada asked you to review flagon-io/hello#14",
6186 "body": "Add a greeting to the README",
6187 "event": "pull.review_requested",
6188 "actor": "ada",
6189 "created_at": "2026-10-07T09:41:30.000Z"
6190 },
6191 {
6192 "reason": "comment",
6193 "severity": "info",
6194 "title": "ada commented on flagon-io/hello#14",
6195 "body": "Pushed the fix for the heading.",
6196 "event": "comment.created",
6197 "actor": "ada",
6198 "created_at": "2026-10-06T18:20:02.000Z"
6199 },
6200 {
6201 "reason": "comment",
6202 "severity": "info",
6203 "title": "g1t commented on flagon-io/hello#14",
6204 "body": "The heading level is off by one.",
6205 "event": "comment.created",
6206 "actor": "g1t",
6207 "created_at": "2026-10-06T15:02:11.000Z"
6208 }
6209 ],
6210 "subscription": {
6211 "subscribed": true,
6212 "ignored": false,
6213 "reason": "review_requested",
6214 "repo": "flagon-io/hello",
6215 "number": 14,
6216 "updated_at": null
6217 }
6218 }
6219 },
6220 "snooze_thread": {
6221 "params": {
6222 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
6223 },
6224 "request": {
6225 "until": "2026-10-08T09:00:00Z"
6226 },
6227 "response": {
6228 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
6229 "reason": "review_requested",
6230 "severity": "warning",
6231 "title": "ada asked you to review flagon-io/hello#14",
6232 "body": "Add a greeting to the README",
6233 "event": "pull.review_requested",
6234 "repo": "flagon-io/hello",
6235 "workspace": "flagon-io",
6236 "subject": "pull",
6237 "number": 14,
6238 "url": "/flagon-io/hello/pull/14",
6239 "actor": "ada",
6240 "count": 3,
6241 "created_at": "2026-10-06T15:02:11.000Z",
6242 "updated_at": "2026-10-07T09:41:30.000Z",
6243 "read_at": "2026-10-07T10:03:00.000Z",
6244 "done_at": null,
6245 "saved": false,
6246 "snoozed_until": "2026-10-08T09:00:00.000Z",
6247 "activity": [
6248 {
6249 "reason": "review_requested",
6250 "severity": "warning",
6251 "title": "ada asked you to review flagon-io/hello#14",
6252 "body": "Add a greeting to the README",
6253 "event": "pull.review_requested",
6254 "actor": "ada",
6255 "created_at": "2026-10-07T09:41:30.000Z"
6256 },
6257 {
6258 "reason": "comment",
6259 "severity": "info",
6260 "title": "ada commented on flagon-io/hello#14",
6261 "body": "Pushed the fix for the heading.",
6262 "event": "comment.created",
6263 "actor": "ada",
6264 "created_at": "2026-10-06T18:20:02.000Z"
6265 },
6266 {
6267 "reason": "comment",
6268 "severity": "info",
6269 "title": "g1t commented on flagon-io/hello#14",
6270 "body": "The heading level is off by one.",
6271 "event": "comment.created",
6272 "actor": "g1t",
6273 "created_at": "2026-10-06T15:02:11.000Z"
6274 }
6275 ],
6276 "subscription": {
6277 "subscribed": true,
6278 "ignored": false,
6279 "reason": "review_requested",
6280 "repo": "flagon-io/hello",
6281 "number": 14,
6282 "updated_at": null
6283 }
6284 }
6285 },
6286 "unsnooze_thread": {
6287 "params": {
6288 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
6289 },
6290 "response": {
6291 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a",
6292 "reason": "review_requested",
6293 "severity": "warning",
6294 "title": "ada asked you to review flagon-io/hello#14",
6295 "body": "Add a greeting to the README",
6296 "event": "pull.review_requested",
6297 "repo": "flagon-io/hello",
6298 "workspace": "flagon-io",
6299 "subject": "pull",
6300 "number": 14,
6301 "url": "/flagon-io/hello/pull/14",
6302 "actor": "ada",
6303 "count": 3,
6304 "created_at": "2026-10-06T15:02:11.000Z",
6305 "updated_at": "2026-10-07T09:41:30.000Z",
6306 "read_at": "2026-10-07T10:03:00.000Z",
6307 "done_at": null,
6308 "saved": false,
6309 "snoozed_until": null,
6310 "activity": [
6311 {
6312 "reason": "review_requested",
6313 "severity": "warning",
6314 "title": "ada asked you to review flagon-io/hello#14",
6315 "body": "Add a greeting to the README",
6316 "event": "pull.review_requested",
6317 "actor": "ada",
6318 "created_at": "2026-10-07T09:41:30.000Z"
6319 },
6320 {
6321 "reason": "comment",
6322 "severity": "info",
6323 "title": "ada commented on flagon-io/hello#14",
6324 "body": "Pushed the fix for the heading.",
6325 "event": "comment.created",
6326 "actor": "ada",
6327 "created_at": "2026-10-06T18:20:02.000Z"
6328 },
6329 {
6330 "reason": "comment",
6331 "severity": "info",
6332 "title": "g1t commented on flagon-io/hello#14",
6333 "body": "The heading level is off by one.",
6334 "event": "comment.created",
6335 "actor": "g1t",
6336 "created_at": "2026-10-06T15:02:11.000Z"
6337 }
6338 ],
6339 "subscription": {
6340 "subscribed": true,
6341 "ignored": false,
6342 "reason": "review_requested",
6343 "repo": "flagon-io/hello",
6344 "number": 14,
6345 "updated_at": null
6346 }
6347 }
6348 },
6349 "get_thread_subscription": {
6350 "params": {
6351 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
6352 },
6353 "response": {
6354 "subscribed": true,
6355 "ignored": false,
6356 "reason": "review_requested",
6357 "repo": "flagon-io/hello",
6358 "number": 14,
6359 "updated_at": null
6360 }
6361 },
6362 "set_thread_subscription": {
6363 "params": {
6364 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
6365 },
6366 "request": {
6367 "ignored": true
6368 },
6369 "response": {
6370 "subscribed": false,
6371 "ignored": true,
6372 "reason": null,
6373 "repo": "flagon-io/hello",
6374 "number": 14,
6375 "updated_at": "2026-10-07T10:04:00.000Z"
6376 },
6377 "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 |"
6378 },
6379 "delete_thread_subscription": {
6380 "params": {
6381 "id": "ntf_01kp7m2q3r4s5t6v7w8x9y0z1a"
6382 },
6383 "response": {
6384 "subscribed": false,
6385 "ignored": false,
6386 "reason": null,
6387 "repo": "flagon-io/hello",
6388 "number": 14,
6389 "updated_at": "2026-10-07T10:04:00.000Z"
6390 }
6391 },
6392 "get_issue_subscription": {
6393 "params": {
6394 "owner": "flagon-io",
6395 "name": "hello",
6396 "number": 14
6397 },
6398 "response": {
6399 "subscribed": true,
6400 "ignored": false,
6401 "reason": "author",
6402 "repo": null,
6403 "number": 14,
6404 "updated_at": null
6405 }
6406 },
6407 "set_issue_subscription": {
6408 "params": {
6409 "owner": "flagon-io",
6410 "name": "hello",
6411 "number": 14
6412 },
6413 "request": {
6414 "subscribed": true
6415 },
6416 "response": {
6417 "subscribed": true,
6418 "ignored": false,
6419 "reason": "manual",
6420 "repo": null,
6421 "number": 14,
6422 "updated_at": "2026-10-07T10:05:00.000Z"
6423 }
6424 },
6425 "delete_issue_subscription": {
6426 "params": {
6427 "owner": "flagon-io",
6428 "name": "hello",
6429 "number": 14
6430 },
6431 "response": {
6432 "subscribed": false,
6433 "ignored": false,
6434 "reason": null,
6435 "repo": null,
6436 "number": 14,
6437 "updated_at": "2026-10-07T10:05:30.000Z"
6438 }
6439 },
6440 "get_repo_subscription": {
6441 "params": {
6442 "owner": "flagon-io",
6443 "name": "hello"
6444 },
6445 "response": {
6446 "repo": "flagon-io/hello",
6447 "level": "participating",
6448 "events": [],
6449 "subscribed": false,
6450 "ignored": false,
6451 "updated_at": null
6452 }
6453 },
6454 "set_repo_subscription": {
6455 "params": {
6456 "owner": "flagon-io",
6457 "name": "hello"
6458 },
6459 "request": {
6460 "level": "custom",
6461 "events": [
6462 "pulls",
6463 "deployments"
6464 ]
6465 },
6466 "response": {
6467 "repo": "flagon-io/hello",
6468 "level": "custom",
6469 "events": [
6470 "pulls",
6471 "deployments"
6472 ],
6473 "subscribed": true,
6474 "ignored": false,
6475 "updated_at": "2026-10-07T10:06:00.000Z"
6476 },
6477 "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`."
6478 },
6479 "delete_repo_subscription": {
6480 "params": {
6481 "owner": "flagon-io",
6482 "name": "hello"
6483 },
6484 "response": {
6485 "repo": "flagon-io/hello",
6486 "level": "participating",
6487 "events": [],
6488 "subscribed": false,
6489 "ignored": false,
6490 "updated_at": null
6491 }
6492 },
6493 "list_watched_repos": {
6494 "response": [
6495 {
6496 "repo": "flagon-io/hello",
6497 "level": "all",
6498 "events": [],
6499 "subscribed": true,
6500 "ignored": false,
6501 "updated_at": "2026-10-07T10:00:00.000Z"
6502 },
6503 {
6504 "repo": "flagon-io/docs",
6505 "level": "ignore",
6506 "events": [],
6507 "subscribed": false,
6508 "ignored": true,
6509 "updated_at": "2026-10-05T14:30:00.000Z"
6510 }
6511 ]
6512 },
6513 "get_usage": {
6514 "params": {
6515 "workspace": "flagon-io"
6516 },
6517 "query": {
6518 "from": "2026-10-01",
6519 "until": "2026-10-07",
6520 "group_by": "project"
6521 },
6522 "response": {
6523 "from": "2026-10-01",
6524 "until": "2026-10-07",
6525 "totals": {
Merge branch 'worktree-agent-a56293a6f836cd343'6526 "price_micros": 48212000,
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6527 "discount_micros": 0,
6528 "included_micros": 20000000,
6529 "credits_micros": 18000000,
Merge branch 'worktree-agent-a56293a6f836cd343'6530 "charged_micros": 10212000,
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6531 "pending_micros": 1340000,
Money is written one way. A single formatter turns millionths of a dollar into dollars, rounding half up on whole micros rather than on a float, so the same sum reads the same on every page: under a cent reads <$0.01 on a total and exactly nothing is $0.00, while the statement's lines, a session's receipt, the price book and an agent's effort costs carry up to four places where the fraction of a cent is the point; the six formatters that each rounded their own way are gone. This month is the calendar month in UTC from its first day to today everywhere, and billing counts the month's not-yet-closed usage in any range that reaches into the current month, so the top bar's pill, Spend, Home and Usage ask for the same days and get the same figure; Home now reads the usage report the others read instead of adding up statements. Usage's pending sentence says what of that usage the close will charge after the discount and included usage, which the billing API returns as pending_charged_micros. A reconciliation test holds the pill, Spend, Home and Usage to one number for one month. The usage and billing guide says how amounts are written and what this month means.6532 "pending_charged_micros": 1340000,
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6533 "cost_micros": 40100000
6534 },
6535 "days": [
6536 {
6537 "day": "2026-10-06",
Billing, integrations, security and identity no longer serve g1t's own agents. Billing stops metering agent runs, model tokens and AI Gateway requests, drops its model catalogue and price-keeper model prices, and stops selling AI credit, which only ever paid for those; credit bought earlier still pays toward what is owed. A usage report, statement or invoice that holds an old agent or model meter shows it as "Other usage" rather than failing, and the get_ai_credit and buy_ai_credit API operations and MCP billing actions go. Integrations no longer connects model providers or routes models, and no longer assigns imported issues or alerts to g1t; a model provider already connected can still be disconnected. Security drops "Fix with g1t". Identity no longer creates agent tokens or puts agents on teams, a team's lead is a person, and run credentials are issued only for checks, the merge queue, merge checks, deployments and bumps; tokens and credentials already issued keep working until they expire. The reserved names g1t and g1t-agent stay reserved. No tables are dropped.6538 "product": "other",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6539 "micros": 12400000
6540 },
6541 {
6542 "day": "2026-10-06",
6543 "product": "sandboxes",
6544 "micros": 2100000
6545 },
6546 {
6547 "day": "2026-10-07",
Billing, integrations, security and identity no longer serve g1t's own agents. Billing stops metering agent runs, model tokens and AI Gateway requests, drops its model catalogue and price-keeper model prices, and stops selling AI credit, which only ever paid for those; credit bought earlier still pays toward what is owed. A usage report, statement or invoice that holds an old agent or model meter shows it as "Other usage" rather than failing, and the get_ai_credit and buy_ai_credit API operations and MCP billing actions go. Integrations no longer connects model providers or routes models, and no longer assigns imported issues or alerts to g1t; a model provider already connected can still be disconnected. Security drops "Fix with g1t". Identity no longer creates agent tokens or puts agents on teams, a team's lead is a person, and run credentials are issued only for checks, the merge queue, merge checks, deployments and bumps; tokens and credentials already issued keep working until they expire. The reserved names g1t and g1t-agent stay reserved. No tables are dropped.6548 "product": "other",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6549 "micros": 9800000
6550 }
6551 ],
6552 "products": [
6553 {
6554 "key": "sandboxes",
6555 "label": "Sandboxes",
Merge branch 'worktree-agent-a56293a6f836cd343'6556 "micros": 7212000,
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6557 "meters": [
6558 {
Merge branch 'worktree-agent-a56293a6f836cd343'6559 "key": "runner_2-core",
6560 "label": "Runner minutes, 2-core (2 vCPU, 8 GiB, 16 GB)",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6561 "product": "sandboxes",
Merge branch 'worktree-agent-a56293a6f836cd343'6562 "unit": "minutes",
6563 "quantity": 1803,
6564 "micros": 7212000,
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6565 "pending_micros": 0,
6566 "daily": [
6567 900000,
6568 1200000,
6569 800000,
6570 1100000,
6571 0,
6572 2100000,
Merge branch 'worktree-agent-a56293a6f836cd343'6573 1112000
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6574 ],
Merge branch 'worktree-agent-a56293a6f836cd343'6575 "allowance": null,
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6576 "by_project": [
6577 {
6578 "project": "flagon-io/g1t",
Merge branch 'worktree-agent-a56293a6f836cd343'6579 "micros": 7212000,
6580 "quantity": 1803
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6581 }
6582 ]
6583 }
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.6584 ]
Billing, integrations, security and identity no longer serve g1t's own agents. Billing stops metering agent runs, model tokens and AI Gateway requests, drops its model catalogue and price-keeper model prices, and stops selling AI credit, which only ever paid for those; credit bought earlier still pays toward what is owed. A usage report, statement or invoice that holds an old agent or model meter shows it as "Other usage" rather than failing, and the get_ai_credit and buy_ai_credit API operations and MCP billing actions go. Integrations no longer connects model providers or routes models, and no longer assigns imported issues or alerts to g1t; a model provider already connected can still be disconnected. Security drops "Fix with g1t". Identity no longer creates agent tokens or puts agents on teams, a team's lead is a person, and run credentials are issued only for checks, the merge queue, merge checks, deployments and bumps; tokens and credentials already issued keep working until they expire. The reserved names g1t and g1t-agent stay reserved. No tables are dropped.6585 },
6586 {
6587 "key": "other",
6588 "label": "Other",
6589 "micros": 41000000,
6590 "meters": [
6591 {
6592 "key": "other",
6593 "label": "Other",
6594 "product": "other",
6595 "unit": "entries",
6596 "quantity": 23,
6597 "micros": 41000000,
6598 "pending_micros": 0,
6599 "daily": [
6600 3100000,
6601 5200000,
6602 4400000,
6603 6000000,
6604 0,
6605 12400000,
6606 9800000
6607 ],
6608 "allowance": null,
6609 "by_project": [
6610 {
6611 "project": "flagon-io/g1t",
6612 "micros": 36000000,
6613 "quantity": 14
6614 },
6615 {
6616 "project": "flagon-io/hello",
6617 "micros": 5000000,
6618 "quantity": 9
6619 }
6620 ]
6621 }
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.6622 ]
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6623 }
6624 ],
6625 "projects": [
6626 "flagon-io/g1t",
6627 "flagon-io/hello"
6628 ],
6629 "included": {
6630 "used": 20,
6631 "of": 20,
6632 "unit": "dollars"
6633 },
6634 "discount_percent": null,
6635 "ai_credit_micros": 62000000,
6636 "credit_micros": 0,
6637 "trial_micros": null,
6638 "plan": "pro",
6639 "free": false,
6640 "group_by": "project",
6641 "groups": [
6642 {
6643 "key": "flagon-io/g1t",
6644 "micros": 43210000
6645 },
6646 {
6647 "key": "flagon-io/hello",
6648 "micros": 5000000
6649 }
6650 ]
6651 },
Billing, integrations, security and identity no longer serve g1t's own agents. Billing stops metering agent runs, model tokens and AI Gateway requests, drops its model catalogue and price-keeper model prices, and stops selling AI credit, which only ever paid for those; credit bought earlier still pays toward what is owed. A usage report, statement or invoice that holds an old agent or model meter shows it as "Other usage" rather than failing, and the get_ai_credit and buy_ai_credit API operations and MCP billing actions go. Integrations no longer connects model providers or routes models, and no longer assigns imported issues or alerts to g1t; a model provider already connected can still be disconnected. Security drops "Fix with g1t". Identity no longer creates agent tokens or puts agents on teams, a team's lead is a person, and run credentials are issued only for checks, the merge queue, merge checks, deployments and bumps; tokens and credentials already issued keep working until they expire. The reserved names g1t and g1t-agent stay reserved. No tables are dropped.6652 "notes": "Every product family with meters is listed, in order, even with nothing used; this example shows two. `other` comes last, and only when it has something: usage on meters g1t no longer has, such as agent runs from before they were retired. `daily` has one amount for each day of the range, oldest first. `projects` and `products` take several values separated by commas: `?products=sandboxes,deployments`. A range of more than 400 days, or one that ends before it starts, is refused with `invalid`."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6653 },
6654 "get_budget": {
6655 "params": {
6656 "workspace": "flagon-io"
6657 },
6658 "response": {
6659 "workspace": "flagon-io",
6660 "amount_micros": 500000000,
6661 "automatic": false,
6662 "spent_micros": 132450000,
6663 "max_amount_micros": 2000000000,
6664 "alerts": [
6665 50,
6666 75,
6667 90,
6668 100
6669 ],
6670 "pause_at_limit": true,
6671 "webhook": "https://ops.example.com/g1t/budget",
6672 "state": "ok",
6673 "message": null
6674 },
6675 "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."
6676 },
6677 "set_budget": {
6678 "params": {
6679 "workspace": "flagon-io"
6680 },
6681 "request": {
6682 "amount_micros": 500000000,
6683 "alerts": [
6684 50,
6685 75,
6686 90,
6687 100
6688 ],
6689 "webhook": "https://ops.example.com/g1t/budget"
6690 },
6691 "response": {
6692 "workspace": "flagon-io",
6693 "amount_micros": 500000000,
6694 "automatic": false,
6695 "spent_micros": 132450000,
6696 "max_amount_micros": 2000000000,
6697 "alerts": [
6698 50,
6699 75,
6700 90,
6701 100
6702 ],
6703 "pause_at_limit": true,
6704 "webhook": "https://ops.example.com/g1t/budget",
6705 "state": "ok",
6706 "message": null
6707 },
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.6708 "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 a run's token, it is refused with `forbidden`. Each alert is sent once a month, to the owners by email and, with `webhook`, as a JSON POST."
Merge the AI Gateway: Anthropic's Messages API on a workspace's tokens6709 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person6710 "list_invoices": {
6711 "params": {
6712 "workspace": "flagon-io"
6713 },
6714 "response": {
6715 "invoices": [
6716 {
6717 "id": "in_1Q2w3E4r5T6y7U8i",
6718 "number": "FLAGON-0004",
6719 "status": "paid",
6720 "total_cents": 4210,
6721 "currency": "usd",
6722 "created_at": "2026-10-01T00:05:00.000Z",
6723 "description": "Usage for 2026-09",
6724 "hosted_url": "https://invoice.example.com/i/acct_1/in_1Q2w3E4r5T6y7U8i",
6725 "pdf_url": "https://invoice.example.com/i/acct_1/in_1Q2w3E4r5T6y7U8i/pdf"
6726 }
6727 ],
6728 "usage_invoices": [
6729 {
6730 "id": "inv_01kkqz8d3c6f9t2wq5n8h1m4r7",
6731 "workspace": "flagon-io",
6732 "reason": "month",
6733 "period": "2026-09",
6734 "amount_micros": 42100000,
6735 "status": "paid",
6736 "hosted_url": "https://invoice.example.com/i/acct_1/in_1Q2w3E4r5T6y7U8i",
6737 "pdf_url": "https://invoice.example.com/i/acct_1/in_1Q2w3E4r5T6y7U8i/pdf",
6738 "lines": [
6739 {
6740 "description": "Agent: models",
6741 "amount_micros": 35900000
6742 },
6743 {
6744 "description": "Sandbox time",
6745 "amount_micros": 6200000
6746 }
6747 ],
6748 "created_at": "2026-10-01T00:05:00.000Z"
6749 },
6750 {
6751 "id": "inv_01kkqz8d3c6f9t2wq5n8h1m4r7",
6752 "workspace": "flagon-io",
6753 "reason": "month",
6754 "period": "2026-09",
6755 "amount_micros": 42100000,
6756 "status": "paid",
6757 "hosted_url": "https://invoice.example.com/i/acct_1/in_1Q2w3E4r5T6y7U8i",
6758 "pdf_url": "https://invoice.example.com/i/acct_1/in_1Q2w3E4r5T6y7U8i/pdf",
6759 "lines": [
6760 {
6761 "description": "Agent: models",
6762 "amount_micros": 35900000
6763 },
6764 {
6765 "description": "Sandbox time",
6766 "amount_micros": 6200000
6767 }
6768 ],
6769 "created_at": "2026-10-01T00:05:00.000Z",
6770 "fee_micros": 1600000,
6771 "tax_micros": 3510000
6772 }
6773 ],
6774 "upcoming": {
6775 "closes_at": "2026-11-01T00:00:00.000Z",
6776 "subscriptions_micros": 20000000,
6777 "usage_micros": 10210000,
6778 "total_micros": 30210000
6779 },
6780 "unavailable": null
6781 },
6782 "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`."
6783 },
6784 "get_billing_details": {
6785 "params": {
6786 "workspace": "flagon-io"
6787 },
6788 "response": {
6789 "customer": true,
6790 "email": "billing@flagon.example.com",
6791 "name": "Flagon, Inc.",
6792 "address": {
6793 "line1": "100 Market Street",
6794 "line2": "",
6795 "city": "San Francisco",
6796 "state": "CA",
6797 "postal_code": "94105",
6798 "country": "US"
6799 },
6800 "tax_id_type": "us_ein",
6801 "tax_id": "12-3456789",
6802 "po_number": null,
6803 "language": "en",
6804 "payment_method": {
6805 "kind": "card",
6806 "brand": "visa",
6807 "last4": "4242",
6808 "exp_month": 12,
6809 "exp_year": 2028
6810 },
6811 "tax_location": true,
6812 "tax_address_needed_at": null,
6813 "tax_id_status": "unavailable",
6814 "tax_exempt": "none"
6815 },
6816 "notes": "Owners change these on the workspace's billing page. `payment_method` is null until a card or other way to pay is saved. Tax is worked out from the address: `tax_location` is false until it has at least a country (and in the US a ZIP code), and `tax_address_needed_at` is set while a charge waits for one."
6817 },
6818 "list_pinned_projects": {
6819 "params": {
6820 "workspace": "flagon-io"
6821 },
6822 "response": [
6823 {
6824 "position": 0,
6825 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
6826 "workspace": "flagon-io",
6827 "slug": "g1t",
6828 "name": "g1t",
6829 "description": null,
6830 "private": false,
6831 "archived": false,
6832 "kind": "app",
6833 "url": "https://g1t.sh/flagon-io/g1t",
6834 "pushed_at": "2026-10-07T10:00:00.000Z",
6835 "updated_at": "2026-10-01T09:12:00.000Z"
6836 },
6837 {
6838 "position": 1,
6839 "id": "prj_01kkq0c4d9h2w7rn5f8t3k6p2z",
6840 "workspace": "flagon-io",
6841 "slug": "lab-api",
6842 "name": "lab-api",
6843 "description": null,
6844 "private": true,
6845 "archived": false,
6846 "kind": "app",
6847 "url": "https://g1t.sh/flagon-io/lab-api",
6848 "pushed_at": "2026-10-06T18:40:00.000Z",
6849 "updated_at": "2026-10-01T09:12:00.000Z"
6850 },
6851 {
6852 "position": 2,
6853 "id": "prj_01kkp3n2a7e5v8sk3b6g9j4m1y",
6854 "workspace": "flagon-io",
6855 "slug": "hello",
6856 "name": "hello",
6857 "description": "Greets people from the command line.",
6858 "private": false,
6859 "archived": false,
6860 "kind": "library",
6861 "url": "https://g1t.sh/flagon-io/hello",
6862 "pushed_at": null,
6863 "updated_at": "2026-10-01T09:12:00.000Z"
6864 }
6865 ],
6866 "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."
6867 },
6868 "pin_project": {
6869 "params": {
6870 "workspace": "flagon-io",
6871 "project": "hello"
6872 },
6873 "request": {
6874 "position": 0
6875 },
6876 "response": [
6877 {
6878 "position": 0,
6879 "id": "prj_01kkp3n2a7e5v8sk3b6g9j4m1y",
6880 "workspace": "flagon-io",
6881 "slug": "hello",
6882 "name": "hello",
6883 "description": "Greets people from the command line.",
6884 "private": false,
6885 "archived": false,
6886 "kind": "library",
6887 "url": "https://g1t.sh/flagon-io/hello",
6888 "pushed_at": null,
6889 "updated_at": "2026-10-01T09:12:00.000Z"
6890 },
6891 {
6892 "position": 1,
6893 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
6894 "workspace": "flagon-io",
6895 "slug": "g1t",
6896 "name": "g1t",
6897 "description": null,
6898 "private": false,
6899 "archived": false,
6900 "kind": "app",
6901 "url": "https://g1t.sh/flagon-io/g1t",
6902 "pushed_at": "2026-10-07T10:00:00.000Z",
6903 "updated_at": "2026-10-01T09:12:00.000Z"
6904 },
6905 {
6906 "position": 2,
6907 "id": "prj_01kkq0c4d9h2w7rn5f8t3k6p2z",
6908 "workspace": "flagon-io",
6909 "slug": "lab-api",
6910 "name": "lab-api",
6911 "description": null,
6912 "private": true,
6913 "archived": false,
6914 "kind": "app",
6915 "url": "https://g1t.sh/flagon-io/lab-api",
6916 "pushed_at": "2026-10-06T18:40:00.000Z",
6917 "updated_at": "2026-10-01T09:12:00.000Z"
6918 }
6919 ],
6920 "notes": "A ninth pin in a workspace is refused with `409 conflict`: unpin one first."
6921 },
6922 "unpin_project": {
6923 "params": {
6924 "workspace": "flagon-io",
6925 "project": "lab-api"
6926 },
6927 "response": [
6928 {
6929 "position": 0,
6930 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
6931 "workspace": "flagon-io",
6932 "slug": "g1t",
6933 "name": "g1t",
6934 "description": null,
6935 "private": false,
6936 "archived": false,
6937 "kind": "app",
6938 "url": "https://g1t.sh/flagon-io/g1t",
6939 "pushed_at": "2026-10-07T10:00:00.000Z",
6940 "updated_at": "2026-10-01T09:12:00.000Z"
6941 },
6942 {
6943 "position": 1,
6944 "id": "prj_01kkp3n2a7e5v8sk3b6g9j4m1y",
6945 "workspace": "flagon-io",
6946 "slug": "hello",
6947 "name": "hello",
6948 "description": "Greets people from the command line.",
6949 "private": false,
6950 "archived": false,
6951 "kind": "library",
6952 "url": "https://g1t.sh/flagon-io/hello",
6953 "pushed_at": null,
6954 "updated_at": "2026-10-01T09:12:00.000Z"
6955 }
6956 ]
6957 },
6958 "reorder_pinned_projects": {
6959 "params": {
6960 "workspace": "flagon-io"
6961 },
6962 "request": {
6963 "projects": [
6964 "lab-api",
6965 "g1t",
6966 "hello"
6967 ]
6968 },
6969 "response": [
6970 {
6971 "position": 0,
6972 "id": "prj_01kkq0c4d9h2w7rn5f8t3k6p2z",
6973 "workspace": "flagon-io",
6974 "slug": "lab-api",
6975 "name": "lab-api",
6976 "description": null,
6977 "private": true,
6978 "archived": false,
6979 "kind": "app",
6980 "url": "https://g1t.sh/flagon-io/lab-api",
6981 "pushed_at": "2026-10-06T18:40:00.000Z",
6982 "updated_at": "2026-10-01T09:12:00.000Z"
6983 },
6984 {
6985 "position": 1,
6986 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
6987 "workspace": "flagon-io",
6988 "slug": "g1t",
6989 "name": "g1t",
6990 "description": null,
6991 "private": false,
6992 "archived": false,
6993 "kind": "app",
6994 "url": "https://g1t.sh/flagon-io/g1t",
6995 "pushed_at": "2026-10-07T10:00:00.000Z",
6996 "updated_at": "2026-10-01T09:12:00.000Z"
6997 },
6998 {
6999 "position": 2,
7000 "id": "prj_01kkp3n2a7e5v8sk3b6g9j4m1y",
7001 "workspace": "flagon-io",
7002 "slug": "hello",
7003 "name": "hello",
7004 "description": "Greets people from the command line.",
7005 "private": false,
7006 "archived": false,
7007 "kind": "library",
7008 "url": "https://g1t.sh/flagon-io/hello",
7009 "pushed_at": null,
7010 "updated_at": "2026-10-01T09:12:00.000Z"
7011 }
7012 ],
7013 "notes": "Name every pinned project once; anything else is refused with `422 invalid`."
7014 },
g1t coordinates the work and the person's own sessions do it: Ask g1t reads g1t with the same tools any agent gets, answers in one conversation shared with the @g1t direct message in Chat, and hands work to sessions in the person's own harness, whose subagents g1t records, ties to issues and pull requests, and lets see each other.7015 "list_commits": {
7016 "notes": "With `path`, `last_changed` is the commit that last changed that file or directory.",
7017 "params": {
7018 "owner": "flagon-io",
7019 "name": "g1t"
7020 },
7021 "query": {
7022 "path": "scripts/deploy/npm-ci.mjs",
7023 "limit": "1"
7024 },
7025 "response": {
7026 "repo": "flagon-io/g1t",
7027 "commits": [
7028 {
7029 "sha": "85c083a0e4b1d2c3f4a5b6c7d8e9f0a1b2c3d4e5",
7030 "message": "The runner's broker test reads the relayed answer's body as chunks.",
7031 "author": { "name": "Chase Pierce" },
7032 "authored_at": "2026-10-12T22:04:11Z",
7033 "parents": ["75c6704f2b1a3c4d5e6f708192a3b4c5d6e7f809"],
7034 "html_url": "https://g1t.sh/flagon-io/g1t/commit/85c083a0e4b1d2c3f4a5b6c7d8e9f0a1b2c3d4e5"
7035 }
7036 ],
7037 "path": "scripts/deploy/npm-ci.mjs",
7038 "last_changed": {
7039 "sha": "5d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e",
7040 "message": "Installs in cloud jobs retry when npm's download breaks off.",
7041 "author": { "name": "Chase Pierce" },
7042 "authored_at": "2026-10-13T01:12:40Z",
7043 "parents": ["0a1b2c3d4e5f60718293a4b5c6d7e8f9a0b1c2d3"],
7044 "html_url": "https://g1t.sh/flagon-io/g1t/commit/5d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e"
7045 }
7046 }
7047 },
7048 "get_contents": {
7049 "notes": "A file's text, or with no `path` (or a directory's) the entries and README. `ref` is a branch, tag or commit; the default branch when left out.",
7050 "params": {
7051 "owner": "flagon-io",
7052 "name": "g1t"
7053 },
7054 "query": {
7055 "path": "CONTRIBUTING.md"
7056 },
7057 "response": {
7058 "type": "file",
7059 "repo": "flagon-io/g1t",
7060 "ref": "main",
7061 "path": "CONTRIBUTING.md",
7062 "size": 412,
7063 "binary": false,
7064 "text": "# Contributing\n\nRun the tests before you push:\n\n```sh\ncargo test --workspace\nnpm test --workspaces --if-present\n```\n",
7065 "html_url": "https://g1t.sh/flagon-io/g1t/blob/main/CONTRIBUTING.md"
7066 }
7067 },
7068 "get_workspace_activity": {
7069 "notes": "What shipped today across a workspace: `since` at midnight UTC and `kinds=merged,releases,deployments,pushes`. Each event links to its page on g1t (`url`). Ask g1t reads this to answer questions about a workspace.",
7070 "params": {
7071 "workspace": "flagon-io"
7072 },
7073 "query": {
7074 "since": "2026-10-12T00:00:00Z",
7075 "kinds": "merged,releases,deployments"
7076 },
7077 "response": {
7078 "workspace": "flagon-io",
7079 "since": "2026-10-12T00:00:00Z",
7080 "until": "2026-10-12T21:40:00Z",
7081 "repositories": 4,
7082 "summary": {
7083 "merged_pull_requests": 1,
7084 "releases": 1,
7085 "production_deployments": 1,
7086 "failed_deployments": 0,
7087 "default_branch_pushes": 0,
7088 "failed_runs": 0
7089 },
7090 "events": [
7091 {
7092 "kind": "deployment_succeeded",
7093 "time": "2026-10-12T21:12:04Z",
7094 "repo": "flagon-io/g1t",
7095 "actor": "syntaqx",
7096 "environment": "production",
7097 "project": "g1t",
7098 "branch": "main",
7099 "commit": "75c6704f2b1a",
7100 "url": "https://g1t.sh/flagon-io/g1t/deployments/dpl_01kkp3m8w2f6t9qh4c7d1r5n0x"
7101 },
7102 {
7103 "kind": "release_published",
7104 "time": "2026-10-12T19:30:51Z",
7105 "repo": "flagon-io/runner",
7106 "actor": "syntaqx",
7107 "tag": "v0.3.3",
7108 "title": "Runner 0.3.3",
7109 "url": "https://g1t.sh/flagon-io/runner/releases/tag/v0.3.3"
7110 },
7111 {
7112 "kind": "pull_merged",
7113 "time": "2026-10-12T18:02:17Z",
7114 "repo": "flagon-io/g1t",
7115 "actor": "syntaqx",
7116 "number": 412,
7117 "title": "Ask g1t answers with the workspace's own AI provider",
7118 "url": "https://g1t.sh/flagon-io/g1t/pull/412",
7119 "issue": 398
7120 }
7121 ],
7122 "complete": true
7123 }
7124 },
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb977125 "list_projects": {
7126 "params": {
7127 "workspace": "flagon-io"
7128 },
7129 "response": [
7130 {
7131 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
7132 "workspace": "flagon-io",
7133 "slug": "g1t",
7134 "name": "g1t",
7135 "description": "Git hosting where people and agents work together.",
7136 "description_inherited": true,
7137 "url": "https://g1t.sh/flagon-io/g1t",
7138 "repository": "flagon-io/g1t",
7139 "root_dir": "",
7140 "default_branch": "main",
7141 "private": false,
7142 "archived": false,
7143 "primary": true,
7144 "kind": "app",
7145 "kind_reason": {
7146 "by": "set",
7147 "detail": "Set to an app that runs elsewhere."
7148 },
7149 "runs": "elsewhere",
7150 "production_url": "https://g1t.sh",
7151 "setting": {
7152 "kind": "app",
7153 "runs": "elsewhere"
7154 },
7155 "detected": {
7156 "kind": "app",
7157 "reason": {
7158 "by": "files",
7159 "detail": "wrangler.jsonc at its root makes it an app."
7160 }
7161 },
7162 "ecosystem": null,
7163 "links": {
7164 "homepage": "https://g1t.sh",
7165 "homepage_inherited": true,
7166 "docs": "https://docs.g1t.sh",
7167 "custom": [
7168 {
7169 "label": "Status",
7170 "url": "https://status.g1t.sh"
7171 }
7172 ]
7173 },
7174 "created_at": "2026-09-01T10:00:00.000Z",
7175 "updated_at": "2026-10-07T11:20:00.000Z",
7176 "pushed_at": "2026-10-07T10:00:00.000Z"
7177 },
7178 {
7179 "id": "prj_01kkp3n2a7e5v8sk3b6g9j4m1y",
7180 "workspace": "flagon-io",
7181 "slug": "hello",
7182 "name": "hello",
7183 "description": "Greets people from the command line.",
7184 "description_inherited": false,
7185 "url": "https://g1t.sh/flagon-io/hello",
7186 "repository": "flagon-io/hello",
7187 "root_dir": "",
7188 "default_branch": "main",
7189 "private": false,
7190 "archived": false,
7191 "primary": true,
7192 "kind": "library",
7193 "kind_reason": {
7194 "by": "files",
7195 "detail": "composer.json says it is a library."
7196 },
7197 "runs": null,
7198 "production_url": null,
7199 "setting": {
7200 "kind": null,
7201 "runs": null
7202 },
7203 "detected": {
7204 "kind": "library",
7205 "reason": {
7206 "by": "files",
7207 "detail": "composer.json says it is a library."
7208 }
7209 },
7210 "ecosystem": "composer",
7211 "links": {
7212 "homepage": null,
7213 "homepage_inherited": false,
7214 "docs": null,
7215 "custom": []
7216 },
7217 "created_at": "2026-09-12T14:30:00.000Z",
7218 "updated_at": "2026-10-01T09:12:00.000Z",
7219 "pushed_at": null
7220 }
7221 ],
7222 "notes": "By name. Projects whose repository you cannot see are left out; without a token you see public ones only. `kind` is what the project is, from `setting` where a person set it and from detection otherwise (`detected`, shown beside it); `kind_reason` says why. `runs` is null for what is not deployed. `homepage_inherited` is true while the homepage is its repository's website. `pushed_at` is null until its repository is pushed to. See [Projects](/guides/projects/)."
7223 },
7224 "get_project": {
7225 "params": {
7226 "workspace": "flagon-io",
7227 "project": "g1t"
7228 },
7229 "response": {
7230 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
7231 "workspace": "flagon-io",
7232 "slug": "g1t",
7233 "name": "g1t",
7234 "description": "Git hosting where people and agents work together.",
7235 "description_inherited": true,
7236 "url": "https://g1t.sh/flagon-io/g1t",
7237 "repository": "flagon-io/g1t",
7238 "root_dir": "",
7239 "default_branch": "main",
7240 "private": false,
7241 "archived": false,
7242 "primary": true,
7243 "kind": "app",
7244 "kind_reason": {
7245 "by": "set",
7246 "detail": "Set to an app that runs elsewhere."
7247 },
7248 "runs": "elsewhere",
7249 "production_url": "https://g1t.sh",
7250 "setting": {
7251 "kind": "app",
7252 "runs": "elsewhere"
7253 },
7254 "detected": {
7255 "kind": "app",
7256 "reason": {
7257 "by": "files",
7258 "detail": "wrangler.jsonc at its root makes it an app."
7259 }
7260 },
7261 "ecosystem": null,
7262 "links": {
7263 "homepage": "https://g1t.sh",
7264 "homepage_inherited": true,
7265 "docs": "https://docs.g1t.sh",
7266 "custom": [
7267 {
7268 "label": "Status",
7269 "url": "https://status.g1t.sh"
7270 }
7271 ]
7272 },
7273 "created_at": "2026-09-01T10:00:00.000Z",
7274 "updated_at": "2026-10-07T11:20:00.000Z",
7275 "pushed_at": "2026-10-07T10:00:00.000Z"
7276 },
7277 "notes": "`404` for a project that does not exist or whose repository you cannot see. `setting` holds what a person set, each part null while it is left to detection. `ecosystem` is where a library's files say it is published (`composer`, `npm`, `cargo`, `go` or `python`), or null. See [What a project is](/guides/projects/#what-a-project-is)."
7278 },
7279 "update_project": {
7280 "params": {
7281 "workspace": "flagon-io",
7282 "project": "g1t"
7283 },
7284 "request": {
7285 "kind": "app",
7286 "runs": "elsewhere",
7287 "production_url": "https://g1t.sh",
7288 "docs_url": "https://docs.g1t.sh",
7289 "links": [
7290 {
7291 "label": "Status",
7292 "url": "https://status.g1t.sh"
7293 }
7294 ]
7295 },
7296 "response": {
7297 "id": "prj_01kkp3m8w2f6t9qh4c7d1r5n0x",
7298 "workspace": "flagon-io",
7299 "slug": "g1t",
7300 "name": "g1t",
7301 "description": "Git hosting where people and agents work together.",
7302 "description_inherited": true,
7303 "url": "https://g1t.sh/flagon-io/g1t",
7304 "repository": "flagon-io/g1t",
7305 "root_dir": "",
7306 "default_branch": "main",
7307 "private": false,
7308 "archived": false,
7309 "primary": true,
7310 "kind": "app",
7311 "kind_reason": {
7312 "by": "set",
7313 "detail": "Set to an app that runs elsewhere."
7314 },
7315 "runs": "elsewhere",
7316 "production_url": "https://g1t.sh",
7317 "setting": {
7318 "kind": "app",
7319 "runs": "elsewhere"
7320 },
7321 "detected": {
7322 "kind": "app",
7323 "reason": {
7324 "by": "files",
7325 "detail": "wrangler.jsonc at its root makes it an app."
7326 }
7327 },
7328 "ecosystem": null,
7329 "links": {
7330 "homepage": "https://g1t.sh",
7331 "homepage_inherited": true,
7332 "docs": "https://docs.g1t.sh",
7333 "custom": [
7334 {
7335 "label": "Status",
7336 "url": "https://status.g1t.sh"
7337 }
7338 ]
7339 },
7340 "created_at": "2026-09-01T10:00:00.000Z",
7341 "updated_at": "2026-10-07T11:20:00.000Z",
7342 "pushed_at": "2026-10-07T10:00:00.000Z"
7343 },
7344 "notes": "Only the fields given change. `kind` and `runs` take `auto` to go back to detection. Setting `runs` makes the project an app unless it is docs. Making it a `library`, `tool` or `other` while [Deployments](/guides/deployments/) are on is refused with `409 conflict`: turn them off first. `description` and `homepage` given as null or `\"\"` follow the repository's again; `production_url` and `docs_url` given as null or `\"\"` are cleared. `links` replaces the project's other links: at most 10, each with a `label` of up to 40 characters and an http or https `url` (`https://` is added when you leave the scheme out); anything else is refused with `422 invalid`. Needs the Maintain role or higher on the project's repository. Recorded in the [audit log](/guides/audit-log/). See [Settings](/guides/projects/#settings)."
7345 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person7346 "list_secret_scanning_alerts": {
7347 "params": {
7348 "owner": "flagon-io",
7349 "name": "hello"
7350 },
7351 "query": {
7352 "state": "open"
7353 },
7354 "response": [
7355 {
7356 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
7357 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7358 "kind": "github_token",
7359 "label": "a GitHub token",
7360 "path": "scripts/release.sh",
7361 "line": 12,
7362 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7363 "preview": "ghp_X7…",
7364 "status": "open",
7365 "source": "push",
7366 "found_by": "syntaqx",
7367 "found_at": "2026-10-06T09:14:02.118Z",
7368 "decided_by": null,
7369 "reason": null,
7370 "decided_at": null,
7371 "dismissed_reason": null,
7372 "test_value": null,
7373 "state": "open",
7374 "validity": "active",
7375 "validity_checked_at": "2026-10-06T09:20:41.502Z",
7376 "bypass": {
7377 "reason": "will_fix_later",
7378 "comment": "Rotating it this afternoon.",
7379 "by": "syntaqx",
7380 "at": "2026-10-06T09:14:02.118Z",
7381 "approved_by": null
7382 },
7383 "pattern_id": null,
7384 "pattern_name": null,
7385 "locations": 1
7386 }
7387 ],
7388 "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`."
7389 },
7390 "list_secret_scanning_alerts_for_workspace": {
7391 "params": {
7392 "workspace": "flagon-io"
7393 },
7394 "query": {
7395 "state": "open"
7396 },
7397 "response": [
7398 {
7399 "repo": "hello",
7400 "secret": {
7401 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
7402 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7403 "kind": "github_token",
7404 "label": "a GitHub token",
7405 "path": "scripts/release.sh",
7406 "line": 12,
7407 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7408 "preview": "ghp_X7…",
7409 "status": "open",
7410 "source": "push",
7411 "found_by": "syntaqx",
7412 "found_at": "2026-10-06T09:14:02.118Z",
7413 "decided_by": null,
7414 "reason": null,
7415 "decided_at": null,
7416 "dismissed_reason": null,
7417 "test_value": null,
7418 "state": "open",
7419 "validity": "active",
7420 "validity_checked_at": "2026-10-06T09:20:41.502Z",
7421 "bypass": {
7422 "reason": "will_fix_later",
7423 "comment": "Rotating it this afternoon.",
7424 "by": "syntaqx",
7425 "at": "2026-10-06T09:14:02.118Z",
7426 "approved_by": null
7427 },
7428 "pattern_id": null,
7429 "pattern_name": null,
7430 "locations": 1
7431 }
7432 }
7433 ],
7434 "notes": "Every repository whose findings you may see, each alert with its repository's name."
7435 },
7436 "get_secret_scanning_alert": {
7437 "params": {
7438 "owner": "flagon-io",
7439 "name": "hello",
7440 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p"
7441 },
7442 "response": {
7443 "secret": {
7444 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
7445 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7446 "kind": "github_token",
7447 "label": "a GitHub token",
7448 "path": "scripts/release.sh",
7449 "line": 12,
7450 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7451 "preview": "ghp_X7…",
7452 "status": "blocked",
7453 "source": "push",
7454 "found_by": "syntaqx",
7455 "found_at": "2026-10-06T09:14:02.118Z",
7456 "decided_by": null,
7457 "reason": null,
7458 "decided_at": null,
7459 "dismissed_reason": null,
7460 "test_value": null,
7461 "state": "open",
7462 "validity": null,
7463 "validity_checked_at": null,
7464 "bypass": null,
7465 "pattern_id": null,
7466 "pattern_name": null,
7467 "locations": 1
7468 },
7469 "locations": [
7470 {
7471 "path": "scripts/release.sh",
7472 "line": 12,
7473 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7474 "source": "push",
7475 "found_at": "2026-10-06T09:14:02.118Z"
7476 }
7477 ],
7478 "activity": [],
7479 "requests": [],
7480 "checkable": true,
7481 "can_bypass": true,
7482 "can_request_bypass": false
7483 }
7484 },
7485 "update_secret_scanning_alert": {
7486 "params": {
7487 "owner": "flagon-io",
7488 "name": "hello",
7489 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p"
7490 },
7491 "request": {
7492 "state": "dismissed",
7493 "reason": "revoked",
7494 "comment": "Rotated in the issuer's settings."
7495 },
7496 "response": {
7497 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
7498 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7499 "kind": "github_token",
7500 "label": "a GitHub token",
7501 "path": "scripts/release.sh",
7502 "line": 12,
7503 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7504 "preview": "ghp_X7…",
7505 "status": "resolved",
7506 "source": "push",
7507 "found_by": "syntaqx",
7508 "found_at": "2026-10-06T09:14:02.118Z",
7509 "decided_by": "syntaqx",
7510 "reason": "Rotated in the issuer's settings.",
7511 "decided_at": "2026-10-06T09:20:41.502Z",
7512 "dismissed_reason": "revoked",
7513 "test_value": null,
7514 "state": "fixed",
7515 "validity": "active",
7516 "validity_checked_at": "2026-10-06T09:20:41.502Z",
7517 "bypass": {
7518 "reason": "will_fix_later",
7519 "comment": "Rotating it this afternoon.",
7520 "by": "syntaqx",
7521 "at": "2026-10-06T09:14:02.118Z",
7522 "approved_by": null
7523 },
7524 "pattern_id": null,
7525 "pattern_name": null,
7526 "locations": 1
7527 },
7528 "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."
7529 },
7530 "list_secret_scanning_locations": {
7531 "params": {
7532 "owner": "flagon-io",
7533 "name": "hello",
7534 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p"
7535 },
7536 "response": [
7537 {
7538 "path": "scripts/release.sh",
7539 "line": 12,
7540 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7541 "source": "push",
7542 "found_at": "2026-10-06T09:14:02.118Z"
7543 }
7544 ]
7545 },
7546 "bypass_push_protection": {
7547 "params": {
7548 "owner": "flagon-io",
7549 "name": "hello",
7550 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p"
7551 },
7552 "request": {
7553 "reason": "will_fix_later",
7554 "comment": "Rotating it this afternoon."
7555 },
7556 "response": {
7557 "secret": {
7558 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
7559 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7560 "kind": "github_token",
7561 "label": "a GitHub token",
7562 "path": "scripts/release.sh",
7563 "line": 12,
7564 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7565 "preview": "ghp_X7…",
7566 "status": "open",
7567 "source": "push",
7568 "found_by": "syntaqx",
7569 "found_at": "2026-10-06T09:14:02.118Z",
7570 "decided_by": null,
7571 "reason": null,
7572 "decided_at": null,
7573 "dismissed_reason": null,
7574 "test_value": null,
7575 "state": "open",
7576 "validity": null,
7577 "validity_checked_at": null,
7578 "bypass": {
7579 "reason": "will_fix_later",
7580 "comment": "Rotating it this afternoon.",
7581 "by": "syntaqx",
7582 "at": "2026-10-06T09:14:02.118Z",
7583 "approved_by": null
7584 },
7585 "pattern_id": null,
7586 "pattern_name": null,
7587 "locations": 1
7588 },
7589 "request": null
7590 },
7591 "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."
7592 },
7593 "check_secret_validity": {
7594 "params": {
7595 "owner": "flagon-io",
7596 "name": "hello",
7597 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p"
7598 },
7599 "response": {
7600 "id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
7601 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7602 "kind": "github_token",
7603 "label": "a GitHub token",
7604 "path": "scripts/release.sh",
7605 "line": 12,
7606 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
7607 "preview": "ghp_X7…",
7608 "status": "open",
7609 "source": "push",
7610 "found_by": "syntaqx",
7611 "found_at": "2026-10-06T09:14:02.118Z",
7612 "decided_by": null,
7613 "reason": null,
7614 "decided_at": null,
7615 "dismissed_reason": null,
7616 "test_value": null,
7617 "state": "open",
7618 "validity": "active",
7619 "validity_checked_at": "2026-10-06T09:20:41.502Z",
7620 "bypass": {
7621 "reason": "will_fix_later",
7622 "comment": "Rotating it this afternoon.",
7623 "by": "syntaqx",
7624 "at": "2026-10-06T09:14:02.118Z",
7625 "approved_by": null
7626 },
7627 "pattern_id": null,
7628 "pattern_name": null,
7629 "locations": 1
7630 },
7631 "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`."
7632 },
7633 "list_bypass_requests": {
7634 "params": {
7635 "workspace": "flagon-io"
7636 },
7637 "query": {
7638 "state": "pending"
7639 },
7640 "response": [
7641 {
7642 "id": "byp_01kq2n8e5f6g7h8j9k0m1n2p3q",
7643 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7644 "workspace": "flagon-io",
7645 "repo": "hello",
7646 "secret_id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
7647 "label": "a GitHub token",
7648 "path": "scripts/release.sh",
7649 "line": 12,
7650 "preview": "ghp_X7…",
7651 "requester": "ana",
7652 "reason": "used_in_tests",
7653 "comment": "A token from the test fixtures, never issued.",
7654 "state": "pending",
7655 "reviewer": null,
7656 "review_comment": null,
7657 "created_at": "2026-10-06T09:14:02.118Z",
7658 "reviewed_at": null
7659 }
7660 ]
7661 },
7662 "review_bypass_request": {
7663 "params": {
7664 "workspace": "flagon-io",
7665 "id": "byp_01kq2n8e5f6g7h8j9k0m1n2p3q"
7666 },
7667 "request": {
7668 "decision": "approve",
7669 "comment": "A fixture."
7670 },
7671 "response": {
7672 "id": "byp_01kq2n8e5f6g7h8j9k0m1n2p3q",
7673 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7674 "workspace": "flagon-io",
7675 "repo": "hello",
7676 "secret_id": "sec_01kq2m7d4e5f6g7h8j9k0m1n2p",
7677 "label": "a GitHub token",
7678 "path": "scripts/release.sh",
7679 "line": 12,
7680 "preview": "ghp_X7…",
7681 "requester": "ana",
7682 "reason": "used_in_tests",
7683 "comment": "A token from the test fixtures, never issued.",
7684 "state": "approved",
7685 "reviewer": "syntaqx",
7686 "review_comment": "A fixture.",
7687 "created_at": "2026-10-06T09:14:02.118Z",
7688 "reviewed_at": "2026-10-06T09:20:41.502Z"
7689 }
7690 },
7691 "list_custom_patterns": {
7692 "params": {
7693 "owner": "flagon-io",
7694 "name": "hello"
7695 },
7696 "response": {
7697 "patterns": [
7698 {
7699 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
7700 "scope": "repository",
7701 "workspace": "flagon-io",
7702 "repo": "hello",
7703 "name": "Acme API key",
7704 "pattern": "acme_[a-z0-9]{32}",
7705 "before": null,
7706 "after": null,
7707 "test_strings": [
7708 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
7709 ],
7710 "state": "published",
7711 "created_by": "syntaqx",
7712 "created_at": "2026-10-06T09:14:02.118Z",
7713 "updated_by": "syntaqx",
7714 "updated_at": "2026-10-06T09:14:02.118Z",
7715 "open_alerts": 0
7716 }
7717 ],
7718 "entitled": true
7719 },
Pricing says it plainly: models at the provider's price, the agent rate for what g1t runs around every model call (the gateway, secrets, routing, context and pass-through to your own provider, so your own keys too), everything else at cost plus 20%, your own runners free, no seats; Security and quality comes with the plan with no separate fee, and live activations end. Each agent has an effort setting, Auto to Max, with what a typical task has cost at each level, and Spend's Spend less, keep quality suggests a lower level only when the agent's own past work shows quality held, to apply or dismiss. The pricing, spend and agents guides say how.7720 "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 when the workspace is on the g1t plan."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person7721 },
7722 "list_custom_patterns_for_workspace": {
7723 "params": {
7724 "workspace": "flagon-io"
7725 },
7726 "response": {
7727 "patterns": [
7728 {
7729 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
7730 "scope": "workspace",
7731 "workspace": "flagon-io",
7732 "repo": null,
7733 "name": "Acme API key",
7734 "pattern": "acme_[a-z0-9]{32}",
7735 "before": null,
7736 "after": null,
7737 "test_strings": [
7738 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
7739 ],
7740 "state": "published",
7741 "created_by": "syntaqx",
7742 "created_at": "2026-10-06T09:14:02.118Z",
7743 "updated_by": "syntaqx",
7744 "updated_at": "2026-10-06T09:14:02.118Z",
7745 "open_alerts": 0
7746 }
7747 ],
7748 "entitled": true
7749 }
7750 },
7751 "create_custom_pattern": {
7752 "params": {
7753 "owner": "flagon-io",
7754 "name": "hello"
7755 },
7756 "request": {
7757 "pattern_name": "Acme API key",
7758 "pattern": "acme_[a-z0-9]{32}",
7759 "test_strings": [
7760 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
7761 ],
7762 "publish": true
7763 },
7764 "response": {
7765 "pattern": {
7766 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
7767 "scope": "repository",
7768 "workspace": "flagon-io",
7769 "repo": "hello",
7770 "name": "Acme API key",
7771 "pattern": "acme_[a-z0-9]{32}",
7772 "before": null,
7773 "after": null,
7774 "test_strings": [
7775 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
7776 ],
7777 "state": "published",
7778 "created_by": "syntaqx",
7779 "created_at": "2026-10-06T09:14:02.118Z",
7780 "updated_by": "syntaqx",
7781 "updated_at": "2026-10-06T09:14:02.118Z",
7782 "open_alerts": 0
7783 },
7784 "tests": [
7785 [
7786 9,
7787 46
7788 ]
7789 ]
7790 },
7791 "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."
7792 },
7793 "create_custom_pattern_for_workspace": {
7794 "params": {
7795 "workspace": "flagon-io"
7796 },
7797 "request": {
7798 "pattern_name": "Acme API key",
7799 "pattern": "acme_[a-z0-9]{32}",
7800 "publish": false
7801 },
7802 "response": {
7803 "pattern": {
7804 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
7805 "scope": "workspace",
7806 "workspace": "flagon-io",
7807 "repo": null,
7808 "name": "Acme API key",
7809 "pattern": "acme_[a-z0-9]{32}",
7810 "before": null,
7811 "after": null,
7812 "test_strings": [],
7813 "state": "draft",
7814 "created_by": "syntaqx",
7815 "created_at": "2026-10-06T09:14:02.118Z",
7816 "updated_by": "syntaqx",
7817 "updated_at": "2026-10-06T09:14:02.118Z",
7818 "open_alerts": 0
7819 },
7820 "tests": []
7821 }
7822 },
7823 "update_custom_pattern": {
7824 "params": {
7825 "owner": "flagon-io",
7826 "name": "hello",
7827 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r"
7828 },
7829 "request": {
7830 "pattern_name": "Acme API key",
7831 "pattern": "acme_[a-z0-9]{32,40}",
7832 "publish": true
7833 },
7834 "response": {
7835 "pattern": {
7836 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
7837 "scope": "repository",
7838 "workspace": "flagon-io",
7839 "repo": "hello",
7840 "name": "Acme API key",
7841 "pattern": "acme_[a-z0-9]{32,40}",
7842 "before": null,
7843 "after": null,
7844 "test_strings": [
7845 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
7846 ],
7847 "state": "published",
7848 "created_by": "syntaqx",
7849 "created_at": "2026-10-06T09:14:02.118Z",
7850 "updated_by": "syntaqx",
7851 "updated_at": "2026-10-06T09:14:02.118Z",
7852 "open_alerts": 0
7853 },
7854 "tests": [
7855 [
7856 9,
7857 46
7858 ]
7859 ]
7860 }
7861 },
7862 "update_custom_pattern_for_workspace": {
7863 "params": {
7864 "workspace": "flagon-io",
7865 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r"
7866 },
7867 "request": {
7868 "pattern_name": "Acme API key",
7869 "pattern": "acme_[a-z0-9]{32}",
7870 "publish": true
7871 },
7872 "response": {
7873 "pattern": {
7874 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r",
7875 "scope": "workspace",
7876 "workspace": "flagon-io",
7877 "repo": null,
7878 "name": "Acme API key",
7879 "pattern": "acme_[a-z0-9]{32}",
7880 "before": null,
7881 "after": null,
7882 "test_strings": [
7883 "ACME_KEY=acme_0123456789abcdef0123456789abcdef"
7884 ],
7885 "state": "published",
7886 "created_by": "syntaqx",
7887 "created_at": "2026-10-06T09:14:02.118Z",
7888 "updated_by": "syntaqx",
7889 "updated_at": "2026-10-06T09:14:02.118Z",
7890 "open_alerts": 0
7891 },
7892 "tests": [
7893 [
7894 9,
7895 46
7896 ]
7897 ]
7898 }
7899 },
7900 "delete_custom_pattern": {
7901 "params": {
7902 "owner": "flagon-io",
7903 "name": "hello",
7904 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r"
7905 },
7906 "response": {
7907 "deleted": true
7908 }
7909 },
7910 "delete_custom_pattern_for_workspace": {
7911 "params": {
7912 "workspace": "flagon-io",
7913 "id": "pat_01kq2p9f6g7h8j9k0m1n2p3q4r"
7914 },
7915 "response": {
7916 "deleted": true
7917 }
7918 },
7919 "dry_run_custom_pattern": {
7920 "params": {
7921 "owner": "flagon-io",
7922 "name": "hello"
7923 },
7924 "request": {
7925 "pattern": "acme_[a-z0-9]{32}"
7926 },
7927 "response": {
7928 "repos": [
7929 {
7930 "name": "hello",
7931 "files_scanned": 214,
7932 "matches": [
7933 {
7934 "path": "config/dev.env",
7935 "line": 3,
7936 "preview": "ACME_KEY=acme_01••••••••••••••••••••••••"
7937 }
7938 ],
7939 "truncated": false,
7940 "commit": "4807077b296e6edbf410d55e72749d3e1170c291"
7941 }
7942 ]
7943 },
7944 "notes": "Reads up to 2,000 files and 20 MB of the default branch, skipping what secret scanning skips. Nothing is recorded."
7945 },
7946 "dry_run_custom_pattern_for_workspace": {
7947 "params": {
7948 "workspace": "flagon-io"
7949 },
7950 "request": {
7951 "pattern": "acme_[a-z0-9]{32}",
7952 "repos": [
7953 "hello"
7954 ]
7955 },
7956 "response": {
7957 "repos": [
7958 {
7959 "name": "hello",
7960 "files_scanned": 214,
7961 "matches": [],
7962 "truncated": false,
7963 "commit": "4807077b296e6edbf410d55e72749d3e1170c291"
7964 }
7965 ]
7966 }
7967 },
7968 "list_code_scanning_alerts": {
7969 "params": {
7970 "owner": "flagon-io",
7971 "name": "hello"
7972 },
7973 "query": {
7974 "state": "open",
7975 "severity": "high"
7976 },
7977 "response": [
7978 {
7979 "id": "cod_01kq2qag7h8j9k0m1n2p3q4r5s",
7980 "number": 4,
7981 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
7982 "tool": "Semgrep OSS",
7983 "category": "Semgrep OSS",
7984 "rule_id": "javascript.lang.security.detect-child-process.detect-child-process",
7985 "rule_name": "javascript.lang.security.detect-child-process.detect-child-process",
7986 "rule_description": "Detected calls to child_process from a function argument.",
7987 "help": null,
7988 "help_uri": "https://semgrep.dev/r/javascript.lang.security.detect-child-process.detect-child-process",
7989 "tags": [
7990 "security",
7991 "CWE-78"
7992 ],
7993 "level": "error",
7994 "security_severity": null,
7995 "severity": "high",
7996 "message": "Detected calls to child_process from a function argument `req`. This could lead to a command injection.",
7997 "path": "src/server.js",
7998 "start_line": 6,
7999 "end_line": 6,
8000 "start_column": 3,
8001 "end_column": 60,
8002 "state": "open",
8003 "fingerprint": "3f1c9a0e7b2d4c5e6f708192a3b4c5d6",
8004 "first_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
8005 "last_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
8006 "created_at": "2026-10-06T09:14:02.118Z",
8007 "updated_at": "2026-10-06T09:14:02.118Z",
8008 "fixed_at": null,
8009 "dismissed_by": null,
8010 "dismissed_reason": null,
8011 "dismissed_comment": null,
8012 "dismissed_at": null,
8013 "issue": null
8014 }
8015 ],
8016 "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."
8017 },
8018 "list_code_scanning_alerts_for_workspace": {
8019 "params": {
8020 "workspace": "flagon-io"
8021 },
8022 "query": {
8023 "state": "open"
8024 },
8025 "response": [
8026 {
8027 "repo": "hello",
8028 "code": {
8029 "id": "cod_01kq2qag7h8j9k0m1n2p3q4r5s",
8030 "number": 4,
8031 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
8032 "tool": "Semgrep OSS",
8033 "category": "Semgrep OSS",
8034 "rule_id": "javascript.lang.security.detect-child-process.detect-child-process",
8035 "rule_name": "javascript.lang.security.detect-child-process.detect-child-process",
8036 "rule_description": "Detected calls to child_process from a function argument.",
8037 "help": null,
8038 "help_uri": "https://semgrep.dev/r/javascript.lang.security.detect-child-process.detect-child-process",
8039 "tags": [
8040 "security",
8041 "CWE-78"
8042 ],
8043 "level": "error",
8044 "security_severity": null,
8045 "severity": "high",
8046 "message": "Detected calls to child_process from a function argument `req`. This could lead to a command injection.",
8047 "path": "src/server.js",
8048 "start_line": 6,
8049 "end_line": 6,
8050 "start_column": 3,
8051 "end_column": 60,
8052 "state": "open",
8053 "fingerprint": "3f1c9a0e7b2d4c5e6f708192a3b4c5d6",
8054 "first_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
8055 "last_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
8056 "created_at": "2026-10-06T09:14:02.118Z",
8057 "updated_at": "2026-10-06T09:14:02.118Z",
8058 "fixed_at": null,
8059 "dismissed_by": null,
8060 "dismissed_reason": null,
8061 "dismissed_comment": null,
8062 "dismissed_at": null,
8063 "issue": null
8064 }
8065 }
8066 ]
8067 },
8068 "get_code_scanning_alert": {
8069 "params": {
8070 "owner": "flagon-io",
8071 "name": "hello",
8072 "number": 4
8073 },
8074 "response": {
8075 "alert": {
8076 "id": "cod_01kq2qag7h8j9k0m1n2p3q4r5s",
8077 "number": 4,
8078 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
8079 "tool": "Semgrep OSS",
8080 "category": "Semgrep OSS",
8081 "rule_id": "javascript.lang.security.detect-child-process.detect-child-process",
8082 "rule_name": "javascript.lang.security.detect-child-process.detect-child-process",
8083 "rule_description": "Detected calls to child_process from a function argument.",
8084 "help": null,
8085 "help_uri": "https://semgrep.dev/r/javascript.lang.security.detect-child-process.detect-child-process",
8086 "tags": [
8087 "security",
8088 "CWE-78"
8089 ],
8090 "level": "error",
8091 "security_severity": null,
8092 "severity": "high",
8093 "message": "Detected calls to child_process from a function argument `req`. This could lead to a command injection.",
8094 "path": "src/server.js",
8095 "start_line": 6,
8096 "end_line": 6,
8097 "start_column": 3,
8098 "end_column": 60,
8099 "state": "open",
8100 "fingerprint": "3f1c9a0e7b2d4c5e6f708192a3b4c5d6",
8101 "first_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
8102 "last_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
8103 "created_at": "2026-10-06T09:14:02.118Z",
8104 "updated_at": "2026-10-06T09:14:02.118Z",
8105 "fixed_at": null,
8106 "dismissed_by": null,
8107 "dismissed_reason": null,
8108 "dismissed_comment": null,
8109 "dismissed_at": null,
8110 "issue": null
8111 },
8112 "activity": [],
8113 "analyses": [
8114 {
8115 "id": "ana_01kq2rbh8j9k0m1n2p3q4r5s6t",
8116 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
8117 "sarif_id": "sar_01kq2scj9k0m1n2p3q4r5s6t7v",
8118 "tool": "Semgrep OSS",
8119 "tool_version": "1.140.0",
8120 "category": "Semgrep OSS",
8121 "commit_sha": "4807077b296e6edbf410d55e72749d3e1170c291",
8122 "git_ref": "refs/heads/main",
8123 "pull": null,
8124 "results": 7,
8125 "new_alerts": 2,
8126 "fixed_alerts": 1,
8127 "dropped": 0,
8128 "created_at": "2026-10-06T09:14:02.118Z"
8129 }
8130 ]
8131 }
8132 },
8133 "update_code_scanning_alert": {
8134 "params": {
8135 "owner": "flagon-io",
8136 "name": "hello",
8137 "number": 4
8138 },
8139 "request": {
8140 "state": "dismissed",
8141 "dismissed_reason": "false_positive",
8142 "dismissed_comment": "The argument is a constant."
8143 },
8144 "response": {
8145 "id": "cod_01kq2qag7h8j9k0m1n2p3q4r5s",
8146 "number": 4,
8147 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
8148 "tool": "Semgrep OSS",
8149 "category": "Semgrep OSS",
8150 "rule_id": "javascript.lang.security.detect-child-process.detect-child-process",
8151 "rule_name": "javascript.lang.security.detect-child-process.detect-child-process",
8152 "rule_description": "Detected calls to child_process from a function argument.",
8153 "help": null,
8154 "help_uri": "https://semgrep.dev/r/javascript.lang.security.detect-child-process.detect-child-process",
8155 "tags": [
8156 "security",
8157 "CWE-78"
8158 ],
8159 "level": "error",
8160 "security_severity": null,
8161 "severity": "high",
8162 "message": "Detected calls to child_process from a function argument `req`. This could lead to a command injection.",
8163 "path": "src/server.js",
8164 "start_line": 6,
8165 "end_line": 6,
8166 "start_column": 3,
8167 "end_column": 60,
8168 "state": "dismissed",
8169 "fingerprint": "3f1c9a0e7b2d4c5e6f708192a3b4c5d6",
8170 "first_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
8171 "last_commit": "4807077b296e6edbf410d55e72749d3e1170c291",
8172 "created_at": "2026-10-06T09:14:02.118Z",
8173 "updated_at": "2026-10-06T09:14:02.118Z",
8174 "fixed_at": null,
8175 "dismissed_by": "syntaqx",
8176 "dismissed_reason": "false_positive",
8177 "dismissed_comment": "The argument is a constant.",
8178 "dismissed_at": "2026-10-06T09:20:41.502Z",
8179 "issue": null
8180 }
8181 },
8182 "list_code_scanning_analyses": {
8183 "params": {
8184 "owner": "flagon-io",
8185 "name": "hello"
8186 },
8187 "response": [
8188 {
8189 "id": "ana_01kq2rbh8j9k0m1n2p3q4r5s6t",
8190 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
8191 "sarif_id": "sar_01kq2scj9k0m1n2p3q4r5s6t7v",
8192 "tool": "Semgrep OSS",
8193 "tool_version": "1.140.0",
8194 "category": "Semgrep OSS",
8195 "commit_sha": "4807077b296e6edbf410d55e72749d3e1170c291",
8196 "git_ref": "refs/heads/main",
8197 "pull": null,
8198 "results": 7,
8199 "new_alerts": 2,
8200 "fixed_alerts": 1,
8201 "dropped": 0,
8202 "created_at": "2026-10-06T09:14:02.118Z"
8203 }
8204 ]
8205 },
8206 "upload_sarif": {
8207 "params": {
8208 "owner": "flagon-io",
8209 "name": "hello"
8210 },
8211 "request": {
8212 "commit_sha": "4807077b296e6edbf410d55e72749d3e1170c291",
8213 "ref": "refs/heads/main",
8214 "sarif": "H4sIAAAAAAAA…",
8215 "checkout_uri": "file:///home/runner/work/repo"
8216 },
8217 "response": {
8218 "id": "sar_01kq2scj9k0m1n2p3q4r5s6t7v",
8219 "processing_status": "complete",
8220 "analyses": [
8221 "ana_01kq2rbh8j9k0m1n2p3q4r5s6t"
8222 ],
8223 "errors": [],
8224 "commit_sha": "4807077b296e6edbf410d55e72749d3e1170c291",
8225 "git_ref": "refs/heads/main",
8226 "created_at": "2026-10-06T09:14:02.118Z"
8227 },
8228 "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."
8229 },
8230 "get_sarif_upload": {
8231 "params": {
8232 "owner": "flagon-io",
8233 "name": "hello",
8234 "id": "sar_01kq2scj9k0m1n2p3q4r5s6t7v"
8235 },
8236 "response": {
8237 "id": "sar_01kq2scj9k0m1n2p3q4r5s6t7v",
8238 "processing_status": "complete",
8239 "analyses": [
8240 "ana_01kq2rbh8j9k0m1n2p3q4r5s6t"
8241 ],
8242 "errors": [],
8243 "commit_sha": "4807077b296e6edbf410d55e72749d3e1170c291",
8244 "git_ref": "refs/heads/main",
8245 "created_at": "2026-10-06T09:14:02.118Z"
8246 }
8247 },
8248 "list_vulnerability_alerts": {
8249 "params": {
8250 "owner": "flagon-io",
8251 "name": "hello"
8252 },
8253 "query": {
8254 "state": "open"
8255 },
8256 "response": [
8257 {
8258 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
8259 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
8260 "ecosystem": "npm",
8261 "package": "lodash",
8262 "version": "4.17.20",
8263 "manifest": "package-lock.json",
8264 "advisory": "GHSA-35jh-r3h4-6jhm",
8265 "osv_id": "GHSA-35jh-r3h4-6jhm",
8266 "summary": "Command Injection in lodash",
8267 "severity": "high",
8268 "fixed_version": "4.17.21",
8269 "status": "open",
8270 "issue": null,
8271 "found_at": "2026-10-06T09:14:02.118Z",
8272 "fixed_at": null,
8273 "state": "open",
8274 "dismissed_by": null,
8275 "dismissed_reason": null,
8276 "dismissed_comment": null,
8277 "dismissed_at": null,
8278 "update": null
8279 }
8280 ]
8281 },
8282 "list_vulnerability_alerts_for_workspace": {
8283 "params": {
8284 "workspace": "flagon-io"
8285 },
8286 "query": {
8287 "severity": "critical"
8288 },
8289 "response": [
8290 {
8291 "repo": "hello",
8292 "vulnerability": {
8293 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
8294 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
8295 "ecosystem": "npm",
8296 "package": "lodash",
8297 "version": "4.17.20",
8298 "manifest": "package-lock.json",
8299 "advisory": "GHSA-35jh-r3h4-6jhm",
8300 "osv_id": "GHSA-35jh-r3h4-6jhm",
8301 "summary": "Command Injection in lodash",
8302 "severity": "high",
8303 "fixed_version": "4.17.21",
8304 "status": "open",
8305 "issue": null,
8306 "found_at": "2026-10-06T09:14:02.118Z",
8307 "fixed_at": null,
8308 "state": "open",
8309 "dismissed_by": null,
8310 "dismissed_reason": null,
8311 "dismissed_comment": null,
8312 "dismissed_at": null,
8313 "update": null
8314 }
8315 }
8316 ]
8317 },
8318 "get_vulnerability_alert": {
8319 "params": {
8320 "owner": "flagon-io",
8321 "name": "hello",
8322 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n"
8323 },
8324 "response": {
8325 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
8326 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
8327 "ecosystem": "npm",
8328 "package": "lodash",
8329 "version": "4.17.20",
8330 "manifest": "package-lock.json",
8331 "advisory": "GHSA-35jh-r3h4-6jhm",
8332 "osv_id": "GHSA-35jh-r3h4-6jhm",
8333 "summary": "Command Injection in lodash",
8334 "severity": "high",
8335 "fixed_version": "4.17.21",
8336 "status": "open",
8337 "issue": null,
8338 "found_at": "2026-10-06T09:14:02.118Z",
8339 "fixed_at": null,
8340 "state": "open",
8341 "dismissed_by": null,
8342 "dismissed_reason": null,
8343 "dismissed_comment": null,
8344 "dismissed_at": null,
8345 "update": null
8346 }
8347 },
8348 "update_vulnerability_alert": {
8349 "params": {
8350 "owner": "flagon-io",
8351 "name": "hello",
8352 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n"
8353 },
8354 "request": {
8355 "state": "dismissed",
8356 "reason": "tolerable_risk",
8357 "comment": "Only the build uses it."
8358 },
8359 "response": {
8360 "id": "vul_01kp4b8c3d4e5f6g7h8j9k0m1n",
8361 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
8362 "ecosystem": "npm",
8363 "package": "lodash",
8364 "version": "4.17.20",
8365 "manifest": "package-lock.json",
8366 "advisory": "GHSA-35jh-r3h4-6jhm",
8367 "osv_id": "GHSA-35jh-r3h4-6jhm",
8368 "summary": "Command Injection in lodash",
8369 "severity": "high",
8370 "fixed_version": "4.17.21",
8371 "status": "dismissed",
8372 "issue": null,
8373 "found_at": "2026-10-06T09:14:02.118Z",
8374 "fixed_at": null,
8375 "state": "dismissed",
8376 "dismissed_by": "syntaqx",
8377 "dismissed_reason": "tolerable_risk",
8378 "dismissed_comment": "Only the build uses it.",
8379 "dismissed_at": "2026-10-06T09:20:41.502Z",
8380 "update": null
8381 }
8382 },
8383 "get_dependency_graph": {
8384 "params": {
8385 "owner": "flagon-io",
8386 "name": "hello"
8387 },
8388 "response": {
8389 "commit": "4807077b296e6edbf410d55e72749d3e1170c291",
8390 "manifests": [
8391 {
8392 "path": "package-lock.json",
8393 "ecosystem": "npm",
8394 "dependencies": 2,
8395 "direct": 1
8396 }
8397 ],
8398 "dependencies": [
8399 {
8400 "ecosystem": "npm",
8401 "name": "lodash",
8402 "version": "4.17.20",
8403 "manifest": "package-lock.json",
8404 "relationship": "direct",
8405 "development": false,
8406 "license": "MIT",
8407 "purl": "pkg:npm/lodash@4.17.20",
8408 "vulnerabilities": 1
8409 },
8410 {
8411 "ecosystem": "npm",
8412 "name": "ms",
8413 "version": "2.1.3",
8414 "manifest": "package-lock.json",
8415 "relationship": "transitive",
8416 "development": false,
8417 "license": "MIT",
8418 "purl": "pkg:npm/ms@2.1.3",
8419 "vulnerabilities": 0
8420 }
8421 ]
8422 }
8423 },
8424 "get_sbom": {
8425 "params": {
8426 "owner": "flagon-io",
8427 "name": "hello"
8428 },
8429 "response": {
8430 "sbom": {
8431 "spdxVersion": "SPDX-2.3",
8432 "dataLicense": "CC0-1.0",
8433 "SPDXID": "SPDXRef-DOCUMENT",
8434 "name": "flagon-io/hello dependency graph",
8435 "documentNamespace": "https://g1t.sh/flagon-io/hello/sbom/sbom_01kq2tdk0m1n2p3q4r5s6t7v8w",
8436 "creationInfo": {
8437 "created": "2026-10-06T09:14:02Z",
8438 "creators": [
8439 "Tool: g1t",
8440 "Organization: g1t"
8441 ],
8442 "comment": "Read from the repository's lockfiles on its default branch."
8443 },
8444 "documentDescribes": [
8445 "SPDXRef-Repository-flagon-io-hello"
8446 ],
8447 "packages": [
8448 {
8449 "SPDXID": "SPDXRef-Repository-flagon-io-hello",
8450 "name": "flagon-io/hello",
8451 "versionInfo": "4807077b296e6edbf410d55e72749d3e1170c291",
8452 "downloadLocation": "git+https://g1t.sh/flagon-io/hello.git",
8453 "filesAnalyzed": false,
8454 "licenseConcluded": "NOASSERTION",
8455 "licenseDeclared": "NOASSERTION",
8456 "copyrightText": "NOASSERTION",
8457 "primaryPackagePurpose": "SOURCE",
8458 "externalRefs": []
8459 },
8460 {
8461 "SPDXID": "SPDXRef-Package-npm-lodash-4.17.20",
8462 "name": "lodash",
8463 "versionInfo": "4.17.20",
8464 "downloadLocation": "NOASSERTION",
8465 "filesAnalyzed": false,
8466 "licenseConcluded": "NOASSERTION",
8467 "licenseDeclared": "MIT",
8468 "copyrightText": "NOASSERTION",
8469 "primaryPackagePurpose": "LIBRARY",
8470 "comment": "Resolved by package-lock.json (direct dependency).",
8471 "externalRefs": [
8472 {
8473 "referenceCategory": "PACKAGE-MANAGER",
8474 "referenceType": "purl",
8475 "referenceLocator": "pkg:npm/lodash@4.17.20"
8476 }
8477 ]
8478 }
8479 ],
8480 "relationships": [
8481 {
8482 "spdxElementId": "SPDXRef-DOCUMENT",
8483 "relationshipType": "DESCRIBES",
8484 "relatedSpdxElement": "SPDXRef-Repository-flagon-io-hello"
8485 },
8486 {
8487 "spdxElementId": "SPDXRef-Repository-flagon-io-hello",
8488 "relationshipType": "DEPENDS_ON",
8489 "relatedSpdxElement": "SPDXRef-Package-npm-lodash-4.17.20"
8490 }
8491 ]
8492 }
8493 },
8494 "notes": "`sbom` is an SPDX 2.3 JSON document, sent as SPDX spells it. Save it with `jq .sbom`."
8495 },
8496 "compare_dependencies": {
8497 "params": {
8498 "owner": "flagon-io",
8499 "name": "hello",
8500 "basehead": "main...upgrade-deps"
8501 },
8502 "response": {
8503 "base": "main",
8504 "head": "upgrade-deps",
8505 "changes": [
8506 {
8507 "change_type": "added",
8508 "manifest": "package-lock.json",
8509 "ecosystem": "npm",
8510 "name": "lodash",
8511 "version": "4.17.20",
8512 "relationship": "direct",
8513 "development": false,
8514 "license": "MIT",
8515 "purl": "pkg:npm/lodash@4.17.20",
8516 "vulnerabilities": [
8517 {
8518 "advisory": "GHSA-35jh-r3h4-6jhm",
8519 "osv_id": "GHSA-35jh-r3h4-6jhm",
8520 "summary": "Command Injection in lodash",
8521 "severity": "high",
8522 "fixed_version": "4.17.21",
8523 "url": "https://osv.dev/vulnerability/GHSA-35jh-r3h4-6jhm"
8524 }
8525 ],
8526 "denied_license": false,
8527 "failing": true
8528 },
8529 {
8530 "change_type": "removed",
8531 "manifest": "package-lock.json",
8532 "ecosystem": "npm",
8533 "name": "lodash",
8534 "version": "4.17.21",
8535 "relationship": "direct",
8536 "development": false,
8537 "license": "MIT",
8538 "purl": "pkg:npm/lodash@4.17.21",
8539 "vulnerabilities": [],
8540 "denied_license": false,
8541 "failing": false
8542 }
8543 ],
8544 "passed": false,
8545 "headline": "Adds 1 vulnerable package",
8546 "fail_on": "high",
8547 "deny_licenses": []
8548 }
8549 },
8550 "get_security_settings": {
8551 "params": {
8552 "owner": "flagon-io",
8553 "name": "hello"
8554 },
8555 "response": {
8556 "settings": {
8557 "code_scanning_gate": "high",
8558 "dependency_review": true,
8559 "review_fail_on": "high",
8560 "review_deny_licenses": [
8561 "AGPL-3.0-only"
8562 ],
Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r98563 "review_comment": true,
8564 "history_alerts": true,
8565 "private_vulnerability_reporting": false
Merge Stripe Tax, the card fee on card payments, and one free workspace per person8566 },
8567 "workspace": {
8568 "delegated_bypass": true,
8569 "validity_checks": true
8570 },
8571 "private": true,
8572 "entitled": true,
8573 "upkeep": true
8574 }
8575 },
8576 "update_security_settings": {
8577 "params": {
8578 "owner": "flagon-io",
8579 "name": "hello"
8580 },
8581 "request": {
8582 "code_scanning_gate": "high",
8583 "review_deny_licenses": [
8584 "AGPL-3.0-only"
8585 ]
8586 },
8587 "response": {
8588 "settings": {
8589 "code_scanning_gate": "high",
8590 "dependency_review": true,
8591 "review_fail_on": "high",
8592 "review_deny_licenses": [
8593 "AGPL-3.0-only"
8594 ],
Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r98595 "review_comment": true,
8596 "history_alerts": true,
8597 "private_vulnerability_reporting": true
Merge Stripe Tax, the card fee on card payments, and one free workspace per person8598 },
8599 "workspace": {
8600 "delegated_bypass": true,
8601 "validity_checks": true
8602 },
8603 "private": true,
8604 "entitled": true,
8605 "upkeep": true
8606 },
8607 "notes": "Only what you send changes. The `Code scanning` and `Dependency review` checks gate merges once you require them in branch protection."
8608 },
8609 "get_workspace_security_settings": {
8610 "params": {
8611 "workspace": "flagon-io"
8612 },
8613 "response": {
8614 "settings": {
8615 "delegated_bypass": true,
8616 "validity_checks": true
8617 },
8618 "activated": true
8619 }
8620 },
8621 "update_workspace_security_settings": {
8622 "params": {
8623 "workspace": "flagon-io"
8624 },
8625 "request": {
8626 "delegated_bypass": true
8627 },
8628 "response": {
8629 "settings": {
8630 "delegated_bypass": true,
8631 "validity_checks": true
8632 },
8633 "activated": true
8634 }
8635 },
Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r98636 "list_security_advisories": {
8637 "params": {
8638 "owner": "flagon-io",
8639 "name": "hello"
8640 },
8641 "query": {
8642 "state": "published"
8643 },
8644 "response": [
8645 {
8646 "id": "adv_01kq2p9f6g7h8j9k0m1n2p3q4r",
8647 "g1tsa_id": "G1TSA-2026-h7kd-3mqw",
8648 "repo_id": "rep_01kq2p9f6g7h8j9k0m1n2p3q4r",
8649 "repo": "flagon-io/hello",
8650 "title": "Path traversal in the archive reader",
8651 "description": "A crafted archive could write outside the directory it is extracted to.\n\nUpgrade to 1.4.1.",
8652 "severity": "high",
8653 "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
8654 "cvss_score": 8.1,
8655 "cve_id": "CVE-2026-12345",
8656 "ecosystem": "npm",
8657 "package": "@flagon/hello",
8658 "affected_versions": ">= 1.2.0, < 1.4.1",
8659 "patched_versions": ">= 1.4.1",
8660 "state": "published",
8661 "credits": [
8662 "ana"
8663 ],
8664 "report_id": "vrp_01kq2p9f6g7h8j9k0m1n2p3q4r",
8665 "created_by": "syntaqx",
8666 "created_at": "2026-10-06T09:14:02.118Z",
8667 "updated_at": "2026-10-07T15:02:40.000Z",
8668 "published_at": "2026-10-07T15:02:40.000Z",
8669 "withdrawn_at": null
8670 }
8671 ],
8672 "notes": "Without a token, or with one that has no Write on the repository, only published advisories are listed. `state` filters to `draft`, `published` or `withdrawn`; drafts and withdrawn advisories are shown only to those who see the repository's findings."
8673 },
8674 "get_security_advisory": {
8675 "params": {
8676 "owner": "flagon-io",
8677 "name": "hello",
8678 "id": "G1TSA-2026-h7kd-3mqw"
8679 },
8680 "response": {
8681 "id": "adv_01kq2p9f6g7h8j9k0m1n2p3q4r",
8682 "g1tsa_id": "G1TSA-2026-h7kd-3mqw",
8683 "repo_id": "rep_01kq2p9f6g7h8j9k0m1n2p3q4r",
8684 "repo": "flagon-io/hello",
8685 "title": "Path traversal in the archive reader",
8686 "description": "A crafted archive could write outside the directory it is extracted to.\n\nUpgrade to 1.4.1.",
8687 "severity": "high",
8688 "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
8689 "cvss_score": 8.1,
8690 "cve_id": "CVE-2026-12345",
8691 "ecosystem": "npm",
8692 "package": "@flagon/hello",
8693 "affected_versions": ">= 1.2.0, < 1.4.1",
8694 "patched_versions": ">= 1.4.1",
8695 "state": "published",
8696 "credits": [
8697 "ana"
8698 ],
8699 "report_id": "vrp_01kq2p9f6g7h8j9k0m1n2p3q4r",
8700 "created_by": "syntaqx",
8701 "created_at": "2026-10-06T09:14:02.118Z",
8702 "updated_at": "2026-10-07T15:02:40.000Z",
8703 "published_at": "2026-10-07T15:02:40.000Z",
8704 "withdrawn_at": null
8705 },
8706 "notes": "`id` is the advisory's `adv_…` id or its `G1TSA-…` id. A draft or withdrawn advisory is `404` to anyone who does not see the repository's findings."
8707 },
8708 "create_security_advisory": {
8709 "params": {
8710 "owner": "flagon-io",
8711 "name": "hello"
8712 },
8713 "request": {
8714 "title": "Path traversal in the archive reader",
8715 "description": "A crafted archive could write outside the directory it is extracted to.",
8716 "severity": "high",
8717 "ecosystem": "npm",
8718 "package": "@flagon/hello",
8719 "affected_versions": ">= 1.2.0, < 1.4.1",
8720 "patched_versions": ">= 1.4.1",
8721 "credits": [
8722 "ana"
8723 ]
8724 },
8725 "response": {
8726 "id": "adv_01kq2p9f6g7h8j9k0m1n2p3q4r",
8727 "g1tsa_id": "G1TSA-2026-h7kd-3mqw",
8728 "repo_id": "rep_01kq2p9f6g7h8j9k0m1n2p3q4r",
8729 "repo": "flagon-io/hello",
8730 "title": "Path traversal in the archive reader",
8731 "description": "A crafted archive could write outside the directory it is extracted to.",
8732 "severity": "high",
8733 "cvss_vector": null,
8734 "cvss_score": null,
8735 "cve_id": null,
8736 "ecosystem": "npm",
8737 "package": "@flagon/hello",
8738 "affected_versions": ">= 1.2.0, < 1.4.1",
8739 "patched_versions": ">= 1.4.1",
8740 "state": "draft",
8741 "credits": [
8742 "ana"
8743 ],
8744 "report_id": null,
8745 "created_by": "syntaqx",
8746 "created_at": "2026-10-06T09:14:02.118Z",
8747 "updated_at": "2026-10-06T09:14:02.118Z",
8748 "published_at": null,
8749 "withdrawn_at": null
8750 },
8751 "notes": "The advisory starts as a draft nobody but the maintainers sees; publish it with `POST …/advisories/{id}/state`. Takes the Admin role, or a security manager of the workspace. A title or severity that is missing, or a `cve_id` that is not of the form `CVE-2026-12345`, is `422`."
8752 },
8753 "update_security_advisory": {
8754 "params": {
8755 "owner": "flagon-io",
8756 "name": "hello",
8757 "id": "adv_01kq2p9f6g7h8j9k0m1n2p3q4r"
8758 },
8759 "request": {
8760 "cve_id": "CVE-2026-12345",
8761 "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
8762 "cvss_score": 8.1
8763 },
8764 "response": {
8765 "id": "adv_01kq2p9f6g7h8j9k0m1n2p3q4r",
8766 "g1tsa_id": "G1TSA-2026-h7kd-3mqw",
8767 "repo_id": "rep_01kq2p9f6g7h8j9k0m1n2p3q4r",
8768 "repo": "flagon-io/hello",
8769 "title": "Path traversal in the archive reader",
8770 "description": "A crafted archive could write outside the directory it is extracted to.",
8771 "severity": "high",
8772 "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
8773 "cvss_score": 8.1,
8774 "cve_id": "CVE-2026-12345",
8775 "ecosystem": "npm",
8776 "package": "@flagon/hello",
8777 "affected_versions": ">= 1.2.0, < 1.4.1",
8778 "patched_versions": ">= 1.4.1",
8779 "state": "draft",
8780 "credits": [
8781 "ana"
8782 ],
8783 "report_id": null,
8784 "created_by": "syntaqx",
8785 "created_at": "2026-10-06T09:14:02.118Z",
8786 "updated_at": "2026-10-06T10:30:00.000Z",
8787 "published_at": null,
8788 "withdrawn_at": null
8789 },
8790 "notes": "What the request leaves out stays as it is. A published advisory may be changed; its page shows the change at once."
8791 },
8792 "set_security_advisory_state": {
8793 "params": {
8794 "owner": "flagon-io",
8795 "name": "hello",
8796 "id": "adv_01kq2p9f6g7h8j9k0m1n2p3q4r"
8797 },
8798 "request": {
8799 "state": "published"
8800 },
8801 "response": {
8802 "id": "adv_01kq2p9f6g7h8j9k0m1n2p3q4r",
8803 "g1tsa_id": "G1TSA-2026-h7kd-3mqw",
8804 "repo_id": "rep_01kq2p9f6g7h8j9k0m1n2p3q4r",
8805 "repo": "flagon-io/hello",
8806 "title": "Path traversal in the archive reader",
8807 "description": "A crafted archive could write outside the directory it is extracted to.",
8808 "severity": "high",
8809 "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
8810 "cvss_score": 8.1,
8811 "cve_id": "CVE-2026-12345",
8812 "ecosystem": "npm",
8813 "package": "@flagon/hello",
8814 "affected_versions": ">= 1.2.0, < 1.4.1",
8815 "patched_versions": ">= 1.4.1",
8816 "state": "published",
8817 "credits": [
8818 "ana"
8819 ],
8820 "report_id": null,
8821 "created_by": "syntaqx",
8822 "created_at": "2026-10-06T09:14:02.118Z",
8823 "updated_at": "2026-10-07T15:02:40.000Z",
8824 "published_at": "2026-10-07T15:02:40.000Z",
8825 "withdrawn_at": null
8826 },
8827 "notes": "Publishing a draft with no description is `422`. Publishing sends `security_advisory.published` to webhooks and tells the repository's watchers who chose security alerts; withdrawing (`state` `withdrawn`) sends `security_advisory.withdrawn`. A withdrawn advisory can be published again. Asking for the state it already has is `409`."
8828 },
8829 "list_vulnerability_reports": {
8830 "params": {
8831 "owner": "flagon-io",
8832 "name": "hello"
8833 },
8834 "query": {
8835 "state": "new"
8836 },
8837 "response": [
8838 {
8839 "id": "vrp_01kq2p9f6g7h8j9k0m1n2p3q4r",
8840 "repo_id": "rep_01kq2p9f6g7h8j9k0m1n2p3q4r",
8841 "repo": "flagon-io/hello",
8842 "reporter": null,
8843 "reporter_email": "finder@example.com",
8844 "title": "Path traversal in the archive reader",
8845 "description": "Extracting an archive with an entry named ../../etc/passwd writes outside the target directory. Steps: …",
8846 "severity": "high",
8847 "state": "new",
8848 "advisory_id": null,
8849 "created_at": "2026-10-06T08:40:11.000Z",
8850 "reviewed_by": null,
8851 "reviewed_at": null,
8852 "review_note": null
8853 }
8854 ],
8855 "notes": "New reports first. Those who see the repository's findings (Write, or a security manager) read them; a reporter never sees another's. `state` is `new`, `accepted` or `declined`."
8856 },
8857 "report_vulnerability": {
8858 "params": {
8859 "owner": "flagon-io",
8860 "name": "hello"
8861 },
8862 "request": {
8863 "title": "Path traversal in the archive reader",
8864 "description": "Extracting an archive with an entry named ../../etc/passwd writes outside the target directory. Steps: …",
8865 "severity": "high",
8866 "email": "finder@example.com"
8867 },
8868 "response": {
8869 "id": "vrp_01kq2p9f6g7h8j9k0m1n2p3q4r",
8870 "repo_id": "rep_01kq2p9f6g7h8j9k0m1n2p3q4r",
8871 "repo": "flagon-io/hello",
8872 "reporter": null,
8873 "reporter_email": "finder@example.com",
8874 "title": "Path traversal in the archive reader",
8875 "description": "Extracting an archive with an entry named ../../etc/passwd writes outside the target directory. Steps: …",
8876 "severity": "high",
8877 "state": "new",
8878 "advisory_id": null,
8879 "created_at": "2026-10-06T08:40:11.000Z",
8880 "reviewed_by": null,
8881 "reviewed_at": null,
8882 "review_note": null
8883 },
8884 "notes": "Needs private vulnerability reporting on for the repository (`409` otherwise). With a token, the report is yours by username; without one, on a public repository, give `email`, or the request is `422`. The workspace's owners and security managers are told at once. More than 5 reports a day from one reporter to one repository, or a repository with 50 new reports waiting, is refused."
8885 },
8886 "review_vulnerability_report": {
8887 "params": {
8888 "owner": "flagon-io",
8889 "name": "hello",
8890 "id": "vrp_01kq2p9f6g7h8j9k0m1n2p3q4r"
8891 },
8892 "request": {
8893 "decision": "accept",
8894 "note": "Confirmed on 1.4.0."
8895 },
8896 "response": {
8897 "report": {
8898 "id": "vrp_01kq2p9f6g7h8j9k0m1n2p3q4r",
8899 "repo_id": "rep_01kq2p9f6g7h8j9k0m1n2p3q4r",
8900 "repo": "flagon-io/hello",
8901 "reporter": null,
8902 "reporter_email": "finder@example.com",
8903 "title": "Path traversal in the archive reader",
8904 "description": "Extracting an archive with an entry named ../../etc/passwd writes outside the target directory. Steps: …",
8905 "severity": "high",
8906 "state": "accepted",
8907 "advisory_id": "adv_01kq2p9f6g7h8j9k0m1n2p3q4r",
8908 "created_at": "2026-10-06T08:40:11.000Z",
8909 "reviewed_by": "syntaqx",
8910 "reviewed_at": "2026-10-06T09:14:02.118Z",
8911 "review_note": "Confirmed on 1.4.0."
8912 },
8913 "advisory": {
8914 "id": "adv_01kq2p9f6g7h8j9k0m1n2p3q4r",
8915 "g1tsa_id": "G1TSA-2026-h7kd-3mqw",
8916 "repo_id": "rep_01kq2p9f6g7h8j9k0m1n2p3q4r",
8917 "repo": "flagon-io/hello",
8918 "title": "Path traversal in the archive reader",
8919 "description": "Extracting an archive with an entry named ../../etc/passwd writes outside the target directory. Steps: …",
8920 "severity": "high",
8921 "cvss_vector": null,
8922 "cvss_score": null,
8923 "cve_id": null,
8924 "ecosystem": null,
8925 "package": null,
8926 "affected_versions": null,
8927 "patched_versions": null,
8928 "state": "draft",
8929 "credits": [
8930 "finder@example.com"
8931 ],
8932 "report_id": "vrp_01kq2p9f6g7h8j9k0m1n2p3q4r",
8933 "created_by": "syntaqx",
8934 "created_at": "2026-10-06T09:14:02.118Z",
8935 "updated_at": "2026-10-06T09:14:02.118Z",
8936 "published_at": null,
8937 "withdrawn_at": null
8938 }
8939 },
8940 "notes": "`accept` makes a draft advisory from the report, in the report's words and crediting the reporter, for the maintainers to finish and publish; `advisory` is that draft. `decline` closes the report; `advisory` is null. A report that was reviewed already is `409`. Takes the Admin role, or a security manager of the workspace."
8941 },
Merge Stripe Tax, the card fee on card payments, and one free workspace per person8942 "get_security_overview": {
8943 "params": {
8944 "workspace": "flagon-io"
8945 },
8946 "query": {
8947 "days": "30"
8948 },
8949 "response": {
8950 "activated": true,
8951 "private_hidden": 0,
8952 "totals": [
8953 {
8954 "alert_type": "secret_scanning",
8955 "open": {
8956 "critical": 1,
8957 "high": 0,
8958 "medium": 0,
8959 "low": 0,
8960 "unknown": 0
8961 },
8962 "opened": 2,
8963 "closed": 1
8964 },
8965 {
8966 "alert_type": "code_scanning",
8967 "open": {
8968 "critical": 0,
8969 "high": 3,
8970 "medium": 4,
8971 "low": 0,
8972 "unknown": 0
8973 },
8974 "opened": 7,
8975 "closed": 2
8976 },
8977 {
8978 "alert_type": "vulnerability",
8979 "open": {
8980 "critical": 0,
8981 "high": 1,
8982 "medium": 2,
8983 "low": 1,
8984 "unknown": 0
8985 },
8986 "opened": 3,
8987 "closed": 5
8988 }
8989 ],
8990 "trend": [
8991 {
8992 "day": "2026-10-05",
8993 "secret_scanning": 1,
8994 "code_scanning": 8,
8995 "vulnerability": 6
8996 },
8997 {
8998 "day": "2026-10-06",
8999 "secret_scanning": 1,
9000 "code_scanning": 7,
9001 "vulnerability": 4
9002 }
9003 ],
9004 "repos": [
9005 {
9006 "repo_id": "rep_01kp0a1b2c3d4e5f6g7h8j9k0m",
9007 "name": "hello",
9008 "private": true,
9009 "custom_patterns": 1,
9010 "validity_checks": true,
9011 "code_scanning_at": "2026-10-06T09:14:02.118Z",
9012 "dependency_review": true,
9013 "security_updates": true,
9014 "lockfiles": 1,
9015 "secrets": {
9016 "critical": 1,
9017 "high": 0,
9018 "medium": 0,
9019 "low": 0,
9020 "unknown": 0
9021 },
9022 "code": {
9023 "critical": 0,
9024 "high": 3,
9025 "medium": 4,
9026 "low": 0,
9027 "unknown": 0
9028 },
9029 "vulnerabilities": {
9030 "critical": 0,
9031 "high": 1,
9032 "medium": 2,
9033 "low": 1,
9034 "unknown": 0
9035 }
9036 }
9037 ]
9038 }
9039 },
9040 "create_label": {
9041 "request": {
9042 "label": "area: cli",
9043 "color": "1d76db",
9044 "description": "The command-line tool"
9045 },
9046 "response": {
9047 "name": "area: cli",
9048 "color": "1d76db",
9049 "description": "The command-line tool",
9050 "issues": 0,
9051 "pulls": 0
9052 }
9053 },
9054 "update_label": {
9055 "params": {
9056 "label": "area: cli"
9057 },
9058 "request": {
9059 "new_name": "cli",
9060 "color": "0052cc"
9061 },
9062 "response": {
9063 "name": "cli",
9064 "color": "0052cc",
9065 "description": "The command-line tool",
9066 "issues": 3,
9067 "pulls": 1
9068 },
9069 "notes": "Renaming a label renames it on every issue and pull request that carries it."
9070 },
9071 "delete_label": {
9072 "params": {
9073 "label": "wontfix"
9074 },
9075 "response": true
9076 },
9077 "add_default_labels": {
9078 "response": [
9079 {
9080 "name": "bug",
9081 "color": "d73a4a",
9082 "description": "Something isn't working",
9083 "issues": 4,
9084 "pulls": 1
9085 },
9086 {
9087 "name": "documentation",
9088 "color": "0075ca",
9089 "description": "Improvements or additions to documentation",
9090 "issues": 0,
9091 "pulls": 0
9092 }
9093 ],
9094 "notes": "Every label the repository has afterwards, shortened here. Labels it already had are left as they were."
9095 },
9096 "list_issue_labels": {
9097 "response": [
9098 {
9099 "name": "bug",
9100 "color": "d73a4a",
9101 "description": "Something isn't working",
9102 "issues": 4,
9103 "pulls": 1
9104 },
9105 {
9106 "name": "help wanted",
9107 "color": "008672",
9108 "description": "Extra attention is needed",
9109 "issues": 1,
9110 "pulls": 0
9111 }
9112 ]
9113 },
9114 "add_issue_labels": {
9115 "request": {
9116 "labels": [
9117 "help wanted"
9118 ]
9119 },
9120 "response": [
9121 "bug",
9122 "help wanted"
9123 ],
9124 "notes": "Returns its labels now, by name."
9125 },
9126 "set_issue_labels": {
9127 "request": {
9128 "labels": [
9129 "bug"
9130 ]
9131 },
9132 "response": [
9133 "bug"
9134 ]
9135 },
9136 "remove_issue_labels": {
9137 "response": []
9138 },
9139 "remove_issue_label": {
9140 "params": {
9141 "label": "help wanted"
9142 },
9143 "response": [
9144 "bug"
9145 ]
9146 },
9147 "list_milestones": {
9148 "response": [
9149 {
9150 "number": 3,
9151 "title": "Launch",
9152 "description": "Everything that has to land before the launch on October 14.",
9153 "due_on": "2026-10-14",
9154 "state": "open",
9155 "open_items": 5,
9156 "closed_items": 12,
9157 "created_at": "2026-09-20T09:00:00.000Z",
9158 "updated_at": "2026-10-06T16:12:40.118Z",
9159 "closed_at": null
9160 }
9161 ],
9162 "notes": "Open milestones soonest due first, then closed ones. Progress is closed_items out of open_items plus closed_items."
9163 },
9164 "create_milestone": {
9165 "request": {
9166 "title": "Launch",
9167 "description": "Everything that has to land before the launch on October 14.",
9168 "due_on": "2026-10-14"
9169 },
9170 "response": {
9171 "number": 3,
9172 "title": "Launch",
9173 "description": "Everything that has to land before the launch on October 14.",
9174 "due_on": "2026-10-14",
9175 "state": "open",
9176 "open_items": 0,
9177 "closed_items": 0,
9178 "created_at": "2026-09-20T09:00:00.000Z",
9179 "updated_at": "2026-09-20T09:00:00.000Z",
9180 "closed_at": null
9181 }
9182 },
9183 "update_milestone": {
9184 "params": {
9185 "milestone": 3
9186 },
9187 "request": {
9188 "state": "closed"
9189 },
9190 "response": {
9191 "number": 3,
9192 "title": "Launch",
9193 "description": "Everything that has to land before the launch on October 14.",
9194 "due_on": "2026-10-14",
9195 "state": "closed",
9196 "open_items": 0,
9197 "closed_items": 17,
9198 "created_at": "2026-09-20T09:00:00.000Z",
9199 "updated_at": "2026-10-14T18:00:00.000Z",
9200 "closed_at": "2026-10-14T18:00:00.000Z"
9201 }
9202 },
9203 "delete_milestone": {
9204 "params": {
9205 "milestone": 3
9206 },
9207 "response": true
9208 },
9209 "get_milestone": {
9210 "params": {
9211 "milestone": 3
9212 },
9213 "response": {
9214 "milestone": {
9215 "number": 3,
9216 "title": "Launch",
9217 "description": "Everything that has to land before the launch on October 14.",
9218 "due_on": "2026-10-14",
9219 "state": "open",
9220 "open_items": 5,
9221 "closed_items": 12,
9222 "created_at": "2026-09-20T09:00:00.000Z",
9223 "updated_at": "2026-10-06T16:12:40.118Z",
9224 "closed_at": null
9225 },
9226 "issues": [
9227 {
9228 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
9229 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
9230 "number": 12,
9231 "title": "Greeting should name the caller",
9232 "body": "Take a name from the first argument; fall back to world.",
9233 "labels": [
9234 "feature",
9235 "good first issue"
9236 ],
9237 "state": "open",
9238 "reason": null,
9239 "resolved_by": null,
9240 "author": {
9241 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
9242 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar9243 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person9244 "kind": "user",
9245 "verified": false,
9246 "workspaces": []
9247 },
9248 "requested_by": null,
9249 "created_at": "2026-10-01T18:04:11.482Z",
9250 "updated_at": "2026-10-01T18:09:47.305Z",
9251 "closed_at": null,
9252 "pull_count": 0,
9253 "comment_count": 0,
9254 "assignees": [
9255 "syntaqx"
9256 ],
9257 "blocked_by": [],
9258 "queued": false,
9259 "agent": null,
9260 "milestone": {
9261 "number": 3,
9262 "title": "Launch"
9263 }
9264 }
9265 ],
9266 "pulls": [
9267 {
9268 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
9269 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
9270 "number": 14,
9271 "issue": 12,
9272 "title": "Greeting should name the caller",
9273 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
9274 "agent": "claude-code",
9275 "runtime": "external",
9276 "status": "open",
9277 "fork": {
9278 "namespace": "pulls",
9279 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
9280 },
9281 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
9282 "branch": null,
9283 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
9284 "merge_base": null,
9285 "merged_by": null,
9286 "merged_at": null,
9287 "superseded_by": null,
9288 "check_status": "passed",
9289 "files": [
9290 {
9291 "path": "src/main.rs",
9292 "additions": 6,
9293 "deletions": 2
9294 }
9295 ],
9296 "assignees": [],
9297 "reviewers": [
9298 "ana"
9299 ],
9300 "labels": [],
9301 "milestone": {
9302 "number": 3,
9303 "title": "Launch"
9304 },
9305 "base": "main",
9306 "author": {
9307 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
9308 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar9309 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person9310 "kind": "user",
9311 "verified": false,
9312 "workspaces": []
9313 },
9314 "requested_by": null,
9315 "created_at": "2026-10-01T18:20:02.117Z",
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.9316 "updated_at": "2026-10-01T18:35:44.902Z"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person9317 }
9318 ]
9319 }
9320 },
9321 "update_pull_request": {
9322 "request": {
9323 "base": "release/1.x",
9324 "labels": [
9325 "bug"
9326 ]
9327 },
9328 "response": {
9329 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
9330 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
9331 "number": 14,
9332 "issue": 12,
9333 "title": "Greeting should name the caller",
9334 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
9335 "agent": "claude-code",
9336 "runtime": "external",
9337 "status": "open",
9338 "fork": {
9339 "namespace": "pulls",
9340 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
9341 },
9342 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
9343 "branch": null,
9344 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
9345 "merge_base": null,
9346 "merged_by": null,
9347 "merged_at": null,
9348 "superseded_by": null,
9349 "check_status": "passed",
9350 "files": [
9351 {
9352 "path": "src/main.rs",
9353 "additions": 6,
9354 "deletions": 2
9355 }
9356 ],
9357 "assignees": [],
9358 "reviewers": [
9359 "ana"
9360 ],
9361 "labels": [
9362 "bug"
9363 ],
9364 "milestone": null,
9365 "base": "release/1.x",
9366 "author": {
9367 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
9368 "username": "syntaqx",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar9369 "display_username": "syntaqx",
Merge Stripe Tax, the card fee on card payments, and one free workspace per person9370 "kind": "user",
9371 "verified": false,
9372 "workspaces": []
9373 },
9374 "requested_by": null,
9375 "created_at": "2026-10-01T18:20:02.117Z",
The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens.9376 "updated_at": "2026-10-01T18:35:44.902Z"
Merge Stripe Tax, the card fee on card payments, and one free workspace per person9377 },
9378 "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 rulesets: branch and tag rules, agent-first, enforced on push and merge9379 },
9380 "list_repo_rulesets": {
9381 "params": {
9382 "owner": "flagon-io",
9383 "name": "hello"
9384 },
9385 "query": {
9386 "include_parents": "true"
9387 },
9388 "response": [
9389 {
9390 "id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
9391 "level": "repository",
9392 "workspace": "flagon-io",
9393 "repo_id": "rep_01kq0f3a7b8c9d0e1f2g3h4j5k",
9394 "repository": "flagon-io/hello",
9395 "name": "Protect main",
9396 "enforcement": "active",
9397 "target": "branch",
9398 "conditions": {
9399 "ref_name": {
9400 "include": [
9401 "~DEFAULT_BRANCH"
9402 ],
9403 "exclude": []
9404 }
9405 },
9406 "bypass_actors": [
9407 {
9408 "kind": "role",
9409 "value": "admin",
9410 "mode": "pull_requests"
9411 }
9412 ],
9413 "rules": [
9414 {
9415 "type": "deletion",
9416 "parameters": {},
9417 "applies_to": "everyone"
9418 },
9419 {
9420 "type": "non_fast_forward",
9421 "parameters": {},
9422 "applies_to": "everyone"
9423 },
9424 {
9425 "type": "pull_request",
9426 "parameters": {
9427 "required_approvals": 1,
9428 "count_agent_approvals": true,
9429 "dismiss_stale_reviews_on_push": true,
9430 "require_code_owner_review": true,
9431 "require_last_push_approval": false,
9432 "allowed_merge_methods": []
9433 },
9434 "applies_to": "everyone"
9435 },
9436 {
9437 "type": "required_status_checks",
9438 "parameters": {
9439 "checks": [
9440 {
9441 "context": "CI",
9442 "integration": "actions"
9443 }
9444 ],
9445 "strict": true,
9446 "paths": [],
9447 "allow_bypass_on_merge": false
9448 },
9449 "applies_to": "everyone"
9450 },
9451 {
9452 "type": "pull_request",
9453 "parameters": {
9454 "required_approvals": 1,
9455 "count_agent_approvals": false,
9456 "dismiss_stale_reviews_on_push": false,
9457 "require_code_owner_review": false,
9458 "require_last_push_approval": false,
9459 "allowed_merge_methods": []
9460 },
9461 "applies_to": "agents"
9462 },
9463 {
9464 "type": "file_path_restriction",
9465 "parameters": {
9466 "restricted_file_paths": [
9467 ".g1t/workflows/**",
9468 "CODEOWNERS"
9469 ]
9470 },
9471 "applies_to": "agents"
9472 }
9473 ],
9474 "created_by": "syntaqx",
9475 "created_at": "2026-10-07T14:02:11.318Z",
9476 "updated_by": "syntaqx",
9477 "updated_at": "2026-10-07T14:02:11.318Z"
9478 },
9479 {
9480 "id": "rs_01kq3b2c3d4e5f6g7h8j9k0m1n",
9481 "level": "workspace",
9482 "workspace": "flagon-io",
9483 "name": "Release freeze",
9484 "enforcement": "evaluate",
9485 "target": "branch",
9486 "conditions": {
9487 "ref_name": {
9488 "include": [
9489 "~DEFAULT_BRANCH",
9490 "release/**"
9491 ],
9492 "exclude": []
9493 },
9494 "repository": {
9495 "include": [
9496 "~ALL"
9497 ],
9498 "exclude": [
9499 "sandbox-*"
9500 ],
9501 "visibility": "any",
9502 "topics": []
9503 }
9504 },
9505 "bypass_actors": [
9506 {
9507 "kind": "team",
9508 "value": "flagon-io/release",
9509 "mode": "always"
9510 }
9511 ],
9512 "rules": [
9513 {
9514 "type": "merge_window",
9515 "parameters": {
9516 "time_zone": "-05:00",
9517 "windows": [
9518 {
9519 "days": [
9520 "mon",
9521 "tue",
9522 "wed",
9523 "thu"
9524 ],
9525 "start": "09:00",
9526 "end": "17:00"
9527 }
9528 ],
9529 "freezes": [
9530 {
9531 "start": "2026-12-20T00:00:00Z",
9532 "end": "2027-01-04T00:00:00Z",
9533 "reason": "Holidays"
9534 }
9535 ],
9536 "exceptions": []
9537 },
9538 "applies_to": "everyone"
9539 }
9540 ],
9541 "created_by": "syntaqx",
9542 "created_at": "2026-10-07T14:02:11.318Z",
9543 "updated_by": "syntaqx",
9544 "updated_at": "2026-10-07T14:02:11.318Z"
9545 }
9546 ],
9547 "notes": "With `include_parents`, the workspace's rulesets that hold in the repository come too, with `level` `workspace`. The ruleset made from the repository's branch protection settings has `source` `branch_protection`."
9548 },
9549 "get_repo_ruleset": {
9550 "params": {
9551 "owner": "flagon-io",
9552 "name": "hello",
9553 "id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m"
9554 },
9555 "response": {
9556 "id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
9557 "level": "repository",
9558 "workspace": "flagon-io",
9559 "repo_id": "rep_01kq0f3a7b8c9d0e1f2g3h4j5k",
9560 "repository": "flagon-io/hello",
9561 "name": "Protect main",
9562 "enforcement": "active",
9563 "target": "branch",
9564 "conditions": {
9565 "ref_name": {
9566 "include": [
9567 "~DEFAULT_BRANCH"
9568 ],
9569 "exclude": []
9570 }
9571 },
9572 "bypass_actors": [
9573 {
9574 "kind": "role",
9575 "value": "admin",
9576 "mode": "pull_requests"
9577 }
9578 ],
9579 "rules": [
9580 {
9581 "type": "deletion",
9582 "parameters": {},
9583 "applies_to": "everyone"
9584 },
9585 {
9586 "type": "non_fast_forward",
9587 "parameters": {},
9588 "applies_to": "everyone"
9589 },
9590 {
9591 "type": "pull_request",
9592 "parameters": {
9593 "required_approvals": 1,
9594 "count_agent_approvals": true,
9595 "dismiss_stale_reviews_on_push": true,
9596 "require_code_owner_review": true,
9597 "require_last_push_approval": false,
9598 "allowed_merge_methods": []
9599 },
9600 "applies_to": "everyone"
9601 },
9602 {
9603 "type": "required_status_checks",
9604 "parameters": {
9605 "checks": [
9606 {
9607 "context": "CI",
9608 "integration": "actions"
9609 }
9610 ],
9611 "strict": true,
9612 "paths": [],
9613 "allow_bypass_on_merge": false
9614 },
9615 "applies_to": "everyone"
9616 },
9617 {
9618 "type": "pull_request",
9619 "parameters": {
9620 "required_approvals": 1,
9621 "count_agent_approvals": false,
9622 "dismiss_stale_reviews_on_push": false,
9623 "require_code_owner_review": false,
9624 "require_last_push_approval": false,
9625 "allowed_merge_methods": []
9626 },
9627 "applies_to": "agents"
9628 },
9629 {
9630 "type": "file_path_restriction",
9631 "parameters": {
9632 "restricted_file_paths": [
9633 ".g1t/workflows/**",
9634 "CODEOWNERS"
9635 ]
9636 },
9637 "applies_to": "agents"
9638 }
9639 ],
9640 "created_by": "syntaqx",
9641 "created_at": "2026-10-07T14:02:11.318Z",
9642 "updated_by": "syntaqx",
9643 "updated_at": "2026-10-07T14:02:11.318Z"
9644 }
9645 },
9646 "create_repo_ruleset": {
9647 "params": {
9648 "owner": "flagon-io",
9649 "name": "hello"
9650 },
9651 "request": {
9652 "ruleset_name": "Protect main",
9653 "enforcement": "active",
9654 "target": "branch",
9655 "conditions": {
9656 "ref_name": {
9657 "include": [
9658 "~DEFAULT_BRANCH"
9659 ],
9660 "exclude": []
9661 }
9662 },
9663 "bypass_actors": [
9664 {
9665 "kind": "role",
9666 "value": "admin",
9667 "mode": "pull_requests"
9668 }
9669 ],
9670 "rules": [
9671 {
9672 "type": "deletion",
9673 "parameters": {},
9674 "applies_to": "everyone"
9675 },
9676 {
9677 "type": "non_fast_forward",
9678 "parameters": {},
9679 "applies_to": "everyone"
9680 },
9681 {
9682 "type": "pull_request",
9683 "parameters": {
9684 "required_approvals": 1,
9685 "count_agent_approvals": true,
9686 "dismiss_stale_reviews_on_push": true,
9687 "require_code_owner_review": true,
9688 "require_last_push_approval": false,
9689 "allowed_merge_methods": []
9690 },
9691 "applies_to": "everyone"
9692 },
9693 {
9694 "type": "required_status_checks",
9695 "parameters": {
9696 "checks": [
9697 {
9698 "context": "CI",
9699 "integration": "actions"
9700 }
9701 ],
9702 "strict": true,
9703 "paths": [],
9704 "allow_bypass_on_merge": false
9705 },
9706 "applies_to": "everyone"
9707 },
9708 {
9709 "type": "pull_request",
9710 "parameters": {
9711 "required_approvals": 1,
9712 "count_agent_approvals": false,
9713 "dismiss_stale_reviews_on_push": false,
9714 "require_code_owner_review": false,
9715 "require_last_push_approval": false,
9716 "allowed_merge_methods": []
9717 },
9718 "applies_to": "agents"
9719 },
9720 {
9721 "type": "file_path_restriction",
9722 "parameters": {
9723 "restricted_file_paths": [
9724 ".g1t/workflows/**",
9725 "CODEOWNERS"
9726 ]
9727 },
9728 "applies_to": "agents"
9729 }
9730 ]
9731 },
9732 "response": {
9733 "id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
9734 "level": "repository",
9735 "workspace": "flagon-io",
9736 "repo_id": "rep_01kq0f3a7b8c9d0e1f2g3h4j5k",
9737 "repository": "flagon-io/hello",
9738 "name": "Protect main",
9739 "enforcement": "active",
9740 "target": "branch",
9741 "conditions": {
9742 "ref_name": {
9743 "include": [
9744 "~DEFAULT_BRANCH"
9745 ],
9746 "exclude": []
9747 }
9748 },
9749 "bypass_actors": [
9750 {
9751 "kind": "role",
9752 "value": "admin",
9753 "mode": "pull_requests"
9754 }
9755 ],
9756 "rules": [
9757 {
9758 "type": "deletion",
9759 "parameters": {},
9760 "applies_to": "everyone"
9761 },
9762 {
9763 "type": "non_fast_forward",
9764 "parameters": {},
9765 "applies_to": "everyone"
9766 },
9767 {
9768 "type": "pull_request",
9769 "parameters": {
9770 "required_approvals": 1,
9771 "count_agent_approvals": true,
9772 "dismiss_stale_reviews_on_push": true,
9773 "require_code_owner_review": true,
9774 "require_last_push_approval": false,
9775 "allowed_merge_methods": []
9776 },
9777 "applies_to": "everyone"
9778 },
9779 {
9780 "type": "required_status_checks",
9781 "parameters": {
9782 "checks": [
9783 {
9784 "context": "CI",
9785 "integration": "actions"
9786 }
9787 ],
9788 "strict": true,
9789 "paths": [],
9790 "allow_bypass_on_merge": false
9791 },
9792 "applies_to": "everyone"
9793 },
9794 {
9795 "type": "pull_request",
9796 "parameters": {
9797 "required_approvals": 1,
9798 "count_agent_approvals": false,
9799 "dismiss_stale_reviews_on_push": false,
9800 "require_code_owner_review": false,
9801 "require_last_push_approval": false,
9802 "allowed_merge_methods": []
9803 },
9804 "applies_to": "agents"
9805 },
9806 {
9807 "type": "file_path_restriction",
9808 "parameters": {
9809 "restricted_file_paths": [
9810 ".g1t/workflows/**",
9811 "CODEOWNERS"
9812 ]
9813 },
9814 "applies_to": "agents"
9815 }
9816 ],
9817 "created_by": "syntaqx",
9818 "created_at": "2026-10-07T14:02:11.318Z",
9819 "updated_by": "syntaqx",
9820 "updated_at": "2026-10-07T14:02:11.318Z"
9821 },
9822 "notes": "Parameters left out take their defaults, and the ruleset comes back as saved: patterns trimmed, roles and teams lowercased. A pattern that does not compile, or a rule the target cannot hold (a pull request rule on tags), is refused with `invalid` and says why."
9823 },
9824 "update_repo_ruleset": {
9825 "params": {
9826 "owner": "flagon-io",
9827 "name": "hello",
9828 "id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m"
9829 },
9830 "request": {
9831 "enforcement": "evaluate"
9832 },
9833 "response": {
9834 "id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
9835 "level": "repository",
9836 "workspace": "flagon-io",
9837 "repo_id": "rep_01kq0f3a7b8c9d0e1f2g3h4j5k",
9838 "repository": "flagon-io/hello",
9839 "name": "Protect main",
9840 "enforcement": "evaluate",
9841 "target": "branch",
9842 "conditions": {
9843 "ref_name": {
9844 "include": [
9845 "~DEFAULT_BRANCH"
9846 ],
9847 "exclude": []
9848 }
9849 },
9850 "bypass_actors": [
9851 {
9852 "kind": "role",
9853 "value": "admin",
9854 "mode": "pull_requests"
9855 }
9856 ],
9857 "rules": [
9858 {
9859 "type": "deletion",
9860 "parameters": {},
9861 "applies_to": "everyone"
9862 },
9863 {
9864 "type": "non_fast_forward",
9865 "parameters": {},
9866 "applies_to": "everyone"
9867 },
9868 {
9869 "type": "pull_request",
9870 "parameters": {
9871 "required_approvals": 1,
9872 "count_agent_approvals": true,
9873 "dismiss_stale_reviews_on_push": true,
9874 "require_code_owner_review": true,
9875 "require_last_push_approval": false,
9876 "allowed_merge_methods": []
9877 },
9878 "applies_to": "everyone"
9879 },
9880 {
9881 "type": "required_status_checks",
9882 "parameters": {
9883 "checks": [
9884 {
9885 "context": "CI",
9886 "integration": "actions"
9887 }
9888 ],
9889 "strict": true,
9890 "paths": [],
9891 "allow_bypass_on_merge": false
9892 },
9893 "applies_to": "everyone"
9894 },
9895 {
9896 "type": "pull_request",
9897 "parameters": {
9898 "required_approvals": 1,
9899 "count_agent_approvals": false,
9900 "dismiss_stale_reviews_on_push": false,
9901 "require_code_owner_review": false,
9902 "require_last_push_approval": false,
9903 "allowed_merge_methods": []
9904 },
9905 "applies_to": "agents"
9906 },
9907 {
9908 "type": "file_path_restriction",
9909 "parameters": {
9910 "restricted_file_paths": [
9911 ".g1t/workflows/**",
9912 "CODEOWNERS"
9913 ]
9914 },
9915 "applies_to": "agents"
9916 }
9917 ],
9918 "created_by": "syntaqx",
9919 "created_at": "2026-10-07T14:02:11.318Z",
9920 "updated_by": "syntaqx",
9921 "updated_at": "2026-10-07T14:02:11.318Z"
9922 },
9923 "notes": "Fields left out stay as they are. `rules` and `bypass_actors`, when given, replace the whole list."
9924 },
9925 "delete_repo_ruleset": {
9926 "params": {
9927 "owner": "flagon-io",
9928 "name": "hello",
9929 "id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m"
9930 },
9931 "response": {
9932 "deleted": true
9933 }
9934 },
9935 "get_branch_rules": {
9936 "params": {
9937 "owner": "flagon-io",
9938 "name": "hello",
9939 "branch": "main"
9940 },
9941 "response": {
9942 "name": "main",
9943 "target": "branch",
9944 "default_branch": true,
9945 "rules": [
9946 {
9947 "type": "deletion",
9948 "parameters": {},
9949 "applies_to": "everyone",
9950 "ruleset_id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
9951 "ruleset_name": "Protect main",
9952 "level": "repository",
9953 "enforcement": "active"
9954 },
9955 {
9956 "type": "non_fast_forward",
9957 "parameters": {},
9958 "applies_to": "everyone",
9959 "ruleset_id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
9960 "ruleset_name": "Protect main",
9961 "level": "repository",
9962 "enforcement": "active"
9963 },
9964 {
9965 "type": "pull_request",
9966 "parameters": {
9967 "required_approvals": 1,
9968 "count_agent_approvals": true,
9969 "dismiss_stale_reviews_on_push": true,
9970 "require_code_owner_review": true,
9971 "require_last_push_approval": false,
9972 "allowed_merge_methods": []
9973 },
9974 "applies_to": "everyone",
9975 "ruleset_id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
9976 "ruleset_name": "Protect main",
9977 "level": "repository",
9978 "enforcement": "active"
9979 },
9980 {
9981 "type": "required_status_checks",
9982 "parameters": {
9983 "checks": [
9984 {
9985 "context": "CI",
9986 "integration": "actions"
9987 }
9988 ],
9989 "strict": true,
9990 "paths": [],
9991 "allow_bypass_on_merge": false
9992 },
9993 "applies_to": "everyone",
9994 "ruleset_id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
9995 "ruleset_name": "Protect main",
9996 "level": "repository",
9997 "enforcement": "active"
9998 },
9999 {
10000 "type": "merge_window",
10001 "parameters": {
10002 "time_zone": "-05:00",
10003 "windows": [
10004 {
10005 "days": [
10006 "mon",
10007 "tue",
10008 "wed",
10009 "thu"
10010 ],
10011 "start": "09:00",
10012 "end": "17:00"
10013 }
10014 ],
10015 "freezes": [
10016 {
10017 "start": "2026-12-20T00:00:00Z",
10018 "end": "2027-01-04T00:00:00Z",
10019 "reason": "Holidays"
10020 }
10021 ],
10022 "exceptions": []
10023 },
10024 "applies_to": "everyone",
10025 "ruleset_id": "rs_01kq3b2c3d4e5f6g7h8j9k0m1n",
10026 "ruleset_name": "Release freeze",
10027 "level": "workspace",
10028 "enforcement": "evaluate"
10029 }
10030 ],
10031 "rulesets": [
10032 {
10033 "id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
10034 "name": "Protect main",
10035 "level": "repository",
10036 "enforcement": "active",
10037 "bypass_actors": [
10038 {
10039 "kind": "role",
10040 "value": "admin",
10041 "mode": "pull_requests"
10042 }
10043 ]
10044 },
10045 {
10046 "id": "rs_01kq3b2c3d4e5f6g7h8j9k0m1n",
10047 "name": "Release freeze",
10048 "level": "workspace",
10049 "enforcement": "evaluate",
10050 "bypass_actors": [
10051 {
10052 "kind": "team",
10053 "value": "flagon-io/release",
10054 "mode": "always"
10055 }
10056 ]
10057 }
10058 ]
10059 },
10060 "notes": "A branch with slashes in its name is URL-encoded as one segment: `/rules/branches/release%2F1.x`. Add `?target=tag` for a tag."
10061 },
10062 "list_rule_evaluations": {
10063 "params": {
10064 "owner": "flagon-io",
10065 "name": "hello"
10066 },
10067 "query": {
10068 "problems_only": "true"
10069 },
10070 "response": {
10071 "evaluations": [
10072 {
10073 "id": "rev_01kq3c4d5e6f7g8h9j0k1m2n3p",
10074 "repo_id": "rep_01kq0f3a7b8c9d0e1f2g3h4j5k",
10075 "workspace": "flagon-io",
10076 "ruleset_id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
10077 "ruleset_name": "Protect main",
10078 "enforcement": "active",
10079 "action": "push",
10080 "git_ref": "refs/heads/main",
10081 "actor": "g1t",
10082 "actor_kind": "agent",
10083 "verdict": "fail",
10084 "violations": [
10085 {
10086 "rule": "pull_request",
10087 "ruleset_id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
10088 "ruleset_name": "Protect main",
10089 "enforcement": "active",
10090 "message": "Changes to main must be made through a pull request.",
10091 "remedy": "Push a branch, open a pull request into main, and merge it."
10092 }
10093 ],
10094 "number": null,
10095 "sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
10096 "repository": "flagon-io/hello",
10097 "created_at": "2026-10-07T14:02:11.318Z"
10098 }
10099 ],
10100 "next": null,
10101 "insights": {
10102 "days": 30,
10103 "total": 214,
10104 "passed": 198,
10105 "blocked": 9,
10106 "would_block": 5,
10107 "bypassed": 2,
10108 "by_ruleset": [
10109 {
10110 "ruleset_id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
10111 "ruleset_name": "Protect main",
10112 "enforcement": "active",
10113 "total": 120,
10114 "blocked": 9,
10115 "would_block": 0,
10116 "bypassed": 2
10117 }
10118 ],
10119 "by_rule": [
10120 {
10121 "rule": "pull_request",
10122 "count": 7
10123 },
10124 {
10125 "rule": "non_fast_forward",
10126 "count": 2
10127 }
10128 ]
10129 }
10130 },
10131 "notes": "A `fail` of a ruleset in `evaluate` is what it would have refused. Pass `next` as `before` for the next page. `insights` counts the last 30 days."
10132 },
10133 "list_workspace_rulesets": {
10134 "params": {
10135 "workspace": "flagon-io"
10136 },
10137 "response": [
10138 {
10139 "id": "rs_01kq3b2c3d4e5f6g7h8j9k0m1n",
10140 "level": "workspace",
10141 "workspace": "flagon-io",
10142 "name": "Release freeze",
10143 "enforcement": "evaluate",
10144 "target": "branch",
10145 "conditions": {
10146 "ref_name": {
10147 "include": [
10148 "~DEFAULT_BRANCH",
10149 "release/**"
10150 ],
10151 "exclude": []
10152 },
10153 "repository": {
10154 "include": [
10155 "~ALL"
10156 ],
10157 "exclude": [
10158 "sandbox-*"
10159 ],
10160 "visibility": "any",
10161 "topics": []
10162 }
10163 },
10164 "bypass_actors": [
10165 {
10166 "kind": "team",
10167 "value": "flagon-io/release",
10168 "mode": "always"
10169 }
10170 ],
10171 "rules": [
10172 {
10173 "type": "merge_window",
10174 "parameters": {
10175 "time_zone": "-05:00",
10176 "windows": [
10177 {
10178 "days": [
10179 "mon",
10180 "tue",
10181 "wed",
10182 "thu"
10183 ],
10184 "start": "09:00",
10185 "end": "17:00"
10186 }
10187 ],
10188 "freezes": [
10189 {
10190 "start": "2026-12-20T00:00:00Z",
10191 "end": "2027-01-04T00:00:00Z",
10192 "reason": "Holidays"
10193 }
10194 ],
10195 "exceptions": []
10196 },
10197 "applies_to": "everyone"
10198 }
10199 ],
10200 "created_by": "syntaqx",
10201 "created_at": "2026-10-07T14:02:11.318Z",
10202 "updated_by": "syntaqx",
10203 "updated_at": "2026-10-07T14:02:11.318Z"
10204 }
10205 ]
10206 },
10207 "get_workspace_ruleset": {
10208 "params": {
10209 "workspace": "flagon-io",
10210 "id": "rs_01kq3b2c3d4e5f6g7h8j9k0m1n"
10211 },
10212 "response": {
10213 "id": "rs_01kq3b2c3d4e5f6g7h8j9k0m1n",
10214 "level": "workspace",
10215 "workspace": "flagon-io",
10216 "name": "Release freeze",
10217 "enforcement": "evaluate",
10218 "target": "branch",
10219 "conditions": {
10220 "ref_name": {
10221 "include": [
10222 "~DEFAULT_BRANCH",
10223 "release/**"
10224 ],
10225 "exclude": []
10226 },
10227 "repository": {
10228 "include": [
10229 "~ALL"
10230 ],
10231 "exclude": [
10232 "sandbox-*"
10233 ],
10234 "visibility": "any",
10235 "topics": []
10236 }
10237 },
10238 "bypass_actors": [
10239 {
10240 "kind": "team",
10241 "value": "flagon-io/release",
10242 "mode": "always"
10243 }
10244 ],
10245 "rules": [
10246 {
10247 "type": "merge_window",
10248 "parameters": {
10249 "time_zone": "-05:00",
10250 "windows": [
10251 {
10252 "days": [
10253 "mon",
10254 "tue",
10255 "wed",
10256 "thu"
10257 ],
10258 "start": "09:00",
10259 "end": "17:00"
10260 }
10261 ],
10262 "freezes": [
10263 {
10264 "start": "2026-12-20T00:00:00Z",
10265 "end": "2027-01-04T00:00:00Z",
10266 "reason": "Holidays"
10267 }
10268 ],
10269 "exceptions": []
10270 },
10271 "applies_to": "everyone"
10272 }
10273 ],
10274 "created_by": "syntaqx",
10275 "created_at": "2026-10-07T14:02:11.318Z",
10276 "updated_by": "syntaqx",
10277 "updated_at": "2026-10-07T14:02:11.318Z"
10278 }
10279 },
10280 "create_workspace_ruleset": {
10281 "params": {
10282 "workspace": "flagon-io"
10283 },
10284 "request": {
10285 "ruleset_name": "Release freeze",
10286 "enforcement": "evaluate",
10287 "target": "branch",
10288 "conditions": {
10289 "ref_name": {
10290 "include": [
10291 "~DEFAULT_BRANCH",
10292 "release/**"
10293 ],
10294 "exclude": []
10295 },
10296 "repository": {
10297 "include": [
10298 "~ALL"
10299 ],
10300 "exclude": [
10301 "sandbox-*"
10302 ],
10303 "visibility": "any",
10304 "topics": []
10305 }
10306 },
10307 "bypass_actors": [
10308 {
10309 "kind": "team",
10310 "value": "flagon-io/release",
10311 "mode": "always"
10312 }
10313 ],
10314 "rules": [
10315 {
10316 "type": "merge_window",
10317 "parameters": {
10318 "time_zone": "-05:00",
10319 "windows": [
10320 {
10321 "days": [
10322 "mon",
10323 "tue",
10324 "wed",
10325 "thu"
10326 ],
10327 "start": "09:00",
10328 "end": "17:00"
10329 }
10330 ],
10331 "freezes": [
10332 {
10333 "start": "2026-12-20T00:00:00Z",
10334 "end": "2027-01-04T00:00:00Z",
10335 "reason": "Holidays"
10336 }
10337 ],
10338 "exceptions": []
10339 },
10340 "applies_to": "everyone"
10341 }
10342 ]
10343 },
10344 "response": {
10345 "id": "rs_01kq3b2c3d4e5f6g7h8j9k0m1n",
10346 "level": "workspace",
10347 "workspace": "flagon-io",
10348 "name": "Release freeze",
10349 "enforcement": "evaluate",
10350 "target": "branch",
10351 "conditions": {
10352 "ref_name": {
10353 "include": [
10354 "~DEFAULT_BRANCH",
10355 "release/**"
10356 ],
10357 "exclude": []
10358 },
10359 "repository": {
10360 "include": [
10361 "~ALL"
10362 ],
10363 "exclude": [
10364 "sandbox-*"
10365 ],
10366 "visibility": "any",
10367 "topics": []
10368 }
10369 },
10370 "bypass_actors": [
10371 {
10372 "kind": "team",
10373 "value": "flagon-io/release",
10374 "mode": "always"
10375 }
10376 ],
10377 "rules": [
10378 {
10379 "type": "merge_window",
10380 "parameters": {
10381 "time_zone": "-05:00",
10382 "windows": [
10383 {
10384 "days": [
10385 "mon",
10386 "tue",
10387 "wed",
10388 "thu"
10389 ],
10390 "start": "09:00",
10391 "end": "17:00"
10392 }
10393 ],
10394 "freezes": [
10395 {
10396 "start": "2026-12-20T00:00:00Z",
10397 "end": "2027-01-04T00:00:00Z",
10398 "reason": "Holidays"
10399 }
10400 ],
10401 "exceptions": []
10402 },
10403 "applies_to": "everyone"
10404 }
10405 ],
10406 "created_by": "syntaqx",
10407 "created_at": "2026-10-07T14:02:11.318Z",
10408 "updated_by": "syntaqx",
10409 "updated_at": "2026-10-07T14:02:11.318Z"
10410 },
10411 "notes": "`conditions.repository` chooses the repositories it holds in; left out, every repository of the workspace."
10412 },
10413 "update_workspace_ruleset": {
10414 "params": {
10415 "workspace": "flagon-io",
10416 "id": "rs_01kq3b2c3d4e5f6g7h8j9k0m1n"
10417 },
10418 "request": {
10419 "enforcement": "active"
10420 },
10421 "response": {
10422 "id": "rs_01kq3b2c3d4e5f6g7h8j9k0m1n",
10423 "level": "workspace",
10424 "workspace": "flagon-io",
10425 "name": "Release freeze",
10426 "enforcement": "active",
10427 "target": "branch",
10428 "conditions": {
10429 "ref_name": {
10430 "include": [
10431 "~DEFAULT_BRANCH",
10432 "release/**"
10433 ],
10434 "exclude": []
10435 },
10436 "repository": {
10437 "include": [
10438 "~ALL"
10439 ],
10440 "exclude": [
10441 "sandbox-*"
10442 ],
10443 "visibility": "any",
10444 "topics": []
10445 }
10446 },
10447 "bypass_actors": [
10448 {
10449 "kind": "team",
10450 "value": "flagon-io/release",
10451 "mode": "always"
10452 }
10453 ],
10454 "rules": [
10455 {
10456 "type": "merge_window",
10457 "parameters": {
10458 "time_zone": "-05:00",
10459 "windows": [
10460 {
10461 "days": [
10462 "mon",
10463 "tue",
10464 "wed",
10465 "thu"
10466 ],
10467 "start": "09:00",
10468 "end": "17:00"
10469 }
10470 ],
10471 "freezes": [
10472 {
10473 "start": "2026-12-20T00:00:00Z",
10474 "end": "2027-01-04T00:00:00Z",
10475 "reason": "Holidays"
10476 }
10477 ],
10478 "exceptions": []
10479 },
10480 "applies_to": "everyone"
10481 }
10482 ],
10483 "created_by": "syntaqx",
10484 "created_at": "2026-10-07T14:02:11.318Z",
10485 "updated_by": "syntaqx",
10486 "updated_at": "2026-10-07T14:02:11.318Z"
10487 }
10488 },
10489 "delete_workspace_ruleset": {
10490 "params": {
10491 "workspace": "flagon-io",
10492 "id": "rs_01kq3b2c3d4e5f6g7h8j9k0m1n"
10493 },
10494 "response": {
10495 "deleted": true
10496 }
10497 },
10498 "list_workspace_rule_evaluations": {
10499 "params": {
10500 "workspace": "flagon-io"
10501 },
10502 "response": {
10503 "evaluations": [
10504 {
10505 "id": "rev_01kq3c4d5e6f7g8h9j0k1m2n3p",
10506 "repo_id": "rep_01kq0f3a7b8c9d0e1f2g3h4j5k",
10507 "workspace": "flagon-io",
10508 "ruleset_id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
10509 "ruleset_name": "Protect main",
10510 "enforcement": "active",
10511 "action": "push",
10512 "git_ref": "refs/heads/main",
10513 "actor": "g1t",
10514 "actor_kind": "agent",
10515 "verdict": "fail",
10516 "violations": [
10517 {
10518 "rule": "pull_request",
10519 "ruleset_id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
10520 "ruleset_name": "Protect main",
10521 "enforcement": "active",
10522 "message": "Changes to main must be made through a pull request.",
10523 "remedy": "Push a branch, open a pull request into main, and merge it."
10524 }
10525 ],
10526 "number": null,
10527 "sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
10528 "repository": "flagon-io/hello",
10529 "created_at": "2026-10-07T14:02:11.318Z"
10530 }
10531 ],
10532 "next": null,
10533 "insights": {
10534 "days": 30,
10535 "total": 214,
10536 "passed": 198,
10537 "blocked": 9,
10538 "would_block": 5,
10539 "bypassed": 2,
10540 "by_ruleset": [
10541 {
10542 "ruleset_id": "rs_01kq3a8b9c0d1e2f3g4h5j6k7m",
10543 "ruleset_name": "Protect main",
10544 "enforcement": "active",
10545 "total": 120,
10546 "blocked": 9,
10547 "would_block": 0,
10548 "bypassed": 2
10549 }
10550 ],
10551 "by_rule": [
10552 {
10553 "rule": "pull_request",
10554 "count": 7
10555 },
10556 {
10557 "rule": "non_fast_forward",
10558 "count": 2
10559 }
10560 ]
10561 }
10562 }
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb9710563 },
10564 "list_deployments": {
10565 "params": {
10566 "owner": "flagon-io",
10567 "name": "g1t"
10568 },
10569 "query": {
10570 "environment": "production",
10571 "per_page": "2"
10572 },
10573 "response": {
10574 "deployments": [
10575 {
10576 "id": "dep_01kq8m3t5v7x9z1b3d5f7h9k2m",
10577 "environment": "production",
10578 "ref": "main",
10579 "sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
10580 "task": "deploy",
10581 "description": "Deploy",
10582 "payload": {},
10583 "transient_environment": false,
10584 "production_environment": true,
10585 "state": "success",
10586 "environment_url": "https://g1t.sh",
10587 "log_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10588 "creator": "syntaqx",
10589 "source": "actions",
10590 "run_id": "run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10591 "run_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10592 "project": null,
10593 "number": null,
10594 "created_at": "2026-10-07T18:02:11.204Z",
10595 "updated_at": "2026-10-07T18:19:47.881Z"
10596 }
10597 ],
10598 "total_count": 304,
10599 "page": 1,
10600 "per_page": 2
10601 },
10602 "notes": "Every deployment of the repository in one list, wherever it ran: `source` is `api` for those reported with [`POST /repos/{owner}/{name}/deployments`](/reference/api/deployments/create-deployment/), `actions` for those a g1t Actions job with an `environment:` made, and `g1t_page` for [g1t.page](/guides/deployments/) builds, whose ids start `dpl_`. `state` is the latest status's. See [Deployments API](/guides/deployments-api/)."
10603 },
10604 "create_deployment": {
10605 "params": {
10606 "owner": "flagon-io",
10607 "name": "g1t"
10608 },
10609 "request": {
10610 "ref": "main",
10611 "environment": "staging",
10612 "description": "Deployed by the release pipeline",
10613 "payload": {
10614 "pipeline": 4182,
10615 "region": "us-east"
10616 },
10617 "state": "in_progress",
10618 "log_url": "https://ci.example.com/pipelines/4182"
10619 },
10620 "response": {
10621 "id": "dep_01kq7z9a1c3e5g7j9m1p3r5t7v",
10622 "environment": "staging",
10623 "ref": "main",
10624 "sha": "4b8d0f2a6c1e3579bd02468ace13579bdf02468a",
10625 "task": "deploy",
10626 "description": "Deployed by the release pipeline",
10627 "payload": {
10628 "pipeline": 4182,
10629 "region": "us-east"
10630 },
10631 "transient_environment": false,
10632 "production_environment": false,
10633 "state": "in_progress",
10634 "environment_url": null,
10635 "log_url": "https://ci.example.com/pipelines/4182",
10636 "creator": "flagon-io",
10637 "source": "api",
10638 "run_id": null,
10639 "run_url": null,
10640 "project": null,
10641 "number": null,
10642 "created_at": "2026-10-06T21:40:03.512Z",
10643 "updated_at": "2026-10-06T21:40:03.512Z",
10644 "statuses": [
10645 {
10646 "id": "dst_01kq7z9a1d4f6h8k0m2p4r6t8v",
10647 "deployment_id": "dep_01kq7z9a1c3e5g7j9m1p3r5t7v",
10648 "state": "in_progress",
10649 "description": "Deployed by the release pipeline",
10650 "environment_url": null,
10651 "log_url": "https://ci.example.com/pipelines/4182",
10652 "creator": "flagon-io",
10653 "created_at": "2026-10-06T21:40:03.512Z"
10654 }
10655 ]
10656 },
10657 "notes": "Report from any CI with an access token that has `deployments:write` (the CI preset has it) and the Write role. Then report each step with [`POST …/deployments/{id}/statuses`](/reference/api/deployments/create-deployment-status/). Each status sets the check `deploy / <environment>` on the commit. A g1t Actions job with an `environment:` does all of this itself. See [Deployments API](/guides/deployments-api/)."
10658 },
10659 "get_deployment": {
10660 "params": {
10661 "owner": "flagon-io",
10662 "name": "g1t",
10663 "id": "dep_01kq8m3t5v7x9z1b3d5f7h9k2m"
10664 },
10665 "response": {
10666 "id": "dep_01kq8m3t5v7x9z1b3d5f7h9k2m",
10667 "environment": "production",
10668 "ref": "main",
10669 "sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
10670 "task": "deploy",
10671 "description": "Deploy",
10672 "payload": {},
10673 "transient_environment": false,
10674 "production_environment": true,
10675 "state": "success",
10676 "environment_url": "https://g1t.sh",
10677 "log_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10678 "creator": "syntaqx",
10679 "source": "actions",
10680 "run_id": "run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10681 "run_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10682 "project": null,
10683 "number": null,
10684 "created_at": "2026-10-07T18:02:11.204Z",
10685 "updated_at": "2026-10-07T18:19:47.881Z",
10686 "statuses": [
10687 {
10688 "id": "dst_01kq8m3t5w0a2c4e6g8j0m2p4r",
10689 "deployment_id": "dep_01kq8m3t5v7x9z1b3d5f7h9k2m",
10690 "state": "in_progress",
10691 "description": "Deploy is deploying",
10692 "environment_url": "https://g1t.sh",
10693 "log_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10694 "creator": "syntaqx",
10695 "created_at": "2026-10-07T18:02:11.204Z"
10696 },
10697 {
10698 "id": "dst_01kq8n4v6x8z0b2d4f6h8k0m2p",
10699 "deployment_id": "dep_01kq8m3t5v7x9z1b3d5f7h9k2m",
10700 "state": "success",
10701 "description": "Deploy deployed",
10702 "environment_url": "https://g1t.sh",
10703 "log_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10704 "creator": "syntaqx",
10705 "created_at": "2026-10-07T18:19:47.881Z"
10706 }
10707 ]
10708 },
10709 "notes": "`statuses` are oldest first. A g1t.page build's (`dpl_…`) are read from the build: queued, building, how it ended, and `inactive` once a newer build replaced it or it was taken down."
10710 },
10711 "list_deployment_statuses": {
10712 "params": {
10713 "owner": "flagon-io",
10714 "name": "g1t",
10715 "id": "dep_01kq8m3t5v7x9z1b3d5f7h9k2m"
10716 },
10717 "response": [
10718 {
10719 "id": "dst_01kq8n4v6x8z0b2d4f6h8k0m2p",
10720 "deployment_id": "dep_01kq8m3t5v7x9z1b3d5f7h9k2m",
10721 "state": "success",
10722 "description": "Deploy deployed",
10723 "environment_url": "https://g1t.sh",
10724 "log_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10725 "creator": "syntaqx",
10726 "created_at": "2026-10-07T18:19:47.881Z"
10727 },
10728 {
10729 "id": "dst_01kq8m3t5w0a2c4e6g8j0m2p4r",
10730 "deployment_id": "dep_01kq8m3t5v7x9z1b3d5f7h9k2m",
10731 "state": "in_progress",
10732 "description": "Deploy is deploying",
10733 "environment_url": "https://g1t.sh",
10734 "log_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10735 "creator": "syntaqx",
10736 "created_at": "2026-10-07T18:02:11.204Z"
10737 }
10738 ]
10739 },
10740 "create_deployment_status": {
10741 "params": {
10742 "owner": "flagon-io",
10743 "name": "g1t",
10744 "id": "dep_01kq7z9a1c3e5g7j9m1p3r5t7v"
10745 },
10746 "request": {
10747 "state": "failure",
10748 "description": "Smoke tests failed",
10749 "log_url": "https://ci.example.com/pipelines/4182"
10750 },
10751 "response": {
10752 "id": "dst_01kq7zc2e4g6j8m0p2r4t6v8x0",
10753 "deployment_id": "dep_01kq7z9a1c3e5g7j9m1p3r5t7v",
10754 "state": "failure",
10755 "description": "Smoke tests failed",
10756 "environment_url": null,
10757 "log_url": "https://ci.example.com/pipelines/4182",
10758 "creator": "flagon-io",
10759 "created_at": "2026-10-06T21:44:58.020Z"
10760 },
10761 "notes": "`queued` and `in_progress` set the commit's `deploy / <environment>` check pending; `success`, `failure` and `error` settle it; `inactive` leaves it. A success makes the environment's older successful deployments `inactive` unless `auto_inactive` is false. A g1t.page build (`dpl_…`) answers `409`: its statuses come from the build."
10762 },
10763 "list_environments": {
10764 "params": {
10765 "owner": "flagon-io",
10766 "name": "g1t"
10767 },
10768 "response": {
10769 "total_count": 304,
10770 "environments": [
10771 {
10772 "name": "production",
10773 "url": "https://g1t.sh",
10774 "production_environment": true,
10775 "transient_environment": false,
10776 "deployments_count": 281,
10777 "latest": {
10778 "id": "dep_01kq8m3t5v7x9z1b3d5f7h9k2m",
10779 "environment": "production",
10780 "ref": "main",
10781 "sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
10782 "task": "deploy",
10783 "description": "Deploy",
10784 "payload": {},
10785 "transient_environment": false,
10786 "production_environment": true,
10787 "state": "success",
10788 "environment_url": "https://g1t.sh",
10789 "log_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10790 "creator": "syntaqx",
10791 "source": "actions",
10792 "run_id": "run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10793 "run_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10794 "project": null,
10795 "number": null,
10796 "created_at": "2026-10-07T18:02:11.204Z",
10797 "updated_at": "2026-10-07T18:19:47.881Z"
10798 },
10799 "current": {
10800 "id": "dep_01kq8m3t5v7x9z1b3d5f7h9k2m",
10801 "environment": "production",
10802 "ref": "main",
10803 "sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
10804 "task": "deploy",
10805 "description": "Deploy",
10806 "payload": {},
10807 "transient_environment": false,
10808 "production_environment": true,
10809 "state": "success",
10810 "environment_url": "https://g1t.sh",
10811 "log_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10812 "creator": "syntaqx",
10813 "source": "actions",
10814 "run_id": "run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10815 "run_url": "https://g1t.sh/flagon-io/g1t/actions/runs/run_01kq8m2r4t6v8x0z2b4d6f8h0k",
10816 "project": null,
10817 "number": null,
10818 "created_at": "2026-10-07T18:02:11.204Z",
10819 "updated_at": "2026-10-07T18:19:47.881Z"
10820 },
10821 "updated_at": "2026-10-07T18:19:47.881Z"
10822 },
10823 {
10824 "name": "staging",
10825 "url": null,
10826 "production_environment": false,
10827 "transient_environment": false,
10828 "deployments_count": 19,
10829 "latest": {
10830 "id": "dep_01kq7z9a1c3e5g7j9m1p3r5t7v",
10831 "environment": "staging",
10832 "ref": "main",
10833 "sha": "4b8d0f2a6c1e3579bd02468ace13579bdf02468a",
10834 "task": "deploy",
10835 "description": "Deployed by the release pipeline",
10836 "payload": {
10837 "pipeline": 4182,
10838 "region": "us-east"
10839 },
10840 "transient_environment": false,
10841 "production_environment": false,
10842 "state": "failure",
10843 "environment_url": null,
10844 "log_url": "https://ci.example.com/pipelines/4182",
10845 "creator": "flagon-io",
10846 "source": "api",
10847 "run_id": null,
10848 "run_url": null,
10849 "project": null,
10850 "number": null,
10851 "created_at": "2026-10-06T21:40:03.512Z",
10852 "updated_at": "2026-10-06T21:44:58.020Z"
10853 },
10854 "current": null,
10855 "updated_at": "2026-10-06T21:44:58.020Z"
10856 }
10857 ]
10858 },
10859 "notes": "Production comes first, then the most recently deployed. `latest` is the newest deployment whatever its state; `current` is the newest that succeeded and is still active, and `url` is where it is served."
10860 },
Merge branch 'worktree-agent-a4d35ee70c50683d0' into claude/cool-newton-7nm8r910861 "start_deployment_build": {
10862 "params": {
10863 "owner": "flagon-io",
10864 "name": "hello"
10865 },
10866 "request": {
10867 "project": "hello"
10868 },
10869 "response": {
10870 "deploy_id": "dpl_01kq9c4e6g8j0m2p4r6t8v0x2z",
10871 "token": "…",
10872 "kind": "preview",
10873 "project": "hello",
10874 "branch": "new-header",
10875 "number": 42,
10876 "commit": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c0b2d4f6e",
10877 "url": "https://hello-git-new-header-flagonio.g1t.page",
10878 "trusted": true,
10879 "root_dir": "",
10880 "build_command": null,
10881 "output_dir": null,
Merge GitHub pull request #8 (claude/cool-newton-7nm8r9): Docker deployments on g1t.page behind a switch that stays off until Cloudflare's container APIs are checked live, workflows a workspace manages in its repositories, tarball and zipball downloads, refs/pull/* kept to g1t alone, framework detection for g1t.page builds, and a workflow's event payload matching GitHub's.10882 "build_as": "auto",
10883 "dockerfile": null,
Merge branch 'worktree-agent-a4d35ee70c50683d0' into claude/cool-newton-7nm8r910884 "build_env": {
10885 "PUBLIC_API_URL": "https://api.example.com"
10886 },
10887 "build_secrets": {
10888 "SENTRY_AUTH_TOKEN": "…"
10889 }
10890 },
10891 "notes": "Called from a workflow step with the job's own token, `${{ github.token }}`, in a job with `permissions: deployments: write`; the [`g1t/deploy`](/guides/deployments/#deploying-from-a-workflow) action calls it, masks the token and the secrets, and runs `g1t-runner deploy` with them. Any other token is refused. This is a pull request's run, so it builds the pull request's preview; the same workflow on the production branch builds production. See [Deploying from a workflow](/guides/deployments/#deploying-from-a-workflow)."
10892 },
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb9710893 "get_environment": {
10894 "params": {
10895 "owner": "flagon-io",
10896 "name": "docs",
10897 "environment": "preview"
10898 },
10899 "response": {
10900 "name": "preview",
10901 "url": "https://docs-git-docs-deployments-flagon-io.g1t.page",
10902 "production_environment": false,
10903 "transient_environment": true,
10904 "deployments_count": 87,
10905 "latest": {
10906 "id": "dpl_01kq8p2b4d6f8h0k2m4p6r8t0v",
10907 "environment": "preview",
10908 "ref": "docs-deployments",
10909 "sha": "e2f4a6c8b0d1e3f5a7c9b1d3e5f7a9c1b3d5e7f9",
10910 "task": "deploy",
10911 "description": "Preview of docs-deployments on g1t.page",
10912 "payload": {},
10913 "transient_environment": true,
10914 "production_environment": false,
10915 "state": "success",
10916 "environment_url": "https://docs-git-docs-deployments-flagon-io.g1t.page",
10917 "log_url": "https://g1t.sh/flagon-io/docs/deployments/dpl_01kq8p2b4d6f8h0k2m4p6r8t0v",
10918 "creator": "syntaqx",
10919 "source": "g1t_page",
10920 "run_id": null,
10921 "run_url": null,
10922 "project": "docs",
10923 "number": 412,
10924 "created_at": "2026-10-08T01:12:44.630Z",
10925 "updated_at": "2026-10-08T01:13:52.101Z"
10926 },
10927 "current": {
10928 "id": "dpl_01kq8p2b4d6f8h0k2m4p6r8t0v",
10929 "environment": "preview",
10930 "ref": "docs-deployments",
10931 "sha": "e2f4a6c8b0d1e3f5a7c9b1d3e5f7a9c1b3d5e7f9",
10932 "task": "deploy",
10933 "description": "Preview of docs-deployments on g1t.page",
10934 "payload": {},
10935 "transient_environment": true,
10936 "production_environment": false,
10937 "state": "success",
10938 "environment_url": "https://docs-git-docs-deployments-flagon-io.g1t.page",
10939 "log_url": "https://g1t.sh/flagon-io/docs/deployments/dpl_01kq8p2b4d6f8h0k2m4p6r8t0v",
10940 "creator": "syntaqx",
10941 "source": "g1t_page",
10942 "run_id": null,
10943 "run_url": null,
10944 "project": "docs",
10945 "number": 412,
10946 "created_at": "2026-10-08T01:12:44.630Z",
10947 "updated_at": "2026-10-08T01:13:52.101Z"
10948 },
10949 "updated_at": "2026-10-08T01:13:52.101Z"
10950 }
10951 },
Merge branch 'worktree-agent-a3abfcce648e87dca'10952 "update_environment": {
10953 "params": {
10954 "owner": "flagon-io",
10955 "name": "g1t",
10956 "environment": "production"
10957 },
10958 "request": {
10959 "wait_timer": 10,
10960 "prevent_self_review": true,
10961 "reviewers": [
10962 {
10963 "type": "User",
10964 "name": "syntaqx"
10965 },
10966 {
10967 "type": "Team",
10968 "name": "deployers"
10969 }
10970 ],
10971 "deployment_branch_policy": {
10972 "protected_branches": true,
10973 "custom_branch_policies": false
10974 }
10975 },
10976 "response": {
10977 "name": "production",
10978 "protection_rules": [
10979 {
10980 "type": "required_reviewers",
10981 "prevent_self_review": true,
10982 "reviewers": [
10983 {
10984 "type": "User",
10985 "reviewer": {
10986 "login": "syntaqx"
10987 }
10988 },
10989 {
10990 "type": "Team",
10991 "reviewer": {
10992 "slug": "deployers"
10993 }
10994 }
10995 ]
10996 },
10997 {
10998 "type": "wait_timer",
10999 "wait_timer": 10
11000 },
11001 {
11002 "type": "branch_policy"
11003 }
11004 ],
11005 "deployment_branch_policy": {
11006 "protected_branches": true,
11007 "custom_branch_policies": false
11008 },
11009 "branch_policies": [],
11010 "can_admins_bypass": true,
11011 "protected": true,
11012 "updated_at": "2026-10-08T09:12:44.103Z",
11013 "updated_by": "syntaqx"
11014 },
11015 "notes": "Fields left out stay as they are. A job with `environment: production` now waits for syntaqx or someone in deployers to approve it, then ten minutes, and runs only on a protected branch."
11016 },
11017 "delete_environment": {
11018 "params": {
11019 "owner": "flagon-io",
11020 "name": "g1t",
11021 "environment": "staging"
11022 },
11023 "response": {
11024 "deleted": true
11025 }
11026 },
11027 "get_pending_deployments": {
11028 "params": {
11029 "owner": "flagon-io",
11030 "name": "g1t",
11031 "id": "run_01kq9b3d5f7h9k1n3q5s7u9w1y"
11032 },
11033 "response": [
11034 {
11035 "environment": {
11036 "name": "production"
11037 },
11038 "state": "waiting",
11039 "needs_review": true,
11040 "wait_until": "2026-10-08T09:31:02.551Z",
11041 "current_user_can_approve": true,
11042 "reviewers": [
11043 {
11044 "type": "User",
11045 "reviewer": {
11046 "login": "syntaqx"
11047 }
11048 },
11049 {
11050 "type": "Team",
11051 "reviewer": {
11052 "slug": "deployers"
11053 }
11054 }
11055 ],
11056 "jobs": [
11057 "Deploy the core services"
11058 ],
11059 "reviewed_by": null,
11060 "comment": null,
11061 "reviewed_at": null
11062 }
11063 ]
11064 },
11065 "review_pending_deployments": {
11066 "params": {
11067 "owner": "flagon-io",
11068 "name": "g1t",
11069 "id": "run_01kq9b3d5f7h9k1n3q5s7u9w1y"
11070 },
11071 "request": {
11072 "environment_names": [
11073 "production"
11074 ],
11075 "state": "approved",
11076 "comment": "Release notes checked."
11077 },
11078 "response": [
11079 {
11080 "environment": {
11081 "name": "production"
11082 },
11083 "state": "approved",
11084 "needs_review": true,
11085 "wait_until": "2026-10-08T09:31:02.551Z",
11086 "current_user_can_approve": false,
11087 "reviewers": [
11088 {
11089 "type": "User",
11090 "reviewer": {
11091 "login": "syntaqx"
11092 }
11093 },
11094 {
11095 "type": "Team",
11096 "reviewer": {
11097 "slug": "deployers"
11098 }
11099 }
11100 ],
11101 "jobs": [
11102 "Deploy the core services"
11103 ],
11104 "reviewed_by": "syntaqx",
11105 "comment": "Release notes checked.",
11106 "reviewed_at": "2026-10-08T09:22:15.871Z"
11107 }
11108 ],
11109 "notes": "The jobs still wait for the wait timer, until `wait_until`, unless an admin approved past the rules."
11110 },
11111 "approve_workflow_run": {
11112 "params": {
11113 "owner": "flagon-io",
11114 "name": "g1t",
11115 "id": "run_01kq9a2c4e6g8j0m2p4r6t8v0x"
11116 },
11117 "response": {
11118 "id": "run_01kq9a2c4e6g8j0m2p4r6t8v0x",
11119 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
11120 "path": ".g1t/workflows/ci.yml",
11121 "name": "CI",
11122 "title": "Fix a typo in the README",
11123 "number": 41,
11124 "attempt": 1,
11125 "event": "pull_request",
11126 "ref": "refs/pull/88/merge",
11127 "sha": "4c1e7a9b2d5f8e0a3c6b9d2f5a8c1e4b7d0f3a6c",
11128 "pull": 88,
11129 "status": "queued",
11130 "conclusion": null,
11131 "error": null,
11132 "actor": "octo-fan",
11133 "created_at": "2026-10-08T08:02:11.004Z",
11134 "started_at": null,
11135 "finished_at": null
11136 }
11137 },
11138 "get_workflow_permissions": {
11139 "params": {
11140 "owner": "flagon-io",
11141 "name": "g1t"
11142 },
11143 "response": {
11144 "default_workflow_permissions": "read",
11145 "default_chosen": true,
11146 "max_workflow_permissions": "write",
11147 "can_approve_pull_request_reviews": false
11148 }
11149 },
11150 "set_workflow_permissions": {
11151 "params": {
11152 "owner": "flagon-io",
11153 "name": "g1t"
11154 },
11155 "request": {
11156 "default_workflow_permissions": "write"
11157 },
11158 "response": {
11159 "default_workflow_permissions": "write",
11160 "default_chosen": true,
11161 "max_workflow_permissions": "write",
11162 "can_approve_pull_request_reviews": false
11163 }
11164 },
11165 "get_fork_pr_approval": {
11166 "params": {
11167 "owner": "flagon-io",
11168 "name": "g1t"
11169 },
11170 "response": {
11171 "approval_policy": "outside_contributors"
11172 }
11173 },
11174 "set_fork_pr_approval": {
11175 "params": {
11176 "owner": "flagon-io",
11177 "name": "g1t"
11178 },
11179 "request": {
11180 "approval_policy": "all_external_contributors"
11181 },
11182 "response": {
11183 "approval_policy": "all_external_contributors"
11184 }
11185 },
Merge Actions: cross-repo workflows and actions, release and deployment triggers, step timeouts11186 "get_actions_access": {
11187 "params": {
11188 "owner": "flagon-io",
11189 "name": "shared-workflows"
11190 },
11191 "response": {
11192 "access_level": "none"
11193 }
11194 },
11195 "set_actions_access": {
11196 "params": {
11197 "owner": "flagon-io",
11198 "name": "shared-workflows"
11199 },
11200 "request": {
11201 "access_level": "organization"
11202 },
11203 "response": {
11204 "access_level": "organization"
11205 }
11206 },
Merge branch 'worktree-agent-a3abfcce648e87dca'11207 "create_repository_dispatch": {
11208 "params": {
11209 "owner": "flagon-io",
11210 "name": "g1t"
11211 },
11212 "request": {
11213 "event_type": "docs-published",
11214 "client_payload": {
11215 "version": "2026.10.08"
11216 }
11217 },
11218 "response": {
11219 "runs": 1
11220 }
11221 },
11222 "get_workspace_workflow_permissions": {
11223 "params": {
11224 "workspace": "flagon-io"
11225 },
11226 "response": {
11227 "default_workflow_permissions": "read",
11228 "max_workflow_permissions": "write",
11229 "can_approve_pull_request_reviews": false
11230 }
11231 },
11232 "set_workspace_workflow_permissions": {
11233 "params": {
11234 "workspace": "flagon-io"
11235 },
11236 "request": {
11237 "max_workflow_permissions": "read"
11238 },
11239 "response": {
11240 "default_workflow_permissions": "read",
11241 "max_workflow_permissions": "read",
11242 "can_approve_pull_request_reviews": false
11243 },
11244 "notes": "A maximum of read holds every repository's default to read-only, and makes the workspace's default read too."
11245 },
Merge GitHub pull request #8 (claude/cool-newton-7nm8r9): Docker deployments on g1t.page behind a switch that stays off until Cloudflare's container APIs are checked live, workflows a workspace manages in its repositories, tarball and zipball downloads, refs/pull/* kept to g1t alone, framework detection for g1t.page builds, and a workflow's event payload matching GitHub's.11246 "list_workspace_managed_workflows": {
11247 "params": {
11248 "workspace": "flagon-io"
11249 },
11250 "response": {
11251 "total_count": 1,
11252 "managed_workflows": [
11253 {
11254 "name": "security-scan",
11255 "path": "managed/security-scan.yml",
11256 "workflow_name": "Security scan",
11257 "source": "flagon-io/policies/.g1t/workflows/security-scan.yml@main",
11258 "source_sha": "4f1c2a9e0b7d3c5a8e6f1b2d4c7a9e0f3b5d8c1a",
11259 "source_private": false,
11260 "mode": "required",
11261 "repositories": [
11262 "*",
11263 "!sandbox-*"
11264 ],
11265 "visibility": "all",
11266 "content": "name: Security scan\non: [push, pull_request]\njobs:\n scan:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - run: ./scripts/scan.sh\n",
11267 "created_at": "2026-10-12T09:30:00Z",
11268 "updated_at": "2026-10-12T09:30:00Z",
11269 "updated_by": "ada"
11270 }
11271 ]
11272 }
11273 },
11274 "create_workspace_managed_workflow": {
11275 "params": {
11276 "workspace": "flagon-io"
11277 },
11278 "request": {
11279 "name": "security-scan",
11280 "source": "flagon-io/policies/.g1t/workflows/security-scan.yml@main",
11281 "mode": "required",
11282 "repositories": [
11283 "*",
11284 "!sandbox-*"
11285 ]
11286 },
11287 "response": {
11288 "name": "security-scan",
11289 "path": "managed/security-scan.yml",
11290 "workflow_name": "Security scan",
11291 "source": "flagon-io/policies/.g1t/workflows/security-scan.yml@main",
11292 "source_sha": "4f1c2a9e0b7d3c5a8e6f1b2d4c7a9e0f3b5d8c1a",
11293 "source_private": false,
11294 "mode": "required",
11295 "repositories": [
11296 "*",
11297 "!sandbox-*"
11298 ],
11299 "visibility": "all",
11300 "content": "name: Security scan\non: [push, pull_request]\njobs:\n scan:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - run: ./scripts/scan.sh\n",
11301 "created_at": "2026-10-12T09:30:00Z",
11302 "updated_at": "2026-10-12T09:30:00Z",
11303 "updated_by": "ada"
11304 },
11305 "notes": "g1t copies the source when you save it, and that copy runs in each repository the workflow targets, as the repository's own workflow, with its token and secrets. A source in a private repository runs in private repositories only: give visibility private."
11306 },
11307 "update_workspace_managed_workflow": {
11308 "params": {
11309 "workspace": "flagon-io",
11310 "workflow": "security-scan"
11311 },
11312 "request": {
11313 "refresh": true
11314 },
11315 "response": {
11316 "name": "security-scan",
11317 "path": "managed/security-scan.yml",
11318 "workflow_name": "Security scan",
11319 "source": "flagon-io/policies/.g1t/workflows/security-scan.yml@main",
11320 "source_sha": "4f1c2a9e0b7d3c5a8e6f1b2d4c7a9e0f3b5d8c1a",
11321 "source_private": false,
11322 "mode": "required",
11323 "repositories": [
11324 "*",
11325 "!sandbox-*"
11326 ],
11327 "visibility": "all",
11328 "content": "name: Security scan\non: [push, pull_request]\njobs:\n scan:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - run: ./scripts/scan.sh\n",
11329 "created_at": "2026-10-12T09:30:00Z",
11330 "updated_at": "2026-10-12T09:30:00Z",
11331 "updated_by": "ada"
11332 },
11333 "notes": "refresh copies the source again at the commit its ref names now. Fields left out stay as they are."
11334 },
11335 "delete_workspace_managed_workflow": {
11336 "params": {
11337 "workspace": "flagon-io",
11338 "workflow": "security-scan"
11339 },
11340 "response": {
11341 "deleted": true
11342 }
11343 },
API and MCP for a workspace's personal access token rules, members' tokens and approvals11344 "get_token_policy": {
11345 "params": {
11346 "workspace": "flagon-io"
11347 },
11348 "response": {
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11349 "allow_tokens_for_all_workspaces": true,
11350 "allow_tokens_for_this_workspace": true,
API and MCP for a workspace's personal access token rules, members' tokens and approvals11351 "require_approval": true,
11352 "max_lifetime_days": null,
11353 "forbid_no_expiry": false,
11354 "updated_by": null,
11355 "updated_at": null
11356 }
11357 },
11358 "set_token_policy": {
11359 "params": {
11360 "workspace": "flagon-io"
11361 },
11362 "request": {
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11363 "allow_tokens_for_all_workspaces": false,
API and MCP for a workspace's personal access token rules, members' tokens and approvals11364 "max_lifetime_days": 90
11365 },
11366 "response": {
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11367 "allow_tokens_for_all_workspaces": false,
11368 "allow_tokens_for_this_workspace": true,
API and MCP for a workspace's personal access token rules, members' tokens and approvals11369 "require_approval": true,
11370 "max_lifetime_days": 90,
11371 "forbid_no_expiry": false,
11372 "updated_by": "ada",
11373 "updated_at": "2026-10-08T09:30:00.000Z"
11374 },
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11375 "notes": "From each token's next request, tokens made for all of a member's workspaces no longer reach this one (tokens made for it alone still do), and neither does a token that lasts longer than 90 days or never expires. They keep working everywhere else."
API and MCP for a workspace's personal access token rules, members' tokens and approvals11376 },
11377 "list_member_tokens": {
11378 "params": {
11379 "workspace": "flagon-io"
11380 },
11381 "response": [
11382 {
11383 "id": "tok_01HZX3K2M9V7Q4N8B6D5C3A2E1",
11384 "name": "release-bot",
11385 "owner": "ada",
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11386 "description": "Publishes releases from CI",
API and MCP for a workspace's personal access token rules, members' tokens and approvals11387 "created_at": "2026-10-08T09:00:00.000Z",
11388 "created_by": null,
11389 "last_used_at": null,
11390 "expires_at": "2026-11-07T09:00:00.000Z",
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11391 "scopes": ["repo:read", "code:write"],
11392 "workspace": "flagon-io",
API and MCP for a workspace's personal access token rules, members' tokens and approvals11393 "repository_selection": "selected",
11394 "repositories": ["flagon-io/hello"],
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11395 "permissions": { "code": "write", "repo": "read" },
API and MCP for a workspace's personal access token rules, members' tokens and approvals11396 "status": "pending",
11397 "review_reason": null,
11398 "reaches": false,
11399 "blocked_by": "pending approval"
11400 }
11401 ]
11402 },
11403 "list_token_requests": {
11404 "params": {
11405 "workspace": "flagon-io"
11406 },
11407 "response": [
11408 {
11409 "id": "tok_01HZX3K2M9V7Q4N8B6D5C3A2E1",
11410 "name": "release-bot",
11411 "owner": "ada",
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11412 "description": "Publishes releases from CI",
API and MCP for a workspace's personal access token rules, members' tokens and approvals11413 "created_at": "2026-10-08T09:00:00.000Z",
11414 "created_by": null,
11415 "last_used_at": null,
11416 "expires_at": "2026-11-07T09:00:00.000Z",
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11417 "scopes": ["repo:read", "code:write"],
11418 "workspace": "flagon-io",
API and MCP for a workspace's personal access token rules, members' tokens and approvals11419 "repository_selection": "selected",
11420 "repositories": ["flagon-io/hello"],
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11421 "permissions": { "code": "write", "repo": "read" },
API and MCP for a workspace's personal access token rules, members' tokens and approvals11422 "status": "pending",
11423 "review_reason": null,
11424 "reaches": false,
11425 "blocked_by": "pending approval"
11426 }
11427 ]
11428 },
11429 "review_token_request": {
11430 "params": {
11431 "workspace": "flagon-io",
11432 "id": "tok_01HZX3K2M9V7Q4N8B6D5C3A2E1"
11433 },
11434 "request": {
11435 "decision": "approve"
11436 },
11437 "response": {
11438 "id": "tok_01HZX3K2M9V7Q4N8B6D5C3A2E1",
11439 "name": "release-bot",
11440 "owner": "ada",
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11441 "description": "Publishes releases from CI",
API and MCP for a workspace's personal access token rules, members' tokens and approvals11442 "created_at": "2026-10-08T09:00:00.000Z",
11443 "created_by": null,
11444 "last_used_at": null,
11445 "expires_at": "2026-11-07T09:00:00.000Z",
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11446 "scopes": ["repo:read", "code:write"],
11447 "workspace": "flagon-io",
API and MCP for a workspace's personal access token rules, members' tokens and approvals11448 "repository_selection": "selected",
11449 "repositories": ["flagon-io/hello"],
One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers11450 "permissions": { "code": "write", "repo": "read" },
API and MCP for a workspace's personal access token rules, members' tokens and approvals11451 "status": "active",
11452 "review_reason": null,
11453 "reaches": true,
11454 "blocked_by": null
11455 },
11456 "notes": "The token's owner hears of it in their inbox. A denied token reaches public repositories only."
11457 },
11458 "revoke_member_token": {
11459 "params": {
11460 "workspace": "flagon-io",
11461 "id": "tok_01HZX3K2M9V7Q4N8B6D5C3A2E1"
11462 },
11463 "request": {
11464 "reason": "Rotated after the laptop was lost"
11465 },
11466 "response": {
11467 "revoked": true
11468 }
11469 },
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb9711470 "get_languages": {
11471 "response": {
11472 "head": "9f3c2a1b7e5d4c3b2a19f8e7d6c5b4a39281706f",
11473 "commit": "9f3c2a1b7e5d4c3b2a19f8e7d6c5b4a39281706f",
11474 "computed_at": "2026-10-07T09:14:03.000Z",
11475 "pending": false,
11476 "partial": false,
11477 "languages": [
11478 {
11479 "name": "Rust",
11480 "color": "#dea584",
11481 "bytes": 184213,
11482 "percent": 71.4
11483 },
11484 {
11485 "name": "TypeScript",
11486 "color": "#3178c6",
11487 "bytes": 61022,
11488 "percent": 23.7
11489 },
11490 {
11491 "name": "Shell",
11492 "color": "#89e051",
11493 "bytes": 12650,
11494 "percent": 4.9
11495 }
11496 ]
11497 },
11498 "notes": "While `pending` is true, `languages` is empty: the default branch is being read for the first time. When `commit` is not `head`, the answer is for an older commit while the newer one is read."
11499 },
11500 "list_contributors": {
11501 "response": {
11502 "head": "9f3c2a1b7e5d4c3b2a19f8e7d6c5b4a39281706f",
11503 "commit": "9f3c2a1b7e5d4c3b2a19f8e7d6c5b4a39281706f",
11504 "computed_at": "2026-10-07T09:14:03.000Z",
11505 "pending": false,
11506 "partial": false,
11507 "total": 3,
11508 "commits": 126,
11509 "contributors": [
11510 {
11511 "kind": "g1t",
11512 "name": "g1t",
11513 "username": null,
11514 "avatar": null,
11515 "commits": 71,
11516 "first_at": "2026-09-29T08:00:00.000Z",
11517 "last_at": "2026-10-07T08:41:00.000Z",
11518 "weeks": [
11519 {
11520 "week": "2026-09-28",
11521 "commits": 40
11522 },
11523 {
11524 "week": "2026-10-05",
11525 "commits": 31
11526 }
11527 ]
11528 },
11529 {
11530 "kind": "user",
11531 "name": "ada",
11532 "username": "ada",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar11533 "display_username": "Ada",
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb9711534 "avatar": "5f2b8c1d9e7a3f6b4c0d2e8a1b9c7d5e3f1a0b2c4d6e8f0a1b3c5d7e9f0a2b4c",
11535 "commits": 52,
11536 "first_at": "2026-09-28T14:11:52.000Z",
11537 "last_at": "2026-10-06T16:02:11.000Z",
11538 "weeks": [
11539 {
11540 "week": "2026-09-28",
11541 "commits": 30
11542 },
11543 {
11544 "week": "2026-10-05",
11545 "commits": 22
11546 }
11547 ]
11548 },
11549 {
11550 "kind": "author",
11551 "name": "Sam Okafor",
11552 "username": null,
11553 "avatar": null,
11554 "commits": 3,
11555 "first_at": "2026-10-02T11:20:00.000Z",
11556 "last_at": "2026-10-03T09:05:00.000Z",
11557 "weeks": [
11558 {
11559 "week": "2026-09-28",
11560 "commits": 3
11561 }
11562 ]
11563 }
11564 ],
11565 "weeks": [
11566 {
11567 "week": "2026-09-28",
11568 "commits": 73
11569 },
11570 {
11571 "week": "2026-10-05",
11572 "commits": 53
11573 }
11574 ]
11575 },
11576 "notes": "Read from the newest 3,000 commits of the default branch. A person's addresses count as one when they confirmed them on their account; their noreply address counts too."
11577 },
11578 "get_license": {
11579 "response": {
11580 "spdx_id": "MIT",
11581 "name": "MIT License",
11582 "path": "LICENSE"
11583 }
11584 },
11585 "list_stargazers": {
11586 "query": {
11587 "page": 1
11588 },
11589 "response": [
11590 {
11591 "username": "ada",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar11592 "display_username": "Ada",
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb9711593 "avatar": null,
11594 "starred_at": "2026-10-06T18:30:00.000Z"
11595 },
11596 {
11597 "username": "sam",
Cards you act on in chat; agents comment and review as themselves; names shown cleanly; commits on the calendar11598 "display_username": "sam",
Merge branch 'main' into worktree-agent-a69aeabc4b0deeb9711599 "avatar": null,
11600 "starred_at": "2026-10-02T09:12:00.000Z"
11601 }
11602 ]
11603 },
11604 "list_starred": {
11605 "response": [
11606 {
11607 "repo": {
11608 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
11609 "namespace": "flagon-io",
11610 "name": "hello",
11611 "description": "A tiny service that says hello.",
11612 "is_private": false,
11613 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
11614 "default_branch": "main",
11615 "fork_of": null,
11616 "protected": true,
11617 "created_at": "2026-09-28T14:11:52.640Z",
11618 "topics": [
11619 "cli"
11620 ],
11621 "website": "https://hello.g1t.page",
11622 "archived_at": null
11623 },
11624 "starred_at": "2026-10-06T18:30:00.000Z",
11625 "stars": 12
11626 }
11627 ]
11628 },
11629 "check_starred": {
11630 "response": {
11631 "starred": true,
11632 "stars": 12
11633 }
11634 },
11635 "star_repo": {
11636 "response": {
11637 "starred": true,
11638 "stars": 13
11639 }
11640 },
11641 "unstar_repo": {
11642 "response": {
11643 "starred": false,
11644 "stars": 12
11645 }
11646 },
11647 "list_releases": {
11648 "response": [
11649 {
11650 "id": "rel_01m4a2b7c9d3e5f7g9h1j3k5m7",
11651 "tag_name": "v1.2.0",
11652 "target": "9f3c2a1b7e5d4c3b2a19f8e7d6c5b4a39281706f",
11653 "name": "Greetings by name",
11654 "body": "## What changed\n\n- `hello` greets the caller by name (#12)\n- Faster start-up (#15)",
11655 "draft": false,
11656 "prerelease": false,
11657 "author": "ada",
11658 "created_at": "2026-10-06T16:02:11.000Z",
11659 "published_at": "2026-10-06T16:02:11.000Z",
11660 "latest": true
11661 },
11662 {
11663 "id": "rel_01m3x8q2w4e6r8t0y2u4i6o8p0",
11664 "tag_name": "v1.1.0",
11665 "target": "3b2a19f8e7d6c5b4a392817069f3c2a1b7e5d4c3",
11666 "name": "First release",
11667 "body": "The first release.",
11668 "draft": false,
11669 "prerelease": false,
11670 "author": "ada",
11671 "created_at": "2026-09-30T10:00:00.000Z",
11672 "published_at": "2026-09-30T10:00:00.000Z",
11673 "latest": false
11674 }
11675 ],
11676 "notes": "Drafts are listed only to those with the Write role; their `published_at` is null."
11677 },
11678 "get_latest_release": {
11679 "response": {
11680 "id": "rel_01m4a2b7c9d3e5f7g9h1j3k5m7",
11681 "tag_name": "v1.2.0",
11682 "target": "9f3c2a1b7e5d4c3b2a19f8e7d6c5b4a39281706f",
11683 "name": "Greetings by name",
11684 "body": "## What changed\n\n- `hello` greets the caller by name (#12)\n- Faster start-up (#15)",
11685 "draft": false,
11686 "prerelease": false,
11687 "author": "ada",
11688 "created_at": "2026-10-06T16:02:11.000Z",
11689 "published_at": "2026-10-06T16:02:11.000Z",
11690 "latest": true
11691 }
11692 },
11693 "get_release_by_tag": {
11694 "params": {
11695 "tag": "v1.2.0"
11696 },
11697 "response": {
11698 "id": "rel_01m4a2b7c9d3e5f7g9h1j3k5m7",
11699 "tag_name": "v1.2.0",
11700 "target": "9f3c2a1b7e5d4c3b2a19f8e7d6c5b4a39281706f",
11701 "name": "Greetings by name",
11702 "body": "## What changed\n\n- `hello` greets the caller by name (#12)\n- Faster start-up (#15)",
11703 "draft": false,
11704 "prerelease": false,
11705 "author": "ada",
11706 "created_at": "2026-10-06T16:02:11.000Z",
11707 "published_at": "2026-10-06T16:02:11.000Z",
11708 "latest": true
11709 }
11710 },
11711 "get_release": {
11712 "params": {
11713 "id": "rel_01m4a2b7c9d3e5f7g9h1j3k5m7"
11714 },
11715 "response": {
11716 "id": "rel_01m4a2b7c9d3e5f7g9h1j3k5m7",
11717 "tag_name": "v1.2.0",
11718 "target": "9f3c2a1b7e5d4c3b2a19f8e7d6c5b4a39281706f",
11719 "name": "Greetings by name",
11720 "body": "## What changed\n\n- `hello` greets the caller by name (#12)\n- Faster start-up (#15)",
11721 "draft": false,
11722 "prerelease": false,
11723 "author": "ada",
11724 "created_at": "2026-10-06T16:02:11.000Z",
11725 "published_at": "2026-10-06T16:02:11.000Z",
11726 "latest": true
11727 }
11728 },
11729 "create_release": {
11730 "request": {
11731 "tag_name": "v1.2.0",
11732 "target": "main",
11733 "release_name": "Greetings by name",
11734 "body": "## What changed\n\n- `hello` greets the caller by name (#12)\n- Faster start-up (#15)",
11735 "draft": false,
11736 "prerelease": false
11737 },
11738 "response": {
11739 "id": "rel_01m4a2b7c9d3e5f7g9h1j3k5m7",
11740 "tag_name": "v1.2.0",
11741 "target": "9f3c2a1b7e5d4c3b2a19f8e7d6c5b4a39281706f",
11742 "name": "Greetings by name",
11743 "body": "## What changed\n\n- `hello` greets the caller by name (#12)\n- Faster start-up (#15)",
11744 "draft": false,
11745 "prerelease": false,
11746 "author": "ada",
11747 "created_at": "2026-10-06T16:02:11.000Z",
11748 "published_at": "2026-10-06T16:02:11.000Z",
11749 "latest": true
11750 },
11751 "notes": "A tag that already exists is released as it is, and `target` is ignored. One release per tag: releasing a tag again is refused with `conflict`."
11752 },
11753 "update_release": {
11754 "params": {
11755 "id": "rel_01m4a2b7c9d3e5f7g9h1j3k5m7"
11756 },
11757 "request": {
11758 "body": "## What changed\n\n- `hello` greets the caller by name (#12)\n- Faster start-up (#15)\n- Docs for `--name`"
11759 },
11760 "response": {
11761 "id": "rel_01m4a2b7c9d3e5f7g9h1j3k5m7",
11762 "tag_name": "v1.2.0",
11763 "target": "9f3c2a1b7e5d4c3b2a19f8e7d6c5b4a39281706f",
11764 "name": "Greetings by name",
11765 "body": "## What changed\n\n- `hello` greets the caller by name (#12)\n- Faster start-up (#15)\n- Docs for `--name`",
11766 "draft": false,
11767 "prerelease": false,
11768 "author": "ada",
11769 "created_at": "2026-10-06T16:02:11.000Z",
11770 "published_at": "2026-10-06T16:02:11.000Z",
11771 "latest": true
11772 }
11773 },
11774 "delete_release": {
11775 "params": {
11776 "id": "rel_01m4a2b7c9d3e5f7g9h1j3k5m7"
11777 },
11778 "response": {
11779 "deleted": true
11780 }
Merge checks: statuses and check runs on every commit11781 },
11782 "create_commit_status": {
11783 "params": {
11784 "owner": "flagon-io",
11785 "name": "hello",
11786 "sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e"
11787 },
11788 "request": {
11789 "state": "success",
11790 "context": "ci/build",
11791 "description": "Build #4821 passed",
11792 "target_url": "https://ci.example.com/builds/4821"
11793 },
11794 "response": {
11795 "context": "ci/build",
11796 "state": "success",
11797 "description": "Build #4821 passed",
11798 "target_url": "https://ci.example.com/builds/4821",
11799 "updated_at": "2026-10-07T14:03:02.118Z",
11800 "source": "api"
11801 },
11802 "notes": "Setting a context again replaces its status on that commit. A status counts as a check: a required check named `ci/build`, in branch protection or a ruleset's `required_status_checks`, is met by it, and a ruleset check pinned to the `api` integration only by statuses and check runs reported through the API. See the [Checks guide](/guides/checks/)."
11803 },
11804 "list_commit_statuses": {
11805 "params": {
11806 "owner": "flagon-io",
11807 "name": "hello",
11808 "ref": "main"
11809 },
11810 "response": [
11811 {
11812 "context": "ci/build",
11813 "state": "success",
11814 "description": "Build #4821 passed",
11815 "target_url": "https://ci.example.com/builds/4821",
11816 "updated_at": "2026-10-07T14:03:02.118Z",
11817 "source": "api"
11818 }
11819 ]
11820 },
11821 "get_combined_status": {
11822 "params": {
11823 "owner": "flagon-io",
11824 "name": "hello",
11825 "ref": "main"
11826 },
11827 "response": {
11828 "state": "success",
11829 "sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
11830 "total_count": 1,
11831 "statuses": [
11832 {
11833 "context": "ci/build",
11834 "state": "success",
11835 "description": "Build #4821 passed",
11836 "target_url": "https://ci.example.com/builds/4821",
11837 "updated_at": "2026-10-07T14:03:02.118Z",
11838 "source": "api"
11839 }
11840 ]
11841 }
11842 },
11843 "create_check_run": {
11844 "params": {
11845 "owner": "flagon-io",
11846 "name": "hello"
11847 },
11848 "request": {
11849 "name": "lint",
11850 "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
11851 "status": "completed",
11852 "conclusion": "failure",
11853 "details_url": "https://ci.example.com/builds/4821",
11854 "external_id": "4821",
11855 "output": {
11856 "title": "2 problems",
11857 "summary": "**2** problems in 1 file.",
11858 "annotations": [
11859 {
11860 "path": "src/parse.rs",
11861 "start_line": 42,
11862 "end_line": 42,
11863 "annotation_level": "warning",
11864 "message": "unused variable: `depth`"
11865 }
11866 ]
11867 },
11868 "actions": [
11869 {
11870 "label": "Fix this",
11871 "description": "Apply the suggested fixes",
11872 "identifier": "fix"
11873 }
11874 ]
11875 },
11876 "response": {
11877 "id": "cr_01kq4b7c8d9e0f1g2h3j4k5m6n",
11878 "name": "lint",
11879 "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
11880 "status": "completed",
11881 "conclusion": "failure",
11882 "started_at": "2026-10-07T14:02:11.000Z",
11883 "completed_at": "2026-10-07T14:02:36.000Z",
11884 "details_url": "https://ci.example.com/builds/4821",
11885 "external_id": "4821",
11886 "html_url": "https://g1t.sh/flagon-io/hello/checks/cr_01kq4b7c8d9e0f1g2h3j4k5m6n",
11887 "output": {
11888 "title": "2 problems",
11889 "summary": "**2** problems in 1 file.",
11890 "text": null,
11891 "annotations_count": 2
11892 },
11893 "actions": [
11894 {
11895 "label": "Fix this",
11896 "description": "Apply the suggested fixes",
11897 "identifier": "fix"
11898 }
11899 ],
11900 "check_suite": {
11901 "id": "cs_01kq4b7c8d9e0f1g2h3j4k5m6p"
11902 },
11903 "app": {
11904 "slug": "buildkite",
11905 "name": "Buildkite"
11906 },
11907 "created_at": "2026-10-07T14:02:11.318Z"
11908 },
11909 "notes": "Start a run as `queued` or `in_progress` and complete it later with [`update_check_run`](/reference/api/checks/update-check-run/), or create it completed. `app` names who reports it; by default it is your token's name, and a g1t Actions job's `G1T_TOKEN` reports as g1t Actions. Each reporter's runs on a commit form one check suite. The run also stands as a status of its name, so a required check `lint` is met by it: `success`, `neutral` and `skipped` pass, any other conclusion fails. See the [Checks guide](/guides/checks/)."
11910 },
11911 "update_check_run": {
11912 "params": {
11913 "owner": "flagon-io",
11914 "name": "hello",
11915 "id": "cr_01kq4b7c8d9e0f1g2h3j4k5m6n"
11916 },
11917 "request": {
11918 "conclusion": "success",
11919 "output": {
11920 "title": "No problems",
11921 "summary": "All clear."
11922 }
11923 },
11924 "response": {
11925 "id": "cr_01kq4b7c8d9e0f1g2h3j4k5m6n",
11926 "name": "lint",
11927 "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
11928 "status": "completed",
11929 "conclusion": "success",
11930 "started_at": "2026-10-07T14:02:11.000Z",
11931 "completed_at": "2026-10-07T14:02:36.000Z",
11932 "details_url": "https://ci.example.com/builds/4821",
11933 "external_id": "4821",
11934 "html_url": "https://g1t.sh/flagon-io/hello/checks/cr_01kq4b7c8d9e0f1g2h3j4k5m6n",
11935 "output": {
11936 "title": "No problems",
11937 "summary": "All clear.",
11938 "text": null,
11939 "annotations_count": 2
11940 },
11941 "actions": [
11942 {
11943 "label": "Fix this",
11944 "description": "Apply the suggested fixes",
11945 "identifier": "fix"
11946 }
11947 ],
11948 "check_suite": {
11949 "id": "cs_01kq4b7c8d9e0f1g2h3j4k5m6p"
11950 },
11951 "app": {
11952 "slug": "buildkite",
11953 "name": "Buildkite"
11954 },
11955 "created_at": "2026-10-07T14:02:11.318Z"
11956 },
11957 "notes": "Annotations given here are added to the ones the run has, at most 50 a request and 1000 in all."
11958 },
11959 "get_check_run": {
11960 "params": {
11961 "owner": "flagon-io",
11962 "name": "hello",
11963 "id": "job_01kq4b6a7b8c9d0e1f2g3h4j5k"
11964 },
11965 "response": {
11966 "id": "job_01kq4b6a7b8c9d0e1f2g3h4j5k",
11967 "name": "Test",
11968 "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
11969 "status": "completed",
11970 "conclusion": "success",
11971 "started_at": "2026-10-07T14:01:02.000Z",
11972 "completed_at": "2026-10-07T14:01:27.000Z",
11973 "details_url": "https://g1t.sh/flagon-io/hello/actions/runs/run_01kq4b6a7b8c9d0e1f2g3h4j5m?job=job_01kq4b6a7b8c9d0e1f2g3h4j5k",
11974 "external_id": null,
11975 "html_url": "https://g1t.sh/flagon-io/hello/actions/runs/run_01kq4b6a7b8c9d0e1f2g3h4j5m?job=job_01kq4b6a7b8c9d0e1f2g3h4j5k",
11976 "output": {
11977 "title": null,
11978 "summary": null,
11979 "text": null,
11980 "annotations_count": 0
11981 },
11982 "actions": [],
11983 "check_suite": {
11984 "id": "run_01kq4b6a7b8c9d0e1f2g3h4j5m"
11985 },
11986 "app": {
11987 "slug": "actions",
11988 "name": "g1t Actions"
11989 },
11990 "workflow": {
11991 "run_id": "run_01kq4b6a7b8c9d0e1f2g3h4j5m",
11992 "name": "CI",
11993 "event": "push"
11994 },
11995 "created_at": "2026-10-07T14:01:00.512Z"
11996 }
11997 },
11998 "list_check_run_annotations": {
11999 "params": {
12000 "owner": "flagon-io",
12001 "name": "hello",
12002 "id": "cr_01kq4b7c8d9e0f1g2h3j4k5m6n"
12003 },
12004 "response": [
12005 {
12006 "path": "src/parse.rs",
12007 "start_line": 42,
12008 "end_line": 42,
12009 "start_column": 9,
12010 "end_column": 14,
12011 "annotation_level": "warning",
12012 "message": "unused variable: `depth`",
12013 "title": "unused_variables",
12014 "raw_details": "#[warn(unused_variables)] on by default"
12015 }
12016 ]
12017 },
12018 "rerequest_check_run": {
12019 "params": {
12020 "owner": "flagon-io",
12021 "name": "hello",
12022 "id": "cr_01kq4b7c8d9e0f1g2h3j4k5m6n"
12023 },
12024 "response": {
12025 "rerequested": true
12026 }
12027 },
12028 "list_check_runs_for_ref": {
12029 "params": {
12030 "owner": "flagon-io",
12031 "name": "hello",
12032 "ref": "main"
12033 },
12034 "query": {
12035 "filter": "latest"
12036 },
12037 "response": {
12038 "total_count": 2,
12039 "check_runs": [
12040 {
12041 "id": "cr_01kq4b7c8d9e0f1g2h3j4k5m6n",
12042 "name": "lint",
12043 "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
12044 "status": "completed",
12045 "conclusion": "failure",
12046 "started_at": "2026-10-07T14:02:11.000Z",
12047 "completed_at": "2026-10-07T14:02:36.000Z",
12048 "details_url": "https://ci.example.com/builds/4821",
12049 "external_id": "4821",
12050 "html_url": "https://g1t.sh/flagon-io/hello/checks/cr_01kq4b7c8d9e0f1g2h3j4k5m6n",
12051 "output": {
12052 "title": "2 problems",
12053 "summary": "**2** problems in 1 file.",
12054 "text": null,
12055 "annotations_count": 2
12056 },
12057 "actions": [
12058 {
12059 "label": "Fix this",
12060 "description": "Apply the suggested fixes",
12061 "identifier": "fix"
12062 }
12063 ],
12064 "check_suite": {
12065 "id": "cs_01kq4b7c8d9e0f1g2h3j4k5m6p"
12066 },
12067 "app": {
12068 "slug": "buildkite",
12069 "name": "Buildkite"
12070 },
12071 "created_at": "2026-10-07T14:02:11.318Z"
12072 },
12073 {
12074 "id": "job_01kq4b6a7b8c9d0e1f2g3h4j5k",
12075 "name": "Test",
12076 "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
12077 "status": "completed",
12078 "conclusion": "success",
12079 "started_at": "2026-10-07T14:01:02.000Z",
12080 "completed_at": "2026-10-07T14:01:27.000Z",
12081 "details_url": "https://g1t.sh/flagon-io/hello/actions/runs/run_01kq4b6a7b8c9d0e1f2g3h4j5m?job=job_01kq4b6a7b8c9d0e1f2g3h4j5k",
12082 "external_id": null,
12083 "html_url": "https://g1t.sh/flagon-io/hello/actions/runs/run_01kq4b6a7b8c9d0e1f2g3h4j5m?job=job_01kq4b6a7b8c9d0e1f2g3h4j5k",
12084 "output": {
12085 "title": null,
12086 "summary": null,
12087 "text": null,
12088 "annotations_count": 0
12089 },
12090 "actions": [],
12091 "check_suite": {
12092 "id": "run_01kq4b6a7b8c9d0e1f2g3h4j5m"
12093 },
12094 "app": {
12095 "slug": "actions",
12096 "name": "g1t Actions"
12097 },
12098 "workflow": {
12099 "run_id": "run_01kq4b6a7b8c9d0e1f2g3h4j5m",
12100 "name": "CI",
12101 "event": "push"
12102 },
12103 "created_at": "2026-10-07T14:01:00.512Z"
12104 }
12105 ]
12106 }
12107 },
12108 "list_check_suites_for_ref": {
12109 "params": {
12110 "owner": "flagon-io",
12111 "name": "hello",
12112 "ref": "main"
12113 },
12114 "response": {
12115 "total_count": 2,
12116 "check_suites": [
12117 {
12118 "id": "cs_01kq4b7c8d9e0f1g2h3j4k5m6p",
12119 "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
12120 "head_branch": "main",
12121 "status": "completed",
12122 "conclusion": "failure",
12123 "app": {
12124 "slug": "buildkite",
12125 "name": "Buildkite"
12126 },
12127 "latest_check_runs_count": 1,
12128 "created_at": "2026-10-07T14:02:11.318Z",
12129 "updated_at": "2026-10-07T14:02:36.502Z"
12130 },
12131 {
12132 "id": "run_01kq4b6a7b8c9d0e1f2g3h4j5m",
12133 "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
12134 "head_branch": "main",
12135 "status": "completed",
12136 "conclusion": "success",
12137 "app": {
12138 "slug": "actions",
12139 "name": "g1t Actions"
12140 },
12141 "name": "CI",
12142 "latest_check_runs_count": 1,
12143 "created_at": "2026-10-07T14:01:00.512Z",
12144 "updated_at": "2026-10-07T14:01:28.040Z"
12145 }
12146 ]
12147 }
12148 },
12149 "get_check_suite": {
12150 "params": {
12151 "owner": "flagon-io",
12152 "name": "hello",
12153 "id": "cs_01kq4b7c8d9e0f1g2h3j4k5m6p"
12154 },
12155 "response": {
12156 "id": "cs_01kq4b7c8d9e0f1g2h3j4k5m6p",
12157 "head_sha": "9f3c2a1b7e6d5c4b3a2918f7e6d5c4b3a2918f7e",
12158 "head_branch": "main",
12159 "status": "completed",
12160 "conclusion": "failure",
12161 "app": {
12162 "slug": "buildkite",
12163 "name": "Buildkite"
12164 },
12165 "latest_check_runs_count": 1,
12166 "created_at": "2026-10-07T14:02:11.318Z",
12167 "updated_at": "2026-10-07T14:02:36.502Z"
12168 }
12169 },
12170 "rerequest_check_suite": {
12171 "params": {
12172 "owner": "flagon-io",
12173 "name": "hello",
12174 "id": "cs_01kq4b7c8d9e0f1g2h3j4k5m6p"
12175 },
12176 "response": {
12177 "rerequested": true
12178 }
Actions: OIDC tokens, the toolkit's cache and artifact services, and artifacts in R212179 },
12180 "list_artifacts": {
12181 "params": {
12182 "owner": "flagon-io",
12183 "name": "g1t"
12184 },
12185 "query": {
12186 "name": "web-dist",
12187 "per_page": "1"
12188 },
12189 "response": {
12190 "total_count": 9,
12191 "artifacts": [
12192 {
12193 "id": 4182,
12194 "node_id": "artifact_4182",
12195 "name": "web-dist",
12196 "size_in_bytes": 18734120,
12197 "url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182",
12198 "archive_download_url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182/zip",
12199 "expired": false,
12200 "digest": "sha256:5f1c3a9e7b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a",
12201 "created_at": "2026-10-08T14:03:51.204Z",
12202 "updated_at": "2026-10-08T14:03:52.880Z",
12203 "expires_at": "2026-10-22T14:03:51.204Z",
12204 "workflow_run": {
12205 "id": "run_01kq9c4e6g8j0m2p4r6t8v0x2z",
12206 "repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12207 "head_repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12208 "head_branch": "main",
12209 "head_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7"
12210 }
12211 }
12212 ]
12213 },
12214 "notes": "Expired and deleted artifacts are not listed. `workflow_run.id` is the run's id, which `get_workflow_run` takes."
12215 },
12216 "list_workflow_run_artifacts": {
12217 "params": {
12218 "owner": "flagon-io",
12219 "name": "g1t",
12220 "id": "run_01kq9c4e6g8j0m2p4r6t8v0x2z"
12221 },
12222 "response": {
12223 "total_count": 2,
12224 "artifacts": [
12225 {
12226 "id": 4181,
12227 "node_id": "artifact_4181",
12228 "name": "coverage",
12229 "size_in_bytes": 412870,
12230 "url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4181",
12231 "archive_download_url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4181/zip",
12232 "expired": false,
12233 "digest": "sha256:5f1c3a9e7b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a",
12234 "created_at": "2026-10-08T14:03:51.204Z",
12235 "updated_at": "2026-10-08T14:03:52.880Z",
12236 "expires_at": "2026-10-22T14:03:51.204Z",
12237 "workflow_run": {
12238 "id": "run_01kq9c4e6g8j0m2p4r6t8v0x2z",
12239 "repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12240 "head_repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12241 "head_branch": "main",
12242 "head_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7"
12243 }
12244 },
12245 {
12246 "id": 4182,
12247 "node_id": "artifact_4182",
12248 "name": "web-dist",
12249 "size_in_bytes": 18734120,
12250 "url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182",
12251 "archive_download_url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182/zip",
12252 "expired": false,
12253 "digest": "sha256:5f1c3a9e7b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a",
12254 "created_at": "2026-10-08T14:03:51.204Z",
12255 "updated_at": "2026-10-08T14:03:52.880Z",
12256 "expires_at": "2026-10-22T14:03:51.204Z",
12257 "workflow_run": {
12258 "id": "run_01kq9c4e6g8j0m2p4r6t8v0x2z",
12259 "repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12260 "head_repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12261 "head_branch": "main",
12262 "head_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7"
12263 }
12264 }
12265 ]
12266 }
12267 },
12268 "get_artifact": {
12269 "params": {
12270 "owner": "flagon-io",
12271 "name": "g1t",
12272 "id": "4182"
12273 },
12274 "response": {
12275 "id": 4182,
12276 "node_id": "artifact_4182",
12277 "name": "web-dist",
12278 "size_in_bytes": 18734120,
12279 "url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182",
12280 "archive_download_url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182/zip",
12281 "expired": false,
12282 "digest": "sha256:5f1c3a9e7b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a",
12283 "created_at": "2026-10-08T14:03:51.204Z",
12284 "updated_at": "2026-10-08T14:03:52.880Z",
12285 "expires_at": "2026-10-22T14:03:51.204Z",
12286 "workflow_run": {
12287 "id": "run_01kq9c4e6g8j0m2p4r6t8v0x2z",
12288 "repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12289 "head_repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12290 "head_branch": "main",
12291 "head_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7"
12292 }
12293 }
12294 },
12295 "download_artifact": {
12296 "params": {
12297 "owner": "flagon-io",
12298 "name": "g1t",
12299 "id": "4182"
12300 },
12301 "response": {
12302 "url": "https://api.g1t.sh/actions/toolkit/blobs/eyJrIjoiYXJ0aWZhY3QiLCJpIjoiNDE4MiJ9.q3VbS1x9",
12303 "expires_at": "2026-10-08T15:13:00.000Z",
12304 "artifact": {
12305 "id": 4182,
12306 "node_id": "artifact_4182",
12307 "name": "web-dist",
12308 "size_in_bytes": 18734120,
12309 "url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182",
12310 "archive_download_url": "https://api.g1t.sh/repos/flagon-io/g1t/actions/artifacts/4182/zip",
12311 "expired": false,
12312 "digest": "sha256:5f1c3a9e7b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a",
12313 "created_at": "2026-10-08T14:03:51.204Z",
12314 "updated_at": "2026-10-08T14:03:52.880Z",
12315 "expires_at": "2026-10-22T14:03:51.204Z",
12316 "workflow_run": {
12317 "id": "run_01kq9c4e6g8j0m2p4r6t8v0x2z",
12318 "repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12319 "head_repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12320 "head_branch": "main",
12321 "head_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7"
12322 }
12323 }
12324 },
12325 "notes": "Over REST the answer is `302 Found` with the link in `Location`, as GitHub's is, so `curl -L -o web-dist.zip …/zip` saves the file; the body above is what the MCP `workflow` tool's `download_artifact` returns. The link needs no token and stops working after 10 minutes."
12326 },
Merge GitHub pull request #8 (claude/cool-newton-7nm8r9): Docker deployments on g1t.page behind a switch that stays off until Cloudflare's container APIs are checked live, workflows a workspace manages in its repositories, tarball and zipball downloads, refs/pull/* kept to g1t alone, framework detection for g1t.page builds, and a workflow's event payload matching GitHub's.12327 "download_tarball_archive": {
12328 "params": {
12329 "owner": "flagon-io",
12330 "name": "hello",
12331 "ref": "main"
12332 },
12333 "response": {
12334 "url": "https://g1t.sh/flagon-io/hello/archive/7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7.tar.gz?token=…",
12335 "commit": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
12336 "expires_at": "2026-10-12T15:13:00.000Z"
12337 },
12338 "notes": "Over REST the answer is `302 Found` with the link in `Location`, as GitHub's is, so `curl -L -H \"Authorization: Bearer g1t_…\" -o hello.tar.gz https://api.g1t.sh/repos/flagon-io/hello/tarball/main` saves the file and `tar -xzf hello.tar.gz` makes one folder, `flagon-io-hello-7c1e9a4/`; the body above is what the MCP `repository` tool's `tarball` returns. The link is for the commit the ref named when you asked, needs no token and stops working after 10 minutes. `actions/checkout` uses this route in a job container without git."
12339 },
12340 "download_zipball_archive": {
12341 "params": {
12342 "owner": "flagon-io",
12343 "name": "hello",
12344 "ref": "v1.2.0"
12345 },
12346 "response": {
12347 "url": "https://g1t.sh/flagon-io/hello/archive/7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7.zip?token=…",
12348 "commit": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
12349 "expires_at": "2026-10-12T15:13:00.000Z"
12350 },
12351 "notes": "Over REST the answer is `302 Found` with the link in `Location`, as GitHub's is, so `curl -L -o hello.zip …/zipball/v1.2.0` saves the file, with one folder, `flagon-io-hello-7c1e9a4/`; the body above is what the MCP `repository` tool's `zipball` returns. The link needs no token and stops working after 10 minutes."
12352 },
Actions: OIDC tokens, the toolkit's cache and artifact services, and artifacts in R212353 "delete_artifact": {
12354 "params": {
12355 "owner": "flagon-io",
12356 "name": "g1t",
12357 "id": "4181"
12358 },
12359 "response": {
12360 "deleted": true,
12361 "id": 4181,
12362 "name": "coverage"
12363 }
12364 },
12365 "get_artifact_retention": {
12366 "params": {
12367 "owner": "flagon-io",
12368 "name": "g1t"
12369 },
12370 "response": {
12371 "days": 14,
12372 "maximum_allowed_days": 90
12373 }
12374 },
12375 "set_artifact_retention": {
12376 "params": {
12377 "owner": "flagon-io",
12378 "name": "g1t"
12379 },
12380 "request": {
12381 "days": 30
12382 },
12383 "response": {
12384 "days": 30,
12385 "maximum_allowed_days": 90
12386 },
12387 "notes": "Only artifacts uploaded afterwards are kept the new number of days. A workflow's `retention-days` asks for fewer, never more."
Merge packages: roles, Actions access, source label, soft delete, API12388 },
Merge branch 'worktree-agent-a3b9b1f730f55b5bf'12389 "list_caches": {
12390 "params": {
12391 "owner": "flagon-io",
12392 "name": "g1t"
12393 },
12394 "query": {
12395 "key": "cargo-test-",
12396 "sort": "size_in_bytes",
12397 "per_page": "2"
12398 },
12399 "response": {
12400 "total_count": 3,
12401 "actions_caches": [
12402 {
12403 "id": 9184,
12404 "key": "cargo-test-Linux-rustc-1.99.0-5f1c3a9e7b2d",
12405 "ref": "refs/heads/main",
12406 "version": "",
12407 "size_in_bytes": 1687203840,
12408 "created_at": "2026-10-12T09:14:02.511Z",
12409 "last_accessed_at": "2026-10-12T15:40:19.087Z"
12410 },
12411 {
12412 "id": 9102,
12413 "key": "cargo-test-Linux-rustc-1.99.0-5f1c3a9e7b2d",
12414 "ref": "refs/pull/412/merge",
12415 "version": "",
12416 "size_in_bytes": 702545920,
12417 "created_at": "2026-10-12T11:02:44.930Z",
12418 "last_accessed_at": "2026-10-12T11:02:44.930Z"
12419 }
12420 ]
12421 },
12422 "notes": "`key` matches keys that start with it. Entries past their 28 days, or unused for 7, are swept within the hour and are not listed once they are."
12423 },
12424 "get_cache_usage": {
12425 "params": {
12426 "owner": "flagon-io",
12427 "name": "g1t"
12428 },
12429 "response": {
12430 "full_name": "flagon-io/g1t",
12431 "active_caches_size_in_bytes": 8813275136,
12432 "active_caches_count": 41,
12433 "quota_bytes": 10737418240
12434 },
12435 "notes": "Saving past `quota_bytes` evicts the entries restored longest ago."
12436 },
12437 "delete_caches_by_key": {
12438 "params": {
12439 "owner": "flagon-io",
12440 "name": "g1t"
12441 },
12442 "query": {
12443 "key": "cargo-test-Linux-rustc-1.99.0-5f1c3a9e7b2d",
12444 "ref": "refs/pull/412/merge"
12445 },
12446 "response": {
12447 "total_count": 1,
12448 "actions_caches": [
12449 {
12450 "id": 9102,
12451 "key": "cargo-test-Linux-rustc-1.99.0-5f1c3a9e7b2d",
12452 "ref": "refs/pull/412/merge",
12453 "version": "",
12454 "size_in_bytes": 702545920,
12455 "created_at": "2026-10-12T11:02:44.930Z",
12456 "last_accessed_at": "2026-10-12T11:02:44.930Z"
12457 }
12458 ]
12459 },
12460 "notes": "The key is matched exactly. Without `ref`, the key's entries on every ref are deleted."
12461 },
12462 "delete_cache": {
12463 "params": {
12464 "owner": "flagon-io",
12465 "name": "g1t",
12466 "id": "9102"
12467 },
12468 "notes": "Answers `204` with no body."
12469 },
Merge packages: roles, Actions access, source label, soft delete, API12470 "list_packages": {
12471 "params": {
12472 "workspace": "acme"
12473 },
12474 "query": {
12475 "package_type": "container"
12476 },
12477 "response": [
12478 {
12479 "id": "pkg_01kq7b3d5f7h9k1m3p5r7t9v1x",
12480 "name": "web",
12481 "package_type": "container",
12482 "workspace": "acme",
12483 "address": "g1t.sh/acme/web",
12484 "visibility": "private",
12485 "repository": {
12486 "id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12487 "name": "web",
12488 "full_name": "acme/web"
12489 },
12490 "description": null,
12491 "version_count": 12,
12492 "latest": "latest",
12493 "size_in_bytes": 48211932,
12494 "download_count": 1840,
12495 "inherit_access": true,
12496 "created_at": "2026-09-14T10:02:11.000Z",
12497 "updated_at": "2026-10-08T14:05:20.000Z",
12498 "deleted_at": null,
12499 "deleted_by": null,
12500 "purge_at": null,
12501 "html_url": "https://g1t.sh/acme/-/packages/container/web"
12502 }
12503 ],
12504 "notes": "Only packages you may pull are listed. With `state=deleted`, the workspace's deleted packages you administer that can still be restored, each with `deleted_at`, `deleted_by` and `purge_at`."
12505 },
12506 "get_package": {
12507 "params": {
12508 "workspace": "acme",
12509 "package_type": "npm",
12510 "package_name": "ui"
12511 },
12512 "response": {
12513 "id": "pkg_01kq7b4e6g8j0m2p4r6t8v0x2z",
12514 "name": "ui",
12515 "package_type": "npm",
12516 "workspace": "acme",
12517 "address": "g1t.sh/-/npm/@acme/ui",
12518 "visibility": "public",
12519 "repository": {
12520 "id": "rep_01kpw0b3d5f7h9k1m3p5r7t9v1",
12521 "name": "ui",
12522 "full_name": "acme/ui"
12523 },
12524 "description": "Acme's design system components.",
12525 "version_count": 4,
12526 "latest": "2.1.0",
12527 "size_in_bytes": 391204,
12528 "download_count": 9213,
12529 "inherit_access": true,
12530 "created_at": "2026-08-02T09:30:00.000Z",
12531 "updated_at": "2026-10-07T16:44:02.000Z",
12532 "deleted_at": null,
12533 "deleted_by": null,
12534 "purge_at": null,
12535 "html_url": "https://g1t.sh/acme/-/packages/npm/ui"
12536 },
12537 "notes": "A name with a slash is one URL-encoded path segment: `/workspaces/acme/packages/container/web%2Fworker`. Not found when you may not pull it."
12538 },
12539 "update_package": {
12540 "params": {
12541 "workspace": "acme",
12542 "package_type": "container",
12543 "package_name": "web"
12544 },
12545 "request": {
12546 "inherit_access": false
12547 },
12548 "response": {
12549 "id": "pkg_01kq7b3d5f7h9k1m3p5r7t9v1x",
12550 "name": "web",
12551 "package_type": "container",
12552 "workspace": "acme",
12553 "address": "g1t.sh/acme/web",
12554 "visibility": "private",
12555 "repository": {
12556 "id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12557 "name": "web",
12558 "full_name": "acme/web"
12559 },
12560 "description": null,
12561 "version_count": 12,
12562 "latest": "latest",
12563 "size_in_bytes": 48211932,
12564 "download_count": 1840,
12565 "inherit_access": false,
12566 "created_at": "2026-09-14T10:02:11.000Z",
12567 "updated_at": "2026-10-08T15:01:40.000Z",
12568 "deleted_at": null,
12569 "deleted_by": null,
12570 "purge_at": null,
12571 "html_url": "https://g1t.sh/acme/-/packages/container/web"
12572 },
12573 "notes": "With `inherit_access` off, the repository's roles no longer reach the package: only the roles given on it (`set_package_access`) and the workspace's owners. `visibility` is for an unlinked package; a linked one has its repository's."
12574 },
12575 "delete_package": {
12576 "params": {
12577 "workspace": "acme",
12578 "package_type": "container",
12579 "package_name": "web-old"
12580 },
12581 "response": {
12582 "deleted": true
12583 },
12584 "notes": "The package and every version are gone from the registry at once. Restore it with `restore_package` within 30 days; until then nobody can publish a package of its name."
12585 },
12586 "restore_package": {
12587 "params": {
12588 "workspace": "acme",
12589 "package_type": "container",
12590 "package_name": "web-old"
12591 },
12592 "response": {
12593 "id": "pkg_01kq7b5f7h9k1m3p5r7t9v1x3z",
12594 "name": "web-old",
12595 "package_type": "container",
12596 "workspace": "acme",
12597 "address": "g1t.sh/acme/web-old",
12598 "visibility": "private",
12599 "repository": null,
12600 "description": null,
12601 "version_count": 3,
12602 "latest": "latest",
12603 "size_in_bytes": 20112840,
12604 "download_count": 112,
12605 "inherit_access": true,
12606 "created_at": "2026-07-01T08:00:00.000Z",
12607 "updated_at": "2026-10-08T15:10:00.000Z",
12608 "deleted_at": null,
12609 "deleted_by": null,
12610 "purge_at": null,
12611 "html_url": "https://g1t.sh/acme/-/packages/container/web-old"
12612 }
12613 },
12614 "list_package_versions": {
12615 "params": {
12616 "workspace": "acme",
12617 "package_type": "container",
12618 "package_name": "web"
12619 },
12620 "response": [
12621 {
12622 "id": "ver_01kq9c5f7h9k1m3p5r7t9v1x3z",
12623 "name": "sha256:9b2e4d6f8a0c1e3b5d7f9a2c4e6b8d0f1a3c5e7b9d2f4a6c8e0b1d3f5a7c9e2b",
12624 "digest": "sha256:9b2e4d6f8a0c1e3b5d7f9a2c4e6b8d0f1a3c5e7b9d2f4a6c8e0b1d3f5a7c9e2b",
12625 "size_in_bytes": 48211932,
12626 "download_count": 611,
12627 "tags": [
12628 "latest",
12629 "v1.4.0"
12630 ],
12631 "media_type": "application/vnd.oci.image.index.v1+json",
12632 "artifact_type": null,
12633 "subject": null,
12634 "platforms": [
12635 "linux/amd64",
12636 "linux/arm64"
12637 ],
12638 "published_by": "ana",
12639 "created_at": "2026-10-08T14:05:20.000Z",
12640 "deprecated": null,
12641 "deleted_at": null,
12642 "deleted_by": null,
12643 "purge_at": null
12644 }
12645 ],
12646 "notes": "A container image's versions are its manifests, named by digest; every other package's by version. `download_count` counts pulls and downloads of the version itself, approximately. With `state=deleted`, the deleted versions that can still be restored, for the package's admins."
12647 },
12648 "get_package_version": {
12649 "params": {
12650 "workspace": "acme",
12651 "package_type": "npm",
12652 "package_name": "ui",
12653 "version_id": "2.1.0"
12654 },
12655 "response": {
12656 "id": "ver_01kq9c6g8j0m2p4r6t8v0x2z4b",
12657 "name": "2.1.0",
12658 "digest": "sha256:3c5e7b9d2f4a6c8e0b1d3f5a7c9e2b4d6f8a0c1e3b5d7f9a2c4e6b8d0f1a3c5e",
12659 "size_in_bytes": 97412,
12660 "download_count": 2204,
12661 "tags": [
12662 "latest"
12663 ],
12664 "media_type": null,
12665 "artifact_type": null,
12666 "subject": null,
12667 "platforms": [],
12668 "published_by": "bo",
12669 "created_at": "2026-10-07T16:44:02.000Z",
12670 "deprecated": null,
12671 "deleted_at": null,
12672 "deleted_by": null,
12673 "purge_at": null
12674 },
12675 "notes": "`version_id` is the version's id (`ver_…`), its version, its digest, or a tag that points to it."
12676 },
12677 "delete_package_version": {
12678 "params": {
12679 "workspace": "acme",
12680 "package_type": "npm",
12681 "package_name": "ui",
12682 "version_id": "2.0.0-beta.1"
12683 },
12684 "response": {
12685 "deleted": true
12686 },
12687 "notes": "The version and its tags are gone from the registry at once. It can be restored for 30 days, and its version cannot be published again until it is purged."
12688 },
12689 "restore_package_version": {
12690 "params": {
12691 "workspace": "acme",
12692 "package_type": "npm",
12693 "package_name": "ui",
12694 "version_id": "2.0.0-beta.1"
12695 },
12696 "response": {
12697 "id": "ver_01kq9c7h9k1m3p5r7t9v1x3z5c",
12698 "name": "2.0.0-beta.1",
12699 "digest": "sha256:7d9f2a4c6e8b0d1f3a5c7e9b2d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f",
12700 "size_in_bytes": 96880,
12701 "download_count": 41,
12702 "tags": [
12703 "beta"
12704 ],
12705 "media_type": null,
12706 "artifact_type": null,
12707 "subject": null,
12708 "platforms": [],
12709 "published_by": "bo",
12710 "created_at": "2026-09-30T11:20:00.000Z",
12711 "deprecated": null,
12712 "deleted_at": null,
12713 "deleted_by": null,
12714 "purge_at": null
12715 },
12716 "notes": "Tags that pointed to it come back with it, unless one was moved to another version meanwhile."
12717 },
12718 "link_package": {
12719 "params": {
12720 "workspace": "acme",
12721 "package_type": "container",
12722 "package_name": "tools"
12723 },
12724 "request": {
12725 "repository": "acme/infra"
12726 },
12727 "response": {
12728 "id": "pkg_01kq7b6g8j0m2p4r6t8v0x2z4b",
12729 "name": "tools",
12730 "package_type": "container",
12731 "workspace": "acme",
12732 "address": "g1t.sh/acme/tools",
12733 "visibility": "private",
12734 "repository": {
12735 "id": "rep_01kpw0c4e6g8j0m2p4r6t8v0x2",
12736 "name": "infra",
12737 "full_name": "acme/infra"
12738 },
12739 "description": null,
12740 "version_count": 2,
12741 "latest": "latest",
12742 "size_in_bytes": 7340032,
12743 "download_count": 88,
12744 "inherit_access": true,
12745 "created_at": "2026-09-20T12:00:00.000Z",
12746 "updated_at": "2026-10-08T15:20:00.000Z",
12747 "deleted_at": null,
12748 "deleted_by": null,
12749 "purge_at": null,
12750 "html_url": "https://g1t.sh/acme/-/packages/container/tools"
12751 },
12752 "notes": "The package takes the repository's visibility. You need the Admin role on the package and on the repository."
12753 },
12754 "unlink_package": {
12755 "params": {
12756 "workspace": "acme",
12757 "package_type": "container",
12758 "package_name": "tools"
12759 },
12760 "response": {
12761 "id": "pkg_01kq7b6g8j0m2p4r6t8v0x2z4b",
12762 "name": "tools",
12763 "package_type": "container",
12764 "workspace": "acme",
12765 "address": "g1t.sh/acme/tools",
12766 "visibility": "private",
12767 "repository": null,
12768 "description": null,
12769 "version_count": 2,
12770 "latest": "latest",
12771 "size_in_bytes": 7340032,
12772 "download_count": 88,
12773 "inherit_access": true,
12774 "created_at": "2026-09-20T12:00:00.000Z",
12775 "updated_at": "2026-10-08T15:22:00.000Z",
12776 "deleted_at": null,
12777 "deleted_by": null,
12778 "purge_at": null,
12779 "html_url": "https://g1t.sh/acme/-/packages/container/tools"
12780 }
12781 },
12782 "list_package_access": {
12783 "params": {
12784 "workspace": "acme",
12785 "package_type": "container",
12786 "package_name": "web"
12787 },
12788 "response": {
12789 "inherit_access": true,
12790 "access": [
12791 {
12792 "type": "team",
12793 "id": "team_01kq1a3c5e7g9j1l3n5q7s9u1w",
12794 "name": "acme/platform",
12795 "role": "admin",
12796 "created_at": "2026-10-01T09:00:00.000Z"
12797 },
12798 {
12799 "type": "user",
12800 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
12801 "name": "dana",
12802 "role": "read",
12803 "created_at": "2026-10-02T13:30:00.000Z"
12804 }
12805 ]
12806 },
12807 "notes": "Only the roles given on the package itself. With `inherit_access` on, a linked package's repository roles count too, and the workspace's owners administer every package."
12808 },
12809 "set_package_access": {
12810 "params": {
12811 "workspace": "acme",
12812 "package_type": "container",
12813 "package_name": "web"
12814 },
12815 "request": {
12816 "username": "dana",
12817 "role": "write"
12818 },
12819 "response": [
12820 {
12821 "type": "team",
12822 "id": "team_01kq1a3c5e7g9j1l3n5q7s9u1w",
12823 "name": "acme/platform",
12824 "role": "admin",
12825 "created_at": "2026-10-01T09:00:00.000Z"
12826 },
12827 {
12828 "type": "user",
12829 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
12830 "name": "dana",
12831 "role": "write",
12832 "created_at": "2026-10-02T13:30:00.000Z"
12833 }
12834 ],
12835 "notes": "Give `username` or `team` (a team of the workspace, by slug). The role adds to what the repository or workspace already gives."
12836 },
12837 "remove_package_access": {
12838 "params": {
12839 "workspace": "acme",
12840 "package_type": "container",
12841 "package_name": "web"
12842 },
12843 "query": {
12844 "username": "dana"
12845 },
12846 "response": [
12847 {
12848 "type": "team",
12849 "id": "team_01kq1a3c5e7g9j1l3n5q7s9u1w",
12850 "name": "acme/platform",
12851 "role": "admin",
12852 "created_at": "2026-10-01T09:00:00.000Z"
12853 }
12854 ],
12855 "notes": "Over REST, name who in the query: `?username=dana` or `?team=platform`."
12856 },
12857 "list_package_actions_access": {
12858 "params": {
12859 "workspace": "acme",
12860 "package_type": "container",
12861 "package_name": "web"
12862 },
12863 "response": {
12864 "repositories": [
12865 {
12866 "repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12867 "repository": "acme/web",
12868 "role": "write",
12869 "linked": true,
12870 "created_at": null
12871 },
12872 {
12873 "repository_id": "rep_01kpw0d5f7h9k1m3p5r7t9v1x3",
12874 "repository": "acme/deploy",
12875 "role": "read",
12876 "linked": false,
12877 "created_at": "2026-10-03T10:00:00.000Z"
12878 }
12879 ]
12880 },
12881 "notes": "A workflow job's `G1T_TOKEN` reaches the package only from these repositories. The linked repository is always listed, with write."
12882 },
12883 "set_package_actions_access": {
12884 "params": {
12885 "workspace": "acme",
12886 "package_type": "container",
12887 "package_name": "web"
12888 },
12889 "request": {
12890 "repository": "deploy",
12891 "role": "read"
12892 },
12893 "response": {
12894 "repositories": [
12895 {
12896 "repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12897 "repository": "acme/web",
12898 "role": "write",
12899 "linked": true,
12900 "created_at": null
12901 },
12902 {
12903 "repository_id": "rep_01kpw0d5f7h9k1m3p5r7t9v1x3",
12904 "repository": "acme/deploy",
12905 "role": "read",
12906 "linked": false,
12907 "created_at": "2026-10-03T10:00:00.000Z"
12908 }
12909 ]
12910 }
12911 },
12912 "remove_package_actions_access": {
12913 "params": {
12914 "workspace": "acme",
12915 "package_type": "container",
12916 "package_name": "web",
12917 "repository": "deploy"
12918 },
12919 "response": {
12920 "repositories": [
12921 {
12922 "repository_id": "rep_01kpw0a2c4e6g8j0m2p4r6t8v0",
12923 "repository": "acme/web",
12924 "role": "write",
12925 "linked": true,
12926 "created_at": null
Merge branch 'mirroring' into artifacts-mode12927 }
12928 ]
12929 }
Merge main into Artifacts Phase 212930 },
12931 "list_workspace_artifacts": {
12932 "params": {
12933 "workspace": "acme"
12934 },
12935 "query": {
12936 "kind": "doc",
12937 "space": "general"
12938 },
12939 "response": {
12940 "items": [
12941 {
12942 "id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
12943 "kind": "doc",
12944 "title": "Q4 roadmap",
12945 "icon": "🗺️",
12946 "slug": "q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
12947 "space": {
12948 "id": "spc_01kq1a3c5e7g9j1l3n5q7s9u1w",
12949 "slug": "general",
12950 "name": "General",
12951 "kind": "workspace"
12952 },
12953 "parent_id": null,
12954 "has_children": false,
12955 "owner": {
12956 "type": "user",
12957 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
12958 "username": "ana",
12959 "display_name": "Ana Lima"
12960 },
12961 "created_by": {
12962 "type": "user",
12963 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
12964 "username": "ana",
12965 "display_name": "Ana Lima"
12966 },
12967 "created_at": "2026-10-06T09:12:00.000Z",
12968 "updated_at": "2026-10-08T16:40:12.000Z",
12969 "edited_by": {
12970 "type": "user",
12971 "id": "usr_01kmb2d4f6h8k0m2p4r6t8v0x2",
12972 "username": "bo",
12973 "display_name": "Bo Chen"
12974 },
12975 "edited_at": "2026-10-08T16:40:12.000Z",
12976 "trashed_at": null,
12977 "viewer_role": "manage",
12978 "private": false,
12979 "shared_count": 1,
12980 "general_access": "workspace",
12981 "general_role": "view",
12982 "inherit": true,
12983 "agent_mode": "suggest",
12984 "excerpt": "What we ship this quarter, and what we leave for next.",
12985 "source": null,
12986 "stale": false,
12987 "html_url": "https://g1t.sh/acme/-/artifacts/q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z"
12988 }
12989 ],
12990 "next_cursor": null
12991 },
12992 "notes": "Only artifacts you can open are listed, with `viewer_role` your own role on each. Page on with `cursor` set to `next_cursor` until it is null. With `state=trashed`, what you can restore from the trash. With `q`, the best matches first. These are Artifacts mode's docs, slides, designs and dashboards, not workflow runs' artifacts (`list_artifacts`)."
12993 },
12994 "search_workspace_artifacts": {
12995 "params": {
12996 "workspace": "acme"
12997 },
12998 "query": {
12999 "q": "what ships in Q4"
13000 },
13001 "response": [
13002 {
13003 "id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13004 "kind": "doc",
13005 "title": "Q4 roadmap",
13006 "icon": "🗺️",
13007 "slug": "q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13008 "html_url": "https://g1t.sh/acme/-/artifacts/q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13009 "space_name": "General",
13010 "snippet": "We ship the merge queue and Artifacts in Q4; dashboards follow.",
13011 "heading": "This quarter",
13012 "matched": "both",
13013 "edited_at": "2026-10-08T16:40:12.000Z"
13014 }
13015 ],
13016 "notes": "Matches words and meaning, and is checked again against who can read each artifact now: one shared with you a minute ago is found, one taken away is not."
13017 },
13018 "get_workspace_artifact": {
13019 "params": {
13020 "workspace": "acme",
13021 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z"
13022 },
13023 "response": {
13024 "id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13025 "kind": "doc",
13026 "title": "Q4 roadmap",
13027 "icon": "🗺️",
13028 "slug": "q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13029 "space": {
13030 "id": "spc_01kq1a3c5e7g9j1l3n5q7s9u1w",
13031 "slug": "general",
13032 "name": "General",
13033 "kind": "workspace"
13034 },
13035 "parent_id": null,
13036 "has_children": false,
13037 "owner": {
13038 "type": "user",
13039 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13040 "username": "ana",
13041 "display_name": "Ana Lima"
13042 },
13043 "created_by": {
13044 "type": "user",
13045 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13046 "username": "ana",
13047 "display_name": "Ana Lima"
13048 },
13049 "created_at": "2026-10-06T09:12:00.000Z",
13050 "updated_at": "2026-10-08T16:40:12.000Z",
13051 "edited_by": {
13052 "type": "user",
13053 "id": "usr_01kmb2d4f6h8k0m2p4r6t8v0x2",
13054 "username": "bo",
13055 "display_name": "Bo Chen"
13056 },
13057 "edited_at": "2026-10-08T16:40:12.000Z",
13058 "trashed_at": null,
13059 "viewer_role": "manage",
13060 "private": false,
13061 "shared_count": 1,
13062 "general_access": "workspace",
13063 "general_role": "view",
13064 "inherit": true,
13065 "agent_mode": "suggest",
13066 "excerpt": "What we ship this quarter, and what we leave for next.",
13067 "source": null,
13068 "stale": false,
13069 "html_url": "https://g1t.sh/acme/-/artifacts/q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z"
13070 },
13071 "notes": "`artifact_id` is the id, or the artifact's address (`q4-roadmap-fol_…`, or its whole link). Not found when you cannot open it, the same as when it does not exist."
13072 },
13073 "get_workspace_artifact_content": {
13074 "params": {
13075 "workspace": "acme",
13076 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z"
13077 },
13078 "response": {
13079 "artifact": {
13080 "id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13081 "kind": "doc",
13082 "title": "Q4 roadmap",
13083 "icon": "🗺️",
13084 "slug": "q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13085 "html_url": "https://g1t.sh/acme/-/artifacts/q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13086 "edited_at": "2026-10-08T16:40:12.000Z"
13087 },
13088 "space": {
13089 "id": "spc_01kq1a3c5e7g9j1l3n5q7s9u1w",
13090 "slug": "general",
13091 "name": "General",
13092 "agent_mode": "suggest"
13093 },
13094 "content": "# Q4 roadmap\n\n## This quarter\n\nWe ship the merge queue and Artifacts.\n",
13095 "blocks": [
13096 {
13097 "id": "b_4f1c",
13098 "type": "heading",
13099 "level": 1,
13100 "markdown": "# Q4 roadmap"
13101 },
13102 {
13103 "id": "b_9a02",
13104 "type": "heading",
13105 "level": 2,
13106 "markdown": "## This quarter"
13107 },
13108 {
13109 "id": "b_77d3",
13110 "type": "paragraph",
13111 "level": null,
13112 "markdown": "We ship the merge queue and Artifacts."
13113 }
13114 ],
13115 "can": {
13116 "read": true,
13117 "suggest": true,
13118 "edit": true
13119 }
13120 },
13121 "notes": "A doc's content is Markdown. `blocks` are its top-level blocks, whose ids an edit with a `blocks` target names. Slides, designs and dashboards answer `422` saying they are not here yet."
13122 },
13123 "list_workspace_artifact_versions": {
13124 "params": {
13125 "workspace": "acme",
13126 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z"
13127 },
13128 "response": [
13129 {
13130 "id": "ver_01kq9e6g8j0m2p4r6t8v0x2z4b",
13131 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13132 "created_at": "2026-10-08T16:40:12.000Z",
13133 "kind": "edit",
13134 "note": null,
13135 "authors": [
13136 {
13137 "type": "user",
13138 "id": "usr_01kmb2d4f6h8k0m2p4r6t8v0x2",
13139 "username": "bo",
13140 "display_name": "Bo Chen"
13141 }
13142 ]
13143 },
13144 {
13145 "id": "ver_01kq7c4e6g8j0m2p4r6t8v0x2y",
13146 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13147 "created_at": "2026-10-06T09:12:00.000Z",
13148 "kind": "created",
13149 "note": null,
13150 "authors": [
13151 {
13152 "type": "user",
13153 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13154 "username": "ana",
13155 "display_name": "Ana Lima"
13156 }
13157 ]
13158 }
13159 ]
13160 },
13161 "get_workspace_artifact_access": {
13162 "params": {
13163 "workspace": "acme",
13164 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z"
13165 },
13166 "response": {
13167 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13168 "owner": {
13169 "type": "user",
13170 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13171 "username": "ana",
13172 "display_name": "Ana Lima"
13173 },
13174 "shared_with": [
13175 {
13176 "principal": "user:usr_01kmb2d4f6h8k0m2p4r6t8v0x2",
13177 "member": {
13178 "type": "user",
13179 "id": "usr_01kmb2d4f6h8k0m2p4r6t8v0x2",
13180 "username": "bo",
13181 "display_name": "Bo Chen"
13182 },
13183 "role": "edit",
13184 "inherited_from": null
13185 },
13186 {
13187 "principal": "team:design",
13188 "member": {
13189 "type": "team",
13190 "slug": "design",
13191 "display_name": "@acme/design"
13192 },
13193 "role": "comment",
13194 "inherited_from": null
13195 }
13196 ],
13197 "general_access": "workspace",
13198 "general_role": "view",
13199 "inherit": true,
13200 "inherited_from": {
13201 "type": "space",
13202 "id": "spc_01kq1a3c5e7g9j1l3n5q7s9u1w",
13203 "name": "General"
13204 },
13205 "agent_mode": null,
13206 "can_share": true
13207 },
13208 "notes": "Its owner always has full access and is not in `shared_with`. `inherited_from` on a row is the doc above it that gives that access; on the whole list, the space or doc it follows while `inherit` is true."
13209 },
13210 "list_workspace_artifact_templates": {
13211 "params": {
13212 "workspace": "acme"
13213 },
13214 "query": {
13215 "kind": "doc"
13216 },
13217 "response": [
13218 {
13219 "id": "builtin:doc:meeting-notes",
13220 "kind": "doc",
13221 "name": "Meeting notes",
13222 "description": "Who came, what was decided, and what happens next.",
13223 "icon": "📝",
13224 "builtin": true,
13225 "body": "# Meeting notes\n\n## Attendees\n\n## Decisions\n\n## Next steps\n"
13226 }
13227 ]
13228 },
13229 "list_workspace_artifact_spaces": {
13230 "params": {
13231 "workspace": "acme"
13232 },
13233 "response": [
13234 {
13235 "id": "spc_01kq1a3c5e7g9j1l3n5q7s9u1w",
13236 "slug": "general",
13237 "name": "General",
13238 "description": null,
13239 "icon": null,
13240 "kind": "workspace",
13241 "is_default": true,
13242 "joined": true,
13243 "viewer_role": "edit",
13244 "artifact_count": 14
13245 },
13246 {
13247 "id": "spc_01kq2b4d6f8h0k2m4p6r8t0v2x",
13248 "slug": "design",
13249 "name": "Design",
13250 "description": "The design team's specs.",
13251 "icon": "🎨",
13252 "kind": "team",
13253 "is_default": false,
13254 "joined": true,
13255 "viewer_role": "view",
13256 "artifact_count": 6
13257 }
13258 ],
13259 "notes": "Open spaces show once you join them in Artifacts; General always shows. Give a space's `slug` or `id` as `space` to the other artifact calls."
13260 },
13261 "query_workspace_dataset": {
13262 "params": {
13263 "workspace": "acme"
13264 },
13265 "request": {
13266 "query": {
13267 "dataset": "pull_requests",
13268 "measure": {
13269 "op": "count"
13270 },
13271 "group_by": "repo",
13272 "range": {
13273 "from": "2026-09-01",
13274 "to": "2026-09-30"
13275 }
13276 }
13277 },
13278 "response": {
13279 "columns": [
13280 {
13281 "name": "repo",
13282 "type": "string"
13283 },
13284 {
13285 "name": "count",
13286 "type": "number"
13287 }
13288 ],
13289 "rows": [
13290 [
13291 "acme/web",
13292 42
13293 ],
13294 [
13295 "acme/api",
13296 7
13297 ]
13298 ],
13299 "truncated": false,
13300 "partial": false,
13301 "as_of": "2026-10-09T12:00:00.000Z"
13302 },
13303 "notes": "Runs as you, over what you can read: `partial` is true when some of it was left out because you cannot read it. Until dashboards ship this answers `422` saying they are not here yet."
13304 },
13305 "create_workspace_artifact": {
13306 "params": {
13307 "workspace": "acme"
13308 },
13309 "request": {
13310 "kind": "doc",
13311 "title": "Release notes",
13312 "markdown": "# Release notes\n\nWhat changed in 2.4.\n"
13313 },
13314 "response": {
13315 "id": "fol_01kq8d5f7h9k1n3q5s7u9w1y3a",
13316 "kind": "doc",
13317 "title": "Release notes",
13318 "icon": null,
13319 "slug": "release-notes-fol_01kq8d5f7h9k1n3q5s7u9w1y3a",
13320 "space": null,
13321 "parent_id": null,
13322 "has_children": false,
13323 "owner": {
13324 "type": "user",
13325 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13326 "username": "ana",
13327 "display_name": "Ana Lima"
13328 },
13329 "created_by": {
13330 "type": "user",
13331 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13332 "username": "ana",
13333 "display_name": "Ana Lima"
13334 },
13335 "created_at": "2026-10-09T10:00:00.000Z",
13336 "updated_at": "2026-10-09T10:00:00.000Z",
13337 "edited_by": null,
13338 "edited_at": "2026-10-09T10:00:00.000Z",
13339 "trashed_at": null,
13340 "viewer_role": "manage",
13341 "private": true,
13342 "shared_count": 0,
13343 "general_access": "none",
13344 "general_role": null,
13345 "inherit": true,
13346 "agent_mode": null,
13347 "excerpt": "What changed in 2.4.",
13348 "source": null,
13349 "stale": false,
13350 "html_url": "https://g1t.sh/acme/-/artifacts/release-notes-fol_01kq8d5f7h9k1n3q5s7u9w1y3a"
13351 },
13352 "notes": "Left out `space` and `parent_id`, it lands in your Private, where only you can open it until you share it. `kind` is `doc` until slides, designs and dashboards ship; they answer `422` saying they are not here yet."
13353 },
13354 "update_workspace_artifact": {
13355 "params": {
13356 "workspace": "acme",
13357 "artifact_id": "fol_01kq8d5f7h9k1n3q5s7u9w1y3a"
13358 },
13359 "request": {
13360 "title": "Release notes 2.4",
13361 "space": "general"
13362 },
13363 "response": {
13364 "id": "fol_01kq8d5f7h9k1n3q5s7u9w1y3a",
13365 "kind": "doc",
13366 "title": "Release notes 2.4",
13367 "icon": null,
13368 "slug": "release-notes-2-4-fol_01kq8d5f7h9k1n3q5s7u9w1y3a",
13369 "space": {
13370 "id": "spc_01kq1a3c5e7g9j1l3n5q7s9u1w",
13371 "slug": "general",
13372 "name": "General",
13373 "kind": "workspace"
13374 },
13375 "parent_id": null,
13376 "has_children": false,
13377 "owner": {
13378 "type": "user",
13379 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13380 "username": "ana",
13381 "display_name": "Ana Lima"
13382 },
13383 "created_by": {
13384 "type": "user",
13385 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13386 "username": "ana",
13387 "display_name": "Ana Lima"
13388 },
13389 "created_at": "2026-10-09T10:00:00.000Z",
13390 "updated_at": "2026-10-09T10:00:00.000Z",
13391 "edited_by": null,
13392 "edited_at": "2026-10-09T10:00:00.000Z",
13393 "trashed_at": null,
13394 "viewer_role": "manage",
13395 "private": false,
13396 "shared_count": 0,
13397 "general_access": "none",
13398 "general_role": null,
13399 "inherit": true,
13400 "agent_mode": null,
13401 "excerpt": "What changed in 2.4.",
13402 "source": null,
13403 "stale": false,
13404 "html_url": "https://g1t.sh/acme/-/artifacts/release-notes-2-4-fol_01kq8d5f7h9k1n3q5s7u9w1y3a"
13405 },
13406 "notes": "Moving it into a space it follows (`inherit`) gives the space's members its access. `space` set to `private` moves it to the top of your Private, which only its owner can do."
13407 },
13408 "edit_workspace_artifact": {
13409 "params": {
13410 "workspace": "acme",
13411 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z"
13412 },
13413 "request": {
13414 "target": {
13415 "kind": "section",
13416 "heading": "This quarter"
13417 },
13418 "markdown": "## This quarter\n\nWe ship the merge queue, Artifacts and the API for both.\n",
13419 "note": "Adds the API"
13420 },
13421 "response": {
13422 "mode": "applied",
13423 "artifact": {
13424 "id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13425 "kind": "doc",
13426 "title": "Q4 roadmap",
13427 "icon": "🗺️",
13428 "slug": "q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13429 "html_url": "https://g1t.sh/acme/-/artifacts/q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z"
13430 },
13431 "version_id": "ver_01kqa7h9k1n3q5s7u9w1y3a5c",
13432 "summary": "Replaced the section This quarter."
13433 },
13434 "notes": "With only the comment role, or with `suggest_only`, the change is filed as a suggestion instead: `mode` is `suggested`, with the `suggestion` its editors accept or reject. A target that is not there any more answers `404`: read the content again."
13435 },
13436 "trash_workspace_artifact": {
13437 "params": {
13438 "workspace": "acme",
13439 "artifact_id": "fol_01kq8d5f7h9k1n3q5s7u9w1y3a"
13440 },
13441 "response": {
13442 "id": "fol_01kq8d5f7h9k1n3q5s7u9w1y3a",
13443 "kind": "doc",
13444 "title": "Release notes",
13445 "icon": null,
13446 "slug": "release-notes-fol_01kq8d5f7h9k1n3q5s7u9w1y3a",
13447 "space": null,
13448 "parent_id": null,
13449 "has_children": false,
13450 "owner": {
13451 "type": "user",
13452 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13453 "username": "ana",
13454 "display_name": "Ana Lima"
13455 },
13456 "created_by": {
13457 "type": "user",
13458 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13459 "username": "ana",
13460 "display_name": "Ana Lima"
13461 },
13462 "created_at": "2026-10-09T10:00:00.000Z",
13463 "updated_at": "2026-10-09T10:00:00.000Z",
13464 "edited_by": null,
13465 "edited_at": "2026-10-09T10:00:00.000Z",
13466 "trashed_at": "2026-10-09T11:30:00.000Z",
13467 "viewer_role": "manage",
13468 "private": true,
13469 "shared_count": 0,
13470 "general_access": "none",
13471 "general_role": null,
13472 "inherit": true,
13473 "agent_mode": null,
13474 "excerpt": "What changed in 2.4.",
13475 "source": null,
13476 "stale": false,
13477 "html_url": "https://g1t.sh/acme/-/artifacts/release-notes-fol_01kq8d5f7h9k1n3q5s7u9w1y3a"
13478 },
13479 "notes": "Everything under it goes to the trash with it. It is deleted for good 30 days later, or with `purge_workspace_artifact`."
13480 },
13481 "restore_workspace_artifact": {
13482 "params": {
13483 "workspace": "acme",
13484 "artifact_id": "fol_01kq8d5f7h9k1n3q5s7u9w1y3a"
13485 },
13486 "response": {
13487 "id": "fol_01kq8d5f7h9k1n3q5s7u9w1y3a",
13488 "kind": "doc",
13489 "title": "Release notes",
13490 "icon": null,
13491 "slug": "release-notes-fol_01kq8d5f7h9k1n3q5s7u9w1y3a",
13492 "space": null,
13493 "parent_id": null,
13494 "has_children": false,
13495 "owner": {
13496 "type": "user",
13497 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13498 "username": "ana",
13499 "display_name": "Ana Lima"
13500 },
13501 "created_by": {
13502 "type": "user",
13503 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13504 "username": "ana",
13505 "display_name": "Ana Lima"
13506 },
13507 "created_at": "2026-10-09T10:00:00.000Z",
13508 "updated_at": "2026-10-09T10:00:00.000Z",
13509 "edited_by": null,
13510 "edited_at": "2026-10-09T10:00:00.000Z",
13511 "trashed_at": null,
13512 "viewer_role": "manage",
13513 "private": true,
13514 "shared_count": 0,
13515 "general_access": "none",
13516 "general_role": null,
13517 "inherit": true,
13518 "agent_mode": null,
13519 "excerpt": "What changed in 2.4.",
13520 "source": null,
13521 "stale": false,
13522 "html_url": "https://g1t.sh/acme/-/artifacts/release-notes-fol_01kq8d5f7h9k1n3q5s7u9w1y3a"
13523 }
13524 },
13525 "restore_workspace_artifact_version": {
13526 "params": {
13527 "workspace": "acme",
13528 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13529 "version_id": "ver_01kq7c4e6g8j0m2p4r6t8v0x2y"
13530 },
13531 "response": {
13532 "id": "ver_01kqb8j0m2p4r6t8v0x2z4b6d",
13533 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13534 "created_at": "2026-10-09T12:00:00.000Z",
13535 "kind": "restore",
13536 "note": null,
13537 "authors": [
13538 {
13539 "type": "user",
13540 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13541 "username": "ana",
13542 "display_name": "Ana Lima"
13543 }
13544 ]
13545 }
13546 },
13547 "set_workspace_artifact_access": {
13548 "params": {
13549 "workspace": "acme",
13550 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z"
13551 },
13552 "request": {
13553 "username": "bo",
13554 "role": "edit",
13555 "notify": "Can you fill in the dates?"
13556 },
13557 "response": {
13558 "artifact_id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
13559 "owner": {
13560 "type": "user",
13561 "id": "usr_01kkntcg1eeb98j62xjm7eh09q",
13562 "username": "ana",
13563 "display_name": "Ana Lima"
13564 },
13565 "shared_with": [
13566 {
13567 "principal": "user:usr_01kmb2d4f6h8k0m2p4r6t8v0x2",
13568 "member": {
13569 "type": "user",
13570 "id": "usr_01kmb2d4f6h8k0m2p4r6t8v0x2",
13571 "username": "bo",
13572 "display_name": "Bo Chen"
13573 },
13574 "role": "edit",
13575 "inherited_from": null
13576 },
13577 {
13578 "principal": "team:design",
13579 "member": {
13580 "type": "team",
13581 "slug": "design",
13582 "display_name": "@acme/design"
13583 },
13584 "role": "comment",
13585 "inherited_from": null
13586 }
13587 ],
13588 "general_access": "workspace",
13589 "general_role": "view",
13590 "inherit": true,
13591 "inherited_from": {
13592 "type": "space",
13593 "id": "spc_01kq1a3c5e7g9j1l3n5q7s9u1w",
13594 "name": "General"
13595 },
13596 "agent_mode": null,
13597 "can_share": true
13598 },
13599 "notes": "One call can share with one person, team or agent, and change `general_access`, `inherit` and `agent_mode`, in that order. `role` set to `none` takes someone's access away. General access never gives full access. On an artifact that follows the doc it is under, change general access on that doc, or set `inherit` to false first."
13600 },
13601 "purge_workspace_artifact": {
13602 "params": {
13603 "workspace": "acme",
13604 "artifact_id": "fol_01kq8d5f7h9k1n3q5s7u9w1y3a"
13605 },
13606 "response": {
13607 "deleted": true
13608 },
13609 "notes": "Only an artifact in the trash can be deleted for good: `trash_workspace_artifact` first."
Projects have Observability: their requests, logs, traces, metrics and errors, from apps on g1t.page with nothing to set up, and from software anywhere else over OpenTelemetry.13610 },
13611 "get_observability_overview": {
13612 "params": {
13613 "workspace": "flagon-io",
13614 "project": "g1t"
13615 },
13616 "query": {
13617 "from": "2026-10-12T13:00:00Z",
13618 "to": "2026-10-12T14:00:00Z",
13619 "environment": "production"
13620 },
13621 "response": {
13622 "from_us": 1791810000000000,
13623 "to_us": 1791813600000000,
13624 "step_s": 60,
13625 "totals": {
13626 "requests": 18204,
13627 "errors": 41,
13628 "error_rate": 0.0023,
13629 "latency": {
13630 "p50": 38.2,
13631 "p75": 71.5,
13632 "p95": 212.0,
13633 "p99": 640.0
13634 },
13635 "cpu": {
13636 "p50": 4.1,
13637 "p75": 6.8,
13638 "p95": 14.2,
13639 "p99": 29.5
13640 }
13641 },
13642 "previous": {
13643 "requests": 17650,
13644 "errors": 3,
13645 "error_rate": 0.0002,
13646 "latency": {
13647 "p50": 35.9,
13648 "p75": 66.0,
13649 "p95": 188.0,
13650 "p99": 402.0
13651 },
13652 "cpu": {
13653 "p50": 3.9,
13654 "p75": 6.5,
13655 "p95": 13.0,
13656 "p99": 22.1
13657 }
13658 },
13659 "points": [
13660 {
13661 "time_us": 1791810000000000,
13662 "requests": 302,
13663 "errors": 0,
13664 "status_2xx": 288,
13665 "status_3xx": 9,
13666 "status_4xx": 5,
13667 "status_5xx": 0,
13668 "latency": {
13669 "p50": 36.0,
13670 "p75": 68.0,
13671 "p95": 190.0,
13672 "p99": 410.0
13673 },
13674 "cpu": {
13675 "p50": 4.0,
13676 "p75": 6.6,
13677 "p95": 13.1,
13678 "p99": 22.0
13679 }
13680 }
13681 ],
13682 "routes": [
13683 {
13684 "route": "/:workspace/:repo/pulls/:number",
13685 "method": "GET",
13686 "requests": 2210,
13687 "errors": 37,
13688 "latency": {
13689 "p50": 61.0,
13690 "p75": 120.0,
13691 "p95": 480.0,
13692 "p99": 842.0
13693 }
13694 }
13695 ],
13696 "deployments": [
13697 {
13698 "deployment_id": "dpl_01kq9a2c4e6g8j0m2p4r6t8v0x",
13699 "environment": "production",
13700 "commit_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
13701 "first_us": 1791813041000000,
13702 "requests": 2904,
13703 "errors": 39,
13704 "latency": {
13705 "p50": 40.1,
13706 "p75": 77.0,
13707 "p95": 260.0,
13708 "p99": 720.0
13709 }
13710 }
13711 ],
13712 "services": [
13713 {
13714 "service": "g1t-web",
13715 "source": "cloudflare",
13716 "requests": 18204,
13717 "errors": 41,
13718 "last_us": 1791813599000000
13719 }
13720 ],
13721 "regions": [
13722 {
13723 "region": "IAD",
13724 "requests": 9120
13725 },
13726 {
13727 "region": "AMS",
13728 "requests": 4410
13729 }
13730 ]
13731 },
13732 "notes": "`totals` is the period and `previous` the period of the same length before it, to compare. Latency and CPU are in milliseconds. `deployments` lists each deployment that answered in the period, newest first: when the error rate or latency rose, the deployment it began with is usually the first one with the higher numbers. Points are one per `step_s` seconds, chosen from the period unless `step` says. See [Observability](/guides/observability/)."
13733 },
13734 "list_requests": {
13735 "params": {
13736 "workspace": "flagon-io",
13737 "project": "g1t"
13738 },
13739 "query": {
13740 "errors_only": "true",
13741 "limit": "1"
13742 },
13743 "response": {
13744 "items": [
13745 {
13746 "id": "req_01kq9b7d9f1h3k5m7p9r1t3v5x",
13747 "time_us": 1791813807418000,
13748 "duration_us": 842000,
13749 "trigger": "fetch",
13750 "method": "GET",
13751 "url": "g1t.sh/flagon-io/g1t/pulls/412",
13752 "route": "/:workspace/:repo/pulls/:number",
13753 "status": 500,
13754 "outcome": "exception",
13755 "cpu_ms": 31.4,
13756 "region": "IAD",
13757 "country": "US",
13758 "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
13759 "log_count": 2,
13760 "error": {
13761 "name": "TypeError",
13762 "message": "Cannot read properties of undefined (reading 'head')"
13763 },
13764 "service": "g1t-web",
13765 "environment": "production",
13766 "deployment_id": "dpl_01kq9a2c4e6g8j0m2p4r6t8v0x",
13767 "commit_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
13768 "source": "cloudflare"
13769 }
13770 ],
13771 "next": "eyJ0IjoxNzkxODEzODA3NDE4MDAwfQ"
13772 },
13773 "notes": "Apps on g1t.page send their requests with nothing to set up; software hosted elsewhere sends them as OpenTelemetry server spans. `route` is the path with ids taken out, which the overview groups by. Pass `next` back as `cursor` for the next page; it is null on the last."
13774 },
13775 "get_request": {
13776 "params": {
13777 "workspace": "flagon-io",
13778 "project": "g1t",
13779 "id": "req_01kq9b7d9f1h3k5m7p9r1t3v5x"
13780 },
13781 "response": {
13782 "request": {
13783 "id": "req_01kq9b7d9f1h3k5m7p9r1t3v5x",
13784 "time_us": 1791813807418000,
13785 "duration_us": 842000,
13786 "trigger": "fetch",
13787 "method": "GET",
13788 "url": "g1t.sh/flagon-io/g1t/pulls/412",
13789 "route": "/:workspace/:repo/pulls/:number",
13790 "status": 500,
13791 "outcome": "exception",
13792 "cpu_ms": 31.4,
13793 "region": "IAD",
13794 "country": "US",
13795 "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
13796 "log_count": 2,
13797 "error": {
13798 "name": "TypeError",
13799 "message": "Cannot read properties of undefined (reading 'head')"
13800 },
13801 "service": "g1t-web",
13802 "environment": "production",
13803 "deployment_id": "dpl_01kq9a2c4e6g8j0m2p4r6t8v0x",
13804 "commit_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
13805 "source": "cloudflare"
13806 },
13807 "logs": [
13808 {
13809 "id": "log_01kq9b7d9f1h3k5m7p9r1t3v5y",
13810 "time_us": 1791813808251000,
13811 "severity": "error",
13812 "severity_number": 17,
13813 "body": "loading pull request 412 failed: Cannot read properties of undefined (reading 'head')",
13814 "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
13815 "span_id": "00f067aa0ba902b7",
13816 "request_id": "req_01kq9b7d9f1h3k5m7p9r1t3v5x",
13817 "attributes": {
13818 "code.function": "loadPull",
13819 "http.route": "/:workspace/:repo/pulls/:number"
13820 },
13821 "service": "g1t-web",
13822 "environment": "production",
13823 "deployment_id": "dpl_01kq9a2c4e6g8j0m2p4r6t8v0x",
13824 "commit_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
13825 "source": "cloudflare"
13826 }
13827 ]
13828 },
13829 "notes": "`404` when the project has no request with that id, or it is older than the project's retention."
13830 },
13831 "list_logs": {
13832 "params": {
13833 "workspace": "flagon-io",
13834 "project": "g1t"
13835 },
13836 "query": {
13837 "q": "\"failed\"",
13838 "level": "error,fatal",
13839 "limit": "1"
13840 },
13841 "response": {
13842 "items": [
13843 {
13844 "id": "log_01kq9b7d9f1h3k5m7p9r1t3v5y",
13845 "time_us": 1791813808251000,
13846 "severity": "error",
13847 "severity_number": 17,
13848 "body": "loading pull request 412 failed: Cannot read properties of undefined (reading 'head')",
13849 "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
13850 "span_id": "00f067aa0ba902b7",
13851 "request_id": "req_01kq9b7d9f1h3k5m7p9r1t3v5x",
13852 "attributes": {
13853 "code.function": "loadPull",
13854 "http.route": "/:workspace/:repo/pulls/:number"
13855 },
13856 "service": "g1t-web",
13857 "environment": "production",
13858 "deployment_id": "dpl_01kq9a2c4e6g8j0m2p4r6t8v0x",
13859 "commit_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
13860 "source": "cloudflare"
13861 }
13862 ],
13863 "next": null
13864 },
13865 "notes": "`q` finds lines holding all of its words, or a phrase in quotes. `level` takes one or more of `trace`, `debug`, `info`, `warn`, `error` and `fatal`. Follow `trace_id` to [the trace](/reference/api/observability/get-trace/) or `request_id` to [the request](/reference/api/observability/get-request/)."
13866 },
13867 "list_traces": {
13868 "params": {
13869 "workspace": "flagon-io",
13870 "project": "g1t"
13871 },
13872 "query": {
13873 "errors_only": "true",
13874 "min_duration_ms": "500"
13875 },
13876 "response": {
13877 "items": [
13878 {
13879 "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
13880 "name": "GET /:workspace/:repo/pulls/:number",
13881 "start_us": 1791813807418000,
13882 "duration_us": 842000,
13883 "span_count": 6,
13884 "error_count": 1,
13885 "services": [
13886 "g1t-web",
13887 "g1t-work"
13888 ],
13889 "status": 500,
13890 "service": "g1t-web",
13891 "environment": "production",
13892 "deployment_id": "dpl_01kq9a2c4e6g8j0m2p4r6t8v0x",
13893 "commit_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
13894 "source": "otlp"
13895 }
13896 ],
13897 "next": null
13898 },
13899 "notes": "Each trace is its root span (or its earliest, when the root has not arrived), with what the rest add up to."
13900 },
13901 "get_trace": {
13902 "params": {
13903 "workspace": "flagon-io",
13904 "project": "g1t",
13905 "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
13906 },
13907 "response": {
13908 "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
13909 "spans": [
13910 {
13911 "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
13912 "span_id": "00f067aa0ba902b7",
13913 "parent_span_id": null,
13914 "name": "GET /:workspace/:repo/pulls/:number",
13915 "kind": "server",
13916 "start_us": 1791813807418000,
13917 "duration_us": 842000,
13918 "status": "error",
13919 "status_message": "TypeError",
13920 "attributes": {
13921 "http.request.method": "GET",
13922 "http.response.status_code": 500
13923 },
13924 "resource": {
13925 "service.name": "g1t-web",
13926 "deployment.environment.name": "production"
13927 },
13928 "events": [],
13929 "links": [],
13930 "service": "g1t-web",
13931 "environment": "production",
13932 "deployment_id": "dpl_01kq9a2c4e6g8j0m2p4r6t8v0x",
13933 "commit_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
13934 "source": "otlp"
13935 }
13936 ],
13937 "logs": [
13938 {
13939 "id": "log_01kq9b7d9f1h3k5m7p9r1t3v5y",
13940 "time_us": 1791813808251000,
13941 "severity": "error",
13942 "severity_number": 17,
13943 "body": "loading pull request 412 failed: Cannot read properties of undefined (reading 'head')",
13944 "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
13945 "span_id": "00f067aa0ba902b7",
13946 "request_id": "req_01kq9b7d9f1h3k5m7p9r1t3v5x",
13947 "attributes": {
13948 "code.function": "loadPull",
13949 "http.route": "/:workspace/:repo/pulls/:number"
13950 },
13951 "service": "g1t-web",
13952 "environment": "production",
13953 "deployment_id": "dpl_01kq9a2c4e6g8j0m2p4r6t8v0x",
13954 "commit_sha": "7c1e9a4b2d6f80135ac9e2b7d4f6a8c0e1b3d5f7",
13955 "source": "cloudflare"
13956 }
13957 ]
13958 },
13959 "notes": "Spans are in the order they started. `404` when the project has no spans of that trace."
13960 },
13961 "list_errors": {
13962 "params": {
13963 "workspace": "flagon-io",
13964 "project": "g1t"
13965 },
13966 "query": {
13967 "state": "open"
13968 },
13969 "response": [
13970 {
13971 "fingerprint": "9f2c41d07ab3e815",
13972 "name": "TypeError",
13973 "message": "Cannot read properties of undefined (reading 'head')",
13974 "stack": "TypeError: Cannot read properties of undefined (reading 'head')\n at loadPull (app/routes/pulls.ts:88:31)",
13975 "service": "g1t-web",
13976 "environment": "production",
13977 "first_us": 1791813062000000,
13978 "last_us": 1791813808000000,
13979 "count": 37,
13980 "first_deployment_id": "dpl_01kq9a2c4e6g8j0m2p4r6t8v0x",
13981 "last_request_id": "req_01kq9b7d9f1h3k5m7p9r1t3v5x",
13982 "last_trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
13983 "state": "open",
13984 "issue_number": null
13985 }
13986 ],
13987 "notes": "The same exception is one group: its name, its message with numbers and ids taken out, and the top frame of its stack. `first_deployment_id` is the deployment it was first seen on, what likely brought it in. At most 200 groups, most recently seen first."
13988 },
13989 "update_error": {
13990 "params": {
13991 "workspace": "flagon-io",
13992 "project": "g1t",
13993 "fingerprint": "9f2c41d07ab3e815"
13994 },
13995 "request": {
13996 "state": "resolved",
13997 "issue_number": 418
13998 },
13999 "response": {
14000 "fingerprint": "9f2c41d07ab3e815",
14001 "name": "TypeError",
14002 "message": "Cannot read properties of undefined (reading 'head')",
14003 "stack": "TypeError: Cannot read properties of undefined (reading 'head')\n at loadPull (app/routes/pulls.ts:88:31)",
14004 "service": "g1t-web",
14005 "environment": "production",
14006 "first_us": 1791813062000000,
14007 "last_us": 1791813808000000,
14008 "count": 37,
14009 "first_deployment_id": "dpl_01kq9a2c4e6g8j0m2p4r6t8v0x",
14010 "last_request_id": "req_01kq9b7d9f1h3k5m7p9r1t3v5x",
14011 "last_trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
14012 "state": "resolved",
14013 "issue_number": 418
14014 },
14015 "notes": "A resolved group that happens again opens again. `issue_number` links the issue made for it, so an agent can take it; null unlinks it. Needs the Triage role or higher."
14016 },
14017 "list_metrics": {
14018 "params": {
14019 "workspace": "flagon-io",
14020 "project": "g1t"
14021 },
14022 "response": [
14023 {
14024 "name": "http.server.request.duration",
14025 "kind": "histogram",
14026 "unit": "s",
14027 "description": "Duration of HTTP server requests.",
14028 "services": [
14029 "g1t-api"
14030 ],
14031 "last_us": 1791813800000000
14032 },
14033 {
14034 "name": "queue.depth",
14035 "kind": "gauge",
14036 "unit": "{message}",
14037 "description": "Messages waiting.",
14038 "services": [
14039 "g1t-work"
14040 ],
14041 "last_us": 1791813780000000
14042 }
14043 ]
14044 },
14045 "get_metric": {
14046 "params": {
14047 "workspace": "flagon-io",
14048 "project": "g1t",
14049 "metric": "http.server.request.duration"
14050 },
14051 "query": {
14052 "aggregate": "p95",
14053 "group_by": "http.route",
14054 "step": "300"
14055 },
14056 "response": {
14057 "name": "http.server.request.duration",
14058 "unit": "s",
14059 "step_s": 300,
14060 "series": [
14061 {
14062 "group": "/repos/:owner/:name/pulls",
14063 "points": [
14064 {
14065 "time_us": 1791813300000000,
14066 "value": 0.212
14067 },
14068 {
14069 "time_us": 1791813600000000,
14070 "value": 0.236
14071 }
14072 ]
14073 }
14074 ]
14075 },
14076 "notes": "A metric name with characters outside letters, digits, `.`, `_` and `-` is URL-encoded in the path. Gauges average in each step unless `aggregate` says `min` or `max`; sums add, and a cumulative sum becomes its increase; histograms give their mean, or a percentile from their buckets."
14077 },
14078 "get_observability_settings": {
14079 "params": {
14080 "workspace": "flagon-io",
14081 "project": "g1t"
14082 },
14083 "response": {
14084 "retention_days": 7,
14085 "deployments": true
14086 },
14087 "notes": "Requests, logs and spans are kept for `retention_days`; the overview's charts are kept longer, as per-minute counts. Needs the Admin role."
14088 },
14089 "update_observability_settings": {
14090 "params": {
14091 "workspace": "flagon-io",
14092 "project": "g1t"
14093 },
14094 "request": {
14095 "retention_days": 14
14096 },
14097 "response": {
14098 "retention_days": 14,
14099 "deployments": true
14100 },
14101 "notes": "`retention_days` is 1, 3, 7, 14 or 30. Turning `deployments` off stops the project's apps on g1t.page from sending and keeps its tokens and history. Needs the Admin role."
14102 },
14103 "list_ingest_tokens": {
14104 "params": {
14105 "workspace": "flagon-io",
14106 "project": "g1t"
14107 },
14108 "response": [
14109 {
14110 "id": "a1b2c3d4",
14111 "name": "Deployments on g1t.page",
14112 "hint": "g1to_prj_…2c8e",
14113 "created_by": null,
14114 "created_us": 1790841600000000,
14115 "last_used_us": 1791813809000000,
14116 "managed": true
14117 },
14118 {
14119 "id": "k3m9q2x7",
14120 "name": "fly.io collector",
14121 "hint": "g1to_prj_…9f3a",
14122 "created_by": "syntaqx",
14123 "created_us": 1791796364000000,
14124 "last_used_us": 1791813790000000,
14125 "managed": false
14126 }
14127 ],
14128 "notes": "Secrets are never returned: `hint` tells tokens apart. The `managed` one is g1t's own, for the project's apps on g1t.page, and is replaced by g1t, not by people. Needs the Admin role."
14129 },
14130 "create_ingest_token": {
14131 "params": {
14132 "workspace": "flagon-io",
14133 "project": "g1t"
14134 },
14135 "request": {
14136 "name": "fly.io collector"
14137 },
14138 "response": {
14139 "token": {
14140 "id": "k3m9q2x7",
14141 "name": "fly.io collector",
14142 "hint": "g1to_prj_…9f3a",
14143 "created_by": "syntaqx",
14144 "created_us": 1791796364000000,
14145 "last_used_us": null,
14146 "managed": false
14147 },
14148 "secret": "g1to_prj_…"
14149 },
14150 "notes": "The secret is returned this once. Send it as `Authorization: Bearer <secret>` (or the `x-g1t-token` header) with OTLP over HTTP, in JSON or protobuf, to `https://otel.g1t.sh/v1/traces`, `/v1/logs` and `/v1/metrics`, or to `/otlp/v1/…` on the API's own address. Needs the Admin role."
14151 },
14152 "delete_ingest_token": {
14153 "params": {
14154 "workspace": "flagon-io",
14155 "project": "g1t",
14156 "id": "k3m9q2x7"
14157 },
14158 "response": true,
14159 "notes": "What sends with it is refused from then on. `404` for the managed token, which people cannot delete. Needs the Admin role."
14160 },
14161 "list_telemetry_exports": {
14162 "params": {
14163 "workspace": "flagon-io",
14164 "project": "g1t"
14165 },
14166 "response": [
14167 {
14168 "id": "x7d2k9m4",
14169 "name": "Honeycomb",
14170 "endpoint": "https://api.honeycomb.io",
14171 "signals": [
14172 "traces",
14173 "logs"
14174 ],
14175 "header_names": [
14176 "x-honeycomb-team"
14177 ],
14178 "enabled": true,
14179 "last_error": null,
14180 "last_sent_us": 1791813809000000
14181 }
14182 ],
14183 "notes": "Header values are secrets: written, never read back, so only `header_names` are shown. `last_error` is what the endpoint answered the last time sending failed. Needs the Admin role."
14184 },
14185 "create_telemetry_export": {
14186 "params": {
14187 "workspace": "flagon-io",
14188 "project": "g1t"
14189 },
14190 "request": {
14191 "name": "Honeycomb",
14192 "endpoint": "https://api.honeycomb.io",
14193 "signals": [
14194 "traces",
14195 "logs"
14196 ],
14197 "headers": {
14198 "x-honeycomb-team": "hcaik_…"
14199 }
14200 },
14201 "response": {
14202 "id": "x7d2k9m4",
14203 "name": "Honeycomb",
14204 "endpoint": "https://api.honeycomb.io",
14205 "signals": [
14206 "traces",
14207 "logs"
14208 ],
14209 "header_names": [
14210 "x-honeycomb-team"
14211 ],
14212 "enabled": true,
14213 "last_error": null,
14214 "last_sent_us": null
14215 },
14216 "notes": "`endpoint` is the OTLP/HTTP base address; `/v1/traces`, `/v1/logs` and `/v1/metrics` are added. Requests go as log records. Telemetry is sent on as it arrives, from then on. Needs the Admin role."
14217 },
14218 "update_telemetry_export": {
14219 "params": {
14220 "workspace": "flagon-io",
14221 "project": "g1t",
14222 "id": "x7d2k9m4"
14223 },
14224 "request": {
14225 "enabled": false
14226 },
14227 "response": {
14228 "id": "x7d2k9m4",
14229 "name": "Honeycomb",
14230 "endpoint": "https://api.honeycomb.io",
14231 "signals": [
14232 "traces",
14233 "logs"
14234 ],
14235 "header_names": [
14236 "x-honeycomb-team"
14237 ],
14238 "enabled": false,
14239 "last_error": null,
14240 "last_sent_us": 1791813809000000
14241 },
14242 "notes": "Only what is given changes. A header given is set, a header given as `\"\"` is removed, and the rest are kept. Needs the Admin role."
14243 },
14244 "delete_telemetry_export": {
14245 "params": {
14246 "workspace": "flagon-io",
14247 "project": "g1t",
14248 "id": "x7d2k9m4"
14249 },
14250 "response": true,
14251 "notes": "Needs the Admin role."
14252 },
14253 "get_observability_usage": {
14254 "params": {
14255 "workspace": "flagon-io",
14256 "project": "g1t"
14257 },
14258 "response": {
14259 "month": "2026-10",
14260 "ingested_bytes": 4831920112,
14261 "requests": 1840221,
14262 "logs": 6204118,
14263 "spans": 9921540,
14264 "metric_points": 3120400,
14265 "stored_bytes": 1210443776
14266 },
14267 "notes": "This month so far. `ingested_bytes` is what arrived, after decoding: what ingest is metered by. Needs the Admin role."
Merge Stripe Tax, the card fee on card payments, and one free workspace per person14268 }
sudo: discounts listed among what was given away14269}

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