g1t/apps/api/src/reference.json

3,773 lines108,952 bytesCodeBlame

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

Merge branch 'worktree-agent-ab2e39e11a6493412'1{
2 "device_code": {
3 "request": {
4 "client_name": "Claude Code"
5 },
6 "response": {
7 "device_code": "Gm3k…",
8 "user_code": "WDJB-MJHT",
9 "verification_uri": "https://g1t.sh/device",
10 "verification_uri_complete": "https://g1t.sh/device?code=WDJB-MJHT",
11 "expires_in": 900,
12 "interval": 5
13 }
14 },
15 "device_token": {
16 "request": {
17 "device_code": "Gm3k…"
18 },
19 "response": {
20 "status": "approved",
21 "token": "g1t_…",
22 "username": "syntaqx",
23 "verified": true
24 }
25 },
26 "whoami": {
27 "response": {
28 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
29 "username": "syntaqx",
30 "kind": "user",
31 "verified": true,
32 "workspaces": [
33 {
34 "slug": "acme",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look35 "role": "member",
36 "base_permission": "write"
Merge branch 'worktree-agent-ab2e39e11a6493412'37 },
38 {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look39 "slug": "flagon-io",
40 "role": "owner",
41 "base_permission": "write"
Merge branch 'worktree-agent-ab2e39e11a6493412'42 }
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step43 ],
44 "token": {
45 "token_id": "tok_01kkntd3p2v8x6ym5r0c1q7a9e",
46 "scopes": ["repo:read", "issues:read", "issues:write", "pull_requests:read", "pull_requests:write"]
47 }
Merge branch 'worktree-agent-ab2e39e11a6493412'48 },
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step49 "notes": "`token` is what the access token you called with may do: its `scopes` (left out for full access) and `legacy` when it was made before tokens had scopes. A token reaches every workspace and repository whoever it acts as can; its scopes say what it may do there. See [Scopes](/guides/authentication/#scopes). `kind` is `user`, `workspace` for a [workspace access token](/guides/workspaces/#workspace-access-tokens), or `agent` for the token a g1t agent works with. For a workspace token, `username` is the workspace's slug and `workspaces` holds only that workspace. Each workspace carries its `base_permission`: what a member gets on each of its repositories (owners have Admin). Roles given on single repositories are in `grants`, each with `repo_id`, `workspace` and `role`; it is left out when there are none. See [Access and roles](/guides/access-and-roles/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'50 },
51 "create_workspace": {
52 "request": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look53 "slug": "acme-labs",
54 "name": "Acme Labs"
Merge branch 'worktree-agent-ab2e39e11a6493412'55 },
56 "response": {
57 "id": "wsp_01m43teqa9em6bje0bhvdj4jkb",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look58 "slug": "acme-labs",
59 "name": "Acme Labs",
Merge branch 'worktree-agent-ab2e39e11a6493412'60 "description": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API61 "created_at": "2026-10-04T16:02:51.337Z",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look62 "member_count": 1,
63 "base_permission": "write"
64 },
65 "notes": "`base_permission` is what every member gets on each of its repositories: `write` until an owner changes it with `PATCH /workspaces/{workspace}`. See [Access and roles](/guides/access-and-roles/)."
66 },
67 "delete_workspace": {
68 "request": {
69 "confirm": "acme-labs"
70 },
71 "response": true,
72 "notes": "Refused with `409` while the workspace holds repositories or projects, and with `402` while billing cannot settle it, each with a message that says what to do. See [Delete a workspace](/guides/workspaces/#delete-a-workspace)."
73 },
74 "list_emails": {
75 "response": {
76 "emails": [
77 {
78 "email": "ada@example.com",
79 "verified": true,
80 "primary": true,
81 "backup": false,
82 "created_at": "2026-09-01T10:00:00.000Z",
83 "verified_at": "2026-09-01T10:02:11.000Z"
84 },
85 {
86 "email": "ada@acme.com",
87 "verified": true,
88 "primary": false,
89 "backup": true,
90 "created_at": "2026-10-02T09:30:00.000Z",
91 "verified_at": "2026-10-02T09:31:40.000Z"
92 },
93 {
94 "email": "ada.l@example.org",
95 "verified": false,
96 "primary": false,
97 "backup": false,
98 "created_at": "2026-10-05T14:12:03.000Z",
99 "verified_at": null
100 }
101 ],
102 "private_email": true,
103 "block_private_pushes": false,
104 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
105 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
106 "limit": 10
107 },
108 "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)."
109 },
110 "add_email": {
111 "request": {
112 "email": "ada.l@example.org",
113 "password": "…"
114 },
115 "response": {
116 "emails": [
117 {
118 "email": "ada@example.com",
119 "verified": true,
120 "primary": true,
121 "backup": false,
122 "created_at": "2026-09-01T10:00:00.000Z",
123 "verified_at": "2026-09-01T10:02:11.000Z"
124 },
125 {
126 "email": "ada@acme.com",
127 "verified": true,
128 "primary": false,
129 "backup": true,
130 "created_at": "2026-10-02T09:30:00.000Z",
131 "verified_at": "2026-10-02T09:31:40.000Z"
132 },
133 {
134 "email": "ada.l@example.org",
135 "verified": false,
136 "primary": false,
137 "backup": false,
138 "created_at": "2026-10-05T14:12:03.000Z",
139 "verified_at": null
140 }
141 ],
142 "private_email": true,
143 "block_private_pushes": false,
144 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
145 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
146 "limit": 10
147 },
148 "notes": "Answers `403` with code `reauth_required` when `password` is missing or wrong, and `409` when another account has confirmed the address. The new address stays unconfirmed until its link is followed."
149 },
150 "remove_email": {
151 "request": {
152 "password": "…"
153 },
154 "response": {
155 "emails": [
156 {
157 "email": "ada@example.com",
158 "verified": true,
159 "primary": true,
160 "backup": false,
161 "created_at": "2026-09-01T10:00:00.000Z",
162 "verified_at": "2026-09-01T10:02:11.000Z"
163 },
164 {
165 "email": "ada@acme.com",
166 "verified": true,
167 "primary": false,
168 "backup": true,
169 "created_at": "2026-10-02T09:30:00.000Z",
170 "verified_at": "2026-10-02T09:31:40.000Z"
171 },
172 {
173 "email": "ada.l@example.org",
174 "verified": false,
175 "primary": false,
176 "backup": false,
177 "created_at": "2026-10-05T14:12:03.000Z",
178 "verified_at": null
179 }
180 ],
181 "private_email": true,
182 "block_private_pushes": false,
183 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
184 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
185 "limit": 10
186 },
187 "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."
188 },
189 "update_email_settings": {
190 "request": {
191 "primary": "ada@acme.com",
192 "password": "…"
193 },
194 "response": {
195 "emails": [
196 {
197 "email": "ada@example.com",
198 "verified": true,
199 "primary": true,
200 "backup": false,
201 "created_at": "2026-09-01T10:00:00.000Z",
202 "verified_at": "2026-09-01T10:02:11.000Z"
203 },
204 {
205 "email": "ada@acme.com",
206 "verified": true,
207 "primary": false,
208 "backup": true,
209 "created_at": "2026-10-02T09:30:00.000Z",
210 "verified_at": "2026-10-02T09:31:40.000Z"
211 },
212 {
213 "email": "ada.l@example.org",
214 "verified": false,
215 "primary": false,
216 "backup": false,
217 "created_at": "2026-10-05T14:12:03.000Z",
218 "verified_at": null
219 }
220 ],
221 "private_email": true,
222 "block_private_pushes": false,
223 "noreply": "6c1d0efg+ada@users.noreply.g1t.sh",
224 "commit_email": "6c1d0efg+ada@users.noreply.g1t.sh",
225 "limit": 10
226 },
227 "notes": "Only the fields given change. `primary` and `backup` need `password`; `private_email` and `block_private_pushes` do not."
228 },
229 "list_invites": {
230 "response": {
231 "mode": "invite",
232 "allowance": {
233 "limit": 5,
234 "used": 2,
235 "remaining": 3
236 },
237 "workspaces": [
238 {
239 "slug": "acme-labs",
240 "allowance": {
241 "limit": 20,
242 "used": 4,
243 "remaining": 16
244 }
245 }
246 ],
247 "invites": [
248 {
249 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
250 "code": "g1t-k7m2-q9xd-4hpw-…",
251 "hint": "g1t-k7m2",
252 "email": "ada@example.com",
253 "kind": "account",
254 "workspace": null,
255 "status": "pending",
256 "charged_to": "user",
257 "invited_by": "syntaqx",
258 "redeemed_by": null,
259 "created_at": "2026-10-05T17:00:00.000Z",
260 "expires_at": "2026-11-04T17:00:00.000Z",
261 "redeemed_at": null,
262 "revoked_at": null
263 },
264 {
265 "id": "inv_01kp1v3c4d5e6f7g8h9j0k1m2n",
266 "code": null,
267 "hint": "g1t-p3rt",
268 "email": null,
269 "kind": "account",
270 "workspace": null,
271 "status": "redeemed",
272 "charged_to": "user",
273 "invited_by": "syntaqx",
274 "redeemed_by": "grace",
275 "created_at": "2026-10-02T09:12:40.000Z",
276 "expires_at": "2026-11-01T09:12:40.000Z",
277 "redeemed_at": "2026-10-02T11:30:05.000Z",
278 "revoked_at": null
279 }
280 ]
281 },
282 "notes": "`allowance.limit` and `allowance.remaining` are null when you have no limit. A revoked or expired invite that was never used is not counted. Ask for more at hey@flagon.io with the subject `[g1t Invites]`. See [Invites](/guides/authentication/#invites)."
283 },
284 "create_invite": {
285 "request": {
286 "email": "ada@example.com"
287 },
288 "response": {
289 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
290 "code": "g1t-k7m2-q9xd-4hpw-…",
291 "hint": "g1t-k7m2",
292 "email": "ada@example.com",
293 "kind": "account",
294 "workspace": null,
295 "status": "pending",
296 "charged_to": "user",
297 "invited_by": "syntaqx",
298 "redeemed_by": null,
299 "created_at": "2026-10-05T17:00:00.000Z",
300 "expires_at": "2026-11-04T17:00:00.000Z",
301 "redeemed_at": null,
302 "revoked_at": null
303 },
304 "notes": "Refused with `402` (`limit`) when you have no invites left, with `409` when you already have a pending invite for that address or it already has a g1t account, and with `403` for an agent's or a workspace's token. The code is returned in full; send people the link `https://g1t.sh/invite/<code>`."
305 },
306 "revoke_invite": {
307 "response": {
308 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
309 "code": null,
310 "hint": "g1t-k7m2",
311 "email": "ada@example.com",
312 "kind": "account",
313 "workspace": null,
314 "status": "revoked",
315 "charged_to": "user",
316 "invited_by": "syntaqx",
317 "redeemed_by": null,
318 "created_at": "2026-10-05T17:00:00.000Z",
319 "expires_at": "2026-11-04T17:00:00.000Z",
320 "redeemed_at": null,
321 "revoked_at": "2026-10-06T08:00:00.000Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'322 }
323 },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look324 "list_workspace_invites": {
325 "response": [
326 {
327 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
328 "code": "g1t-k7m2-q9xd-4hpw-…",
329 "hint": "g1t-k7m2",
330 "email": "ada@example.com",
331 "kind": "account",
332 "workspace": "acme-labs",
333 "status": "pending",
334 "charged_to": "workspace",
335 "invited_by": "syntaqx",
336 "redeemed_by": null,
337 "created_at": "2026-10-05T17:00:00.000Z",
338 "expires_at": "2026-11-04T17:00:00.000Z",
339 "redeemed_at": null,
340 "revoked_at": null
341 },
342 {
343 "id": "inv_01kp1z9y8x7w6v5t4s3r2q1p0n",
344 "code": "g1t-k7m2-q9xd-4hpw-…",
345 "hint": "g1t-w2vb",
346 "email": "linus@example.com",
347 "kind": "workspace",
348 "workspace": "acme-labs",
349 "status": "pending",
350 "charged_to": "none",
351 "invited_by": "syntaqx",
352 "redeemed_by": null,
353 "created_at": "2026-10-05T17:00:00.000Z",
354 "expires_at": "2026-11-04T17:00:00.000Z",
355 "redeemed_at": null,
356 "revoked_at": null
357 }
358 ]
359 },
360 "invite_member": {
361 "request": {
362 "email": "ada@example.com"
363 },
364 "response": {
365 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
366 "code": "g1t-k7m2-q9xd-4hpw-…",
367 "hint": "g1t-k7m2",
368 "email": "ada@example.com",
369 "kind": "account",
370 "workspace": "acme-labs",
371 "status": "pending",
372 "charged_to": "workspace",
373 "invited_by": "syntaqx",
374 "redeemed_by": null,
375 "created_at": "2026-10-05T17:00:00.000Z",
376 "expires_at": "2026-11-04T17:00:00.000Z",
377 "redeemed_at": null,
378 "revoked_at": null
379 },
380 "notes": "`kind` is `workspace` when the address already has a g1t account (`charged_to` is then `none`), and `account` when accepting makes one. Both answers look alike to the caller on purpose: the invite is emailed either way."
381 },
382 "revoke_workspace_invite": {
383 "response": {
384 "id": "inv_01kp2x7m8n9q0r1s2t3v4w5x6y",
385 "code": null,
386 "hint": "g1t-k7m2",
387 "email": "ada@example.com",
388 "kind": "account",
389 "workspace": "acme-labs",
390 "status": "revoked",
391 "charged_to": "workspace",
392 "invited_by": "syntaqx",
393 "redeemed_by": null,
394 "created_at": "2026-10-05T17:00:00.000Z",
395 "expires_at": "2026-11-04T17:00:00.000Z",
396 "redeemed_at": null,
397 "revoked_at": "2026-10-06T08:00:00.000Z"
398 }
399 },
Merge branch 'worktree-agent-ab2e39e11a6493412'400 "list_repos": {
401 "query": {
402 "q": "hello"
403 },
404 "response": [
405 {
406 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look407 "namespace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'408 "name": "hello",
409 "description": "A tiny service that says hello.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API410 "is_private": false,
411 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
412 "default_branch": "main",
413 "fork_of": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'414 "protected": true,
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look415 "created_at": "2026-09-28T14:11:52.640Z",
416 "website": "https://hello.g1t.page",
417 "archived_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'418 }
419 ],
420 "notes": "Returns at most 50 repositories, newest first. Forks made for pull requests are left out."
421 },
422 "create_repo": {
423 "request": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look424 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'425 "name": "hello-cli",
426 "description": "Command-line client for hello.",
427 "private": false
428 },
429 "response": {
430 "id": "rep_01m43tk1jhehztx23drs87f5fc",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look431 "namespace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'432 "name": "hello-cli",
433 "description": "Command-line client for hello.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API434 "is_private": false,
435 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
436 "default_branch": "main",
437 "fork_of": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'438 "protected": false,
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look439 "created_at": "2026-10-04T16:05:12.913Z",
440 "website": "https://hello.g1t.page",
441 "archived_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'442 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API443 "notes": "`owner_id` is the id of the person who created the repository. With `import_url`, `default_branch` is the default branch of the repository copied."
Merge branch 'worktree-agent-ab2e39e11a6493412'444 },
445 "get_repo": {
446 "response": {
447 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look448 "namespace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'449 "name": "hello",
450 "description": "A tiny service that says hello.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API451 "is_private": false,
452 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
453 "default_branch": "main",
454 "fork_of": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'455 "protected": true,
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look456 "created_at": "2026-09-28T14:11:52.640Z",
457 "website": "https://hello.g1t.page",
458 "archived_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'459 }
460 },
461 "update_repo": {
462 "request": {
463 "description": "Says hello, politely.",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look464 "website": "hello.g1t.page",
465 "default_branch": "trunk",
Merge branch 'worktree-agent-ab2e39e11a6493412'466 "protected": true
467 },
468 "response": {
469 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look470 "namespace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'471 "name": "hello",
472 "description": "Says hello, politely.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API473 "is_private": false,
474 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look475 "default_branch": "trunk",
476 "fork_of": null,
477 "protected": true,
478 "created_at": "2026-09-28T14:11:52.640Z",
479 "topics": [
480 "http",
481 "example"
482 ],
483 "website": "https://hello.g1t.page",
484 "archived_at": null
485 },
486 "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/)."
487 },
488 "transfer_repo": {
489 "request": {
490 "to": "flagon-io"
491 },
492 "response": {
493 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
494 "namespace": "flagon-io",
495 "name": "hello",
496 "description": "A tiny service that says hello.",
497 "is_private": false,
498 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API499 "default_branch": "main",
500 "fork_of": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'501 "protected": true,
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look502 "created_at": "2026-09-28T14:11:52.640Z",
503 "website": "https://hello.g1t.page",
504 "archived_at": null
505 },
506 "notes": "The repository at its new address. Refused with `409` when the destination already has a repository of that name, `403` unless you own both workspaces, and `402` when a free destination has no room for a private repository. The old address redirects. See [Transferring a repository](/guides/transferring-repositories/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'507 },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look508 "rename_repo": {
509 "request": {
510 "name": "greeter"
511 },
512 "response": {
513 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
514 "namespace": "flagon-io",
515 "name": "greeter",
516 "description": "A tiny service that says hello.",
517 "is_private": false,
518 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
519 "default_branch": "main",
520 "fork_of": null,
521 "protected": true,
522 "created_at": "2026-09-28T14:11:52.640Z",
523 "topics": [
524 "http",
525 "example"
526 ],
527 "website": "https://hello.g1t.page",
528 "archived_at": null
529 },
530 "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)."
531 },
532 "rename_branch": {
533 "params": {
534 "owner": "flagon-io",
535 "name": "hello",
536 "branch": "feature/login"
537 },
538 "request": {
539 "new_name": "feature/sign-in"
540 },
541 "response": {
542 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
543 "namespace": "flagon-io",
544 "name": "hello",
545 "description": "A tiny service that says hello.",
546 "is_private": false,
547 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
548 "default_branch": "main",
549 "fork_of": null,
550 "protected": true,
551 "created_at": "2026-09-28T14:11:52.640Z",
552 "topics": [
553 "http",
554 "example"
555 ],
556 "website": "https://hello.g1t.page",
557 "archived_at": null
558 },
559 "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)."
560 },
561 "set_repo_visibility": {
562 "request": {
563 "private": true,
564 "confirm": "flagon-io/hello"
565 },
566 "response": {
567 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
568 "namespace": "flagon-io",
569 "name": "hello",
570 "description": "A tiny service that says hello.",
571 "is_private": true,
572 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
573 "default_branch": "main",
574 "fork_of": null,
575 "protected": true,
576 "created_at": "2026-09-28T14:11:52.640Z",
577 "topics": [
578 "http",
579 "example"
580 ],
581 "website": "https://hello.g1t.page",
582 "archived_at": null
583 },
584 "notes": "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)."
585 },
586 "archive_repo": {
587 "response": {
588 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
589 "namespace": "flagon-io",
590 "name": "hello",
591 "description": "A tiny service that says hello.",
592 "is_private": false,
593 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
594 "default_branch": "main",
595 "fork_of": null,
596 "protected": true,
597 "created_at": "2026-09-28T14:11:52.640Z",
598 "topics": [
599 "http",
600 "example"
601 ],
602 "website": "https://hello.g1t.page",
603 "archived_at": "2026-10-05T09:30:00.000Z"
604 },
605 "notes": "The repository, with `archived_at` set. Needs the Admin role (`403` otherwise). See [Archive a repository](/guides/managing-repositories/#archive-a-repository)."
606 },
607 "unarchive_repo": {
608 "response": {
609 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
610 "namespace": "flagon-io",
611 "name": "hello",
612 "description": "A tiny service that says hello.",
613 "is_private": false,
614 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
615 "default_branch": "main",
616 "fork_of": null,
617 "protected": true,
618 "created_at": "2026-09-28T14:11:52.640Z",
619 "topics": [
620 "http",
621 "example"
622 ],
623 "website": "https://hello.g1t.page",
624 "archived_at": null
625 },
626 "notes": "The repository, with `archived_at` null. Needs the Admin role (`403` otherwise)."
627 },
628 "delete_repo": {
629 "request": {
630 "confirm": "flagon-io/hello"
631 },
632 "response": {
633 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
634 "namespace": "flagon-io",
635 "name": "hello",
636 "description": "A tiny service that says hello.",
637 "is_private": false,
638 "deleted_at": "2026-10-05T09:30:00.000Z",
639 "deleted_by": "syntaqx",
640 "purge_after": "2026-11-04T09:30:00.000Z"
641 },
642 "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)."
643 },
644 "list_deleted_repos": {
645 "params": {
646 "workspace": "flagon-io"
647 },
648 "response": [
649 {
650 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
651 "namespace": "flagon-io",
652 "name": "hello",
653 "description": "A tiny service that says hello.",
654 "is_private": false,
655 "deleted_at": "2026-10-05T09:30:00.000Z",
656 "deleted_by": "syntaqx",
657 "purge_after": "2026-11-04T09:30:00.000Z"
658 }
659 ],
660 "notes": "Newest first. Empty for anyone who is not an owner of the workspace."
661 },
662 "restore_repo": {
663 "response": {
664 "id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
665 "namespace": "flagon-io",
666 "name": "hello",
667 "description": "A tiny service that says hello.",
668 "is_private": false,
669 "owner_id": "usr_01kkntcg1eeb98j62xjm7eh09p",
670 "default_branch": "main",
671 "fork_of": null,
672 "protected": true,
673 "created_at": "2026-09-28T14:11:52.640Z",
674 "topics": [
675 "http",
676 "example"
677 ],
678 "website": "https://hello.g1t.page",
679 "archived_at": null
680 },
681 "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)."
682 },
683 "purge_repo": {
684 "request": {
685 "confirm": "flagon-io/hello"
686 },
687 "response": true,
688 "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."
689 },
Merge branch 'worktree-agent-ab2e39e11a6493412'690 "get_repo_settings": {
691 "response": {
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API692 "auto_merge": false,
693 "require_up_to_date": false,
694 "required_approvals": 0,
695 "count_agent_approvals": true,
696 "allow_ignoring_checks": true,
697 "agent_review": true,
698 "max_revisions": 2,
699 "merge_queue": false,
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step700 "hold_low_confidence": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API701 "updated_by": null,
702 "updated_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'703 }
704 },
705 "update_repo_settings": {
706 "request": {
707 "required_approvals": 1,
708 "count_agent_approvals": false,
709 "merge_queue": true
710 },
711 "response": {
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API712 "auto_merge": false,
713 "require_up_to_date": false,
714 "required_approvals": 1,
715 "count_agent_approvals": false,
716 "allow_ignoring_checks": true,
717 "agent_review": true,
718 "max_revisions": 2,
719 "merge_queue": true,
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step720 "hold_low_confidence": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API721 "updated_by": "syntaqx",
722 "updated_at": "2026-10-04T16:20:37.508Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'723 },
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step724 "notes": "`required_approvals` is at most 6 and `max_revisions` at most 5. See [what a repository can ask for](/guides/g1t-agents/#what-a-repository-can-ask-for). `hold_low_confidence` is on unless turned off: see [confidence](/guides/g1t-agents/#how-sure-the-agent-is)."
Merge branch 'worktree-agent-ab2e39e11a6493412'725 },
726 "list_events": {
727 "query": {
728 "before": "evt_01m43t2a6c9e3g7j1m5q9t3x7b"
729 },
730 "response": [
731 {
732 "id": "evt_01m43smh3ve52vkcna207vqctf",
733 "type": "pull.opened",
734 "source": "work",
735 "time": "2026-10-01T18:20:02.117Z",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API736 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'737 "actor": "usr_01kkntcg1eeb98j62xjm7eh09p",
738 "data": {
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API739 "pull_id": "pr_01m43smh3vexsr5pmp60qwv0vs",
740 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'741 "number": 14,
742 "issue": 12,
743 "agent": "claude-code"
744 }
745 },
746 {
747 "id": "evt_01m43shrzpf2vt5rxbb02z0xjt",
748 "type": "issue.opened",
749 "source": "work",
750 "time": "2026-10-01T18:04:11.482Z",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API751 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'752 "actor": "usr_01kkntcg1eeb98j62xjm7eh09p",
753 "data": {
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API754 "issue_id": "iss_01m43shrzpfe49x74ga7sj1c6v",
755 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'756 "number": 12,
757 "title": "Greeting should name the caller"
758 }
759 }
760 ],
761 "notes": "Returns 50 events a page. To page back, send the `id` of the last event you have as `before`. `actor` is a user id, and `data` depends on `type`."
762 },
763 "list_issues": {
764 "query": {
765 "state": "open",
766 "label": "feature"
767 },
768 "response": [
769 {
770 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API771 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'772 "number": 12,
773 "title": "Greeting should name the caller",
774 "body": "Take a name from the first argument; fall back to world.",
775 "labels": [
776 "feature"
777 ],
778 "checks": [
779 "cargo test"
780 ],
781 "state": "open",
782 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API783 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'784 "author": {
785 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
786 "username": "syntaqx",
787 "kind": "user",
788 "verified": false,
789 "workspaces": []
790 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API791 "created_at": "2026-10-01T18:04:11.482Z",
792 "updated_at": "2026-10-01T18:04:11.482Z",
793 "closed_at": null,
794 "pull_count": 1,
795 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'796 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API797 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'798 "queued": false,
799 "agent": "claude-code"
800 }
801 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API802 "notes": "Returns at most 100 issues, newest first. `comment_count` counts comments, not events such as \"opened #14 for this\"."
Merge branch 'worktree-agent-ab2e39e11a6493412'803 },
804 "create_issue": {
805 "request": {
806 "title": "Greeting should name the caller",
807 "body": "Take a name from the first argument; fall back to world.",
808 "labels": [
809 "feature"
810 ],
811 "checks": [
812 "cargo test"
813 ]
814 },
815 "response": {
816 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API817 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'818 "number": 12,
819 "title": "Greeting should name the caller",
820 "body": "Take a name from the first argument; fall back to world.",
821 "labels": [
822 "feature"
823 ],
824 "checks": [
825 "cargo test"
826 ],
827 "state": "open",
828 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API829 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'830 "author": {
831 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
832 "username": "syntaqx",
833 "kind": "user",
834 "verified": false,
835 "workspaces": []
836 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API837 "created_at": "2026-10-01T18:04:11.482Z",
838 "updated_at": "2026-10-01T18:04:11.482Z",
839 "closed_at": null,
840 "pull_count": 0,
841 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'842 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API843 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'844 "queued": false,
845 "agent": null
846 },
847 "notes": "Labels are lowercased. A label not used before is created."
848 },
849 "get_issue": {
850 "response": {
851 "issue": {
852 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API853 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'854 "number": 12,
855 "title": "Greeting should name the caller",
856 "body": "Take a name from the first argument; fall back to world.",
857 "labels": [
858 "feature"
859 ],
860 "checks": [
861 "cargo test"
862 ],
863 "state": "closed",
864 "reason": "completed",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API865 "resolved_by": 14,
Merge branch 'worktree-agent-ab2e39e11a6493412'866 "author": {
867 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
868 "username": "syntaqx",
869 "kind": "user",
870 "verified": false,
871 "workspaces": []
872 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API873 "created_at": "2026-10-01T18:04:11.482Z",
874 "updated_at": "2026-10-01T18:52:17.093Z",
875 "closed_at": "2026-10-01T18:52:17.093Z",
876 "pull_count": 2,
877 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'878 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API879 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'880 "queued": false,
881 "agent": null
882 },
883 "pulls": [
884 {
885 "id": "pr_01m43sjq8tcz5rbm2a7k4d9e6w",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API886 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'887 "number": 13,
888 "issue": 12,
889 "title": "Greeting should name the caller",
890 "body": null,
891 "agent": "claude-code",
892 "runtime": "external",
893 "status": "closed",
894 "fork": {
895 "namespace": "pulls",
896 "name": "pr_01m43sjq8tcz5rbm2a7k4d9e6w"
897 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API898 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'899 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API900 "head_commit": null,
901 "merge_base": null,
902 "merged_by": null,
903 "merged_at": null,
904 "superseded_by": 14,
905 "check_status": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'906 "files": [],
907 "assignees": [],
908 "reviewers": [],
909 "author": {
910 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
911 "username": "syntaqx",
912 "kind": "user",
913 "verified": false,
914 "workspaces": []
915 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API916 "created_at": "2026-10-01T18:20:02.117Z",
917 "updated_at": "2026-10-01T18:20:02.117Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'918 },
919 {
920 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API921 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'922 "number": 14,
923 "issue": 12,
924 "title": "Greeting should name the caller",
925 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
926 "agent": "claude-code",
927 "runtime": "external",
928 "status": "merged",
929 "fork": {
930 "namespace": "pulls",
931 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
932 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API933 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'934 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API935 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
936 "merge_base": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
937 "merged_by": "syntaqx",
938 "merged_at": "2026-10-01T18:52:17.093Z",
939 "superseded_by": null,
940 "check_status": "passed",
Merge branch 'worktree-agent-ab2e39e11a6493412'941 "files": [
942 {
943 "path": "src/main.rs",
944 "additions": 6,
945 "deletions": 2
946 }
947 ],
948 "assignees": [],
949 "reviewers": [
950 "ana"
951 ],
952 "author": {
953 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
954 "username": "syntaqx",
955 "kind": "user",
956 "verified": false,
957 "workspaces": []
958 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API959 "created_at": "2026-10-01T18:20:02.117Z",
960 "updated_at": "2026-10-01T18:52:17.093Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'961 }
962 ],
963 "comments": [
964 {
965 "id": "cmt_01m43sr2b7d5f0j6k3n8p1q4v9",
966 "kind": "event",
967 "author": {
968 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
969 "username": "syntaqx",
970 "kind": "user",
971 "verified": false,
972 "workspaces": []
973 },
974 "body": "opened #14 for this",
975 "path": null,
976 "line": null,
977 "verdict": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API978 "created_at": "2026-10-01T18:20:02.141Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'979 }
980 ]
981 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API982 "notes": "A closed issue says how it was closed: `reason` is `completed` or `not_planned`, and `resolved_by` is the number of the pull request whose merge closed it. Each pull request made for it is listed; one closed because another was merged has `superseded_by` set."
Merge branch 'worktree-agent-ab2e39e11a6493412'983 },
984 "update_issue": {
985 "request": {
986 "labels": [
987 "feature",
988 "good first issue"
989 ],
990 "assignees": [
991 "syntaqx"
992 ]
993 },
994 "response": {
995 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API996 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'997 "number": 12,
998 "title": "Greeting should name the caller",
999 "body": "Take a name from the first argument; fall back to world.",
1000 "labels": [
1001 "feature",
1002 "good first issue"
1003 ],
1004 "checks": [
1005 "cargo test"
1006 ],
1007 "state": "open",
1008 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1009 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1010 "author": {
1011 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1012 "username": "syntaqx",
1013 "kind": "user",
1014 "verified": false,
1015 "workspaces": []
1016 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1017 "created_at": "2026-10-01T18:04:11.482Z",
1018 "updated_at": "2026-10-01T18:09:47.305Z",
1019 "closed_at": null,
1020 "pull_count": 0,
1021 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'1022 "assignees": [
1023 "syntaqx"
1024 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1025 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1026 "queued": false,
1027 "agent": null
1028 }
1029 },
1030 "close_issue": {
1031 "request": {
1032 "reason": "not_planned"
1033 },
1034 "response": {
1035 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1036 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1037 "number": 12,
1038 "title": "Greeting should name the caller",
1039 "body": "Take a name from the first argument; fall back to world.",
1040 "labels": [
1041 "feature"
1042 ],
1043 "checks": [
1044 "cargo test"
1045 ],
1046 "state": "closed",
1047 "reason": "not_planned",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1048 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1049 "author": {
1050 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1051 "username": "syntaqx",
1052 "kind": "user",
1053 "verified": false,
1054 "workspaces": []
1055 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1056 "created_at": "2026-10-01T18:04:11.482Z",
1057 "updated_at": "2026-10-01T19:30:00.214Z",
1058 "closed_at": "2026-10-01T19:30:00.214Z",
1059 "pull_count": 0,
1060 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'1061 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1062 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1063 "queued": false,
1064 "agent": null
1065 }
1066 },
1067 "reopen_issue": {
1068 "response": {
1069 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1070 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1071 "number": 12,
1072 "title": "Greeting should name the caller",
1073 "body": "Take a name from the first argument; fall back to world.",
1074 "labels": [
1075 "feature"
1076 ],
1077 "checks": [
1078 "cargo test"
1079 ],
1080 "state": "open",
1081 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1082 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1083 "author": {
1084 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1085 "username": "syntaqx",
1086 "kind": "user",
1087 "verified": false,
1088 "workspaces": []
1089 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1090 "created_at": "2026-10-01T18:04:11.482Z",
1091 "updated_at": "2026-10-01T19:41:52.830Z",
1092 "closed_at": null,
1093 "pull_count": 0,
1094 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'1095 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1096 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1097 "queued": false,
1098 "agent": null
1099 }
1100 },
1101 "assign_issue": {
1102 "request": {
1103 "instructions": "Keep the change to src/main.rs."
1104 },
1105 "response": {
1106 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1107 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1108 "number": 14,
1109 "issue": 12,
1110 "title": "Greeting should name the caller",
1111 "body": null,
1112 "agent": "g1t-agent",
1113 "runtime": "hosted",
1114 "status": "draft",
1115 "fork": {
1116 "namespace": "pulls",
1117 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1118 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1119 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1120 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1121 "head_commit": null,
1122 "merge_base": null,
1123 "merged_by": null,
1124 "merged_at": null,
1125 "superseded_by": null,
1126 "check_status": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1127 "files": [],
1128 "assignees": [],
1129 "reviewers": [],
1130 "author": {
1131 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1132 "username": "syntaqx",
1133 "kind": "user",
1134 "verified": false,
1135 "workspaces": []
1136 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1137 "created_at": "2026-10-01T18:20:02.117Z",
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1138 "updated_at": "2026-10-01T18:20:02.117Z",
1139 "confidence": null
Merge branch 'worktree-agent-ab2e39e11a6493412'1140 },
1141 "notes": "The response is the pull request the g1t agent opened, still a draft. Follow it with [get a pull request](/reference/api/pull-requests/get-pull-request/): `lifecycle` says what the agent is doing."
1142 },
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1143 "delegate": {
1144 "request": {
1145 "title": "Retry webhooks with exponential backoff",
1146 "body": "Deliveries that fail are dropped today. Retry them with exponential backoff, up to six times, then mark the delivery failed.",
1147 "checks": [
1148 "npm test"
1149 ]
1150 },
1151 "response": {
1152 "issue": {
1153 "id": "iss_01m4a2c8v1t7k3q9x5n0r2w6yd",
1154 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1155 "number": 41,
1156 "title": "Retry webhooks with exponential backoff",
1157 "body": "Deliveries that fail are dropped today. Retry them with exponential backoff, up to six times, then mark the delivery failed.",
1158 "labels": [],
1159 "checks": [
1160 "npm test"
1161 ],
1162 "state": "open",
1163 "reason": null,
1164 "resolved_by": null,
1165 "author": {
1166 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1167 "username": "syntaqx",
1168 "kind": "user",
1169 "verified": false,
1170 "workspaces": []
1171 },
1172 "created_at": "2026-10-05T14:02:11.204Z",
1173 "updated_at": "2026-10-05T14:02:11.204Z",
1174 "closed_at": null,
1175 "pull_count": 1,
1176 "comment_count": 0,
1177 "assignees": [],
1178 "blocked_by": [],
1179 "queued": false,
1180 "agent": "g1t-agent"
1181 },
1182 "pull": {
1183 "id": "pr_01m4a2c9b6e0h4m8q2t6x0a4d8",
1184 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
1185 "number": 42,
1186 "issue": 41,
1187 "title": "Retry webhooks with exponential backoff",
1188 "body": null,
1189 "agent": "g1t-agent",
1190 "runtime": "hosted",
1191 "status": "draft",
1192 "fork": {
1193 "namespace": "pulls",
1194 "name": "pr_01m4a2c9b6e0h4m8q2t6x0a4d8"
1195 },
1196 "fork_repo_id": "rep_01m4a2c9d2g6k0n4r8v2z6c0f4",
1197 "branch": null,
1198 "head_commit": null,
1199 "merge_base": null,
1200 "merged_by": null,
1201 "merged_at": null,
1202 "superseded_by": null,
1203 "check_status": null,
1204 "files": [],
1205 "assignees": [],
1206 "reviewers": [],
1207 "author": {
1208 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1209 "username": "syntaqx",
1210 "kind": "user",
1211 "verified": false,
1212 "workspaces": []
1213 },
1214 "created_at": "2026-10-05T14:02:12.880Z",
1215 "updated_at": "2026-10-05T14:02:12.880Z",
1216 "confidence": null
1217 },
1218 "agent": {
1219 "status": "started",
1220 "code": null,
1221 "message": null,
1222 "fix_url": null
1223 }
1224 },
1225 "notes": "The issue is opened whatever becomes of the agent. When the workspace's plan does not let it start, `pull` is null and `agent` says why and where to fix it, for example `{ \"status\": \"not_started\", \"code\": \"not_paid\", \"message\": \"Agents need a paid workspace. Start the $20 plan or try it with $5 of free usage after a card check: /acme/-/billing\", \"fix_url\": \"https://g1t.sh/acme/-/billing\" }`. With every agent slot busy, `status` is `queued` and it starts by itself when one frees up. See [putting an agent on something](/guides/g1t-agents/#put-an-agent-on-it-in-one-step)."
1226 },
Merge branch 'worktree-agent-ab2e39e11a6493412'1227 "add_comment": {
1228 "request": {
1229 "body": "Should an empty name fall back to \"world\"?"
1230 },
1231 "response": {
1232 "id": "cmt_01m43sv4c8e2g6j0m4q8t2x6a1",
1233 "kind": "comment",
1234 "author": {
1235 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1236 "username": "syntaqx",
1237 "kind": "user",
1238 "verified": true,
1239 "workspaces": [
1240 {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look1241 "slug": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'1242 "role": "owner"
1243 }
1244 ]
1245 },
1246 "body": "Should an empty name fall back to \"world\"?",
1247 "path": null,
1248 "line": null,
1249 "verdict": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1250 "created_at": "2026-10-01T18:12:30.551Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1251 }
1252 },
1253 "list_labels": {
1254 "response": [
1255 "bug",
1256 "feature",
1257 "docs",
1258 "chore",
1259 "question",
1260 "good first issue"
1261 ],
1262 "notes": "The five default labels come first, then the others used on the repository's issues, alphabetically."
1263 },
1264 "plan_work": {
1265 "request": {
1266 "brief": "Greet people by name, from the command line and the web page."
1267 },
1268 "response": {
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1269 "plan_id": "pln_01m43s9c4e8g2j6m0q4t8x2b6d"
Merge branch 'worktree-agent-ab2e39e11a6493412'1270 }
1271 },
1272 "get_plan": {
1273 "params": {
1274 "plan": "pln_01m43s9c4e8g2j6m0q4t8x2b6d"
1275 },
1276 "response": {
1277 "id": "pln_01m43s9c4e8g2j6m0q4t8x2b6d",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1278 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1279 "brief": "Greet people by name, from the command line and the web page.",
1280 "status": "ready",
1281 "summary": "Name parsing first, then the two places that print the greeting.",
1282 "issues": [
1283 {
1284 "title": "Greeting should name the caller",
1285 "body": "Accept an optional name in `greet()` and use it.",
1286 "labels": [
1287 "feature"
1288 ],
1289 "checks": [
1290 "cargo test"
1291 ],
1292 "files": [
1293 "src/greet.rs"
1294 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1295 "depends_on": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1296 "number": null
1297 },
1298 {
1299 "title": "Show the caller's name on the web page",
1300 "body": "Read `?name=` and pass it to `greet()`.",
1301 "labels": [
1302 "feature"
1303 ],
1304 "checks": [
1305 "cargo test"
1306 ],
1307 "files": [
1308 "src/web.rs"
1309 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1310 "depends_on": [
Merge branch 'worktree-agent-ab2e39e11a6493412'1311 1
1312 ],
1313 "number": null
1314 }
1315 ],
1316 "error": null,
1317 "author": {
1318 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1319 "username": "syntaqx",
1320 "kind": "user",
1321 "verified": false,
1322 "workspaces": []
1323 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1324 "created_at": "2026-10-01T17:58:40.006Z",
1325 "finished_at": "2026-10-01T18:01:12.774Z",
Merge branch 'worktree-agent-ab2e39e11a6493412'1326 "progress": [],
1327 "exchanges": []
1328 },
1329 "notes": "A plan still `planning` after 20 minutes is reported as `failed`. `progress` follows each issue once the plan is applied."
1330 },
1331 "apply_plan": {
1332 "params": {
1333 "plan": "pln_01m43s9c4e8g2j6m0q4t8x2b6d"
1334 },
1335 "request": {
1336 "assign": true
1337 },
1338 "response": {
1339 "id": "pln_01m43s9c4e8g2j6m0q4t8x2b6d",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1340 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1341 "brief": "Greet people by name, from the command line and the web page.",
1342 "status": "applied",
1343 "summary": "Name parsing first, then the two places that print the greeting.",
1344 "issues": [
1345 {
1346 "title": "Greeting should name the caller",
1347 "body": "Accept an optional name in `greet()` and use it.",
1348 "labels": [
1349 "feature"
1350 ],
1351 "checks": [
1352 "cargo test"
1353 ],
1354 "files": [
1355 "src/greet.rs"
1356 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1357 "depends_on": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1358 "number": 12
1359 },
1360 {
1361 "title": "Show the caller's name on the web page",
1362 "body": "Read `?name=` and pass it to `greet()`.",
1363 "labels": [
1364 "feature"
1365 ],
1366 "checks": [
1367 "cargo test"
1368 ],
1369 "files": [
1370 "src/web.rs"
1371 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1372 "depends_on": [
Merge branch 'worktree-agent-ab2e39e11a6493412'1373 1
1374 ],
1375 "number": 13
1376 }
1377 ],
1378 "error": null,
1379 "author": {
1380 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1381 "username": "syntaqx",
1382 "kind": "user",
1383 "verified": false,
1384 "workspaces": []
1385 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1386 "created_at": "2026-10-01T17:58:40.006Z",
1387 "finished_at": "2026-10-01T18:01:12.774Z",
Merge branch 'worktree-agent-ab2e39e11a6493412'1388 "progress": [],
1389 "exchanges": []
1390 },
1391 "notes": "Each opened issue's `number` is filled in. Issues left out with `keep` stay `null`."
1392 },
1393 "list_pull_requests": {
1394 "query": {
1395 "state": "open"
1396 },
1397 "response": [
1398 {
1399 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1400 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'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 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1412 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1413 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1414 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1415 "merge_base": null,
1416 "merged_by": null,
1417 "merged_at": null,
1418 "superseded_by": null,
1419 "check_status": "passed",
Merge branch 'worktree-agent-ab2e39e11a6493412'1420 "files": [
1421 {
1422 "path": "src/main.rs",
1423 "additions": 6,
1424 "deletions": 2
1425 }
1426 ],
1427 "assignees": [],
1428 "reviewers": [
1429 "ana"
1430 ],
1431 "author": {
1432 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1433 "username": "syntaqx",
1434 "kind": "user",
1435 "verified": false,
1436 "workspaces": []
1437 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1438 "created_at": "2026-10-01T18:20:02.117Z",
1439 "updated_at": "2026-10-01T18:35:44.902Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1440 }
1441 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1442 "notes": "Returns at most 100 pull requests, newest first. `check_status` is `queued`, `running`, `passed`, `failed`, `errored`, or `null` when no checks have run against the head."
Merge branch 'worktree-agent-ab2e39e11a6493412'1443 },
1444 "create_pull_request": {
1445 "request": {
1446 "issue": 12,
1447 "agent": "claude-code"
1448 },
1449 "response": {
1450 "pull": {
1451 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1452 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1453 "number": 14,
1454 "issue": 12,
1455 "title": "Greeting should name the caller",
1456 "body": null,
1457 "agent": "claude-code",
1458 "runtime": "external",
1459 "status": "draft",
1460 "fork": {
1461 "namespace": "pulls",
1462 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1463 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1464 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1465 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1466 "head_commit": null,
1467 "merge_base": null,
1468 "merged_by": null,
1469 "merged_at": null,
1470 "superseded_by": null,
1471 "check_status": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1472 "files": [],
1473 "assignees": [],
1474 "reviewers": [],
1475 "author": {
1476 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1477 "username": "syntaqx",
1478 "kind": "user",
1479 "verified": false,
1480 "workspaces": []
1481 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1482 "created_at": "2026-10-01T18:20:02.117Z",
1483 "updated_at": "2026-10-01T18:20:02.117Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1484 },
1485 "git": {
1486 "remote": "https://g1t.sh/pulls/pr_01m43smh3vexsr5pmp60qwv0vs.git",
1487 "username": "syntaqx",
1488 "password": "your g1t access token"
1489 }
1490 },
1491 "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."
1492 },
1493 "get_pull_request": {
1494 "response": {
1495 "pull": {
1496 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1497 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1498 "number": 14,
1499 "issue": 12,
1500 "title": "Greeting should name the caller",
1501 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1502 "agent": "claude-code",
1503 "runtime": "external",
1504 "status": "open",
1505 "fork": {
1506 "namespace": "pulls",
1507 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1508 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1509 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1510 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1511 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1512 "merge_base": null,
1513 "merged_by": null,
1514 "merged_at": null,
1515 "superseded_by": null,
1516 "check_status": "passed",
Merge branch 'worktree-agent-ab2e39e11a6493412'1517 "files": [
1518 {
1519 "path": "src/main.rs",
1520 "additions": 6,
1521 "deletions": 2
1522 }
1523 ],
1524 "assignees": [],
1525 "reviewers": [
1526 "ana"
1527 ],
1528 "author": {
1529 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1530 "username": "syntaqx",
1531 "kind": "user",
1532 "verified": false,
1533 "workspaces": []
1534 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1535 "created_at": "2026-10-01T18:20:02.117Z",
Thirteen MCP tools and classic token scopes; agents rate their confidence and can be put on an issue in one step1536 "updated_at": "2026-10-01T18:35:44.902Z",
1537 "confidence": null
Merge branch 'worktree-agent-ab2e39e11a6493412'1538 },
1539 "issue": {
1540 "id": "iss_01m43shrzpfe49x74ga7sj1c6v",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1541 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1542 "number": 12,
1543 "title": "Greeting should name the caller",
1544 "body": "Take a name from the first argument; fall back to world.",
1545 "labels": [
1546 "feature"
1547 ],
1548 "checks": [
1549 "cargo test"
1550 ],
1551 "state": "open",
1552 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1553 "resolved_by": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1554 "author": {
1555 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1556 "username": "syntaqx",
1557 "kind": "user",
1558 "verified": false,
1559 "workspaces": []
1560 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1561 "created_at": "2026-10-01T18:04:11.482Z",
1562 "updated_at": "2026-10-01T18:20:02.117Z",
1563 "closed_at": null,
1564 "pull_count": 1,
1565 "comment_count": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'1566 "assignees": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1567 "blocked_by": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'1568 "queued": false,
1569 "agent": "claude-code"
1570 },
1571 "comments": [
1572 {
1573 "id": "cmt_01m43st6d0f4h8k2n6r0v4z8c2",
1574 "kind": "event",
1575 "author": {
1576 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1577 "username": "syntaqx",
1578 "kind": "user",
1579 "verified": false,
1580 "workspaces": []
1581 },
1582 "body": "marked this ready for review",
1583 "path": null,
1584 "line": null,
1585 "verdict": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1586 "created_at": "2026-10-01T18:33:10.420Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1587 }
1588 ],
1589 "checks": {
1590 "id": "chk_01m43sw8e2g6j0m4q8t2x6a0c4",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1591 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
Merge branch 'worktree-agent-ab2e39e11a6493412'1592 "status": "passed",
1593 "results": [
1594 {
1595 "command": "cargo test",
1596 "passed": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1597 "exit_code": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'1598 "output": "test result: ok. 3 passed; 0 failed",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1599 "duration_ms": 18234
Merge branch 'worktree-agent-ab2e39e11a6493412'1600 }
1601 ],
1602 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1603 "created_at": "2026-10-01T18:33:11.002Z",
1604 "finished_at": "2026-10-01T18:35:44.902Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1605 },
1606 "overlaps": [],
1607 "behind": false,
1608 "review_pending": false,
1609 "lifecycle": null,
1610 "landing": false,
1611 "stalled": null,
1612 "messages": [
1613 {
1614 "id": "msg_01m43tx5egeh4t3f9zcnjenqvz",
1615 "author": "syntaqx",
1616 "body": "Keep \"world\" as the default when no name is given.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1617 "created_at": "2026-10-01T18:25:00.310Z",
1618 "delivered_at": "2026-10-01T18:25:31.007Z",
Merge branch 'worktree-agent-ab2e39e11a6493412'1619 "kind": "message",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1620 "from_number": null,
1621 "to_number": 14,
Merge branch 'worktree-agent-ab2e39e11a6493412'1622 "answer": null,
1623 "declined": false
1624 }
1625 ],
1626 "statuses": []
1627 },
Agents and memory, checks and conflicts, profiles, slug renames, custom domains1628 "notes": "| Field | |\n| --- | --- |\n| `pull.files` | The files it changes, with lines added and removed. |\n| `checks` | The latest run of the acceptance checks against its head, with each command's output. |\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 the g1t agent 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| `statuses` | Commit statuses reported for its head, such as workflow runs. |\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 the g1t agent do it. |\n| `earlierChecks` | Earlier runs of the acceptance checks, newest first, without their output. |\n\nChecks are started by g1t, not through the API. They run when a pull request becomes ready for review and again when its head moves."
Merge branch 'worktree-agent-ab2e39e11a6493412'1629 },
1630 "get_pull_request_changes": {
1631 "response": {
1632 "base": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
1633 "head": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1634 "files": [
1635 {
1636 "path": "src/main.rs",
1637 "status": "modified",
1638 "additions": 1,
1639 "deletions": 1,
1640 "binary": false,
1641 "hunks": [
1642 {
1643 "lines": [
1644 {
1645 "kind": "context",
1646 "old": 3,
1647 "new": 3,
1648 "text": "fn main() {"
1649 },
1650 {
1651 "kind": "delete",
1652 "old": 4,
1653 "new": null,
1654 "text": " println!(\"Hello, world!\");"
1655 },
1656 {
1657 "kind": "add",
1658 "old": null,
1659 "new": 4,
1660 "text": " println!(\"Hello, {}!\", std::env::args().nth(1).unwrap_or(\"world\".into()));"
1661 },
1662 {
1663 "kind": "context",
1664 "old": 5,
1665 "new": 5,
1666 "text": "}"
1667 }
1668 ]
1669 }
1670 ]
1671 }
1672 ],
1673 "truncated": false
1674 },
1675 "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."
1676 },
1677 "mark_pull_request_ready": {
1678 "request": {
1679 "summary": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\"."
1680 },
1681 "response": {
1682 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1683 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1684 "number": 14,
1685 "issue": 12,
1686 "title": "Greeting should name the caller",
1687 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1688 "agent": "claude-code",
1689 "runtime": "external",
1690 "status": "open",
1691 "fork": {
1692 "namespace": "pulls",
1693 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1694 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1695 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1696 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1697 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1698 "merge_base": null,
1699 "merged_by": null,
1700 "merged_at": null,
1701 "superseded_by": null,
1702 "check_status": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1703 "files": [
1704 {
1705 "path": "src/main.rs",
1706 "additions": 6,
1707 "deletions": 2
1708 }
1709 ],
1710 "assignees": [],
1711 "reviewers": [],
1712 "author": {
1713 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1714 "username": "syntaqx",
1715 "kind": "user",
1716 "verified": false,
1717 "workspaces": []
1718 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1719 "created_at": "2026-10-01T18:20:02.117Z",
1720 "updated_at": "2026-10-01T18:33:10.398Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1721 }
1722 },
1723 "review_pull_request": {
1724 "request": {
1725 "verdict": "request_changes",
1726 "body": "Trim the name before using it."
1727 },
1728 "response": {
1729 "id": "cmt_01m43sx9f3h7k1n5r9v3z7d1g5",
1730 "kind": "comment",
1731 "author": {
1732 "id": "usr_01kz9d3f7h1k5n9r3v7z1c5g9b",
1733 "username": "ana",
1734 "kind": "user",
1735 "verified": true,
1736 "workspaces": [
1737 {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look1738 "slug": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'1739 "role": "member"
1740 }
1741 ]
1742 },
1743 "body": "Trim the name before using it.",
1744 "path": null,
1745 "line": null,
1746 "verdict": "request_changes",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1747 "created_at": "2026-10-01T18:40:05.019Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1748 }
1749 },
1750 "merge_pull_request": {
1751 "request": {
1752 "keep_issue_open": false
1753 },
1754 "response": {
1755 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1756 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1757 "number": 14,
1758 "issue": 12,
1759 "title": "Greeting should name the caller",
1760 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1761 "agent": "claude-code",
1762 "runtime": "external",
1763 "status": "merged",
1764 "fork": {
1765 "namespace": "pulls",
1766 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1767 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1768 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1769 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1770 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1771 "merge_base": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
1772 "merged_by": "syntaqx",
1773 "merged_at": "2026-10-01T18:52:17.093Z",
1774 "superseded_by": null,
1775 "check_status": "passed",
Merge branch 'worktree-agent-ab2e39e11a6493412'1776 "files": [
1777 {
1778 "path": "src/main.rs",
1779 "additions": 6,
1780 "deletions": 2
1781 }
1782 ],
1783 "assignees": [],
1784 "reviewers": [
1785 "ana"
1786 ],
1787 "author": {
1788 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1789 "username": "syntaqx",
1790 "kind": "user",
1791 "verified": false,
1792 "workspaces": []
1793 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1794 "created_at": "2026-10-01T18:20:02.117Z",
1795 "updated_at": "2026-10-01T18:52:17.093Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1796 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1797 "notes": "A draft, or one whose checks have not passed, answers `409`. A pull request still `open` in the response has not landed yet: `landing` is true on it while it is brought up to date, and [get the merge queue](/reference/api/pull-requests/get-merge-queue/) shows it waiting in the [merge queue](/guides/merge-queue/). Merging records the pull request in the issue's `resolved_by` and sets `superseded_by` on the pull requests it closes."
Merge branch 'worktree-agent-ab2e39e11a6493412'1798 },
1799 "close_pull_request": {
1800 "response": {
1801 "id": "pr_01m43smh3vexsr5pmp60qwv0vs",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1802 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
Merge branch 'worktree-agent-ab2e39e11a6493412'1803 "number": 14,
1804 "issue": 12,
1805 "title": "Greeting should name the caller",
1806 "body": "Reads a name from the first argument. `hello ana` prints \"Hello, ana!\".",
1807 "agent": "claude-code",
1808 "runtime": "external",
1809 "status": "closed",
1810 "fork": {
1811 "namespace": "pulls",
1812 "name": "pr_01m43smh3vexsr5pmp60qwv0vs"
1813 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1814 "fork_repo_id": "rep_01m43smh5xd7aw2kq9tv0b4c8e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1815 "branch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1816 "head_commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1817 "merge_base": null,
1818 "merged_by": null,
1819 "merged_at": null,
1820 "superseded_by": null,
1821 "check_status": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1822 "files": [
1823 {
1824 "path": "src/main.rs",
1825 "additions": 6,
1826 "deletions": 2
1827 }
1828 ],
1829 "assignees": [],
1830 "reviewers": [],
1831 "author": {
1832 "id": "usr_01kkntcg1eeb98j62xjm7eh09p",
1833 "username": "syntaqx",
1834 "kind": "user",
1835 "verified": false,
1836 "workspaces": []
1837 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1838 "created_at": "2026-10-01T18:20:02.117Z",
1839 "updated_at": "2026-10-01T19:02:48.760Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1840 }
1841 },
1842 "get_merge_queue": {
1843 "response": {
1844 "enabled": true,
1845 "active": [
1846 {
1847 "id": "qen_01m43rn0qsft1tpap1awkewzbb",
1848 "number": 14,
1849 "title": "Greeting should name the caller",
1850 "agent": "claude-code",
1851 "state": "testing",
1852 "ahead": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1853 "base_commit": "3a7e9c1b5d2f4a6c8e0b2d4f6a8c0e2b4d6f8a1c",
1854 "combined_commit": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1855 "error": null,
1856 "results": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1857 "enqueued_by": "syntaqx",
1858 "created_at": "2026-10-04T15:31:20.441Z",
1859 "finished_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'1860 }
1861 ],
1862 "recent": [
1863 {
1864 "id": "qen_01m43khqjmeb5a1magayrnk63z",
1865 "number": 11,
1866 "title": "Fix trailing newline in greeting",
1867 "agent": "g1t-agent",
1868 "state": "landed",
1869 "ahead": [],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1870 "base_commit": "4b1d7e9c2a5f8e3d6c0b9a7e5d3c1b8a6f4e2d0c",
1871 "combined_commit": "c3e8a1f6d4b2097e5c3a1f8d6b4e2c0a9f7d5b3e",
Merge branch 'worktree-agent-ab2e39e11a6493412'1872 "error": null,
1873 "results": [
1874 {
1875 "command": "cargo test",
1876 "passed": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1877 "exit_code": 0,
Merge branch 'worktree-agent-ab2e39e11a6493412'1878 "output": "test result: ok. 12 passed; 0 failed\n",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1879 "duration_ms": 48211
Merge branch 'worktree-agent-ab2e39e11a6493412'1880 }
1881 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1882 "enqueued_by": "g1t",
1883 "created_at": "2026-10-04T14:02:09.876Z",
1884 "finished_at": "2026-10-04T14:09:55.102Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'1885 }
1886 ]
1887 },
1888 "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."
1889 },
1890 "message_agent": {
1891 "request": {
1892 "body": "Keep \"world\" as the default when no name is given."
1893 },
1894 "response": {
1895 "id": "msg_01m43tx5egeh4t3f9zcnjenqvz",
1896 "author": "syntaqx",
1897 "body": "Keep \"world\" as the default when no name is given.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1898 "created_at": "2026-10-01T18:25:00.310Z",
1899 "delivered_at": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'1900 "kind": "message",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1901 "from_number": null,
1902 "to_number": 14,
Merge branch 'worktree-agent-ab2e39e11a6493412'1903 "answer": null,
1904 "declined": false
1905 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1906 "notes": "The response is the message. `delivered_at` is set once the agent has read it."
Merge branch 'worktree-agent-ab2e39e11a6493412'1907 },
1908 "answer_message": {
1909 "params": {
1910 "id": "msg_01m43t66tde8hs2vpxhh3v8tqw"
1911 },
1912 "request": {
1913 "body": "No. greet() keeps its name; only greet_named() is added."
1914 },
1915 "response": {
1916 "id": "msg_01m43t66tde8hs2vpxhh3v8tqw",
1917 "author": "g1t-agent",
1918 "body": "Are you renaming greet() in src/lib.rs? I need to call it from #16.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1919 "created_at": "2026-10-01T18:58:12.301Z",
1920 "delivered_at": "2026-10-01T18:58:40.117Z",
Merge branch 'worktree-agent-ab2e39e11a6493412'1921 "kind": "question",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1922 "from_number": 16,
1923 "to_number": 14,
Merge branch 'worktree-agent-ab2e39e11a6493412'1924 "answer": "No. greet() keeps its name; only greet_named() is added.",
1925 "declined": false
1926 },
1927 "notes": "The response is the question or handoff that was answered, with `answer` and `declined` filled in."
1928 },
1929 "take_messages": {
1930 "response": [
1931 {
1932 "id": "msg_01m43tx5egeh4t3f9zcnjenqvz",
1933 "author": "syntaqx",
1934 "body": "Keep \"world\" as the default when no name is given.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1935 "created_at": "2026-10-01T18:25:00.310Z",
1936 "delivered_at": "2026-10-01T18:25:31.007Z",
Merge branch 'worktree-agent-ab2e39e11a6493412'1937 "kind": "message",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API1938 "from_number": null,
1939 "to_number": 14,
Merge branch 'worktree-agent-ab2e39e11a6493412'1940 "answer": null,
1941 "declined": false
1942 }
1943 ],
1944 "notes": "Only a g1t agent's token can take messages. They come oldest first, and each is marked delivered."
1945 },
1946 "read_session": {
1947 "query": {
1948 "after": 0
1949 },
1950 "response": [
1951 {
1952 "seq": 1,
1953 "kind": "prompt",
1954 "text": "Make the greeting name the caller (issue #12).",
1955 "tool": null,
1956 "commit": null,
1957 "at": "2026-10-01T18:21:00.004Z"
1958 },
1959 {
1960 "seq": 2,
1961 "kind": "tool_call",
1962 "text": "cargo test",
1963 "tool": "bash",
1964 "commit": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
1965 "at": "2026-10-01T18:30:12.660Z"
1966 }
1967 ]
1968 },
1969 "record_session": {
1970 "request": {
1971 "entries": [
1972 {
1973 "kind": "message",
1974 "text": "Reading src/main.rs."
1975 },
1976 {
1977 "kind": "tool_call",
1978 "text": "cargo test",
1979 "tool": "bash"
1980 }
1981 ]
1982 },
1983 "response": {
1984 "count": 2
1985 },
1986 "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/)."
1987 },
1988 "list_workflows": {
1989 "response": [
1990 {
1991 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
1992 "path": ".g1t/workflows/ci.yml",
1993 "name": "CI",
1994 "events": [
1995 "push",
1996 "pull_request",
1997 "workflow_dispatch"
1998 ],
1999 "state": "active",
2000 "error": null,
2001 "notes": [
2002 {
2003 "severity": "unsupported",
2004 "job": "test",
2005 "message": "`services` containers (such as a database) are not started on g1t yet."
2006 }
2007 ],
2008 "dispatch": {
2009 "debug": {
2010 "description": "Verbose logs",
2011 "type": "boolean",
2012 "default": false
2013 }
2014 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2015 "last_run": {
Merge branch 'worktree-agent-ab2e39e11a6493412'2016 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2017 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2018 "path": ".g1t/workflows/ci.yml",
2019 "name": "CI",
2020 "title": "Greeting should name the caller",
2021 "number": 12,
2022 "attempt": 1,
2023 "event": "push",
2024 "ref": "refs/heads/main",
2025 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2026 "pull": null,
2027 "status": "completed",
2028 "conclusion": "success",
2029 "error": null,
2030 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2031 "created_at": "2026-10-04T15:42:07.318Z",
2032 "started_at": "2026-10-04T15:42:09.020Z",
2033 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2034 }
2035 },
2036 {
2037 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
2038 "path": ".g1t/workflows/nightly.yml",
2039 "name": "Nightly",
2040 "events": [
2041 "schedule"
2042 ],
2043 "state": "disabled",
2044 "error": null,
2045 "notes": [],
2046 "dispatch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2047 "last_run": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2048 }
2049 ],
2050 "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/)."
2051 },
2052 "list_workflow_runs": {
2053 "query": {
2054 "workflow": "ci.yml",
2055 "branch": "main",
2056 "per_page": 20
2057 },
2058 "response": [
2059 {
2060 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2061 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2062 "path": ".g1t/workflows/ci.yml",
2063 "name": "CI",
2064 "title": "Greeting should name the caller",
2065 "number": 12,
2066 "attempt": 1,
2067 "event": "push",
2068 "ref": "refs/heads/main",
2069 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2070 "pull": null,
2071 "status": "completed",
2072 "conclusion": "success",
2073 "error": null,
2074 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2075 "created_at": "2026-10-04T15:42:07.318Z",
2076 "started_at": "2026-10-04T15:42:09.020Z",
2077 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2078 }
2079 ],
2080 "notes": "A run's `status` is `queued`, `pending` (waiting for its concurrency group), `in_progress` or `completed`; `conclusion` is set once it completes."
2081 },
2082 "list_runs_of_workflow": {
2083 "params": {
2084 "workflow": "ci.yml"
2085 },
2086 "query": {
2087 "branch": "main",
2088 "per_page": 20
2089 },
2090 "response": [
2091 {
2092 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2093 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2094 "path": ".g1t/workflows/ci.yml",
2095 "name": "CI",
2096 "title": "Greeting should name the caller",
2097 "number": 12,
2098 "attempt": 1,
2099 "event": "push",
2100 "ref": "refs/heads/main",
2101 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2102 "pull": null,
2103 "status": "completed",
2104 "conclusion": "success",
2105 "error": null,
2106 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2107 "created_at": "2026-10-04T15:42:07.318Z",
2108 "started_at": "2026-10-04T15:42:09.020Z",
2109 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2110 }
2111 ]
2112 },
2113 "get_workflow_run": {
2114 "params": {
2115 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
2116 },
2117 "response": {
2118 "run": {
2119 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2120 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2121 "path": ".g1t/workflows/ci.yml",
2122 "name": "CI",
2123 "title": "Greeting should name the caller",
2124 "number": 12,
2125 "attempt": 1,
2126 "event": "push",
2127 "ref": "refs/heads/main",
2128 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2129 "pull": null,
2130 "status": "completed",
2131 "conclusion": "failure",
2132 "error": null,
2133 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2134 "created_at": "2026-10-04T15:42:07.318Z",
2135 "started_at": "2026-10-04T15:42:09.020Z",
2136 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2137 },
2138 "jobs": [
2139 {
2140 "id": "job_01kpx7b3d0e4f8g2h6j0k4m8ns",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2141 "run_id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Merge branch 'worktree-agent-ab2e39e11a6493412'2142 "key": "test",
2143 "name": "test",
2144 "needs": [],
2145 "status": "completed",
2146 "conclusion": "failure",
2147 "steps": [
2148 {
2149 "number": 1,
2150 "name": "Run actions/checkout@v4",
2151 "status": "completed",
2152 "conclusion": "success",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2153 "started_at": "2026-10-04T15:42:10.101Z",
2154 "finished_at": "2026-10-04T15:42:12.433Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2155 },
2156 {
2157 "number": 2,
2158 "name": "Run cargo test",
2159 "status": "completed",
2160 "conclusion": "failure",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2161 "started_at": "2026-10-04T15:42:12.440Z",
2162 "finished_at": "2026-10-04T15:44:30.902Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2163 }
2164 ],
2165 "annotations": [
2166 {
2167 "level": "error",
2168 "message": "assertion failed: greeting names the caller",
2169 "title": "greet",
2170 "file": "src/main.rs",
2171 "line": 41
2172 }
2173 ],
2174 "reason": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2175 "started_at": "2026-10-04T15:42:09.020Z",
2176 "finished_at": "2026-10-04T15:44:31.002Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2177 },
2178 {
2179 "id": "job_01kpx7b3d0e4f8g2h6j0k4m8nt",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2180 "run_id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Merge branch 'worktree-agent-ab2e39e11a6493412'2181 "key": "deploy",
2182 "name": "deploy",
2183 "needs": [
2184 "test"
2185 ],
2186 "status": "completed",
2187 "conclusion": "skipped",
2188 "steps": [],
2189 "annotations": [],
2190 "reason": "A job it needs did not succeed.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2191 "started_at": null,
2192 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2193 }
2194 ],
2195 "notes": [
2196 {
2197 "severity": "unsupported",
2198 "job": "test",
2199 "message": "`services` containers (such as a database) are not started on g1t yet."
2200 }
2201 ]
2202 }
2203 },
2204 "get_job_logs": {
2205 "params": {
2206 "job": "job_01kpx7b3d0e4f8g2h6j0k4m8ns"
2207 },
2208 "query": {
2209 "after": 0
2210 },
2211 "response": {
2212 "chunks": [
2213 {
2214 "seq": 1,
2215 "step": 0,
2216 "text": "Preparing the sandbox\n"
2217 },
2218 {
2219 "seq": 2,
2220 "step": 2,
2221 "text": "> cargo test\ntest greet ... FAILED\n"
2222 }
2223 ],
2224 "done": true
2225 },
2226 "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`."
2227 },
2228 "dispatch_workflow": {
2229 "params": {
2230 "workflow": "ci.yml"
2231 },
2232 "request": {
2233 "ref": "main",
2234 "inputs": {
2235 "debug": true
2236 }
2237 },
2238 "response": {
2239 "id": "run_01kpx8d4e7f0g3h6j9k2m5n8pq",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2240 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2241 "path": ".g1t/workflows/ci.yml",
2242 "name": "CI",
2243 "title": "CI run by syntaqx",
2244 "number": 13,
2245 "attempt": 1,
2246 "event": "workflow_dispatch",
2247 "ref": "refs/heads/main",
2248 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2249 "pull": null,
2250 "status": "queued",
2251 "conclusion": null,
2252 "error": null,
2253 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2254 "created_at": "2026-10-04T16:30:00.512Z",
2255 "started_at": null,
2256 "finished_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2257 }
2258 },
2259 "cancel_workflow_run": {
2260 "params": {
2261 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
2262 },
2263 "response": {
2264 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2265 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2266 "path": ".g1t/workflows/ci.yml",
2267 "name": "CI",
2268 "title": "Greeting should name the caller",
2269 "number": 12,
2270 "attempt": 1,
2271 "event": "push",
2272 "ref": "refs/heads/main",
2273 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2274 "pull": null,
2275 "status": "completed",
2276 "conclusion": "cancelled",
2277 "error": null,
2278 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2279 "created_at": "2026-10-04T15:42:07.318Z",
2280 "started_at": "2026-10-04T15:42:09.020Z",
2281 "finished_at": "2026-10-04T15:44:31.877Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2282 }
2283 },
2284 "rerun_workflow_run": {
2285 "params": {
2286 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
2287 },
2288 "request": {
2289 "failed_only": true
2290 },
2291 "response": {
2292 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2293 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2294 "path": ".g1t/workflows/ci.yml",
2295 "name": "CI",
2296 "title": "Greeting should name the caller",
2297 "number": 12,
2298 "attempt": 2,
2299 "event": "push",
2300 "ref": "refs/heads/main",
2301 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2302 "pull": null,
2303 "status": "queued",
2304 "conclusion": null,
2305 "error": null,
2306 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2307 "created_at": "2026-10-04T15:42:07.318Z",
2308 "started_at": null,
2309 "finished_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2310 },
2311 "notes": "The run keeps its id; `attempt` goes up by one."
2312 },
2313 "rerun_failed_jobs": {
2314 "params": {
2315 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr"
2316 },
2317 "response": {
2318 "id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2319 "workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
Merge branch 'worktree-agent-ab2e39e11a6493412'2320 "path": ".g1t/workflows/ci.yml",
2321 "name": "CI",
2322 "title": "Greeting should name the caller",
2323 "number": 12,
2324 "attempt": 2,
2325 "event": "push",
2326 "ref": "refs/heads/main",
2327 "sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
2328 "pull": null,
2329 "status": "queued",
2330 "conclusion": null,
2331 "error": null,
2332 "actor": "syntaqx",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2333 "created_at": "2026-10-04T15:42:07.318Z",
2334 "started_at": null,
2335 "finished_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2336 }
2337 },
2338 "update_workflow": {
2339 "params": {
2340 "workflow": "nightly.yml"
2341 },
2342 "request": {
2343 "enabled": false
2344 },
2345 "response": {
2346 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
2347 "path": ".g1t/workflows/nightly.yml",
2348 "name": "Nightly",
2349 "events": [
2350 "schedule"
2351 ],
2352 "state": "disabled",
2353 "error": null,
2354 "notes": [],
2355 "dispatch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2356 "last_run": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2357 }
2358 },
2359 "enable_workflow": {
2360 "params": {
2361 "workflow": "nightly.yml"
2362 },
2363 "response": {
2364 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
2365 "path": ".g1t/workflows/nightly.yml",
2366 "name": "Nightly",
2367 "events": [
2368 "schedule"
2369 ],
2370 "state": "active",
2371 "error": null,
2372 "notes": [],
2373 "dispatch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2374 "last_run": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2375 }
2376 },
2377 "disable_workflow": {
2378 "params": {
2379 "workflow": "nightly.yml"
2380 },
2381 "response": {
2382 "id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
2383 "path": ".g1t/workflows/nightly.yml",
2384 "name": "Nightly",
2385 "events": [
2386 "schedule"
2387 ],
2388 "state": "disabled",
2389 "error": null,
2390 "notes": [],
2391 "dispatch": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2392 "last_run": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2393 }
2394 },
2395 "list_actions_secrets": {
2396 "response": [
2397 {
2398 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ab",
2399 "name": "NPM_TOKEN",
2400 "kind": "secret",
2401 "value": null,
2402 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2403 "updated_at": "2026-10-01T09:12:44.020Z",
2404 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2405 "workflows"
2406 ],
2407 "environments": [],
API reference examples use projects2408 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2409 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2410 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2411 },
2412 {
2413 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac",
2414 "name": "STRIPE_KEY",
2415 "kind": "secret",
2416 "value": null,
API reference examples use projects2417 "scope": "project",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2418 "updated_at": "2026-10-04T15:42:07.318Z",
2419 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2420 "workflows",
2421 "deployments"
2422 ],
2423 "environments": [
2424 "production"
2425 ],
API reference examples use projects2426 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2427 "note": "Rotate in the Stripe dashboard.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2428 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2429 }
2430 ],
2431 "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."
2432 },
2433 "list_actions_secrets_for_workspace": {
2434 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2435 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'2436 },
2437 "response": [
2438 {
2439 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ab",
2440 "name": "NPM_TOKEN",
2441 "kind": "secret",
2442 "value": null,
2443 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2444 "updated_at": "2026-10-04T15:42:07.318Z",
2445 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2446 "workflows"
2447 ],
2448 "environments": [],
API reference examples use projects2449 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2450 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2451 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2452 }
2453 ],
2454 "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."
2455 },
2456 "set_actions_secret": {
2457 "params": {
2458 "setting": "STRIPE_KEY"
2459 },
2460 "request": {
2461 "value": "sk_live_…",
2462 "available_to": [
2463 "workflows",
2464 "deployments"
2465 ],
2466 "environments": [
2467 "production"
2468 ]
2469 },
2470 "response": {
2471 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac",
2472 "name": "STRIPE_KEY",
2473 "kind": "secret",
2474 "value": null,
API reference examples use projects2475 "scope": "project",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2476 "updated_at": "2026-10-04T15:42:07.318Z",
2477 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2478 "workflows",
2479 "deployments"
2480 ],
2481 "environments": [
2482 "production"
2483 ],
API reference examples use projects2484 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2485 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2486 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2487 },
2488 "notes": "Keys are uppercased. See [secrets and variables](/guides/secrets-and-variables/)."
2489 },
2490 "set_actions_secret_for_workspace": {
2491 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2492 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2493 "setting": "NPM_TOKEN"
2494 },
2495 "request": {
2496 "value": "npm_…",
API reference examples use projects2497 "projects": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2498 "hello"
2499 ]
2500 },
2501 "response": {
2502 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ac",
2503 "name": "NPM_TOKEN",
2504 "kind": "secret",
2505 "value": null,
2506 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2507 "updated_at": "2026-10-04T15:42:07.318Z",
2508 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2509 "workflows"
2510 ],
2511 "environments": [],
API reference examples use projects2512 "projects": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2513 "hello"
2514 ],
2515 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2516 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2517 }
2518 },
2519 "delete_actions_secret": {
2520 "params": {
2521 "setting": "STRIPE_KEY"
2522 },
2523 "response": true
2524 },
2525 "delete_actions_secret_for_workspace": {
2526 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2527 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2528 "setting": "NPM_TOKEN"
2529 },
2530 "response": true
2531 },
2532 "list_actions_variables": {
2533 "response": [
2534 {
2535 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2536 "name": "NODE_VERSION",
2537 "kind": "variable",
2538 "value": "20",
API reference examples use projects2539 "scope": "project",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2540 "updated_at": "2026-10-04T15:42:07.318Z",
2541 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2542 "workflows",
2543 "deployments"
2544 ],
2545 "environments": [],
API reference examples use projects2546 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2547 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2548 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2549 }
2550 ],
2551 "notes": "A repository's list includes the workspace's rows that reach it, with `scope` set to `workspace`. Empty `environments` means every environment."
2552 },
2553 "list_actions_variables_for_workspace": {
2554 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2555 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'2556 },
2557 "response": [
2558 {
2559 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2560 "name": "NODE_VERSION",
2561 "kind": "variable",
2562 "value": "20",
2563 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2564 "updated_at": "2026-10-04T15:42:07.318Z",
2565 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2566 "workflows",
2567 "deployments"
2568 ],
2569 "environments": [],
API reference examples use projects2570 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2571 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2572 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2573 }
2574 ]
2575 },
2576 "set_actions_variable": {
2577 "request": {
2578 "setting": "NODE_VERSION",
2579 "value": "20"
2580 },
2581 "response": {
2582 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2583 "name": "NODE_VERSION",
2584 "kind": "variable",
2585 "value": "20",
API reference examples use projects2586 "scope": "project",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2587 "updated_at": "2026-10-04T15:42:07.318Z",
2588 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2589 "workflows",
2590 "deployments"
2591 ],
2592 "environments": [],
API reference examples use projects2593 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2594 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2595 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2596 },
2597 "notes": "GitHub's clients send the key as `name`; that is accepted too."
2598 },
2599 "set_actions_variable_for_workspace": {
2600 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2601 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'2602 },
2603 "request": {
2604 "setting": "NODE_VERSION",
2605 "value": "20"
2606 },
2607 "response": {
2608 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2609 "name": "NODE_VERSION",
2610 "kind": "variable",
2611 "value": "20",
2612 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2613 "updated_at": "2026-10-04T15:42:07.318Z",
2614 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2615 "workflows",
2616 "deployments"
2617 ],
2618 "environments": [],
API reference examples use projects2619 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2620 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2621 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2622 }
2623 },
2624 "update_actions_variable": {
2625 "params": {
2626 "setting": "NODE_VERSION"
2627 },
2628 "request": {
2629 "value": "22"
2630 },
2631 "response": {
2632 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2633 "name": "NODE_VERSION",
2634 "kind": "variable",
2635 "value": "22",
API reference examples use projects2636 "scope": "project",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2637 "updated_at": "2026-10-04T15:42:07.318Z",
2638 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2639 "workflows",
2640 "deployments"
2641 ],
2642 "environments": [],
API reference examples use projects2643 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2644 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2645 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2646 }
2647 },
2648 "update_actions_variable_for_workspace": {
2649 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2650 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2651 "setting": "NODE_VERSION"
2652 },
2653 "request": {
2654 "value": "22"
2655 },
2656 "response": {
2657 "id": "set_01kpv9q4r7s0t3v6w9x2y5z8ad",
2658 "name": "NODE_VERSION",
2659 "kind": "variable",
2660 "value": "22",
2661 "scope": "workspace",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2662 "updated_at": "2026-10-04T15:42:07.318Z",
2663 "available_to": [
Merge branch 'worktree-agent-ab2e39e11a6493412'2664 "workflows",
2665 "deployments"
2666 ],
2667 "environments": [],
API reference examples use projects2668 "projects": [],
Merge branch 'worktree-agent-ab2e39e11a6493412'2669 "note": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2670 "updated_by": "syntaqx"
Merge branch 'worktree-agent-ab2e39e11a6493412'2671 }
2672 },
2673 "delete_actions_variable": {
2674 "params": {
2675 "setting": "NODE_VERSION"
2676 },
2677 "response": true
2678 },
2679 "delete_actions_variable_for_workspace": {
2680 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2681 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2682 "setting": "NODE_VERSION"
2683 },
2684 "response": true
2685 },
2686 "list_webhooks": {
2687 "response": [
2688 {
2689 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2690 "scope": "repo",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2691 "workspace": "flagon-io",
2692 "repo": "flagon-io/hello",
Merge branch 'worktree-agent-ab2e39e11a6493412'2693 "url": "https://hooks.example.com/g1t",
2694 "events": [
2695 "git.push",
2696 "pull.merged"
2697 ],
2698 "active": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2699 "secret_hint": "…9c2e",
2700 "created_by": "syntaqx",
2701 "created_at": "2026-10-04T15:42:07.318Z",
2702 "last_status": "delivered",
2703 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2704 }
2705 ]
2706 },
2707 "list_webhooks_for_workspace": {
2708 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2709 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'2710 },
2711 "response": [
2712 {
2713 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2714 "scope": "workspace",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2715 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2716 "repo": null,
2717 "url": "https://hooks.example.com/g1t",
2718 "events": [
2719 "git.push",
2720 "pull.merged"
2721 ],
2722 "active": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2723 "secret_hint": "…9c2e",
2724 "created_by": "syntaqx",
2725 "created_at": "2026-10-04T15:42:07.318Z",
2726 "last_status": "delivered",
2727 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2728 }
2729 ]
2730 },
2731 "create_webhook": {
2732 "request": {
2733 "url": "https://hooks.example.com/g1t",
2734 "events": [
2735 "git.push",
2736 "pull.merged"
2737 ]
2738 },
2739 "response": {
2740 "hook": {
2741 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2742 "scope": "repo",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2743 "workspace": "flagon-io",
2744 "repo": "flagon-io/hello",
Merge branch 'worktree-agent-ab2e39e11a6493412'2745 "url": "https://hooks.example.com/g1t",
2746 "events": [
2747 "git.push",
2748 "pull.merged"
2749 ],
2750 "active": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2751 "secret_hint": "…9c2e",
2752 "created_by": "syntaqx",
2753 "created_at": "2026-10-04T15:42:07.318Z",
2754 "last_status": "delivered",
2755 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2756 },
API reference: no example reads as a real secret2757 "secret": "whsec_…"
Merge branch 'worktree-agent-ab2e39e11a6493412'2758 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2759 "notes": "A ping is sent before the response, so `last_status` is usually set already. When g1t made the signing secret, `secret` holds it: it is shown only this once. See [webhooks](/guides/webhooks/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'2760 },
2761 "create_webhook_for_workspace": {
2762 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2763 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'2764 },
2765 "request": {
2766 "url": "https://hooks.example.com/g1t"
2767 },
2768 "response": {
2769 "hook": {
2770 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2771 "scope": "workspace",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2772 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2773 "repo": null,
2774 "url": "https://hooks.example.com/g1t",
2775 "events": [
2776 "*"
2777 ],
2778 "active": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2779 "secret_hint": "…9c2e",
2780 "created_by": "syntaqx",
2781 "created_at": "2026-10-04T15:42:07.318Z",
2782 "last_status": "delivered",
2783 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2784 },
API reference: no example reads as a real secret2785 "secret": "whsec_…"
Merge branch 'worktree-agent-ab2e39e11a6493412'2786 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2787 "notes": "A ping is sent before the response, so `last_status` is usually set already. When g1t made the signing secret, `secret` holds it: it is shown only this once. See [webhooks](/guides/webhooks/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'2788 },
2789 "update_webhook": {
2790 "params": {
2791 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
2792 },
2793 "request": {
2794 "active": false
2795 },
2796 "response": {
2797 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2798 "scope": "repo",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2799 "workspace": "flagon-io",
2800 "repo": "flagon-io/hello",
Merge branch 'worktree-agent-ab2e39e11a6493412'2801 "url": "https://hooks.example.com/g1t",
2802 "events": [
2803 "git.push",
2804 "pull.merged"
2805 ],
2806 "active": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2807 "secret_hint": "…9c2e",
2808 "created_by": "syntaqx",
2809 "created_at": "2026-10-04T15:42:07.318Z",
2810 "last_status": "delivered",
2811 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2812 }
2813 },
2814 "update_webhook_for_workspace": {
2815 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2816 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2817 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
2818 },
2819 "request": {
2820 "active": false
2821 },
2822 "response": {
2823 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2824 "scope": "workspace",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2825 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2826 "repo": null,
2827 "url": "https://hooks.example.com/g1t",
2828 "events": [
2829 "git.push",
2830 "pull.merged"
2831 ],
2832 "active": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2833 "secret_hint": "…9c2e",
2834 "created_by": "syntaqx",
2835 "created_at": "2026-10-04T15:42:07.318Z",
2836 "last_status": "delivered",
2837 "last_delivered_at": "2026-10-04T15:42:07.611Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2838 }
2839 },
2840 "delete_webhook": {
2841 "params": {
2842 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
2843 },
2844 "response": true
2845 },
2846 "delete_webhook_for_workspace": {
2847 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2848 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2849 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
2850 },
2851 "response": true
2852 },
2853 "ping_webhook": {
2854 "params": {
2855 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
2856 },
2857 "response": {
2858 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2859 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2860 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'2861 "event": "ping",
2862 "status": "delivered",
2863 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2864 "response_status": 200,
2865 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'2866 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2867 "duration_ms": 184,
Merge branch 'worktree-agent-ab2e39e11a6493412'2868 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2869 "created_at": "2026-10-04T16:01:12.440Z",
2870 "delivered_at": "2026-10-04T16:01:12.631Z",
2871 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2872 },
2873 "notes": "`payload` is the JSON that was sent, as a string."
2874 },
2875 "ping_webhook_for_workspace": {
2876 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2877 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2878 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
2879 },
2880 "response": {
2881 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2882 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2883 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'2884 "event": "ping",
2885 "status": "delivered",
2886 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2887 "response_status": 200,
2888 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'2889 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2890 "duration_ms": 184,
Merge branch 'worktree-agent-ab2e39e11a6493412'2891 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2892 "created_at": "2026-10-04T16:01:12.440Z",
2893 "delivered_at": "2026-10-04T16:01:12.631Z",
2894 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2895 }
2896 },
2897 "list_webhook_deliveries": {
2898 "params": {
2899 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
2900 },
2901 "response": [
2902 {
2903 "id": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2904 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2905 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'2906 "event": "ping",
2907 "status": "pending",
2908 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2909 "response_status": 503,
2910 "response_body": "Service Unavailable",
Merge branch 'worktree-agent-ab2e39e11a6493412'2911 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2912 "duration_ms": 212,
Merge branch 'worktree-agent-ab2e39e11a6493412'2913 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2914 "created_at": "2026-10-04T16:20:03.100Z",
2915 "delivered_at": null,
2916 "next_attempt_at": "2026-10-04T16:21:03.312Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2917 },
2918 {
2919 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2920 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2921 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'2922 "event": "ping",
2923 "status": "delivered",
2924 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2925 "response_status": 200,
2926 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'2927 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2928 "duration_ms": 184,
Merge branch 'worktree-agent-ab2e39e11a6493412'2929 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2930 "created_at": "2026-10-04T16:01:12.440Z",
2931 "delivered_at": "2026-10-04T16:01:12.631Z",
2932 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2933 }
2934 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2935 "notes": "Returns at most 50, newest first. `status` is `pending`, `delivered` or `failed`; `next_attempt_at` is set while it is pending."
Merge branch 'worktree-agent-ab2e39e11a6493412'2936 },
2937 "list_webhook_deliveries_for_workspace": {
2938 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2939 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'2940 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd"
2941 },
2942 "response": [
2943 {
2944 "id": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2945 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2946 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'2947 "event": "ping",
2948 "status": "pending",
2949 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2950 "response_status": 503,
2951 "response_body": "Service Unavailable",
Merge branch 'worktree-agent-ab2e39e11a6493412'2952 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2953 "duration_ms": 212,
Merge branch 'worktree-agent-ab2e39e11a6493412'2954 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2955 "created_at": "2026-10-04T16:20:03.100Z",
2956 "delivered_at": null,
2957 "next_attempt_at": "2026-10-04T16:21:03.312Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'2958 },
2959 {
2960 "id": "dlv_01kpx5p9v2j7k3m8n4p5q6r7st",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2961 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2962 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'2963 "event": "ping",
2964 "status": "delivered",
2965 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2966 "response_status": 200,
2967 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'2968 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2969 "duration_ms": 184,
Merge branch 'worktree-agent-ab2e39e11a6493412'2970 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2971 "created_at": "2026-10-04T16:01:12.440Z",
2972 "delivered_at": "2026-10-04T16:01:12.631Z",
2973 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2974 }
2975 ]
2976 },
2977 "redeliver_webhook": {
2978 "params": {
2979 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2980 "delivery": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz"
2981 },
2982 "response": {
2983 "id": "dlv_01kpx6c8d1e2f3g4h5j6k7m8np",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2984 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
2985 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'2986 "event": "ping",
2987 "status": "delivered",
2988 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2989 "response_status": 200,
2990 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'2991 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2992 "duration_ms": 171,
Merge branch 'worktree-agent-ab2e39e11a6493412'2993 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API2994 "created_at": "2026-10-04T16:25:40.007Z",
2995 "delivered_at": "2026-10-04T16:25:40.178Z",
2996 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'2997 },
2998 "notes": "The response is the new delivery."
2999 },
3000 "redeliver_webhook_for_workspace": {
3001 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3002 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3003 "id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3004 "delivery": "dlv_01kpx6a2b3c4d5e6f7g8h9j0kz"
3005 },
3006 "response": {
3007 "id": "dlv_01kpx6c8d1e2f3g4h5j6k7m8np",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3008 "hook_id": "hk_01kpx5p9s4h0t1w6x8y2a3b4cd",
3009 "event_id": "",
Merge branch 'worktree-agent-ab2e39e11a6493412'3010 "event": "ping",
3011 "status": "delivered",
3012 "attempts": 1,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3013 "response_status": 200,
3014 "response_body": "ok",
Merge branch 'worktree-agent-ab2e39e11a6493412'3015 "error": null,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3016 "duration_ms": 171,
Merge branch 'worktree-agent-ab2e39e11a6493412'3017 "payload": "{\"hook\":{\"events\":[\"git.push\",\"pull.merged\"],\"id\":\"hk_01kpx5p9s4h0t1w6x8y2a3b4cd\",\"url\":\"https://hooks.example.com/g1t\"},\"message\":\"g1t will send this webhook's events here.\",\"time\":\"2026-10-04T16:01:12.440Z\",\"type\":\"ping\"}",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3018 "created_at": "2026-10-04T16:25:40.007Z",
3019 "delivered_at": "2026-10-04T16:25:40.178Z",
3020 "next_attempt_at": null
Merge branch 'worktree-agent-ab2e39e11a6493412'3021 }
3022 },
3023 "list_integrations": {
3024 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3025 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'3026 },
3027 "response": [
3028 {
3029 "id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3030 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3031 "provider": "anthropic",
3032 "kind": "models",
3033 "name": "Anthropic",
3034 "config": {
3035 "assign": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3036 "write_back": true
Merge branch 'worktree-agent-ab2e39e11a6493412'3037 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3038 "secret_hint": "…3f9a",
3039 "webhook_url": null,
3040 "created_by": "syntaqx",
3041 "created_at": "2026-10-04T15:42:07.318Z",
3042 "last_used_at": "2026-10-04T15:42:08.102Z",
3043 "last_error": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'3044 "models": [
3045 "claude-haiku-4-5",
3046 "claude-sonnet-4-5"
3047 ]
3048 },
3049 {
3050 "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bc",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3051 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3052 "provider": "jira",
3053 "kind": "tracker",
3054 "name": "Jira",
3055 "config": {
3056 "assign": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3057 "write_back": true,
Merge branch 'worktree-agent-ab2e39e11a6493412'3058 "site": "https://acme.atlassian.net",
3059 "email": "syntaqx@example.com",
3060 "keys": [
3061 "TECH"
3062 ]
3063 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3064 "secret_hint": "…x7Qe",
3065 "webhook_url": null,
3066 "created_by": "syntaqx",
3067 "created_at": "2026-10-04T15:42:07.318Z",
3068 "last_used_at": null,
3069 "last_error": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'3070 "models": []
3071 }
3072 ],
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3073 "notes": "`kind` is `models`, `alerts` or `tracker`. `secret_hint` shows the end of the secret; the secret itself is never returned. `webhook_url` is where an alert source sends its alerts."
Merge branch 'worktree-agent-ab2e39e11a6493412'3074 },
3075 "connect_integration": {
3076 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3077 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'3078 },
3079 "request": {
3080 "provider": "webhook",
3081 "config": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3082 "repo": "flagon-io/hello",
Merge branch 'worktree-agent-ab2e39e11a6493412'3083 "label": "bug"
3084 }
3085 },
3086 "response": {
3087 "connection": {
3088 "id": "con_01kpx4n8r3g9s0v5w7x1z2a3bd",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3089 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3090 "provider": "webhook",
3091 "kind": "alerts",
3092 "name": "Webhook",
3093 "config": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3094 "repo": "flagon-io/hello",
Merge branch 'worktree-agent-ab2e39e11a6493412'3095 "label": "bug",
3096 "assign": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3097 "write_back": true
Merge branch 'worktree-agent-ab2e39e11a6493412'3098 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3099 "secret_hint": null,
3100 "webhook_url": "https://api.g1t.sh/hooks/con_01kpx4n8r3g9s0v5w7x1z2a3bd",
3101 "created_by": "syntaqx",
3102 "created_at": "2026-10-04T15:42:07.318Z",
3103 "last_used_at": null,
3104 "last_error": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'3105 "models": []
3106 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3107 "signing_secret": "g1ts_9f2c4a7e1b0d3c6f8a2e5b7d9c1f4a6e8b0d2c4f6a8e1b3d"
Merge branch 'worktree-agent-ab2e39e11a6493412'3108 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3109 "notes": "`signing_secret` is set only when g1t made it, for `datadog` and `webhook`, and is shown only this once. A model provider is tested as it is connected. See [integrations](/guides/integrations/) and [model providers](/guides/models/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'3110 },
3111 "disconnect_integration": {
3112 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3113 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3114 "id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab"
3115 },
3116 "response": true
3117 },
3118 "test_integration": {
3119 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3120 "workspace": "flagon-io",
Merge branch 'worktree-agent-ab2e39e11a6493412'3121 "id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab"
3122 },
3123 "response": {
3124 "ok": true,
3125 "message": "Anthropic accepted the key and offers 9 models."
3126 },
3127 "notes": "Credentials that do not work still answer `200`, with `ok` false and `message` saying what went wrong."
3128 },
3129 "get_model_routes": {
3130 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3131 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'3132 },
3133 "response": [
3134 {
3135 "task": "default",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3136 "connection_id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab",
Merge branch 'worktree-agent-ab2e39e11a6493412'3137 "model": "claude-sonnet-4-5"
3138 },
3139 {
3140 "task": "review",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3141 "connection_id": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'3142 "model": null
3143 }
3144 ]
3145 },
3146 "set_model_routes": {
3147 "params": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3148 "workspace": "flagon-io"
Merge branch 'worktree-agent-ab2e39e11a6493412'3149 },
3150 "request": {
3151 "routes": [
3152 {
3153 "task": "default",
3154 "connection_id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab",
3155 "model": "claude-sonnet-4-5"
3156 },
3157 {
3158 "task": "review",
3159 "connection_id": null
3160 }
3161 ]
3162 },
3163 "response": [
3164 {
3165 "task": "default",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3166 "connection_id": "con_01kpx3m7q2f8r9t4v6w0y1z2ab",
Merge branch 'worktree-agent-ab2e39e11a6493412'3167 "model": "claude-sonnet-4-5"
3168 },
3169 {
3170 "task": "review",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3171 "connection_id": null,
Merge branch 'worktree-agent-ab2e39e11a6493412'3172 "model": null
3173 }
3174 ],
3175 "notes": "The response is the routes as saved, ordered by task."
3176 },
3177 "get_context": {
3178 "query": {
3179 "reference": "TECH-1234"
3180 },
3181 "response": {
3182 "provider": "jira",
3183 "key": "TECH-1234",
3184 "title": "Checkout fails for EU cards",
3185 "url": "https://acme.atlassian.net/browse/TECH-1234",
3186 "status": "In Progress",
3187 "body": "Customers with 3DS cards see a 500 at /pay.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3188 "fetched_at": "2026-10-04T15:42:07.318Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3189 }
3190 },
3191 "import_issue": {
3192 "request": {
3193 "reference": "TECH-1234"
3194 },
3195 "response": {
3196 "number": 42,
3197 "item": {
3198 "provider": "jira",
3199 "key": "TECH-1234",
3200 "title": "Checkout fails for EU cards",
3201 "url": "https://acme.atlassian.net/browse/TECH-1234",
3202 "status": "In Progress",
3203 "body": "Customers with 3DS cards see a 500 at /pay.",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3204 "fetched_at": "2026-10-04T15:42:07.318Z"
Merge branch 'worktree-agent-ab2e39e11a6493412'3205 },
3206 "created": true
3207 },
3208 "notes": "`created` is false when the ticket was imported before; `number` is then that issue."
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3209 },
3210 "remember": {
3211 "request": {
3212 "text": "The tests need TZ=UTC or the date tests fail.",
3213 "scope": "project",
3214 "kind": "gotcha",
3215 "from_number": 14
3216 },
3217 "response": {
3218 "id": "mem_01m43v8q2w3e4r5t6y7u8i9o0p",
3219 "scope": "project",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3220 "workspace": "flagon-io",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3221 "repo": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3222 "namespace": "flagon-io",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3223 "name": "hello"
3224 },
3225 "text": "The tests need TZ=UTC or the date tests fail.",
3226 "kind": "gotcha",
3227 "source": {
3228 "kind": "run",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3229 "run_id": "arn_01m43v2c1p9k8d7e6f5a4b3c2d",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3230 "repo": {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3231 "namespace": "flagon-io",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3232 "name": "hello"
3233 },
3234 "number": 14
3235 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3236 "created_by": "g1t-agent",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3237 "pinned": false,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3238 "created_at": "2026-10-01T18:40:12.000Z",
3239 "updated_at": "2026-10-01T18:40:12.000Z",
3240 "last_used_at": null
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3241 },
3242 "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."
3243 },
3244 "recall": {
3245 "query": {
3246 "q": "pnpm"
3247 },
3248 "response": {
3249 "project": [],
3250 "workspace": [
3251 {
3252 "id": "mem_01m43t0a1s2d3f4g5h6j7k8l9z",
3253 "scope": "workspace",
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3254 "workspace": "flagon-io",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3255 "repo": null,
3256 "text": "We use pnpm everywhere, never npm or yarn.",
3257 "kind": "convention",
3258 "source": {
3259 "kind": "person",
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3260 "run_id": null,
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3261 "repo": null,
3262 "number": null
3263 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3264 "created_by": "syntaqx",
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3265 "pinned": true,
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3266 "created_at": "2026-10-01T18:40:12.000Z",
3267 "updated_at": "2026-10-01T18:40:12.000Z",
3268 "last_used_at": null
Agents and memory, checks and conflicts, profiles, slug renames, custom domains3269 }
3270 ]
3271 },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3272 "notes": "Anyone who can read the repository gets its project memory; `workspace` is filled only for members of the workspace, and is empty for anyone else. Each memory returned is marked used, which keeps it near the front of what agents are given."
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3273 },
Search across all of g1t, Explore, and a command palette3274 "search": {
3275 "query": {
3276 "q": "parse_query language:rust repo:acme/web",
3277 "type": "code"
3278 },
3279 "response": {
3280 "query": "parse_query repo:acme/web language:rust",
3281 "type": "code",
3282 "counts": {
3283 "repositories": 0,
3284 "code": 2,
3285 "issues": 0,
3286 "pulls": 0,
3287 "people": 0
3288 },
3289 "page": 1,
3290 "per_page": 20,
3291 "more": false,
3292 "hits": [
3293 {
3294 "kind": "code",
3295 "title": "src/search/query.rs",
3296 "url": "/acme/web/blob/main/src/search/query.rs#L42",
3297 "repo": "acme/web",
3298 "private": false,
3299 "description": null,
3300 "snippet": [],
3301 "lines": [
3302 {
3303 "number": 41,
3304 "parts": [
3305 {
3306 "text": "/// Reads a query typed into the search box.",
3307 "highlight": false
3308 }
3309 ]
3310 },
3311 {
3312 "number": 42,
3313 "parts": [
3314 {
3315 "text": "pub fn ",
3316 "highlight": false
3317 },
3318 {
3319 "text": "parse_query",
3320 "highlight": true
3321 },
3322 {
3323 "text": "(text: &str) -> Query {",
3324 "highlight": false
3325 }
3326 ]
3327 },
3328 {
3329 "number": 43,
3330 "parts": [
3331 {
3332 "text": " let mut query = Query::default();",
3333 "highlight": false
3334 }
3335 ]
3336 }
3337 ],
3338 "path": "src/search/query.rs",
3339 "language": "rust",
3340 "ref": "main",
3341 "number": null,
3342 "state": null,
3343 "author": null,
3344 "labels": [],
3345 "topics": [],
3346 "slug": null,
3347 "avatar": null,
3348 "updated_at": null
3349 }
3350 ],
3351 "notes": []
3352 },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3353 "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."
Search across all of g1t, Explore, and a command palette3354 },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3355 "search_context": {
3356 "params": {
3357 "workspace": "acme"
3358 },
3359 "query": {
3360 "q": "how do we run the web tests",
3361 "project": "web"
3362 },
3363 "response": {
3364 "query": "how do we run the web tests",
3365 "mode": "semantic",
3366 "hits": [
3367 {
3368 "kind": "memory",
3369 "id": "mem_01m4a0c2b7k3f9d1e5g8h2j6k4",
3370 "title": "Gotcha",
3371 "snippet": "The date tests fail unless TZ=UTC.",
3372 "project": "web",
3373 "url": "/acme/web/memory",
3374 "score": 0.82,
3375 "source": "AGENTS.md",
3376 "by": "g1t",
3377 "updated_at": "2026-10-04T21:10:02.000Z"
3378 },
3379 {
3380 "kind": "doc",
3381 "id": "ent_5f0c2a9e41d7b3c86a1e2f40:2",
3382 "title": "Web (README.md)",
3383 "snippet": "## Testing Run npm test. The end-to-end tests need the api running locally…",
3384 "project": "web",
3385 "url": "/acme/web/blob/main/README.md",
3386 "score": 0.77,
3387 "source": "README.md",
3388 "by": null,
3389 "updated_at": "2026-10-04T20:58:41.000Z"
3390 },
3391 {
3392 "kind": "project",
3393 "id": "ent_9b1d6f0a2c3e4b5d6e7f8a9b",
3394 "title": "web",
3395 "snippet": "The storefront. Written in TypeScript. Packages: @acme/web. Uses api. Owned by ana.",
3396 "project": "web",
3397 "url": "/acme/web",
3398 "score": 0.71,
3399 "source": "catalog",
3400 "by": null,
3401 "updated_at": "2026-10-04T20:58:41.000Z"
3402 }
3403 ]
3404 },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3405 "notes": "Give `workspace`, or `repo` as `owner/name` for its workspace. `kinds` narrows to some of `project`, `app`, `api`, `package`, `language`, `owner`, `environment`, `integration`, `doc`, `memory`, `issue` and `pull`; in a URL, comma-separated. `mode` is `text` when the search index could not answer and words were matched instead. Memory is returned only to members of the workspace and its agents; anything from a private project, only to those who can read it (members, unless the base permission is None, and people given a role on its repository). A g1t agent searches its own workspace only."
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API3406 },
3407 "get_entity": {
3408 "params": {
3409 "workspace": "acme",
3410 "kind": "project",
3411 "id": "web"
3412 },
3413 "response": {
3414 "entity": {
3415 "id": "ent_9b1d6f0a2c3e4b5d6e7f8a9b",
3416 "workspace": "acme",
3417 "kind": "project",
3418 "key": "web",
3419 "name": "web",
3420 "summary": "The storefront. Written in TypeScript. Packages: @acme/web. Uses api. Owned by ana.",
3421 "project": "web",
3422 "private": true,
3423 "data": {
3424 "repo": "acme/web",
3425 "root_dir": "",
3426 "default_branch": "main",
3427 "languages": [
3428 "TypeScript"
3429 ],
3430 "owners": [
3431 "ana"
3432 ],
3433 "tests": true,
3434 "test_commands": [
3435 "npm test"
3436 ],
3437 "production_url": "https://web--acme.g1t.page"
3438 },
3439 "source": "scan",
3440 "ref": "/acme/web",
3441 "updated_at": "2026-10-04T20:58:41.000Z"
3442 },
3443 "relations": [
3444 {
3445 "kind": "depends_on",
3446 "direction": "out",
3447 "entity": {
3448 "id": "ent_0a7c3e5b9d1f2a4c6e8b0d2f",
3449 "workspace": "acme",
3450 "kind": "project",
3451 "key": "api",
3452 "name": "api",
3453 "summary": "The public API. Written in Rust.",
3454 "project": "api",
3455 "private": true,
3456 "data": {},
3457 "source": "scan",
3458 "ref": "/acme/api",
3459 "updated_at": "2026-10-04T20:57:12.000Z"
3460 }
3461 },
3462 {
3463 "kind": "owned_by",
3464 "direction": "out",
3465 "entity": {
3466 "id": "ent_3c5e7a9b1d2f4a6c8e0b2d4f",
3467 "workspace": "acme",
3468 "kind": "owner",
3469 "key": "ana",
3470 "name": "ana",
3471 "summary": null,
3472 "project": null,
3473 "private": false,
3474 "data": {},
3475 "source": "scan",
3476 "ref": "/u/ana",
3477 "updated_at": "2026-10-04T20:58:41.000Z"
3478 }
3479 }
3480 ]
3481 },
3482 "notes": "`id` is the entry's id, or its key: a project's or app's slug, `npm:<name>` (or `cargo:`, `go:`, `pypi:`) for a package, a username for an owner, `<project>/production` for an environment. `data` depends on the kind: a package's version and dependencies, an API's routes, an app's production address."
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look3483 },
3484 "list_collaborators": {
3485 "response": {
3486 "repo": "flagon-io/hello",
3487 "base_permission": "write",
3488 "people": [
3489 {
3490 "username": "syntaqx",
3491 "name": "Chase Pierce",
3492 "avatar": null,
3493 "role": "admin",
3494 "source": "owner",
3495 "direct": null,
3496 "workspace_role": "owner"
3497 },
3498 {
3499 "username": "linus",
3500 "name": null,
3501 "avatar": null,
3502 "role": "maintain",
3503 "source": "direct",
3504 "direct": "maintain",
3505 "workspace_role": "member"
3506 },
3507 {
3508 "username": "grace",
3509 "name": "Grace Hopper",
3510 "avatar": null,
3511 "role": "write",
3512 "source": "base",
3513 "direct": null,
3514 "workspace_role": "member"
3515 },
3516 {
3517 "username": "ada",
3518 "name": "Ada Lovelace",
3519 "avatar": null,
3520 "role": "triage",
3521 "source": "direct",
3522 "direct": "triage",
3523 "workspace_role": null
3524 }
3525 ],
3526 "invitations": [
3527 {
3528 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p",
3529 "repo": "flagon-io/hello",
3530 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
3531 "invitee": "alan",
3532 "email": null,
3533 "role": "write",
3534 "invited_by": "syntaqx",
3535 "inviter_avatar": null,
3536 "status": "pending",
3537 "created_at": "2026-10-05T17:00:00.000Z",
3538 "expires_at": "2026-10-12T17:00:00.000Z"
3539 },
3540 {
3541 "id": "rin_01kp3d7e8f9g0h1j2k3m4n5p6q",
3542 "repo": "flagon-io/hello",
3543 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
3544 "invitee": null,
3545 "email": "joan@example.com",
3546 "role": "read",
3547 "invited_by": "syntaqx",
3548 "inviter_avatar": null,
3549 "status": "pending",
3550 "created_at": "2026-10-05T17:00:00.000Z",
3551 "expires_at": "2026-10-12T17:00:00.000Z"
3552 }
3553 ],
3554 "viewer_role": "admin",
3555 "can_manage": true
3556 },
3557 "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/)."
3558 },
3559 "add_collaborator": {
3560 "request": {
3561 "invitee": "ada",
3562 "role": "triage"
3563 },
3564 "response": {
3565 "result": "invited",
3566 "invitation": {
3567 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
3568 "repo": "flagon-io/hello",
3569 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
3570 "invitee": "ada",
3571 "email": null,
3572 "role": "triage",
3573 "invited_by": "syntaqx",
3574 "inviter_avatar": null,
3575 "status": "pending",
3576 "created_at": "2026-10-05T17:00:00.000Z",
3577 "expires_at": "2026-10-12T17:00:00.000Z"
3578 }
3579 },
3580 "notes": "`invitee` is a username or an email address. A member of the workspace answers `{\"result\": \"granted\", \"collaborator\": {…}}` with the role already given, shown as list_collaborators shows a person. Anyone else answers `{\"result\": \"invited\", \"invitation\": {…}}`: the invitation is emailed and waits 7 days, and the role is theirs once they accept it. An email address without an account gets an invitation with `email` set and `invitee` null, and an invite that makes the account and accepts in one step. Refused with `404` when no account has that username, `409` when they already have a role of their own or a pending invitation (change it with update_collaborator), and `403` without the Admin role, from an agent's or a workspace's token, or when the person does not meet what the workspace asks of everyone with access. The `repo.collaborator_added` webhook event is sent once they have the role. See [Access and roles](/guides/access-and-roles/)."
3581 },
3582 "update_collaborator": {
3583 "params": {
3584 "owner": "flagon-io",
3585 "name": "hello",
3586 "username": "ada"
3587 },
3588 "request": {
3589 "role": "write"
3590 },
3591 "response": {
3592 "username": "ada",
3593 "name": "Ada Lovelace",
3594 "avatar": null,
3595 "role": "write",
3596 "source": "direct",
3597 "direct": "write",
3598 "workspace_role": null
3599 },
3600 "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/)."
3601 },
3602 "remove_collaborator": {
3603 "params": {
3604 "owner": "flagon-io",
3605 "name": "hello",
3606 "username": "ada"
3607 },
3608 "response": true,
3609 "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/)."
3610 },
3611 "get_collaborator_permission": {
3612 "params": {
3613 "owner": "flagon-io",
3614 "name": "hello",
3615 "username": "ada"
3616 },
3617 "response": {
3618 "username": "ada",
3619 "role": "triage",
3620 "source": "direct",
3621 "capabilities": [
3622 "read",
3623 "participate",
3624 "triage"
3625 ]
3626 },
3627 "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/)."
3628 },
3629 "list_repo_invitations": {
3630 "response": [
3631 {
3632 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p",
3633 "repo": "flagon-io/hello",
3634 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
3635 "invitee": "alan",
3636 "email": null,
3637 "role": "write",
3638 "invited_by": "syntaqx",
3639 "inviter_avatar": null,
3640 "status": "pending",
3641 "created_at": "2026-10-05T17:00:00.000Z",
3642 "expires_at": "2026-10-12T17:00:00.000Z"
3643 },
3644 {
3645 "id": "rin_01kp3d7e8f9g0h1j2k3m4n5p6q",
3646 "repo": "flagon-io/hello",
3647 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
3648 "invitee": null,
3649 "email": "joan@example.com",
3650 "role": "read",
3651 "invited_by": "syntaqx",
3652 "inviter_avatar": null,
3653 "status": "pending",
3654 "created_at": "2026-10-05T17:00:00.000Z",
3655 "expires_at": "2026-10-12T17:00:00.000Z"
3656 }
3657 ],
3658 "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/)."
3659 },
3660 "revoke_repo_invitation": {
3661 "params": {
3662 "owner": "flagon-io",
3663 "name": "hello",
3664 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p"
3665 },
3666 "response": {
3667 "id": "rin_01kp3c4d5e6f7g8h9j0k1m2n3p",
3668 "repo": "flagon-io/hello",
3669 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
3670 "invitee": "alan",
3671 "email": null,
3672 "role": "write",
3673 "invited_by": "syntaqx",
3674 "inviter_avatar": null,
3675 "status": "revoked",
3676 "created_at": "2026-10-05T17:00:00.000Z",
3677 "expires_at": "2026-10-12T17:00:00.000Z"
3678 },
3679 "notes": "`404` when there is no pending invitation with that id on this repository."
3680 },
3681 "list_my_repo_invitations": {
3682 "response": [
3683 {
3684 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
3685 "repo": "flagon-io/hello",
3686 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
3687 "invitee": "ada",
3688 "email": null,
3689 "role": "triage",
3690 "invited_by": "syntaqx",
3691 "inviter_avatar": null,
3692 "status": "pending",
3693 "created_at": "2026-10-05T17:00:00.000Z",
3694 "expires_at": "2026-10-12T17:00:00.000Z"
3695 }
3696 ],
3697 "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."
3698 },
3699 "accept_repo_invitation": {
3700 "params": {
3701 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r"
3702 },
3703 "response": {
3704 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
3705 "repo": "flagon-io/hello",
3706 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
3707 "invitee": "ada",
3708 "email": null,
3709 "role": "triage",
3710 "invited_by": "syntaqx",
3711 "inviter_avatar": null,
3712 "status": "accepted",
3713 "created_at": "2026-10-05T17:00:00.000Z",
3714 "expires_at": "2026-10-12T17:00:00.000Z"
3715 },
3716 "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/)."
3717 },
3718 "decline_repo_invitation": {
3719 "params": {
3720 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r"
3721 },
3722 "response": {
3723 "id": "rin_01kp3e9f0g1h2j3k4m5n6p7q8r",
3724 "repo": "flagon-io/hello",
3725 "repo_id": "rep_01m3m5q6p0e2qaw6mmjahk0qrr",
3726 "invitee": "ada",
3727 "email": null,
3728 "role": "triage",
3729 "invited_by": "syntaqx",
3730 "inviter_avatar": null,
3731 "status": "declined",
3732 "created_at": "2026-10-05T17:00:00.000Z",
3733 "expires_at": "2026-10-12T17:00:00.000Z"
3734 },
3735 "notes": "`404` when you have no pending invitation with that id."
3736 },
3737 "set_base_permission": {
3738 "params": {
3739 "workspace": "flagon-io"
3740 },
3741 "request": {
3742 "base_permission": "read"
3743 },
3744 "response": {
3745 "workspace": "flagon-io",
3746 "base_permission": "read"
3747 },
3748 "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/)."
3749 },
3750 "list_outside_collaborators": {
3751 "params": {
3752 "workspace": "flagon-io"
3753 },
3754 "response": [
3755 {
3756 "username": "ada",
3757 "name": "Ada Lovelace",
3758 "avatar": null,
3759 "repos": [
3760 {
3761 "repo": "flagon-io/docs",
3762 "role": "write"
3763 },
3764 {
3765 "repo": "flagon-io/hello",
3766 "role": "triage"
3767 }
3768 ]
3769 }
3770 ],
3771 "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/)."
Merge branch 'worktree-agent-ab2e39e11a6493412'3772 }
3773}

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