{"openapi":"3.1.0","info":{"title":"AnyGym","version":"v0.3.91-rc"},"paths":{"/v1/upload-reports":{"get":{"summary":"List Reports","operationId":"list_reports_v1_upload_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Reports V1 Upload Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/upload-reports/{report_id}":{"get":{"summary":"Read Report","operationId":"read_report_v1_upload_reports__report_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Report V1 Upload Reports  Report Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/access":{"get":{"summary":"Get Access","description":"The project's Access tab: each role's abilities with their setting, the gates with their rules, how many\nabilities use each and how many people each locks now, and, for those who let people through, the project's\ntaskers with the gates a lead may let them through. For admins, its delivery managers and team leads.","operationId":"get_access_v1_projects__project_id__access_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Access V1 Projects  Project Id  Access Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/access/settings":{"put":{"summary":"Set Ability","description":"Set one ability: Always, Never, or When a gate of the project holds.","operationId":"set_ability_v1_projects__project_id__access_settings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Ability V1 Projects  Project Id  Access Settings Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/access/make-tasks":{"put":{"summary":"Set Make Tasks","description":"Set who may make tasks where for one role (`role`, taskers by default), all at once, as Access's sentences\nread: the every-batch rule and the batches' own rules. Stored as that role's Create tasks settings (one row per\nbatch with a rule, one for every batch); a batch's Work in row from before is folded into its Create tasks row,\nand a batch left out loses both, so it goes by the every-batch rule. Each change is logged as set_ability logs\none.","operationId":"set_make_tasks_v1_projects__project_id__access_make_tasks_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakeTasksIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Make Tasks V1 Projects  Project Id  Access Make Tasks Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/access/gates":{"post":{"summary":"Create Gate","operationId":"create_gate_v1_projects__project_id__access_gates_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Gate V1 Projects  Project Id  Access Gates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/access/gates/{gate_id}":{"put":{"summary":"Update Gate","operationId":"update_gate_v1_projects__project_id__access_gates__gate_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"gate_id","in":"path","required":true,"schema":{"type":"string","title":"Gate Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Gate V1 Projects  Project Id  Access Gates  Gate Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Gate","operationId":"delete_gate_v1_projects__project_id__access_gates__gate_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"gate_id","in":"path","required":true,"schema":{"type":"string","title":"Gate Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/access/gates/preview":{"post":{"summary":"Preview Gate","description":"What a gate as typed would say and do, before it is saved: the sentence a tasker who has met none of its\nrules is shown (`sample`), and, for a gate already in use, by how many abilities (`used_by`) and how many people\nit would lock now (`locks`).","operationId":"preview_gate_v1_projects__project_id__access_gates_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Gate V1 Projects  Project Id  Access Gates Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/access/gates/{gate_id}/passes/{user_id}":{"put":{"summary":"Let Through","description":"Let a person through a gate (its let-through rule holds for them from now on), saying who and when.","operationId":"let_through_v1_projects__project_id__access_gates__gate_id__passes__user_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"gate_id","in":"path","required":true,"schema":{"type":"string","title":"Gate Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Let Through V1 Projects  Project Id  Access Gates  Gate Id  Passes  User Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Undo Let Through","operationId":"undo_let_through_v1_projects__project_id__access_gates__gate_id__passes__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"gate_id","in":"path","required":true,"schema":{"type":"string","title":"Gate Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/access/mine":{"get":{"summary":"My Access","description":"What the project's gates hold the caller to now, per batch their place covers: for each of Create tasks and\nWork in, null when open, else the lock (its sentence; the gate's name only for those who edit access). The web\ndisables Create task and Upload tasks with the sentence.","operationId":"my_access_v1_projects__project_id__access_mine_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response My Access V1 Projects  Project Id  Access Mine Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/action-settings":{"get":{"summary":"Get Action Settings","operationId":"get_action_settings_v1_action_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Action Settings V1 Action Settings Get"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"summary":"Put Action Settings","operationId":"put_action_settings_v1_action_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionSettings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Action Settings V1 Action Settings Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/episodes/{episode_id}/files":{"get":{"summary":"List Files","operationId":"list_files_v1_episodes__episode_id__files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","title":"Episode Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Files V1 Episodes  Episode Id  Files Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/episodes/{episode_id}/files.tar.gz":{"get":{"summary":"Files Archive","operationId":"files_archive_v1_episodes__episode_id__files_tar_gz_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","title":"Episode Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/episodes/{episode_id}/files/{path}":{"get":{"summary":"Get File","description":"The file as text to show, or with `download` as itself. A file too large or not text is refused for showing\nwith a word saying so; it can always be downloaded.","operationId":"get_file_v1_episodes__episode_id__files__path__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","title":"Episode Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/review-assignee":{"put":{"summary":"Give Reviews","description":"Give these tasks' reviews to one reviewer, or take them off whoever has them (`reviewer` null). Every task must\nbe one this person gives reviews out for; when giving, every task must need review, the reviewer must review where\nthe task is, and must not have made it unless they are an admin or a delivery manager there. All or nothing. The\nrows are locked in id order, as a claim locks them, and read after the lock: a claim made meanwhile is seen (and\ntaken off or replaced on the record, with who had it), never written over unseen.","operationId":"give_reviews_v1_tasks_review_assignee_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewAssignment"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Give Reviews V1 Tasks Review Assignee Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/review-queue":{"get":{"summary":"Review Queue","description":"Every task this person holds (`assigned`: claimed by them or given to them, whatever its status now: waiting,\ndecided, being checked again, delivered; not drafts or archived tasks), and what they could claim (`open`: waiting\nfor review, held by nobody). Empty for someone who reviews nowhere. `assigned_waiting_total` counts the held tasks\nstill waiting for review (Awaiting reviewer, In review): what the menu's To review count and Start reviewing go by,\nso decided and delivered tasks one still holds don't count (CL2, 2026-11-30).\n`open_project` and `open_batch` narrow Open to claim (and its total); `open_projects` and `open_batches` list\nwhere its tasks are, counted, before that narrowing, with the chosen ones kept at 0 once nothing waits there.","operationId":"review_queue_v1_review_queue_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"assigned_offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Assigned Offset"}},{"name":"open_offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Open Offset"}},{"name":"assigned_sort","in":"query","required":false,"schema":{"enum":["task","batch","project","submitted","waiting","status","by"],"type":"string","default":"waiting","title":"Assigned Sort"}},{"name":"assigned_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Assigned Dir"}},{"name":"open_sort","in":"query","required":false,"schema":{"enum":["task","batch","project","submitted","waiting","status","by"],"type":"string","default":"waiting","title":"Open Sort"}},{"name":"open_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Open Dir"}},{"name":"sort_locale","in":"query","required":false,"schema":{"type":"string","maxLength":100,"pattern":"^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$","default":"en","title":"Sort Locale"}},{"name":"open_project","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Open Project"}},{"name":"open_batch","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Open Batch"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Review Queue V1 Review Queue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/{task_id}/claim":{"post":{"summary":"Claim","description":"Take a task that waits for review and nobody has, to review it oneself (round 65). The row is locked, so when\ntwo reviewers claim at once one gets it and the other is told who did. Claiming one's own is refused, but for an\nadmin or the project's delivery manager (Access.own_task).","operationId":"claim_v1_tasks__task_id__claim_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Claim V1 Tasks  Task Id  Claim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/claim":{"post":{"summary":"Claim Many","description":"Claim several tasks at once, as Claim does one. A task this person may not see or review, or their own, refuses\nthe whole request; a task someone claimed first, or that no longer waits for review, is left out and said why, and\nthe rest are claimed. Rows are locked in id order, so two reviewers claiming overlapping sets never deadlock.","operationId":"claim_many_v1_tasks_claim_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claims"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Claim Many V1 Tasks Claim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/tasks/{task_id}/unclaim":{"post":{"summary":"Unclaim","description":"Let go of a task's review one claimed oneself, at any time, a verdict given or not (the owner, 2026-11-30): it\ngoes back to whoever claims it next, and a new version no longer comes back to this reviewer. A review given to\nthis person by someone else is let go too when they give reviews out there (K2c, 2026-11-30); a plain reviewer is\nrefused, with who gave it (they, or anyone who gives reviews out there, take it off: PUT\n/v1/tasks/review-assignee). Logged as \"review.unclaimed\".","operationId":"unclaim_v1_tasks__task_id__unclaim_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unclaim V1 Tasks  Task Id  Unclaim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/unclaim":{"post":{"summary":"Unclaim Many","description":"Unclaim several tasks at once, as Unclaim does one. A task this person may not see refuses the whole request;\none that is not theirs, or was given to them by someone else, is left out and said why, and the rest are let go.","operationId":"unclaim_many_v1_tasks_unclaim_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Claims"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Unclaim Many V1 Tasks Unclaim Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/projects/{project_id}/logo":{"post":{"summary":"Upload Logo","description":"A square PNG, JPEG or SVG of at most 1 MB becomes the project's logo; anything else is refused with the\nreason. The previous logo is replaced.","operationId":"upload_logo_v1_projects__project_id__logo_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_logo_v1_projects__project_id__logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Logo V1 Projects  Project Id  Logo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/logo/{name}":{"get":{"summary":"Get Logo","description":"The project's current uploaded logo, for whoever sees the project. Only the current one: an address the\nproject's logo no longer has answers 404.","operationId":"get_logo_v1_projects__project_id__logo__name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/model-checks":{"get":{"summary":"List Checks","description":"Each model's latest check in each format, the formats, the harnesses with their format, the ones left off and\nwhy, and the models being checked now.","operationId":"list_checks_v1_admin_model_checks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Checks V1 Admin Model Checks Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Start Checks","description":"Check these models (or every model in the catalog) in every format, in the background: about a minute, and\na few cents for the whole catalog. A model already being checked is not checked twice.","operationId":"start_checks_v1_admin_model_checks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Start Checks V1 Admin Model Checks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/admin/pairs-off":{"put":{"summary":"Switch Pair Off","description":"Switch off one harness with one model, with why; switching it off again changes the reason.","operationId":"switch_pair_off_v1_admin_pairs_off_put","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PairOff"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Switch Pair Off V1 Admin Pairs Off Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Switch Pair On","description":"Switch the pair on again: its checks decide, as for every other pair.","operationId":"switch_pair_on_v1_admin_pairs_off_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"harness","in":"query","required":true,"schema":{"type":"string","title":"Harness"}},{"name":"model","in":"query","required":true,"schema":{"type":"string","title":"Model"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/config":{"get":{"summary":"Auth Config","description":"What the sign-in page needs before anyone is signed in. No secrets: the client id is public by design.\n`open_signup` says whether any Google account may sign in now.","operationId":"auth_config_v1_auth_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Auth Config V1 Auth Config Get"}}}}}}},"/v1/auth/settings":{"put":{"summary":"Put Auth Settings","description":"Opens or closes sign-up for any Google account. People who sign up join no project and see nothing until an\nadmin or a delivery manager adds them to one.","operationId":"put_auth_settings_v1_auth_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInSettings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Put Auth Settings V1 Auth Settings Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/auth/google":{"post":{"summary":"Google Sign In","operationId":"google_sign_in_v1_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleSignIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Google Sign In V1 Auth Google Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/logout":{"post":{"summary":"Logout","description":"Ends this browser's session. Service and dev tokens have nothing to end.","operationId":"logout_v1_auth_logout_post","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/v1/users":{"get":{"summary":"List Users","description":"Everyone who signed in or was added. Admins see every membership; a delivery manager sees the memberships in\nthe projects they deliver, so they can tell who still waits for a project.","operationId":"list_users_v1_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Users V1 Users Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Add User","description":"Puts a person on the platform by their Google account's email, Gmail included, so they can sign in even while\nsign-up is closed. They join no project until someone adds them to one.","operationId":"add_user_v1_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUser"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Add User V1 Users Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/users/{user_id}":{"patch":{"summary":"Patch User","description":"Change a person's site role (user, delivery_manager, admin) or disable them. Disabling also ends their\nsessions. You cannot do either to yourself, so there is always an admin left.","operationId":"patch_user_v1_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch User V1 Users  User Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/people":{"get":{"summary":"List People","description":"Everyone who signed in or was added, a page at a time: `people` (as GET /v1/users gives them, each with their\nplaces in the projects the caller is shown), `total` that match, `page` and `per_page`. Without a sort, the order\nthey joined in. Each filter takes several values, repeated (`?role=user&role=admin`), and matches any of them;\nthe filters together match all. A delivery manager's `project` is one they deliver, and `none` means in none of\ntheirs.","operationId":"list_people_v1_people_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"description":"words, each found in the name or the email, any case","default":"","title":"Q"},"description":"words, each found in the name or the email, any case"},{"name":"role","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"site roles (repeat for several, any of them): user, delivery_manager or admin","default":[],"title":"Role"},"description":"site roles (repeat for several, any of them): user, delivery_manager or admin"},{"name":"project","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"project ids, and `none` for those waiting for one (repeat for several, any of them)","default":[],"title":"Project"},"description":"project ids, and `none` for those waiting for one (repeat for several, any of them)"},{"name":"project_role","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"tasker, reviewer, team_lead or delivery_manager (repeat for several, any of them), in `project` or in any project shown: the role given there, the highest held, not those it brings; delivery_manager takes in site-wide delivery managers too","default":[],"title":"Project Role"},"description":"tasker, reviewer, team_lead or delivery_manager (repeat for several, any of them), in `project` or in any project shown: the role given there, the highest held, not those it brings; delivery_manager takes in site-wide delivery managers too"},{"name":"batch","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"batches of the projects in `project` (repeat for several): a project with a batch named matches its people on one of them or on the whole project; a project without one matches all its people","default":[],"title":"Batch"},"description":"batches of the projects in `project` (repeat for several): a project with a batch named matches its people on one of them or on the whole project; a project without one matches all its people"},{"name":"sign_in","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"signed_in, never (not signed in yet) or disabled (repeat for several, any of them)","default":[],"title":"Sign In"},"description":"signed_in, never (not signed in yet) or disabled (repeat for several, any of them)"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"added, name, role, projects or last (sign-in)","default":"added","title":"Sort"},"description":"added, name, role, projects or last (sign-in)"},{"name":"dir","in":"query","required":false,"schema":{"type":"string","description":"asc or desc; added and name go up first, the rest down","default":"","title":"Dir"},"description":"asc or desc; added and name go up first, the rest down"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List People V1 People Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/people/{user_id}":{"get":{"summary":"Person","description":"One person, for their page: who they are (as GET /v1/users gives them), each of their places in the projects\nthe caller is shown with its batches, budget and spend, their work there in numbers (`work`), the tasks they made\nlast (`recent_tasks`, each with its current version), and the newest events naming them (`activity`).","operationId":"person_v1_people__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Person V1 People  User Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/shape":{"get":{"summary":"Get Shape","description":"The task page's shape: where it sits, its labels' rows, its instruction's length, and how many evaluation cards,\nAgentic QCs of each kind, cheat and reference runs, and findings it holds. Only what the person may open.","operationId":"get_shape_v1_task_versions__tv_id__shape_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Shape V1 Task Versions  Tv Id  Shape Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients":{"get":{"summary":"List Clients","description":"Clients with their delivery formats and projects. Admins and site delivery managers read every client; a\ndelivery manager of some projects reads the clients those projects are made for. Only admins change them.","operationId":"list_clients_v1_clients_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Clients V1 Clients Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Client","operationId":"create_client_v1_clients_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientBody"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Client V1 Clients Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/clients/{client_id}":{"get":{"summary":"Get Client","operationId":"get_client_v1_clients__client_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Client V1 Clients  Client Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Client","operationId":"patch_client_v1_clients__client_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Client V1 Clients  Client Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Client","description":"Only a client no project is made for; its delivery formats go with it.","operationId":"delete_client_v1_clients__client_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects":{"get":{"summary":"List Projects","description":"The projects this person is in (every project for admins) with their counts; newest activity first. `status`\nfilters; `status=open` means draft, active or paused.","operationId":"list_projects_v1_projects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Projects V1 Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Project","operationId":"create_project_v1_projects_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Project V1 Projects Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}":{"get":{"summary":"Get Project","operationId":"get_project_v1_projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Project V1 Projects  Project Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Project","operationId":"patch_project_v1_projects__project_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Project V1 Projects  Project Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Project","description":"Admins only, and only an archived project none of whose tasks was delivered: its batches, tasks and their\nruns and reviews go for good; their spend stays counted.","operationId":"delete_project_v1_projects__project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/status":{"put":{"summary":"Set Project Status","description":"Set a project's status: admins, site delivery managers and the project's own delivery managers, the people\nshown it (Access.sees_project_status_of). Everything else about a project is changed with PATCH, by admins.","operationId":"set_project_status_v1_projects__project_id__status_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Project Status V1 Projects  Project Id  Status Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/operations":{"get":{"summary":"Project Operations","description":"Everything the Operations page shows, in one answer; opening it also writes today's snapshot. A person who is\nonly a tasker here gets their own tasks and numbers instead. `client_status` is the row per client and\n`exclusivity_open` the tasks whose exclusivity nobody has chosen, for admins and the project's delivery managers;\nnull for everyone else. `batch_id`: every number for that batch of the project only (404 for a batch that is not\nthe project's, or not in the person's place); the project's daily snapshot is then left out.","operationId":"project_operations_v1_projects__project_id__operations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":7,"default":30,"title":"Days"}},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Project Operations V1 Projects  Project Id  Operations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/leaderboard":{"get":{"summary":"Get Project Leaderboard","description":"The project's Leaderboard tab: its top models on its approved tasks, ranked by pass@k\n(reports.project_leaderboard); `tasks` puts it over the tasks in review, or over all of them. For the people\nwho see the whole project (admins, the tokens, and its delivery managers, team leads and reviewers of every\nbatch), who are the ones shown a batch's own leaderboard. `lines` and `runs` are the project's own choice (each\nline a model in a harness at a level, and the judged attempts each should have on each task), null where it made\nnone; `models` is the list of models in force, `models_default` whether it is the platform's own, and `can_choose`\nwhether this person may change them (`PUT /v1/projects/{id}/leaderboard/models`).","operationId":"get_project_leaderboard_v1_projects__project_id__leaderboard_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"tasks","in":"query","required":false,"schema":{"enum":["approved","review","all"],"type":"string","description":"the tasks it is over: the approved ones (delivered too), the ones in review (waiting for a reviewer or with one), or every task","default":"approved","title":"Tasks"},"description":"the tasks it is over: the approved ones (delivered too), the ones in review (waiting for a reviewer or with one), or every task"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Project Leaderboard V1 Projects  Project Id  Leaderboard Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/leaderboard/models":{"put":{"summary":"Set Project Leaderboard Models","description":"Choose what the project's Leaderboard lists (the owner, 2026-12-02): its lines, each a model in a harness at a\nreasoning level, and how many judged attempts each line should have on each task; or both null for the platform's\ntop models. Admins, the tokens and the project's delivery managers choose. Nothing is run and no result is lost:\nthe tab reads the runs there are.","operationId":"set_project_leaderboard_models_v1_projects__project_id__leaderboard_models_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Project Leaderboard Models V1 Projects  Project Id  Leaderboard Models Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/budget":{"put":{"summary":"Set Project Budget","description":"The project's model spend ceiling, over everyone's runs and tries on its tasks.","operationId":"set_project_budget_v1_projects__project_id__budget_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Project Budget V1 Projects  Project Id  Budget Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/members/{user_id}/budget":{"put":{"summary":"Set Member Budget","description":"One person's model spend ceiling in the project: a tasker's tries, a reviewer's runs.","operationId":"set_member_budget_v1_projects__project_id__members__user_id__budget_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Member Budget V1 Projects  Project Id  Members  User Id  Budget Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/members":{"get":{"summary":"List Members","description":"Who is in the project and as what. Reviewers, delivery managers and admins see it.","operationId":"list_members_v1_projects__project_id__members_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Members V1 Projects  Project Id  Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Member","description":"Add a person to the project by email, or change their roles and batches. Admins, the project's delivery\nmanagers and its team leads do this; only an admin gives the delivery manager role, and only an admin or a\ndelivery manager the team lead role. A role brings the ones under it, and they are stored with it: a reviewer is\na tasker too, a team lead a reviewer and a tasker. Budgets are an admin's or a delivery manager's to set. An email\nthat is not on the platform yet (any Google account, Gmail included) gets a user row now and may sign in with that\naccount later.","operationId":"put_member_v1_projects__project_id__members_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Member V1 Projects  Project Id  Members Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/people":{"get":{"summary":"Platform People","description":"Everyone on the platform, admins included, for those who staff the project to choose from when they add people\n(decided 2026-11-26): its team leads, its delivery managers and admins. Each person's name, email and site role,\nwhether they signed in or are disabled, and whether they are on this project already; nothing about their other\nprojects.","operationId":"platform_people_v1_projects__project_id__people_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Platform People V1 Projects  Project Id  People Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/members/bulk":{"post":{"summary":"Add Members","description":"Adds several people to the project at once, with one role and one choice of batches for all of them (the People\npage's Add to project, 2026-11-27). The same people may do it, under the same rules, as PUT …/members: a refusal\nthat holds for everyone (the role, the batches) refuses the whole request. Someone already on the project keeps\ntheir place as it is, a disabled account is not added, and an email not on the platform is added only by those\nwho add new people; each of those is listed under `skipped` with why, and everyone else is added. Each place is\nwritten as PUT …/members writes a new one: its link tables and all_batches (links.set_place), its budget row and\nits event.","operationId":"add_members_v1_projects__project_id__members_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembersBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Members V1 Projects  Project Id  Members Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Change Members","description":"Changes several members of the project at once (the Team tab's ticked members, 2026-11-27): one budget for all\nof them, or none (remove_budget, never an empty amount), and/or one role (and, if given, one choice of batches).\nAdmins only, the owner: \"this is an admin's job, not a delivery manager's job\". Every member named must be on the\nproject, or nothing changes. Each change is written as the one-member endpoints write it, in one transaction: the\nbudget row (PUT …/members/{id}/budget), the link tables and all_batches (links.set_place, as PUT …/members), and\neach one's event.","operationId":"change_members_v1_projects__project_id__members_bulk_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembersChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Members V1 Projects  Project Id  Members Bulk Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/members/{user_id}":{"delete":{"summary":"Remove Member","description":"Takes the person out of the project. Their uploads, notes and decisions stay on record.","operationId":"remove_member_v1_projects__project_id__members__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batches":{"get":{"summary":"List Batches","operationId":"list_batches_v1_batches_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Batches V1 Batches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Batch","description":"A new batch, authorized by Access.makes_batches_in. Arriving tasks inherit its exclusivity; batch creation\ndoes not grant client visibility or permission to choose a client.","operationId":"create_batch_v1_batches_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Batch V1 Batches Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batches/with-copies":{"post":{"summary":"Create Batch With Copies","description":"The \"New batch\" from chosen tasks: a new batch, as `POST /v1/batches` makes one, with copies of the chosen tasks\nin it, of its project or of another one where the caller moves tasks too (copies.py, \"Who copies\"). The\noriginals stay where they are, untouched; each copy is an independent task (copies.py says what it carries and\nwhat it leaves). One action that succeeds or fails whole: a refusal of the batch or of\nany one task makes nothing, no empty batch either. For the people who move tasks as well as make batches\n(Access.moves_tasks_in): admins and the project's delivery managers. Guarded by the request id\n(`Idempotency-Key`): a double click or a retry after a lost answer gets the first result, so one batch is made\nwith one set of copies.","operationId":"create_batch_with_copies_v1_batches_with_copies_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchWithCopies"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Batch With Copies V1 Batches With Copies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/batches/{batch_id}":{"get":{"summary":"Get Batch","operationId":"get_batch_v1_batches__batch_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Batch V1 Batches  Batch Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Batch","description":"Moving a batch to another project moves its tasks; their rules stay the batch's. Admins change anything; the\nproject's delivery managers set its status only (Tito, 2026-11-30).","operationId":"patch_batch_v1_batches__batch_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Batch V1 Batches  Batch Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Batch","description":"Admins only, and only an archived batch none of whose tasks was delivered: its tasks and their runs and\nreviews go for good; their spend stays counted.","operationId":"delete_batch_v1_batches__batch_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batches/{batch_id}/taxonomy":{"put":{"summary":"Set Batch Taxonomy","description":"Choose the rules this batch's tasks are checked with: a published taxonomy. Admins and the project's delivery\nmanagers choose. When the rules change, the batch's open tasks are checked again; accepted and delivered tasks\nkeep their verdict and the version that judged them.","operationId":"set_batch_taxonomy_v1_batches__batch_id__taxonomy_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRules"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Batch Taxonomy V1 Batches  Batch Id  Taxonomy Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batches/{batch_id}/allowed-pairs":{"put":{"summary":"Set Batch Allowed Pairs","description":"Choose the harness + model pairs that may run on this batch's tasks, or null for no list (any pair the\nplatform runs). Admins and the project's delivery managers choose. From then on, a model run, a playground attempt\nand a playground question or chat outside the list are refused for everyone but admins (batch_pairs). Nothing\nrunning is stopped and no result is lost: the list is read when something starts.","operationId":"set_batch_allowed_pairs_v1_batches__batch_id__allowed_pairs_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedPairs"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Batch Allowed Pairs V1 Batches  Batch Id  Allowed Pairs Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batches/{batch_id}/tasks":{"post":{"summary":"Move Tasks In","description":"Move tasks of the same project into this batch: the tasks named, and every active task of the batches named\n(their archived tasks stay). An archived task named refuses the whole request: bring it back first.\nA task moves whole: its versions, runs, reviews, notes and Agentic QC go with it, and so does its builder draft.\nIt keeps its exclusivity, which is the task's own whatever batch it sits in. A panel run moves too once every\ntask it ran on is in this batch. A moved task whose rules change with it (batches with different taxonomies) is\nchecked again when it is still open.\nA finished task (Approved, Delivered, Rejected) just moves. For an unfinished one, the tasker who made it and the\nreviewer holding its review, when they work only in batches that leave this one out, are listed in\n`losing_access`, and `access` says for each whether they are added to this batch or let go (their review on these\ntasks back in the pool); a move missing a choice is refused (2026-12-03).\n`dry_run` says what the move would do and changes nothing: how many tasks move, are checked again, which panel\nruns follow, how many archived tasks stay, and who needs a choice (`losing_access`).","operationId":"move_tasks_in_v1_batches__batch_id__tasks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Move Tasks In V1 Batches  Batch Id  Tasks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batches/{batch_id}/copies":{"post":{"summary":"Copy Tasks In","description":"Copy tasks into this existing batch, of its project or of another one where the caller moves tasks too; the\noriginals stay where they are, untouched.\nSee create_batch_with_copies for permissions and the request guard, and copies.py for copy invariants.","operationId":"copy_tasks_in_v1_batches__batch_id__copies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyIds"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Copy Tasks In V1 Batches  Batch Id  Copies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deliveries":{"get":{"summary":"List Deliveries","operationId":"list_deliveries_v1_deliveries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Deliveries V1 Deliveries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Delivery","description":"A delivery goes to one client, named in `client_id`, and holds exact task versions, and only current ones:\nan archived version, or a version of an archived task, is refused. Given tasks or a batch instead, it takes each\ntask's current version when that version is approved, the task is not archived and it may go to this client, and\nnames the tasks it left out with why. A task may not go to the client while nobody has chosen its exclusivity, or\nwhile it is exclusive to another client; given as an exact version, such a task refuses the whole delivery.\nGiven none of these, it is an empty package that tasks are added to later (POST /v1/deliveries/{id}/tasks).\nWith `dry_run` and tasks or batches, nothing is made: the answer is the client, how many tasks would go (`tasks`),\nwhich (`items`, with their batch) and the ones left out with why (`skipped`), even when none would go.","operationId":"create_delivery_v1_deliveries_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Delivery V1 Deliveries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deliveries/{delivery_id}":{"get":{"summary":"Get Delivery","operationId":"get_delivery_v1_deliveries__delivery_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Delivery V1 Deliveries  Delivery Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Delivery","description":"The name and the note; and, while the delivery has not gone out, its client: that is how a delivery made\nbefore deliveries named their client gets one. Every task in it must be able to go to that client.","operationId":"patch_delivery_v1_deliveries__delivery_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Delivery V1 Deliveries  Delivery Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Delivery","description":"Only a delivery that has not gone out, by a delivery manager of the project or an admin.","operationId":"delete_delivery_v1_deliveries__delivery_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deliveries/{delivery_id}/tasks":{"post":{"summary":"Add Delivery Tasks","description":"Adds tasks (and every task of the batches given) to a delivery that has not gone out, by the same rules as a\nnew delivery: each task's current version when approved, not archived and free to go to the delivery's client;\nthe rest are named in `skipped` with why. A task already in it at that version is named as already in; at an\nolder version, the newer one takes its place. `dry_run` answers as for a new delivery and changes nothing.","operationId":"add_delivery_tasks_v1_deliveries__delivery_id__tasks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryTasksBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Delivery Tasks V1 Deliveries  Delivery Id  Tasks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deliveries/{delivery_id}/tasks/{task_version_id}":{"delete":{"summary":"Remove Delivery Task","description":"Takes one task version out of a delivery that has not gone out; the task itself is not touched.","operationId":"remove_delivery_task_v1_deliveries__delivery_id__tasks__task_version_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"task_version_id","in":"path","required":true,"schema":{"type":"string","title":"Task Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Delivery Task V1 Deliveries  Delivery Id  Tasks  Task Version Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deliveries/{delivery_id}/deliver":{"post":{"summary":"Mark Delivered","description":"From now on its tasks count as delivered. A batch whose every task is delivered becomes delivered too. The\ndelivery must name its client, and every task in it must still be able to go to that client: the exclusivity is\nread again here, since it may have changed after the delivery was made. A task that is exclusive to this client\nhas then gone out under its exclusivity, and from now on only an admin changes that, with a reason.","operationId":"mark_delivered_v1_deliveries__delivery_id__deliver_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Delivered V1 Deliveries  Delivery Id  Deliver Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/leaderboard/fill-estimate":{"post":{"summary":"Estimate Fill","description":"What completing the project's Leaderboard over `tasks` would start, and its price; nothing is started.","operationId":"estimate_fill_v1_projects__project_id__leaderboard_fill_estimate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FillAsk"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Estimate Fill V1 Projects  Project Id  Leaderboard Fill Estimate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/leaderboard/fill":{"post":{"summary":"Complete Leaderboard","description":"Complete the project's Leaderboard over `tasks`: start what the estimate priced, one panel run per harness.\n`attempts` and `budget_usd` are the estimate's, confirmed.","operationId":"complete_leaderboard_v1_projects__project_id__leaderboard_fill_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FillStart"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Complete Leaderboard V1 Projects  Project Id  Leaderboard Fill Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/leaderboard/auto":{"put":{"summary":"Set Leaderboard Auto","description":"Switch the project's Leaderboard runs on their own on, or off. Admins only (the owner, 2026-12-03: \"the\nleaderboard can only be done on only approved tasks by only admin, so it's okay, no need for spend caps\"); on needs\nthe project's own rows and runs per task, and holds to those rules: if they change, by anyone but an admin, nothing\nmore starts on its own until an admin switches it on again. Nothing is run in this request.","operationId":"set_leaderboard_auto_v1_projects__project_id__leaderboard_auto_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Leaderboard Auto V1 Projects  Project Id  Leaderboard Auto Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/benchmarks":{"get":{"summary":"List Benchmarks","description":"Every public benchmark with what the home page shows of it, and the site's totals (an admin's overrides\nwhere set, else the platform's).","operationId":"list_benchmarks_v1_public_benchmarks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"a client id: a signed-in admin's view for them","title":"Client"},"description":"a client id: a signed-in admin's view for them"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Benchmarks V1 Public Benchmarks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/benchmarks/{slug}":{"get":{"summary":"Get Benchmark","description":"One public benchmark: what the home page shows of it, its Leaderboard (scores from the platform only), how\nthey were made (`scored_on`, for the page's note: the approved tasks they are over and the runs per task), and\nits sample tasks.","operationId":"get_benchmark_v1_public_benchmarks__slug__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"client","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Benchmark V1 Public Benchmarks  Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/benchmarks/{slug}/samples/{sample}":{"get":{"summary":"Get Sample","description":"One sample task in full, as the public reads it: its instruction, the environment the model works in, and per\nrow of the benchmark's Leaderboard one counted attempt (its steps and how it ended) and each test's pass or fail.\nNever the tests' or the grader's files, the reference solution, or a test's own words.","operationId":"get_sample_v1_public_benchmarks__slug__samples__sample__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"sample","in":"path","required":true,"schema":{"type":"string","title":"Sample"}},{"name":"client","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sample V1 Public Benchmarks  Slug  Samples  Sample  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/contact":{"post":{"summary":"Contact","description":"A message from the public site's Get in touch form: kept for admins (GET /v1/contact-messages) and emailed\nonce answered, where the platform has mail set up (mailer.py).","operationId":"contact_v1_public_contact_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Contact V1 Public Contact Post"}}}}}}},"/v1/projects/{project_id}/public":{"get":{"summary":"Get Project Public","description":"How a project stands on the public site: on or off, its address, an admin's overrides, the platform's own\nvalues and what is shown. Admins only.","operationId":"get_project_public_v1_projects__project_id__public_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Project Public V1 Projects  Project Id  Public Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Project Public","description":"Make a project a public benchmark, or not, with its address and an admin's overrides of what is shown of it.\nAdmins only. An address is taken once it is public: a project not public keeps none, whatever was asked, so it\nholds none back.","operationId":"set_project_public_v1_projects__project_id__public_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Project Public V1 Projects  Project Id  Public Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batches/{batch_id}/public":{"put":{"summary":"Set Batch Public","description":"Mark a batch public (a benchmark's Samples): its approved tasks that are not exclusive to a client are shown\nin full on the public site while its project is public. Admins only.","operationId":"set_batch_public_v1_batches__batch_id__public_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchPublic"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Batch Public V1 Batches  Batch Id  Public Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/{task_id}/public-files":{"get":{"summary":"Get Public Files","description":"The files of a task's environment an admin may show when it is a public sample, those chosen for its current\nversion, and (`earlier`) those chosen on an earlier version that it still has, to look at again. Admins only.","operationId":"get_public_files_v1_tasks__task_id__public_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Public Files V1 Tasks  Task Id  Public Files Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Public Files","description":"Choose the files of a task's environment shown when it is a public sample: each one of its environment's files\n(no dot file, no link). Admins only: environment/ builds the sandbox, so an admin looks before anything is shown.","operationId":"set_public_files_v1_tasks__task_id__public_files_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicFiles"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Public Files V1 Tasks  Task Id  Public Files Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public-site":{"get":{"summary":"Get Public Site","operationId":"get_public_site_v1_public_site_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Public Site V1 Public Site Get"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"summary":"Set Public Site","description":"The public site's totals an admin overrides (domains, benchmarks, tasks, models); null: the platform's own.","operationId":"set_public_site_v1_public_site_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteChoice"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Public Site V1 Public Site Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/contact-messages":{"get":{"summary":"List Contact Messages","description":"The messages sent from the public site, newest first, with whether each was emailed. Admins only.","operationId":"list_contact_messages_v1_contact_messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Contact Messages V1 Contact Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/delivery-formats/options":{"get":{"summary":"Format Options","description":"What the format form offers: the converters in the code, the hand-over kinds and the file-naming fields. The\nharnesses and models of a panel come from the catalog (GET /v1/catalog).","operationId":"format_options_v1_delivery_formats_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Format Options V1 Delivery Formats Options Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/delivery-formats/{format_id}":{"get":{"summary":"Get Format","operationId":"get_format_v1_delivery_formats__format_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format_id","in":"path","required":true,"schema":{"type":"string","title":"Format Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Format V1 Delivery Formats  Format Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Format","description":"Change parts of a format. A part that is left out stays; `panel: null` is the choice \"no panel\". A new\nconverter needs its settings in the same request.","operationId":"patch_format_v1_delivery_formats__format_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format_id","in":"path","required":true,"schema":{"type":"string","title":"Format Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormatPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Format V1 Delivery Formats  Format Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Format","description":"Only a format no project delivers in.","operationId":"delete_format_v1_delivery_formats__format_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"format_id","in":"path","required":true,"schema":{"type":"string","title":"Format Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients/{client_id}/formats":{"post":{"summary":"Create Format","description":"A new delivery format for the client. The converter, its settings, the rules, the panel (or null for no\npanel), the hand-over and the file naming are all chosen here; a missing one is refused.","operationId":"create_format_v1_clients__client_id__formats_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormatBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Format V1 Clients  Client Id  Formats Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batches/{batch_id}/exclusivity":{"put":{"summary":"Set Batch Exclusivity","description":"Choose the batch's exclusivity: what the tasks that arrive in it take from now on, and what its tasks that\nstill have the batch's choice change to. A task changed on its own keeps its own. Admins and the project's\ndelivery managers; once one of those tasks has gone out under the exclusivity, an admin with a reason.","operationId":"set_batch_exclusivity_v1_batches__batch_id__exclusivity_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExclusivityChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Batch Exclusivity V1 Batches  Batch Id  Exclusivity Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/{task_id}/exclusivity":{"put":{"summary":"Set Task Exclusivity","description":"Change one task's exclusivity on its own; it then no longer follows its batch. Admins and the project's\ndelivery managers; once the task has gone out under its exclusivity, an admin with a reason.","operationId":"set_task_exclusivity_v1_tasks__task_id__exclusivity_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExclusivityChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Task Exclusivity V1 Tasks  Task Id  Exclusivity Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts":{"get":{"summary":"List Drafts","description":"The caller's drafts (every draft for admins), newest first, each with its owner's name (`owner_name`; the\nemail kept when they have none). A draft is only a task being made in the builder\nwhose Create task has not been pressed (the owner, 2026-11-29): a draft with task_created true (Create task\npressed, or Edit in task builder on a task that exists) is a task, not a draft, and is left out, and so is one\nwhose task is not a draft (eval_db.progress.drafts_not_created, the `draft` status: an uploaded task, or one\nsubmitted before task_created was kept). Such a builder session is still reached from its task page (the\nsubmission's draft, Edit in task builder).","operationId":"list_drafts_v1_drafts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Drafts V1 Drafts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Draft","operationId":"create_draft_v1_drafts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Draft V1 Drafts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/preview":{"post":{"summary":"Preview Draft Id","operationId":"preview_draft_id_v1_drafts_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Preview Draft Id V1 Drafts Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/drafts/{draft_id}":{"get":{"summary":"Get Draft","operationId":"get_draft_v1_drafts__draft_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Draft V1 Drafts  Draft Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Draft","operationId":"patch_draft_v1_drafts__draft_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Draft V1 Drafts  Draft Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Draft","description":"Hide the draft; its tries remain as spend evidence, and a built task stays with its versions.","operationId":"delete_draft_v1_drafts__draft_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/{draft_id}/files":{"post":{"summary":"Add File","description":"A data file the task's environment gets under /app/data/. Big datasets come as a URL in the file list\ninstead (S3), fetched when the environment is built.","operationId":"add_file_v1_drafts__draft_id__files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_add_file_v1_drafts__draft_id__files_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add File V1 Drafts  Draft Id  Files Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/{draft_id}/build":{"post":{"summary":"Build Draft","operationId":"build_draft_v1_drafts__draft_id__build_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BuildBody"},{"type":"null"}],"title":"Req"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Build Draft V1 Drafts  Draft Id  Build Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/{draft_id}/submit":{"post":{"summary":"Submit Draft","description":"Hand the current build to review. Builds first when the content changed since the last build.","operationId":"submit_draft_v1_drafts__draft_id__submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Draft V1 Drafts  Draft Id  Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/{draft_id}/try-price":{"post":{"summary":"Try Price","description":"What a try reserves, shown before it is sent: the expected cost, held while it runs (docs/budgets.md).\nThe legacy `cap_usd` response field is a reservation, not a limit on the key. A pretend model costs nothing;\nan agentic try needs a current build to be priced.","operationId":"try_price_v1_drafts__draft_id__try_price_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TryPrice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Try Price V1 Drafts  Draft Id  Try Price Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/{draft_id}/tries":{"post":{"summary":"Create Try","description":"Ask: the prompt goes to the model as one question; seconds and cents. Attempt: an agent works the packaged\ntask in a sandbox with that model; minutes and dollars, and it needs a current build. Both count against the\ntasker's budgets and require the expected-cost confirmation (docs/budgets.md).","operationId":"create_try_v1_drafts__draft_id__tries_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TryCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Try V1 Drafts  Draft Id  Tries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/{draft_id}/tries/{try_id}":{"get":{"summary":"Get Try","description":"One try as it is now: what the playground reads while a chat reply streams in (round 58).","operationId":"get_try_v1_drafts__draft_id__tries__try_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"try_id","in":"path","required":true,"schema":{"type":"string","title":"Try Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Try V1 Drafts  Draft Id  Tries  Try Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/{draft_id}/tries/{try_id}/stop":{"post":{"summary":"Stop Try","description":"Stop a chat reply that is still coming in: it ends where it got to, and only what was used is paid for. A\nreply already finished is left as it is; an agentic attempt is not stopped here.","operationId":"stop_try_v1_drafts__draft_id__tries__try_id__stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"try_id","in":"path","required":true,"schema":{"type":"string","title":"Try Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Stop Try V1 Drafts  Draft Id  Tries  Try Id  Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/{draft_id}/budget":{"get":{"summary":"Draft Budget","operationId":"draft_budget_v1_drafts__draft_id__budget_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Draft Budget V1 Drafts  Draft Id  Budget Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/edits":{"post":{"summary":"Edit Task Version","description":"Save changed text files under the module's versioning rules; `in_place` identifies a same-version update.\nThe diff and optional reason go on the saved version as a note; its checks run under the batch's rules.\nThe page previews the diff and asks for no reason (round 15).","operationId":"edit_task_version_v1_task_versions__tv_id__edits_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Task Version V1 Task Versions  Tv Id  Edits Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/fix-preview":{"post":{"summary":"Fix Preview","description":"The edit that makes these fixes, with its diff, for the person to read before saving it as an edit. Nothing is\nsaved here. A fix that cannot be made safely is refused with the reason.","operationId":"fix_preview_v1_task_versions__tv_id__fix_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Fix Preview V1 Task Versions  Tv Id  Fix Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/restore":{"post":{"summary":"Restore Version","description":"Make an archived version the task's current version again: admins and the project's delivery managers. The\nversion that was current is archived. Refused (409) while a reviewer holds the review undecided (review_lock).\nThe restored version keeps its checks, runs and decisions; check it again if its batch's rules changed since.\nOnce answered, what the project's Leaderboard lacks starts where the project switched that on (leaderboard_auto):\na restored version that was approved is on the Leaderboard again.","operationId":"restore_version_v1_task_versions__tv_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Restore Version V1 Task Versions  Tv Id  Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/archive":{"get":{"summary":"Task Archive","description":"The version's task folder as a .tar.gz, its folder at the top, as an upload or a Nexus send takes it.","operationId":"task_archive_v1_task_versions__tv_id__archive_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/{task_id}/archive":{"post":{"summary":"Archive Task","description":"Put the task away. Archiving an archived task is refused, so a second press changes nothing.","operationId":"archive_task_v1_tasks__task_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Archive Task V1 Tasks  Task Id  Archive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/{task_id}/unarchive":{"post":{"summary":"Unarchive Task","description":"Bring an archived task back to the lists, its runs and its deliveries.","operationId":"unarchive_task_v1_tasks__task_id__unarchive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unarchive Task V1 Tasks  Task Id  Unarchive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/{task_id}/timeline":{"get":{"summary":"Get Timeline","description":"The task's timeline, as the task page shows it beside the content: its four stages and their steps, and\nother events (a version restored, the task archived).","operationId":"get_timeline_v1_tasks__task_id__timeline_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Timeline V1 Tasks  Task Id  Timeline Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/submit":{"post":{"summary":"Submit Version","description":"Hand this built version to review. A version already submitted is left as it is (the answer is the same), as\nthe builder's submit does. 403 for someone who is not the task's tasker (or an admin, or a token), or whom the\nproject's access gates hold when this submit would make a draft-status task a task; 409 for an archived task or\nversion, or one whose draft changed since it was built.","operationId":"submit_version_v1_task_versions__tv_id__submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Version V1 Task Versions  Tv Id  Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/submit":{"post":{"summary":"Submit Many","description":"Submit several tasks for review at once, as Submit for review does one: each task's current version. A task\nthis person may not see, or may not submit (only its tasker, or an admin), refuses the whole request; one already\nsubmitted, archived, whose draft changed since it was built, or that the project's access gates hold, is left out\nand said why, and the rest are submitted and validated.","operationId":"submit_many_v1_tasks_submit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Submits"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Submit Many V1 Tasks Submit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/task-versions/{tv_id}/draft":{"post":{"summary":"Open In Builder","description":"The caller's builder draft of this version's task (Edit in task builder): `draft_id`, `created` (a new draft\nwas made from the version), `refreshed` (an existing draft was made the same as this version again: it held\nnothing newer), and the draft. Its next build is the next version of this task. 403 for someone who may not edit\nthe version; 409 for an archived task or version.","operationId":"open_in_builder_v1_task_versions__tv_id__draft_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Open In Builder V1 Task Versions  Tv Id  Draft Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/drafts/{draft_id}/import":{"post":{"summary":"Import Into Draft","description":"Import from a zip: the builder's draft filled from the one task folder in an archive (.zip or .tar.gz), in\nplace of what it held. Nothing is built or submitted. 422 for an archive with no task folder or several, one\nthat is not a Harbor task folder, or one over the upload limit.","operationId":"import_into_draft_v1_drafts__draft_id__import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_into_draft_v1_drafts__draft_id__import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Import Into Draft V1 Drafts  Draft Id  Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/taxonomies/catalogue":{"get":{"summary":"Catalogue","description":"What the editor offers: every check a task is judged by (the platform's safety checks and leak audit, Harbor's\nlint, the official Terminal-Bench Science checks) with its default severity per base rule set, the severities and\nthe profiles. With `harbor`, Harbor's lint rules are that synced release's (ADR 0005).","operationId":"catalogue_v1_taxonomies_catalogue_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"harbor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Harbor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Catalogue V1 Taxonomies Catalogue Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/taxonomies":{"get":{"summary":"List Taxonomies","operationId":"list_taxonomies_v1_taxonomies_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Taxonomies V1 Taxonomies Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Taxonomy","operationId":"create_taxonomy_v1_taxonomies_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyBody"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Taxonomy V1 Taxonomies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/taxonomies/{taxonomy_id}":{"get":{"summary":"Get Taxonomy","operationId":"get_taxonomy_v1_taxonomies__taxonomy_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"taxonomy_id","in":"path","required":true,"schema":{"type":"string","title":"Taxonomy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Taxonomy V1 Taxonomies  Taxonomy Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Taxonomy","description":"Change the draft or the description; nothing a project's checks read changes until a publish. Editors are\nset by admins only.","operationId":"patch_taxonomy_v1_taxonomies__taxonomy_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"taxonomy_id","in":"path","required":true,"schema":{"type":"string","title":"Taxonomy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Taxonomy V1 Taxonomies  Taxonomy Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Taxonomy","description":"Only a taxonomy no batch or delivery format uses and no task version was judged by.","operationId":"delete_taxonomy_v1_taxonomies__taxonomy_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"taxonomy_id","in":"path","required":true,"schema":{"type":"string","title":"Taxonomy Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/taxonomies/{taxonomy_id}/publish":{"post":{"summary":"Publish Taxonomy","description":"Freeze the draft as the next version. The open tasks it judges (in the batches that name it) are checked again\nagainst it; accepted and delivered tasks keep their verdict and the version that judged them.","operationId":"publish_taxonomy_v1_taxonomies__taxonomy_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"taxonomy_id","in":"path","required":true,"schema":{"type":"string","title":"Taxonomy Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish Taxonomy V1 Taxonomies  Taxonomy Id  Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/taxonomies/{taxonomy_id}/versions/{version}":{"get":{"summary":"Get Version","operationId":"get_version_v1_taxonomies__taxonomy_id__versions__version__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"taxonomy_id","in":"path","required":true,"schema":{"type":"string","title":"Taxonomy Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Version V1 Taxonomies  Taxonomy Id  Versions  Version  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/harbor/releases":{"get":{"summary":"List Releases","description":"The releases a Harbor-based taxonomy may choose: the newest of each of the newest series, then any older one a\ntaxonomy still names (`offered` false). `installed` is the Harbor the workers run, which judges a taxonomy that\nnames none.","operationId":"list_releases_v1_harbor_releases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Releases V1 Harbor Releases Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/harbor/releases/sync":{"post":{"summary":"Sync Now","description":"Ask the worker to sync Harbor's releases now, besides the daily sync. One runs at a time.","operationId":"sync_now_v1_harbor_releases_sync_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Sync Now V1 Harbor Releases Sync Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/task-versions/{tv_id}/people":{"get":{"summary":"Task People","description":"Who can be named in a note on this task: everyone on its project, admins and delivery managers.","operationId":"task_people_v1_task_versions__tv_id__people_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Task People V1 Task Versions  Tv Id  People Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/notes":{"post":{"summary":"Add Note","description":"A remark on the task, kept next to the decision: a reviewer's, the tasker's reply on their own task, or an\nanswer to an earlier note. People named in it are told through their mentions.","operationId":"add_note_v1_task_versions__tv_id__notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Note V1 Task Versions  Tv Id  Notes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/notes/{note_id}":{"patch":{"summary":"Edit Note","description":"The author changes their note's (or reply's) words (2026-11-30, Tito: most edits are typos). Only the author:\nan admin can delete someone's note but not put words in their mouth. The text it is about (`anchor`) and where it\nsits in the thread stay. People newly named are told through their mentions, as on posting; people no longer\nnamed keep their mention (they were told; an edit does not take it back, nor the reach being named gave them).\nThe note gets `edited_at`; the activity log keeps what it said before (note.edited). Same words, same names: no\nchange, nothing logged.","operationId":"edit_note_v1_task_versions__tv_id__notes__note_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Note V1 Task Versions  Tv Id  Notes  Note Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Note","description":"The author, or an admin, can take a note back. Its replies stay and stand on their own.","operationId":"delete_note_v1_task_versions__tv_id__notes__note_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mentions":{"get":{"summary":"My Mentions","description":"The signed-in person's mentions, newest first, a page at a time: the notes that name them (`kind` note, with\n`note`), the verdicts on their tasks (`kind` review, with `review`: verdict, reason, who decided; told to the\ntask's tasker and the version's uploader, 2026-12-01), and for an admin the spend-limit alerts (`kind` spend,\nwith `spend`: a person's budget in a project, or a\nproject's own, 95% used or reached; eval_db.spend_alerts). Every item has `kind`, `id`, `created_at` and\n`unread`; a note's also `author_name`, its writer's name (what is on record when they have none). `unread` in the\nanswer counts every mention they have not read yet; `has_more` says there are older ones\nto ask for with `before`. `archived` lists the ones the person archived, and only those; the others never list\nthem, and `unread` never counts them. `kinds`: every kind of mention the person ever received, archived ones too,\nwhatever the page asked (\"note\" always; \"review\" and \"spend\" once one came). Tokens have no mentions.","operationId":"my_mentions_v1_mentions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"how many mentions, newest first","default":100,"title":"Limit"},"description":"how many mentions, newest first"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"only mentions older than this: the last shown one's created_at","title":"Before"},"description":"only mentions older than this: the last shown one's created_at"},{"name":"before_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"that mention's id, for mentions made at the same instant","title":"Before Id"},"description":"that mention's id, for mentions made at the same instant"},{"name":"unread","in":"query","required":false,"schema":{"type":"boolean","description":"only the mentions not read yet","default":false,"title":"Unread"},"description":"only the mentions not read yet"},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","description":"the person's archived mentions in place of the others","default":false,"title":"Archived"},"description":"the person's archived mentions in place of the others"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response My Mentions V1 Mentions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mentions/{mention_id}":{"get":{"summary":"One Mention","description":"One of the person's mentions, by its id (the view-mention page, 2026-11-30): a note that names them, or (for an\nadmin) a spend-limit alert they were told of, as GET /v1/mentions lists it, with `archived`. Not theirs, or kept\nfrom them: not found. Asking reads nothing (POST /v1/mentions/{id}/read does).","operationId":"one_mention_v1_mentions__mention_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mention_id","in":"path","required":true,"schema":{"type":"string","title":"Mention Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response One Mention V1 Mentions  Mention Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mentions/seen":{"post":{"summary":"Mentions Seen","description":"Mark all read: every mention of the person so far, but the ones they archived.","operationId":"mentions_seen_v1_mentions_seen_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mentions Seen V1 Mentions Seen Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/mentions/{note_id}/read":{"post":{"summary":"Mention Read","description":"The person opened one mention (a note, or a spend-limit alert by its id), on the Mentions page or at its note\non the task: it is read. Asking again, or\nfor a note that does not name them, changes nothing. Answers how many are still unread.","operationId":"mention_read_v1_mentions__note_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mention Read V1 Mentions  Note Id  Read Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mentions/mark":{"post":{"summary":"Mentions Mark","description":"Several of the person's mentions at once (the Mentions table's selection, 2026-11-30): read, or unread again;\narchived (for them only), or brought back. Ids that are not theirs change nothing. Personal inbox state, so\nnothing is logged. Answers how many are still unread.","operationId":"mentions_mark_v1_mentions_mark_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MentionMark"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Mentions Mark V1 Mentions Mark Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/spending":{"get":{"summary":"Spending","description":"The spending history: `rows` (newest first, PAGE_SIZE a page, `total` of them), `summary` (each person's\nbudget and spend in each project), and the `people` and `projects` the filters offer.","operationId":"spending_v1_spending_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"person","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"user ids: only their spending","title":"Person"},"description":"user ids: only their spending"},{"name":"project","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"project ids: only those projects","title":"Project"},"description":"project ids: only those projects"},{"name":"kind","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"description":"only these kinds of rows: run, qc, try, check, settled, budget, reached","title":"Kind"},"description":"only these kinds of rows: run, qc, try, check, settled, budget, reached"},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"rows at or after this instant","title":"Since"},"description":"rows at or after this instant"},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"rows before this instant","title":"Until"},"description":"rows before this instant"},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"description":"only rows whose every word is in their person, project, what they were, task or models","default":"","title":"Q"},"description":"only rows whose every word is in their person, project, what they were, task or models"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"the rows' order: at, person, project, cost, kind","default":"at","title":"Sort"},"description":"the rows' order: at, person, project, cost, kind"},{"name":"dir","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"asc or desc; by default the sort's own first way","title":"Dir"},"description":"asc or desc; by default the sort's own first way"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":1,"default":1,"title":"Page"}},{"name":"everyone","in":"query","required":false,"schema":{"type":"boolean","description":"the summary holds every member of each project and every project, with a budget or not (the Budgets tab)","default":false,"title":"Everyone"},"description":"the summary holds every member of each project and every project, with a budget or not (the Budgets tab)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Spending V1 Spending Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/qc-templates":{"get":{"summary":"List Templates","description":"Every template at its newest version, with how many batches use it: admins only.","operationId":"list_templates_v1_qc_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Templates V1 Qc Templates Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Template","description":"A new template, by an admin.","operationId":"create_template_v1_qc_templates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Template V1 Qc Templates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/qc-templates/{template_id}":{"get":{"summary":"Get Template","description":"A template with its system prompt, criteria, output schema and prompt: admins only.","operationId":"get_template_v1_qc_templates__template_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Template V1 Qc Templates  Template Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Save Template","description":"An admin's change: a new version. Verifications already run keep the version they used.","operationId":"save_template_v1_qc_templates__template_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Template V1 Qc Templates  Template Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batches/{batch_id}/verification-setup":{"get":{"summary":"Get Setup","operationId":"get_setup_v1_batches__batch_id__verification_setup_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Setup V1 Batches  Batch Id  Verification Setup Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Setup","description":"Pick the batch's templates, model and adversarial default: its team leads and delivery managers, and admins.","operationId":"put_setup_v1_batches__batch_id__verification_setup_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Put Setup V1 Batches  Batch Id  Verification Setup Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines":{"get":{"summary":"List Guidelines","description":"The guidelines this person may read, the overview first. With a batch or a project, only those assigned there\n(a batch's own and its project's), which is what the task editor shows beside each step.","operationId":"list_guidelines_v1_guidelines_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Guidelines V1 Guidelines Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Guideline","description":"A new guideline, a draft until it is published.","operationId":"create_guideline_v1_guidelines_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuidelineCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Guideline V1 Guidelines Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines/{slug}":{"get":{"summary":"Read Guideline","description":"A guideline to read: its published version (an admin may ask for an older one), its figures' addresses, the\nother guidelines it may link to, and what each version changed. Opening it is recorded.","operationId":"read_guideline_v1_guidelines__slug__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Guideline V1 Guidelines  Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines/{slug}/download":{"get":{"summary":"Download Guideline","description":"The published version as a Markdown file, for admins only: everyone else reads it in the app. Every download\nis recorded with who and which version.","operationId":"download_guideline_v1_guidelines__slug__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines/{slug}/assets/{name}":{"get":{"summary":"Get Asset","description":"A figure or image of a guideline the person may read, served so that nothing in it can run.","operationId":"get_asset_v1_guidelines__slug__assets__name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines/{slug}/draft":{"get":{"summary":"Get Draft","operationId":"get_draft_v1_guidelines__slug__draft_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Draft V1 Guidelines  Slug  Draft Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Save Draft","description":"Saves the draft as it is typed. When someone else saved it since this edit began, it is refused (409) so\nneither loses their words.","operationId":"save_draft_v1_guidelines__slug__draft_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Save Draft V1 Guidelines  Slug  Draft Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines/{slug}/publish":{"post":{"summary":"Publish","description":"Publish the draft using the choice described in docs/web-app.md#guideline-publishing.","operationId":"publish_v1_guidelines__slug__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Publish V1 Guidelines  Slug  Publish Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines/{slug}/versions":{"get":{"summary":"Versions","operationId":"versions_v1_guidelines__slug__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Versions V1 Guidelines  Slug  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines/{slug}/assets":{"post":{"summary":"Upload Asset","description":"An image for the guideline (PNG, JPEG, GIF, WebP or SVG, at most 2 MB), named as the Markdown will refer to\nit; one of the same name is replaced.","operationId":"upload_asset_v1_guidelines__slug__assets_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_asset_v1_guidelines__slug__assets_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Asset V1 Guidelines  Slug  Assets Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines/{slug}/assignments":{"get":{"summary":"Get Assignments","operationId":"get_assignments_v1_guidelines__slug__assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Assignments V1 Guidelines  Slug  Assignments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Assignments","description":"The projects and batches the guideline is for: their people read it, and the task editor shows it.","operationId":"set_assignments_v1_guidelines__slug__assignments_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Assignments V1 Guidelines  Slug  Assignments Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines/{slug}/reads":{"get":{"summary":"Reads","description":"Who opened and downloaded the guideline, newest first, with how many people and downloads in all.","operationId":"reads_v1_guidelines__slug__reads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reads V1 Guidelines  Slug  Reads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/guidelines/{slug}/archive":{"post":{"summary":"Archive","description":"Takes the guideline away from readers and the list; its versions and record stay.","operationId":"archive_v1_guidelines__slug__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Archive V1 Guidelines  Slug  Archive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/verifications/estimate":{"post":{"summary":"Estimate","description":"Estimate from the prompts a start would send, without reserving spend or dispatching a model call.","operationId":"estimate_v1_task_versions__tv_id__verifications_estimate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Estimate V1 Task Versions  Tv Id  Verifications Estimate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/verifications":{"post":{"summary":"Start","description":"Start the verifications a request asks for, reserving their caps. Several evaluations each on its own\nstart together under one launch id.","operationId":"start_v1_task_versions__tv_id__verifications_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start V1 Task Versions  Tv Id  Verifications Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Verifications","description":"The version's verifications, newest first.","operationId":"list_verifications_v1_task_versions__tv_id__verifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Verifications V1 Task Versions  Tv Id  Verifications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/verifications":{"post":{"summary":"Start Many","description":"Start a Task QC on each task's current version, as Run Agentic QC starts one. A task this person may not see,\nor may not run Agentic QC on, refuses the whole request, as does a used-up budget; an archived task, or one whose\nsame Task QC is still going, is left out and said why, and the rest start.","operationId":"start_many_v1_tasks_verifications_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TasksQcRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Start Many V1 Tasks Verifications Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/verifications/{verification_id}":{"get":{"summary":"Get Verification","description":"One verification with its result and the model's whole reply.","operationId":"get_verification_v1_verifications__verification_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"verification_id","in":"path","required":true,"schema":{"type":"string","title":"Verification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Verification V1 Verifications  Verification Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/verifications/{verification_id}/prompt":{"get":{"summary":"Get Prompt","description":"The messages the verification sent, exactly, for View full prompt: admins only, as it holds the system prompt.\nApart from the page's own read, since it holds the task's files and can be large.","operationId":"get_prompt_v1_verifications__verification_id__prompt_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"verification_id","in":"path","required":true,"schema":{"type":"string","title":"Verification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Prompt V1 Verifications  Verification Id  Prompt Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/search":{"get":{"summary":"Search","description":"What the caller may see whose name matches `q`, at most 6 of each kind and 20 in all, best first.","operationId":"search_v1_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search V1 Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/tokens":{"get":{"summary":"My Tokens","description":"The caller's own tokens, live and revoked, never the token itself.","operationId":"my_tokens_v1_me_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response My Tokens V1 Me Tokens Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Make Token","description":"A new token for the caller, shown once; only its hash is stored. At most ten live at a time.","operationId":"make_token_v1_me_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenName"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Make Token V1 Me Tokens Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/me/tokens/{token_id}/revoke":{"post":{"summary":"Revoke My Token","description":"It stops working at once, with every upload or download link made with it; its row stays as history.","operationId":"revoke_my_token_v1_me_tokens__token_id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke My Token V1 Me Tokens  Token Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/versions":{"get":{"summary":"Get Versions","description":"The current version of each scope asked (0 for one never changed), for a page to ask whether what it shows\nis still current. A project or batch the caller may not see, or another person's scope, is a 404, as the\nthing itself would be. A project-wide view reads its project and each of its batches.","operationId":"get_versions_v1_versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scopes","in":"query","required":true,"schema":{"type":"string","maxLength":4000,"description":"comma separated kind:id, kinds site (no id), project, batch, user (one's own)","title":"Scopes"},"description":"comma separated kind:id, kinds site (no id), project, batch, user (one's own)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Versions V1 Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-table":{"get":{"summary":"Task Table","description":"One page of a project's (or a batch's) task table for the web app's proper table. See the module's doc.","operationId":"task_table_v1_task_table_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},{"name":"shelf","in":"query","required":false,"schema":{"enum":["active","archived","draft"],"type":"string","default":"active","title":"Shelf"}},{"name":"mine","in":"query","required":false,"schema":{"type":"boolean","description":"only the tasks the caller made (the table's Show: My tasks)","default":false,"title":"Mine"},"description":"only the tasks the caller made (the table's Show: My tasks)"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"search: name, category, batch or benchmark","title":"Q"},"description":"search: name, category, batch or benchmark"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"statuses, comma separated","title":"Status"},"description":"statuses, comma separated"},{"name":"batch","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"batch ids, comma separated","title":"Batch"},"description":"batch ids, comma separated"},{"name":"creator","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"creators' emails, comma separated","title":"Creator"},"description":"creators' emails, comma separated"},{"name":"holder","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"who holds the review: emails, 'none', 'me'","title":"Holder"},"description":"who holds the review: emails, 'none', 'me'"},{"name":"headroom","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"models every row's current version fails","title":"Headroom"},"description":"models every row's current version fails"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"e.g. -updated or name; default: newest first on a project, by name on a batch","title":"Sort"},"description":"e.g. -updated or name; default: newest first on a project, by name on a batch"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"dir","in":"query","required":false,"schema":{"enum":["next","prev"],"type":"string","default":"next","title":"Dir"}},{"name":"skip_pages","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip Pages"}},{"name":"last","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Last"}},{"name":"facets","in":"query","required":false,"schema":{"type":"boolean","description":"each filter's choices with their counts","default":true,"title":"Facets"},"description":"each filter's choices with their counts"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Task Table V1 Task Table Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-scores":{"get":{"summary":"Task Scores","description":"The scores by model of the versions of a project's tasks this person sees (archived tasks left out), and how\nmany attempts each model made on them: what To review's Headroom for reads, one request per project of\nits queue, in place of every evaluation run of the project (`/v1/runs?fields=scores`, every page).","operationId":"task_scores_v1_task_scores_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Task Scores V1 Task Scores Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mcp/uploads/{secret}":{"post":{"summary":"Post Upload","description":"An archive posted to an upload link (jobs.stage_upload).","operationId":"post_upload_mcp_uploads__secret__post","parameters":[{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_post_upload_mcp_uploads__secret__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Upload Mcp Uploads  Secret  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mcp/downloads/{secret}":{"get":{"summary":"Get Download","description":"A run's package, from a download link (jobs.download_package).","operationId":"get_download_mcp_downloads__secret__get","parameters":[{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Download Mcp Downloads  Secret  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/files/{path}":{"get":{"summary":"Get Task File","description":"One file of the task as text, for the file viewer. Binary files and files over the limit come back as a\nshort note instead of their bytes; the path must stay inside the task folder. With `download` it is the file's\nown bytes, whole, as an attachment with its name.","operationId":"get_task_file_v1_task_versions__tv_id__files__path__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","description":"For the container health check, the deploy script and a load balancer: the API answers and reaches its\ndatabase. Low disk is reported here but does not make the platform unhealthy; it stops new runs instead.\n`version` and `commit` say which release answers (null when not deployed by scripts/deploy.sh).","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Response Health Health Get"}}}}}}},"/v1/catalog":{"get":{"summary":"Get Catalog","description":"The models, harnesses and sandboxes a run chooses among. With `batch_id`, as the pickers of a run on that\nbatch's tasks read it: when the batch names its harness + model pairs (batch_pairs), `batch_limit` says so, and\nfor a person held to the list each model's `refused` also has the harnesses it is not paired with there, named\nin `outside_batch`. An admin, who is not held to it, gets `batch_limit` with `held` false and nothing refused for\nit.","operationId":"get_catalog_v1_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Catalog V1 Catalog Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me":{"get":{"summary":"Me","description":"Who the token belongs to and what it may do. `role` is the site role: admin, delivery_manager, user, or\nservice for a token. `memberships` are the projects a person is in and as what (tasker, reviewer,\ndelivery_manager), with the batches when narrowed to some; a site delivery manager is in every project.\n`can_manage` is true for admins; `sees_everything` also for the dev and service tokens. `kind` says whether this\nis the dev token, a service token or a signed-in person. `backdrop` is the background the person picked for their\naccount: \"aurora\", or null for the plain one, as it is for every token. `theme` is the appearance they picked:\n\"light\", \"system\", or null for the dark page, as it is for every token. `release` is the platform's release\nnumber and commit, as /health gives them. `updating`, for a person, is set while a deploy holds new work\n(eval_db.site.deploy_hold): `until`, when the hold ends at the latest; new work waits in its queue until then.","operationId":"me_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Me V1 Me Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/me/backdrop":{"put":{"summary":"Set My Backdrop","description":"Keep the background on the signed-in person's account, so it follows them to any browser. Setting the same one\nagain changes nothing. Tokens have no account; their browser keeps the background on its own.","operationId":"set_my_backdrop_v1_me_backdrop_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackdropIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Response Set My Backdrop V1 Me Backdrop Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/me/theme":{"put":{"summary":"Set My Theme","description":"Keep the appearance on the signed-in person's account, so it follows them to any browser. Setting the same one\nagain changes nothing. Tokens have no account; their browser keeps the appearance on its own.","operationId":"set_my_theme_v1_me_theme_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Response Set My Theme V1 Me Theme Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/spend":{"get":{"summary":"Get Spend","description":"The platform's model spend against its cap: for admins and tokens. People see their own budgets in /v1/me.","operationId":"get_spend_v1_spend_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"number"},"type":"object","title":"Response Get Spend V1 Spend Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/overview":{"get":{"summary":"Overview","description":"What the home page shows: what needs review, what is running, spend, and the latest projects and panel runs,\nwithin what the caller may see. The platform's spend is null for anyone but admins and tokens. `needs_review=all`\nlists every task that needs review, not only the first twelve: with no Tasks page, the home page shows them all.","operationId":"overview_v1_overview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"needs_review","in":"query","required":false,"schema":{"type":"string","default":"first","title":"Needs Review"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Overview V1 Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/preview":{"post":{"summary":"Preview Upload","description":"What uploading this archive would do, before anything is stored: each task folder in it with its name, its size\nand what it would become (a new task, a new version, already known, or refused with why), and for a task already\nin another batch, which. A folder taken as a new task \"N-<name>\" since its name is taken has `renamed` (`from`,\nand `why`: `taken`, another person's task, or `kept`, the caller's own with `overwrite` off); `updates` marks a\nfolder naming a task the caller may update with other files (the pop-up's switch shows only when one does).\nInto an existing batch (`batch_id`, as an upload into it is allowed)\nor a project the caller makes batches in (`project_id`, for an upload that makes its batch), or as the next\nversion of one task (`task_id`, as `POST /v1/tasks` takes it). A folder whose name an archived task has is\n`archived`, with that task, the version a restore would make, the new name the other choice would give it and\nwhether the caller may restore it; `archived` choices as the upload takes them show what each would make.\n`submit`, as the upload takes it: a folder that would hand a draft-status task's version to review is asked of\nthe access gates as a new task is. A new batch (`project_id`, with the `batch_name` the upload will give, which\nreuses the project's batch of that name as the upload does) is asked of the gates as the upload asks the batch it\nmakes, so the folders it would refuse are marked refused with the same sentence.","operationId":"preview_upload_v1_tasks_preview_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_preview_upload_v1_tasks_preview_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Preview Upload V1 Tasks Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/tasks":{"post":{"summary":"Upload Task","description":"Upload one task, or an archive of task folders, into a batch of a project. Pass `batch_id` for an existing\nbatch, or the project (`project_id`, or `project_name` for a new one) with `batch_name` (reused when the project\nhas it). A new batch needs `taxonomy_id`, the published taxonomy its tasks are checked with; for an existing batch\nit is ignored. `task_type` is refused: there are no task types (ADR 0004). A new batch needs its\n`exclusivity`: `not_exclusive`, or `exclusive` with `exclusive_client_id` (one of the project's clients) and\n`exclusive_until` (a date, or the word `none`); for an existing batch these are ignored, and a new task takes its\nbatch's choice. A task's name is unique on the platform: a known task gets a new version and stays where it is,\nand a task that belongs to another project is refused. A folder naming a task the caller may not update (another\nperson's, or a draft hidden from them) becomes a new task \"1-<name>\" (or \"2-\", ... the first free name), and\n`overwrite` off does the same for a folder naming the caller's own task with other files (the owner,\n2026-11-28). Each folder named in `exclude` (a folder path as the preview gives it) is left out, so an uploader\ncan drop tasks from an archive before uploading it. Each new version's file inspection starts;\n`validation` also starts its oracle and no-op runs (off: they wait for its first evaluation), and `agentic_qc` a\ntask Agentic QC, admitted as any start is. A new version is not handed to review: its tasker tries it on its task\npage and submits it there (`POST /v1/task-versions/{id}/submit`), as a version built in the task builder is\n(decided 2026-11-27). `submit` hands each new version to review as it arrives, for callers that upload finished\nwork (scripts).\n\nFrom a task's page (`task_id`): the archive holds one task folder, and it becomes that task's next version\nwhatever the folder or its task.toml calls it (the owner, 2026-11-28), for those who may upload a new version of\nit (`Access.works_on`, as an edit); the batch and project are the task's, `overwrite` and `exclude` do not\napply. From a batch or a project, a folder whose name an archived task has is refused unless `archived` chooses:\n`restore` (the task is brought back, as `POST /v1/tasks/{id}/unarchive` would, by those who may, and these files\nare its next version, whatever `overwrite` says) or `new_name` (a new task named \"1-<name>\", or \"2-\", ... the\nfirst free), for every such folder, or `<folder>=restore` / `<folder>=new_name` for one (repeatable).","operationId":"upload_task_v1_tasks_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_task_v1_tasks_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upload Task V1 Tasks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Tasks","description":"The tasks the caller may see, with versions, project, batch and status, newest first; `project_id` or\n`batch_id` narrows, `mine` keeps the caller's own work. Archived tasks are left out unless `archived` asks for\nthem too (include) or alone (only). Drafts (status draft) are left out, the creator's own too (the builder's\nDrafts list has them); `drafts=only` lists them alone, for admins only.","operationId":"list_tasks_v1_tasks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},{"name":"archived","in":"query","required":false,"schema":{"enum":["exclude","include","only"],"type":"string","default":"exclude","title":"Archived"}},{"name":"mine","in":"query","required":false,"schema":{"type":"boolean","description":"only the caller's own work (Access.work_clause): a tasker's own tasks, not every task of their batches","default":false,"title":"Mine"},"description":"only the caller's own work (Access.work_clause): a tasker's own tasks, not every task of their batches"},{"name":"drafts","in":"query","required":false,"schema":{"enum":["exclude","only"],"type":"string","description":"only: the drafts alone (a task table's Showing -> Draft), for admins only","default":"exclude","title":"Drafts"},"description":"only: the drafts alone (a task table's Showing -> Draft), for admins only"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Tasks V1 Tasks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tasks/{task_id}":{"patch":{"summary":"Patch Task","description":"Reviewers set a task's domain; admins and project delivery managers move it between batches.","operationId":"patch_task_v1_tasks__task_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Task V1 Tasks  Task Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/labels":{"post":{"summary":"Get Many Task Labels","description":"The labels of many versions at once (a tasks table's categories), as GET …/{tv_id}/labels gives each: one\nrequest for a table instead of one per task. `labels` by version id; a version this person may not read, or that\nis not there, is left out.","operationId":"get_many_task_labels_v1_task_versions_labels_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Many Task Labels V1 Task Versions Labels Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/task-versions/{tv_id}/labels":{"get":{"summary":"Get Task Labels","operationId":"get_task_labels_v1_task_versions__tv_id__labels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Task Labels V1 Task Versions  Tv Id  Labels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}":{"get":{"summary":"Get Task Version","operationId":"get_task_version_v1_task_versions__tv_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Task Version V1 Task Versions  Tv Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/test-results":{"get":{"summary":"Get Test Results","description":"Every test against every attempt on this version that has per-test results: `tests` are the rows (with how\nmany model runs passed each), `runs` the columns (one status per test), `without` the scored attempts that have\nnone, by why.","operationId":"get_test_results_v1_task_versions__tv_id__test_results_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Test Results V1 Task Versions  Tv Id  Test Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/attempt-stats":{"get":{"summary":"Get Attempt Stats","description":"How much each finished model attempt on this version did: its steps and tool calls, counted from the\ntrajectory its agent kept, by attempt id. Read once per trajectory; the task page asks when it shows evaluations.","operationId":"get_attempt_stats_v1_task_versions__tv_id__attempt_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Attempt Stats V1 Task Versions  Tv Id  Attempt Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/test-suite":{"get":{"summary":"Get Test Suite","description":"The task's tests as written, one by one, read from its files without running them. No `files` means the\ntask has no test file the platform can read test by test.","operationId":"get_test_suite_v1_task_versions__tv_id__test_suite_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Test Suite V1 Task Versions  Tv Id  Test Suite Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/decisions":{"post":{"summary":"Decide","description":"Record a reviewer's verdict under the acceptance rules in docs/adr/0001-panel-gates.md. An accept starts, once\nit is answered, what the project's Leaderboard lacks, where the project has switched that on\n(leaderboard_auto).","operationId":"decide_v1_task_versions__tv_id__decisions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Decide V1 Task Versions  Tv Id  Decisions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/decisions/{decision_id}":{"patch":{"summary":"Edit Decision","description":"The reviewer changes the words of their own decision's reason (2026-12-01). Only who decided: an admin can\ndecide again but not put words in someone's mouth, as with notes. The verdict, its overrides and when it was made\nstay; a different verdict is a new decision (POST). Needs work and Rejected still need a reason. The decision gets\n`edited_at`; the activity log keeps what the reason said before (task_version.decision_edited, a line diff back to\nthe earlier words). Same words: no change, nothing logged.","operationId":"edit_decision_v1_task_versions__tv_id__decisions__decision_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}},{"name":"decision_id","in":"path","required":true,"schema":{"type":"string","title":"Decision Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Decision V1 Task Versions  Tv Id  Decisions  Decision Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/task-versions/{tv_id}/inspect":{"post":{"summary":"Reinspect","operationId":"reinspect_v1_task_versions__tv_id__inspect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tv_id","in":"path","required":true,"schema":{"type":"string","title":"Tv Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Reinspect V1 Task Versions  Tv Id  Inspect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/estimates":{"post":{"summary":"Estimate","operationId":"estimate_v1_estimates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Estimate V1 Estimates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/runs":{"post":{"summary":"Create Run","operationId":"create_run_v1_runs_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Run V1 Runs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Runs","operationId":"list_runs_v1_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task_version_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Version Id"}},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"one state, or several comma separated: queued,running","title":"State"},"description":"one state, or several comma separated: queued,running"},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"one kind of run: eval, validation, cheat or sandbox","title":"Kind"},"description":"one kind of run: eval, validation, cheat or sandbox"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"episodes","in":"query","required":false,"schema":{"type":"boolean","description":"include every run's episodes, for one row per episode","default":false,"title":"Episodes"},"description":"include every run's episodes, for one row per episode"},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"const":"scores","type":"string"},{"type":"null"}],"description":"scores: only each run's id, kind, version, state, summary groups and its episodes' models","title":"Fields"},"description":"scores: only each run's id, kind, version, state, summary groups and its episodes' models"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Runs V1 Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}":{"get":{"summary":"Get Run","operationId":"get_run_v1_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Run V1 Runs  Run Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/tests":{"get":{"summary":"Get Run Tests","description":"Each attempt's results per test, by attempt id (null where it has none), for the run page's attempt cards.\nApart from the run itself, which the page asks for every few seconds while it is going: this is read when an\nattempt ends.","operationId":"get_run_tests_v1_runs__run_id__tests_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Run Tests V1 Runs  Run Id  Tests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/cancel":{"post":{"summary":"Cancel Run","operationId":"cancel_run_v1_runs__run_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Cancel Run V1 Runs  Run Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/cancel":{"post":{"summary":"Cancel Runs","description":"Several runs at once, as Cancel on the Runs page's ticked runs. A run the caller may not see refuses the whole\nrequest as not found, one they may not cancel as forbidden, naming its task; a run that has already ended is\nleft out and listed in `ended`.","operationId":"cancel_runs_v1_runs_cancel_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunsCancel"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Cancel Runs V1 Runs Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/panel-run-estimates":{"post":{"summary":"Panel Run Estimate","operationId":"panel_run_estimate_v1_panel_run_estimates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PanelRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Panel Run Estimate V1 Panel Run Estimates Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/panel-runs":{"post":{"summary":"Create Panel Run","operationId":"create_panel_run_v1_panel_runs_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PanelRunCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Panel Run V1 Panel Runs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Panel Runs","description":"Panel runs that touch a task the caller may see in a project where they run panels, counted over those tasks\nonly. A reviewer or a tasker is refused (Access.runs_panels_in).","operationId":"list_panel_runs_v1_panel_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Panel Runs V1 Panel Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/panel-runs/{panel_run_id}":{"get":{"summary":"Get Panel Run","operationId":"get_panel_run_v1_panel_runs__panel_run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"panel_run_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Panel Run V1 Panel Runs  Panel Run Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/panel-runs/{panel_run_id}/cancel":{"post":{"summary":"Cancel Panel Run","operationId":"cancel_panel_run_v1_panel_runs__panel_run_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"panel_run_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Run Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Panel Run V1 Panel Runs  Panel Run Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/panel-runs/{panel_run_id}/rerun-failures/estimate":{"post":{"summary":"Estimate Panel Recovery","operationId":"estimate_panel_recovery_v1_panel_runs__panel_run_id__rerun_failures_estimate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"panel_run_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Estimate Panel Recovery V1 Panel Runs  Panel Run Id  Rerun Failures Estimate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/panel-runs/{panel_run_id}/rerun-failures":{"post":{"summary":"Rerun Failures","operationId":"rerun_failures_v1_panel_runs__panel_run_id__rerun_failures_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"panel_run_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendConfirmation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rerun Failures V1 Panel Runs  Panel Run Id  Rerun Failures Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/rerun-not-counted/estimate":{"post":{"summary":"Estimate Run Recovery","operationId":"estimate_run_recovery_v1_runs__run_id__rerun_not_counted_estimate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Estimate Run Recovery V1 Runs  Run Id  Rerun Not Counted Estimate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/rerun-not-counted":{"post":{"summary":"Rerun Not Counted","operationId":"rerun_not_counted_v1_runs__run_id__rerun_not_counted_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendConfirmation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rerun Not Counted V1 Runs  Run Id  Rerun Not Counted Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/rerun/estimate":{"post":{"summary":"Estimate Runs Rerun","description":"What running the chosen runs again would start and cost, before anything starts: `rerun`, the runs that would\nstart again (send exactly these to `POST /v1/runs/rerun`), `attempts` in all, the expected model cost and the\nbudgets it is charged to, `left_out` with why for each, and `rerun_since`, how many of `rerun` already have a\nnewer run of the same model on the same task, going or with a result.","operationId":"estimate_runs_rerun_v1_runs_rerun_estimate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunsRerun"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Estimate Runs Rerun V1 Runs Rerun Estimate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/runs/rerun":{"post":{"summary":"Rerun Runs","operationId":"rerun_runs_v1_runs_rerun_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunsRerunStart"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Rerun Runs V1 Runs Rerun Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/panel-runs/{panel_run_id}/episodes.csv":{"get":{"summary":"Panel Run Csv","description":"Every episode of the panel run as CSV: one row per attempt, with its score, cost, tokens and timings.","operationId":"panel_run_csv_v1_panel_runs__panel_run_id__episodes_csv_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"panel_run_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/panel-runs/{panel_run_id}/package.zip":{"get":{"summary":"Panel Run Package","description":"The package of a panel run: tasks, each run as a Harbor job folder, summaries and a README (delivery.py).","operationId":"panel_run_package_v1_panel_runs__panel_run_id__package_zip_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"panel_run_id","in":"path","required":true,"schema":{"type":"string","title":"Panel Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/runs/{run_id}/package.zip":{"get":{"summary":"Run Package","operationId":"run_package_v1_runs__run_id__package_zip_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/run-downloads/evaluations.zip":{"get":{"summary":"Runs Package","description":"The chosen runs as one folder, the page's only download (round 24): a panel run's package (their tasks, each\nrun as a Harbor job folder, summaries and a README) and, in `trajectories/`, every kept trajectory, one file per\nattempt (task/harness-model-run/attempt-n/trajectory.json), so a run from before job folders brings its own.","operationId":"runs_package_v1_run_downloads_evaluations_zip_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"the runs, comma separated","title":"Ids"},"description":"the runs, comma separated"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/deliveries/{delivery_id}/package.zip":{"get":{"summary":"Delivery Package","description":"The delivery's task versions with every finished run on them, in the same layout as a panel run's package.","operationId":"delivery_package_v1_deliveries__delivery_id__package_zip_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/episodes/{episode_id}":{"get":{"summary":"Get Episode","operationId":"get_episode_v1_episodes__episode_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","title":"Episode Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Episode V1 Episodes  Episode Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/episodes/{episode_id}/relabel":{"put":{"summary":"Relabel Episode","description":"An admin relabels an ended model attempt; DELETE restores its verdict.\n\nChanges are logged and totals recomputed. Another relabel replaces the outcome or reason.","operationId":"relabel_episode_v1_episodes__episode_id__relabel_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","title":"Episode Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Relabel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Relabel Episode V1 Episodes  Episode Id  Relabel Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Take Back Relabel","description":"Take an admin's relabel back: the attempt reads as its tests said again.","operationId":"take_back_relabel_v1_episodes__episode_id__relabel_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","title":"Episode Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Take Back Relabel V1 Episodes  Episode Id  Relabel Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/episodes/{episode_id}/artifacts/{name}":{"get":{"summary":"Get Artifact","operationId":"get_artifact_v1_episodes__episode_id__artifacts__name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"episode_id","in":"path","required":true,"schema":{"type":"string","title":"Episode Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tokens":{"get":{"summary":"List Tokens","description":"Every token ever minted, live and revoked, never the token itself.","operationId":"list_tokens_v1_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Tokens V1 Tokens Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Token","description":"A token for a service such as the annotation platform, or for a person until sign-in exists. It is shown once;\nonly its hash is stored.","operationId":"create_token_v1_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Create Token V1 Tokens Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/tokens/{token_id}/revoke":{"post":{"summary":"Revoke Token","description":"A revoked token stops working at once; its row stays as history.","operationId":"revoke_token_v1_tokens__token_id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Token V1 Tokens  Token Id  Revoke Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/limits":{"get":{"summary":"Admin Limits","description":"The platform's limits as configured, for the admin page. Values only, never secrets.","operationId":"admin_limits_v1_admin_limits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Admin Limits V1 Admin Limits Get"}}}}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"ActionSettings":{"properties":{"tries_per_minute":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Tries Per Minute"},"tries_per_day":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Tries Per Day"},"model_calls_on":{"type":"boolean","title":"Model Calls On"},"attempts_per_person":{"type":"integer","minimum":1.0,"title":"Attempts Per Person","default":5},"attempts_per_admin":{"type":"integer","minimum":1.0,"title":"Attempts Per Admin","default":12},"person_overrides":{"additionalProperties":{"$ref":"#/components/schemas/PersonLimits"},"type":"object","maxProperties":10000,"title":"Person Overrides"}},"type":"object","required":["tries_per_minute","tries_per_day","model_calls_on"],"title":"ActionSettings"},"AllowedPairs":{"properties":{"pairs":{"anyOf":[{"items":{"$ref":"#/components/schemas/Pair"},"type":"array","maxItems":500},{"type":"null"}],"title":"Pairs","description":"the harness + model pairs that may run on the batch's tasks; null: no list, so any pair the platform runs"}},"type":"object","required":["pairs"],"title":"AllowedPairs"},"Anchor":{"properties":{"where":{"type":"string","enum":["instructions","file"],"title":"Where"},"path":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Path","description":"the file, for where=file"},"quote":{"type":"string","maxLength":2000,"minLength":1,"title":"Quote"}},"type":"object","required":["where","quote"],"title":"Anchor","description":"The text a note is about: a stretch of the instructions, or of one of the task's files."},"AssignIn":{"properties":{"project_ids":{"items":{"type":"string"},"type":"array","title":"Project Ids"},"batch_ids":{"items":{"type":"string"},"type":"array","title":"Batch Ids"}},"type":"object","title":"AssignIn"},"AutoChoice":{"properties":{"on":{"type":"boolean","title":"On","description":"top the Leaderboard's rows up to their runs per task on the approved tasks, on its own"}},"type":"object","required":["on"],"title":"AutoChoice"},"BackdropIn":{"properties":{"backdrop":{"anyOf":[{"type":"string","const":"aurora"},{"type":"null"}],"title":"Backdrop"}},"type":"object","required":["backdrop"],"title":"BackdropIn","description":"A background for the account: the aurora the web app draws (apps/web/src/backdrop), or null for the plain one."},"BatchBody":{"properties":{"exclusivity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusivity","description":"not_exclusive, or exclusive (then with exclusive_client_id and exclusive_until)"},"exclusive_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusive Client Id","description":"the client the tasks are exclusive to: one of the project's clients"},"exclusive_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Exclusive Until","description":"the last day of the exclusivity, or null for no end date; with exclusive it is always sent, as a date or as null"},"project_id":{"type":"string","title":"Project Id"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":4000,"title":"Description","default":""},"status":{"type":"string","title":"Status","default":"active"},"taxonomy_id":{"type":"string","minLength":1,"title":"Taxonomy Id","description":"the published taxonomy its tasks are checked with"}},"type":"object","required":["project_id","name","taxonomy_id"],"title":"BatchBody","description":"A batch is made with its exclusivity chosen: `exclusivity`, and with exclusive the client and the end date\n(ExclusivityChoice). There is no default; a batch without the choice is refused."},"BatchPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id","description":"move the batch, with its tasks, to another project"}},"type":"object","title":"BatchPatch"},"BatchPublic":{"properties":{"public":{"type":"boolean","title":"Public"}},"type":"object","required":["public"],"title":"BatchPublic"},"BatchRuleIn":{"properties":{"mode":{"type":"string","enum":["always","never","when"],"title":"Mode"},"gate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate Id"},"batch_id":{"type":"string","title":"Batch Id"}},"type":"object","required":["mode","batch_id"],"title":"BatchRuleIn"},"BatchRules":{"properties":{"taxonomy_id":{"type":"string","minLength":1,"title":"Taxonomy Id","description":"a published taxonomy"},"recheck":{"type":"boolean","title":"Recheck","description":"check the batch's open tasks again when the rules change","default":true}},"type":"object","required":["taxonomy_id"],"title":"BatchRules"},"BatchWithCopies":{"properties":{"exclusivity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusivity","description":"not_exclusive, or exclusive (then with exclusive_client_id and exclusive_until)"},"exclusive_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusive Client Id","description":"the client the tasks are exclusive to: one of the project's clients"},"exclusive_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Exclusive Until","description":"the last day of the exclusivity, or null for no end date; with exclusive it is always sent, as a date or as null"},"project_id":{"type":"string","title":"Project Id"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":4000,"title":"Description","default":""},"status":{"type":"string","title":"Status","default":"active"},"taxonomy_id":{"type":"string","minLength":1,"title":"Taxonomy Id","description":"the published taxonomy its tasks are checked with"},"task_ids":{"items":{"type":"string"},"type":"array","maxItems":2000,"minItems":1,"title":"Task Ids","description":"tasks to copy into it: of its project, or of another project where the caller moves tasks too"},"name_ending":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,30}$","title":"Name Ending","description":"what each copy's name ends with: \"copy\" names \"<name>-copy\"","default":"copy"}},"type":"object","required":["project_id","name","taxonomy_id","task_ids"],"title":"BatchWithCopies"},"BoardChoice":{"properties":{"lines":{"anyOf":[{"items":{"$ref":"#/components/schemas/BoardLineBody"},"type":"array","maxItems":30},{"type":"null"}],"title":"Lines","description":"the rows the Leaderboard shows, each a model in a harness at a level; null: the platform's top models"},"runs":{"anyOf":[{"type":"integer","maximum":20.0,"minimum":1.0},{"type":"null"}],"title":"Runs","description":"judged attempts each row should have on each task; null with lines null"}},"type":"object","required":["lines","runs"],"title":"BoardChoice","description":"A project's own Leaderboard: its lines and how many judged attempts each should have on each task, said\ntogether; both null go back to the platform's top models. Neither has a default: both are said."},"BoardLineBody":{"properties":{"model":{"type":"string","maxLength":200,"minLength":1,"title":"Model","description":"a catalog model id"},"harness":{"type":"string","maxLength":50,"minLength":1,"title":"Harness","description":"the harness it runs in: a model agent's id"},"effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effort","description":"a reasoning level the model takes in that harness (the catalog's efforts_by_harness); null: the model's own level"}},"type":"object","required":["model","harness","effort"],"title":"BoardLineBody"},"Body_add_file_v1_drafts__draft_id__files_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_add_file_v1_drafts__draft_id__files_post"},"Body_import_into_draft_v1_drafts__draft_id__import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_into_draft_v1_drafts__draft_id__import_post"},"Body_post_upload_mcp_uploads__secret__post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_post_upload_mcp_uploads__secret__post"},"Body_preview_upload_v1_tasks_preview_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name"},"overwrite":{"type":"boolean","title":"Overwrite","default":true},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"archived":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Archived"},"submit":{"type":"boolean","title":"Submit","default":false}},"type":"object","required":["file"],"title":"Body_preview_upload_v1_tasks_preview_post"},"Body_upload_asset_v1_guidelines__slug__assets_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_asset_v1_guidelines__slug__assets_post"},"Body_upload_logo_v1_projects__project_id__logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_logo_v1_projects__project_id__logo_post"},"Body_upload_task_v1_tasks_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name"},"task_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type"},"taxonomy_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Id"},"exclusivity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusivity"},"exclusive_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusive Client Id"},"exclusive_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusive Until"},"overwrite":{"type":"boolean","title":"Overwrite","default":true},"validation":{"type":"boolean","title":"Validation","default":true},"agentic_qc":{"type":"boolean","title":"Agentic Qc","default":false},"submit":{"type":"boolean","title":"Submit","default":false},"exclude":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"archived":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Archived"}},"type":"object","required":["file"],"title":"Body_upload_task_v1_tasks_post"},"BudgetBody":{"properties":{"budget_usd":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Budget Usd","description":"null removes the ceiling"}},"type":"object","title":"BudgetBody"},"BuildBody":{"properties":{"create":{"type":"boolean","title":"Create","description":"true for the builder's Create task (or Save once created): the draft's task then counts as created (task_created); a build for Check the files leaves it false","default":false}},"type":"object","title":"BuildBody"},"ChatTurn":{"properties":{"role":{"type":"string","pattern":"^(user|assistant)$","title":"Role"},"content":{"type":"string","maxLength":6210240,"title":"Content"}},"type":"object","required":["role","content"],"title":"ChatTurn"},"CheckIn":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"kept from the template being edited; a new check has none"},"title":{"type":"string","title":"Title"},"passes":{"type":"string","title":"Passes"}},"type":"object","required":["title","passes"],"title":"CheckIn"},"CheckRequest":{"properties":{"models":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Models","description":"catalog ids; empty checks every model in the catalog"}},"type":"object","title":"CheckRequest"},"Claims":{"properties":{"task_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Task Ids"}},"type":"object","required":["task_ids"],"title":"Claims"},"ClientBody":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"notes":{"type":"string","maxLength":8000,"title":"Notes","default":""}},"type":"object","required":["name"],"title":"ClientBody"},"ClientPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"notes":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Notes"}},"type":"object","title":"ClientPatch"},"CopyIds":{"properties":{"task_ids":{"items":{"type":"string"},"type":"array","maxItems":2000,"minItems":1,"title":"Task Ids"},"name_ending":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,30}$","title":"Name Ending","description":"what each copy's name ends with after its original's: \"copy\" names \"<name>-copy\", \"sample\" names \"<name>-sample\"","default":"copy"}},"type":"object","required":["task_ids"],"title":"CopyIds"},"DecisionCreate":{"properties":{"verdict":{"type":"string","title":"Verdict","description":"accepted, needs_work or rejected"},"reason":{"type":"string","maxLength":4000,"title":"Reason","default":""},"overrides":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Overrides","description":"[{item: structure, why: ...}] for an accept despite a structure blocker"}},"type":"object","required":["verdict"],"title":"DecisionCreate"},"DecisionEdit":{"properties":{"reason":{"type":"string","maxLength":4000,"title":"Reason"}},"type":"object","required":["reason"],"title":"DecisionEdit"},"DeliveryBody":{"properties":{"project_id":{"type":"string","title":"Project Id"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"the client it goes to, one of the project's clients; always chosen: a delivery without it is refused"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"note":{"type":"string","maxLength":8000,"title":"Note","default":""},"task_version_ids":{"items":{"type":"string"},"type":"array","maxItems":5000,"title":"Task Version Ids","description":"exact versions; else the approved versions of the tasks below"},"task_ids":{"items":{"type":"string"},"type":"array","maxItems":5000,"title":"Task Ids"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id","description":"all approved tasks of this batch"},"batch_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Batch Ids","description":"all approved tasks of these"},"dry_run":{"type":"boolean","title":"Dry Run","description":"say what the delivery would take and leave out, and make nothing: the Add to delivery pop-up","default":false}},"type":"object","required":["project_id","name"],"title":"DeliveryBody"},"DeliveryPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"note":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Note"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"the client of a delivery that has not gone out yet"}},"type":"object","title":"DeliveryPatch"},"DeliveryTasksBody":{"properties":{"task_ids":{"items":{"type":"string"},"type":"array","maxItems":5000,"title":"Task Ids"},"batch_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Batch Ids"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","title":"DeliveryTasksBody","description":"Tasks to add to a delivery that has not gone out: the approved current version of each, as a new delivery\ntakes them."},"DraftCreate":{"properties":{"project_id":{"type":"string","title":"Project Id"},"batch_id":{"type":"string","title":"Batch Id"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"}},"type":"object","required":["project_id","batch_id","title"],"title":"DraftCreate"},"DraftIn":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"summary":{"type":"string","maxLength":600,"title":"Summary","default":""},"markdown":{"type":"string","maxLength":400000,"title":"Markdown"},"saved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Saved At","description":"the draft this edit started from; a newer one is kept"}},"type":"object","required":["title","markdown"],"title":"DraftIn"},"DraftPatch":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"prompt":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Prompt"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"solution_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Kind"},"solution":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Solution"},"requirements":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Requirements"},"agent_timeout_sec":{"anyOf":[{"type":"number","maximum":28800.0,"minimum":60.0},{"type":"null"}],"title":"Agent Timeout Sec"},"files":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Files","description":"replace the list, for removals"}},"type":"object","title":"DraftPatch"},"EditBody":{"properties":{"checksum":{"type":"string","minLength":1,"title":"Checksum"},"changes":{"items":{"$ref":"#/components/schemas/FileChange"},"type":"array","maxItems":50,"minItems":1,"title":"Changes"},"note":{"type":"string","maxLength":4000,"title":"Note","description":"optional reason, kept on the saved version beside the diff","default":""}},"type":"object","required":["checksum","changes"],"title":"EditBody"},"ExclusivityChange":{"properties":{"exclusivity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusivity","description":"not_exclusive, or exclusive (then with exclusive_client_id and exclusive_until)"},"exclusive_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusive Client Id","description":"the client the tasks are exclusive to: one of the project's clients"},"exclusive_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Exclusive Until","description":"the last day of the exclusivity, or null for no end date; with exclusive it is always sent, as a date or as null"},"reason":{"type":"string","maxLength":2000,"title":"Reason","description":"why; needed, from an admin, once a task has gone out under its exclusivity","default":""}},"type":"object","title":"ExclusivityChange"},"FileChange":{"properties":{"path":{"type":"string","maxLength":500,"minLength":1,"title":"Path","description":"relative to the task folder"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","description":"the file's new text; a new path makes a new file"},"delete":{"type":"boolean","title":"Delete","default":false}},"type":"object","required":["path"],"title":"FileChange"},"FillAsk":{"properties":{"tasks":{"type":"string","enum":["approved","review","all"],"title":"Tasks","description":"the tasks it is over, as the tab's choice: approved (delivered too), review or all; said, never assumed"}},"type":"object","required":["tasks"],"title":"FillAsk"},"FillStart":{"properties":{"tasks":{"type":"string","enum":["approved","review","all"],"title":"Tasks","description":"the tasks it is over, as the tab's choice: approved (delivered too), review or all; said, never assumed"},"attempts":{"type":"integer","minimum":1.0,"title":"Attempts","description":"the attempts the estimate showed, confirmed; refused when the board has changed since"},"budget_usd":{"type":"number","minimum":0.0,"title":"Budget Usd","description":"the estimate's expected cost (typical_usd), confirmed"},"past_budget":{"type":"boolean","title":"Past Budget","description":"confirms a start past what a budget has left","default":false}},"type":"object","required":["tasks","attempts","budget_usd"],"title":"FillStart"},"FixBody":{"properties":{"fixes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":20,"minItems":1,"title":"Fixes","description":"findings' `autofix` values"}},"type":"object","required":["fixes"],"title":"FixBody"},"FormatBody":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"converter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Converter"},"converter_settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Converter Settings"},"taxonomy_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Id"},"panel":{"anyOf":[{"$ref":"#/components/schemas/Panel"},{"type":"null"}],"description":"the model panel; null is the choice 'no panel' and must be sent as such"},"handover":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handover"},"handover_notes":{"type":"string","maxLength":4000,"title":"Handover Notes","default":""},"file_naming":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"File Naming"}},"type":"object","required":["name"],"title":"FormatBody","description":"Every part but the notes is required. They are declared optional so that the refusal can say why."},"FormatPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"converter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Converter"},"converter_settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Converter Settings"},"taxonomy_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Id"},"panel":{"anyOf":[{"$ref":"#/components/schemas/Panel"},{"type":"null"}]},"handover":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handover"},"handover_notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Handover Notes"},"file_naming":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"File Naming"}},"type":"object","title":"FormatPatch"},"GateIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"combine":{"type":"string","enum":["all","any"],"title":"Combine","default":"all"},"rules":{"items":{"$ref":"#/components/schemas/RuleIn"},"type":"array","maxItems":20,"minItems":1,"title":"Rules"}},"type":"object","required":["name","rules"],"title":"GateIn"},"GoogleSignIn":{"properties":{"credential":{"type":"string","title":"Credential"}},"type":"object","required":["credential"],"title":"GoogleSignIn"},"GuidelineCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"summary":{"type":"string","maxLength":600,"title":"Summary","default":""},"slug":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Slug"}},"type":"object","required":["title"],"title":"GuidelineCreate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LabelsRequest":{"properties":{"ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Ids","description":"task version ids"}},"type":"object","required":["ids"],"title":"LabelsRequest"},"MakeTasksIn":{"properties":{"role":{"type":"string","enum":["tasker","reviewer","team_lead"],"title":"Role","default":"tasker"},"every":{"$ref":"#/components/schemas/RuleSettingIn"},"batches":{"items":{"$ref":"#/components/schemas/BatchRuleIn"},"type":"array","maxItems":500,"title":"Batches"}},"type":"object","required":["every"],"title":"MakeTasksIn","description":"Who may make tasks where, as Access's sentences say it: the rule for every batch (future ones too), and the\nbatches with a rule of their own, which beats it there. Every batch not listed goes by the every-batch rule."},"MemberBody":{"properties":{"email":{"type":"string","maxLength":200,"minLength":3,"title":"Email"},"roles":{"items":{"type":"string"},"type":"array","maxItems":4,"minItems":1,"title":"Roles"},"batch_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Batch Ids","description":"only these batches of the project (with all_batches false)"},"all_batches":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Batches","description":"every batch of the project, the ones made later too; leave it out to read an empty batch_ids as every batch, as before"},"name":{"type":"string","maxLength":200,"title":"Name","description":"shown until the person signs in","default":""},"budget_usd":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Budget Usd"}},"type":"object","required":["email","roles"],"title":"MemberBody"},"MembersBody":{"properties":{"emails":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Emails"},"roles":{"items":{"type":"string"},"type":"array","maxItems":4,"minItems":1,"title":"Roles"},"batch_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Batch Ids","description":"only these batches of the project (with all_batches false)"},"all_batches":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Batches","description":"every batch of the project, the ones made later too; leave it out to read an empty batch_ids as every batch"}},"type":"object","required":["emails","roles"],"title":"MembersBody"},"MembersChange":{"properties":{"user_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"User Ids","description":"the members to change, by user id"},"budget_usd":{"anyOf":[{"type":"number","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Budget Usd","description":"each one's spend ceiling here; left out (or null), budgets stay as they are"},"remove_budget":{"type":"boolean","title":"Remove Budget","description":"take each one's budget away (no limit); said on its own, never by an empty budget_usd","default":false},"roles":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":4,"minItems":1},{"type":"null"}],"title":"Roles","description":"each one's role here, with the roles it brings; left out, unchanged"},"batch_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500},{"type":"null"}],"title":"Batch Ids","description":"with roles: these batches only (all_batches false); left out, each keeps their batches; never empty without all_batches"},"all_batches":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Batches","description":"with roles: every batch of the project, the ones made later too; only when sent as true, never read from an empty batch_ids"}},"type":"object","required":["user_ids"],"title":"MembersChange"},"MentionMark":{"properties":{"ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Ids","description":"mentions by id: notes, verdicts, or spend-limit alerts"},"read":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read","description":"true: read; false: unread again"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived","description":"true: archived, out of All and Unread; false: back"}},"type":"object","required":["ids"],"title":"MentionMark"},"MoveBody":{"properties":{"task_ids":{"items":{"type":"string"},"type":"array","maxItems":2000,"title":"Task Ids"},"batch_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Batch Ids","description":"every active task of these batches; their archived tasks stay"},"dry_run":{"type":"boolean","title":"Dry Run","description":"say what the move would do and change nothing","default":false},"access":{"additionalProperties":{"type":"string","enum":["add_to_batch","no_access"]},"type":"object","maxProperties":500,"title":"Access","description":"for each person the dry run lists in losing_access, by user id: add_to_batch puts them on the batch, so they keep the tasks they work on; no_access lets them go, and a review they hold on these tasks goes back to the pool. Each is chosen: a move missing one is refused"}},"type":"object","title":"MoveBody","description":"What to move into a batch: tasks by id, and whole batches (their active tasks; archived ones stay)."},"NewUser":{"properties":{"email":{"type":"string","maxLength":200,"minLength":3,"title":"Email"},"name":{"type":"string","maxLength":200,"title":"Name","description":"shown until the person signs in","default":""}},"type":"object","required":["email"],"title":"NewUser"},"NoteCreate":{"properties":{"body":{"type":"string","maxLength":20000,"minLength":1,"title":"Body"},"anchor":{"anyOf":[{"$ref":"#/components/schemas/Anchor"},{"type":"null"}],"description":"the selected text the note is about; reviewers only"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id","description":"the note this one answers, on the same task version"},"mentions":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Mentions","description":"user ids named in the note"}},"type":"object","required":["body"],"title":"NoteCreate"},"NoteEdit":{"properties":{"body":{"type":"string","maxLength":20000,"minLength":1,"title":"Body"},"mentions":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50},{"type":"null"}],"title":"Mentions","description":"user ids named in the new text; null keeps who it named"}},"type":"object","required":["body"],"title":"NoteEdit"},"Outcome":{"type":"string","enum":["passed","failed","provider_error","infrastructure_error","budget_stopped","cancelled"],"title":"Outcome","description":"How one attempt ended, in one plain word (round 48). Only a pass or a fail measured the model; the others are\nlisted next to every figure, never hidden, and never counted in it."},"Override":{"properties":{"item":{"type":"string","title":"Item","description":"checks, review or validation: an item readiness says admins_may_override"},"why":{"type":"string","maxLength":2000,"title":"Why","default":""}},"type":"object","required":["item"],"title":"Override"},"Pair":{"properties":{"harness":{"type":"string","maxLength":50,"minLength":1,"title":"Harness","description":"one of /v1/catalog's model_agents"},"model":{"type":"string","maxLength":200,"minLength":1,"title":"Model","description":"a catalog id"}},"type":"object","required":["harness","model"],"title":"Pair"},"PairOff":{"properties":{"harness":{"type":"string","title":"Harness"},"model":{"type":"string","title":"Model"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"type":"object","required":["harness","model","reason"],"title":"PairOff"},"Panel":{"properties":{"agent":{"type":"string","maxLength":50,"minLength":1,"title":"Agent","description":"the harness the models run in"},"models":{"items":{"$ref":"#/components/schemas/PanelModel"},"type":"array","maxItems":20,"minItems":1,"title":"Models"}},"type":"object","required":["agent","models"],"title":"Panel"},"PanelModel":{"properties":{"model":{"type":"string","maxLength":100,"minLength":1,"title":"Model"},"rollouts":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Rollouts","description":"attempts by this model on each task"}},"type":"object","required":["model","rollouts"],"title":"PanelModel"},"PanelRunCreate":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name","default":""},"task_version_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Task Version Ids"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id","description":"the batch this panel run was started from, for the record"},"kind":{"$ref":"#/components/schemas/RunKind"},"sandbox":{"type":"string","title":"Sandbox","default":"modal"},"agent":{"type":"string","title":"Agent","default":"terminus-2"},"models":{"items":{"type":"string"},"type":"array","title":"Models"},"attempts":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Attempts","default":1},"efforts":{"additionalProperties":{"type":"string"},"type":"object","title":"Efforts","description":"as RunRequest's: model id -> reasoning level"},"overrides":{"items":{"$ref":"#/components/schemas/Override"},"type":"array","title":"Overrides","description":"model evaluations require valid task structure, finished and passing checks, no Needs work or Rejected verdict and passing validation; an admin may start past failed, unfinished or running checks, such a verdict or a failed validation with a reason each, recorded on the run; wrong files and missing, running or incomplete validation cannot be overridden; in a panel, each item named with a reason keeps in the tasks it alone held back, and the estimate counts them"},"budget_usd":{"type":"number","title":"Budget Usd","description":"the estimate's expected cost (typical_usd), confirmed"},"past_budget":{"type":"boolean","title":"Past Budget","description":"as RunCreate's: confirms a start past what a budget has left","default":false}},"type":"object","required":["task_version_ids","kind","budget_usd"],"title":"PanelRunCreate"},"PanelRunRequest":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name","default":""},"task_version_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Task Version Ids"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id","description":"the batch this panel run was started from, for the record"},"kind":{"$ref":"#/components/schemas/RunKind"},"sandbox":{"type":"string","title":"Sandbox","default":"modal"},"agent":{"type":"string","title":"Agent","default":"terminus-2"},"models":{"items":{"type":"string"},"type":"array","title":"Models"},"attempts":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Attempts","default":1},"efforts":{"additionalProperties":{"type":"string"},"type":"object","title":"Efforts","description":"as RunRequest's: model id -> reasoning level"},"overrides":{"items":{"$ref":"#/components/schemas/Override"},"type":"array","title":"Overrides","description":"model evaluations require valid task structure, finished and passing checks, no Needs work or Rejected verdict and passing validation; an admin may start past failed, unfinished or running checks, such a verdict or a failed validation with a reason each, recorded on the run; wrong files and missing, running or incomplete validation cannot be overridden; in a panel, each item named with a reason keeps in the tasks it alone held back, and the estimate counts them"}},"type":"object","required":["task_version_ids","kind"],"title":"PanelRunRequest","description":"The same run on many task versions."},"PersonLimits":{"properties":{"tries_per_minute":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Tries Per Minute"},"tries_per_day":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Tries Per Day"}},"type":"object","required":["tries_per_minute","tries_per_day"],"title":"PersonLimits"},"PreviewIn":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"combine":{"type":"string","enum":["all","any"],"title":"Combine","default":"all"},"rules":{"items":{"$ref":"#/components/schemas/RuleIn"},"type":"array","maxItems":20,"minItems":1,"title":"Rules"},"gate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate Id"}},"type":"object","required":["name","rules"],"title":"PreviewIn"},"ProjectBody":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":8000,"title":"Description","default":""},"status":{"type":"string","title":"Status","default":"active"},"client_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50},{"type":"null"}],"title":"Client Ids","description":"the clients the project is made for: the whole list, each named, none assumed"},"format_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":200},{"type":"null"}],"title":"Format Ids","description":"the delivery formats it delivers in: the whole list; each belongs to one of the project's clients"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"refused: a project may be made for several clients; send client_ids"},"task_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type","description":"refused: there are no task types (ADR 0004)"},"target_count":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Target Count"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"tags":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Tags","description":"short words the project is known by; trimmed, lower case, each once, at most 40 characters"},"taxonomy_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Id","description":"refused: each batch names its taxonomy"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo","description":"one of the built-in marks (builtin:ale, builtin:terminal-bench); an image is uploaded to POST /v1/projects/{id}/logo"}},"type":"object","required":["name"],"title":"ProjectBody"},"ProjectPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"client_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50},{"type":"null"}],"title":"Client Ids","description":"the clients the project is made for: the whole list, each named, none assumed"},"format_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":200},{"type":"null"}],"title":"Format Ids","description":"the delivery formats it delivers in: the whole list; each belongs to one of the project's clients"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"refused: a project may be made for several clients; send client_ids"},"clear_client":{"type":"boolean","title":"Clear Client","description":"refused: send client_ids, the whole list","default":false},"task_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Type","description":"refused: there are no task types (ADR 0004)"},"target_count":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Target Count"},"clear_target":{"type":"boolean","title":"Clear Target","default":false},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"clear_due_date":{"type":"boolean","title":"Clear Due Date","default":false},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Tags","description":"short words the project is known by; trimmed, lower case, each once, at most 40 characters"},"taxonomy_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taxonomy Id","description":"refused: each batch names its taxonomy"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo","description":"one of the built-in marks (builtin:ale, builtin:terminal-bench); an image is uploaded to POST /v1/projects/{id}/logo"},"clear_logo":{"type":"boolean","title":"Clear Logo","description":"back to the project's initials","default":false}},"type":"object","title":"ProjectPatch"},"PublicChoice":{"properties":{"on":{"type":"boolean","title":"On"},"slug":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Slug","description":"its address on the public site; needed on"},"display":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Display","description":"overrides by PUBLIC_DISPLAY_KEYS; a null value takes one away, a key left out stays"}},"type":"object","required":["on"],"title":"PublicChoice"},"PublicFiles":{"properties":{"version":{"type":"string","title":"Version"},"paths":{"items":{"type":"string"},"type":"array","maxItems":400,"title":"Paths","description":"paths under the task's environment/ to show"}},"type":"object","required":["version","paths"],"title":"PublicFiles"},"PublishBody":{"properties":{"note":{"type":"string","maxLength":2000,"title":"Note","default":""},"recheck":{"type":"boolean","title":"Recheck","description":"run the checks again on the open tasks it judges","default":true}},"type":"object","title":"PublishBody"},"PublishIn":{"properties":{"kind":{"type":"string","enum":["version","fix"],"title":"Kind","description":"version: the next version, which readers are told about; fix: the current version corrected in place","default":"version"},"note":{"type":"string","maxLength":600,"title":"Note","description":"what changed: required for a version, which readers see; optional for a fix, kept in the event log","default":""}},"type":"object","title":"PublishIn"},"Relabel":{"properties":{"outcome":{"$ref":"#/components/schemas/Outcome","description":"provider_error or infrastructure_error: the attempt leaves the figures"},"why":{"type":"string","maxLength":2000,"title":"Why"}},"type":"object","required":["outcome","why"],"title":"Relabel"},"ReviewAssignment":{"properties":{"task_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Task Ids"},"reviewer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer","description":"the email of one of the project's reviewers; null takes the tasks off whoever has them"}},"type":"object","required":["task_ids","reviewer"],"title":"ReviewAssignment"},"RuleIn":{"properties":{"kind":{"type":"string","enum":["at_most_open","has_reached","let_through","read_guidelines"],"title":"Kind"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"scope":{"anyOf":[{"type":"string","enum":["project","this_batch","batch"]},{"type":"null"}],"title":"Scope"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},"type":"object","required":["kind"],"title":"RuleIn"},"RuleSettingIn":{"properties":{"mode":{"type":"string","enum":["always","never","when"],"title":"Mode"},"gate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate Id"}},"type":"object","required":["mode"],"title":"RuleSettingIn"},"RunCreate":{"properties":{"task_version_id":{"type":"string","title":"Task Version Id"},"kind":{"$ref":"#/components/schemas/RunKind"},"sandbox":{"type":"string","title":"Sandbox","description":"where the episodes run: modal, the default and the only one for everyone but admins; admins may choose docker","default":"modal"},"agent":{"type":"string","title":"Agent","description":"the harness for model runs: one of /v1/catalog's model_agents, which says which models each may run","default":"terminus-2"},"models":{"items":{"type":"string"},"type":"array","title":"Models","description":"catalog ids; ignored for validation and sandbox runs"},"attempts":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Attempts","description":"per model for eval runs; sandboxes at once for a sandbox run","default":1},"agent_timeout_sec":{"anyOf":[{"type":"number","maximum":28800.0,"minimum":60.0},{"type":"null"}],"title":"Agent Timeout Sec","description":"leave empty: a run takes its task's time limit (a playground try sets its own)"},"reference":{"type":"boolean","title":"Reference","description":"eval runs: also run the reference solution (solve.sh), which should pass; its own run, no model cost","default":false},"do_nothing":{"type":"boolean","title":"Do Nothing","description":"eval runs: also run an agent that does nothing, which should fail; its own run, no model cost","default":false},"efforts":{"additionalProperties":{"type":"string"},"type":"object","title":"Efforts","description":"model id -> reasoning level, one of the levels /v1/catalog lists for that model in the chosen harness; absent: the default"},"budget_usd":{"type":"number","title":"Budget Usd","description":"the estimate's expected cost (typical_usd), confirmed by the person starting the run; no attempt is capped at it"},"past_budget":{"type":"boolean","title":"Past Budget","description":"confirms a start whose expected cost is more than a budget it is charged to has left: it stops when that budget runs out","default":false},"callback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callback Url","description":"POSTed the run's summary when it ends"},"overrides":{"items":{"$ref":"#/components/schemas/Override"},"type":"array","title":"Overrides","description":"model evaluations require valid task structure, finished and passing checks, no Needs work or Rejected verdict and passing validation; an admin may start past failed, unfinished or running checks, such a verdict or a failed validation with a reason each, recorded on the run; wrong files and missing, running or incomplete validation cannot be overridden"}},"type":"object","required":["task_version_id","kind","budget_usd"],"title":"RunCreate"},"RunKind":{"type":"string","enum":["validation","cheat","eval","sandbox"],"title":"RunKind"},"RunRequest":{"properties":{"task_version_id":{"type":"string","title":"Task Version Id"},"kind":{"$ref":"#/components/schemas/RunKind"},"sandbox":{"type":"string","title":"Sandbox","description":"where the episodes run: modal, the default and the only one for everyone but admins; admins may choose docker","default":"modal"},"agent":{"type":"string","title":"Agent","description":"the harness for model runs: one of /v1/catalog's model_agents, which says which models each may run","default":"terminus-2"},"models":{"items":{"type":"string"},"type":"array","title":"Models","description":"catalog ids; ignored for validation and sandbox runs"},"attempts":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Attempts","description":"per model for eval runs; sandboxes at once for a sandbox run","default":1},"agent_timeout_sec":{"anyOf":[{"type":"number","maximum":28800.0,"minimum":60.0},{"type":"null"}],"title":"Agent Timeout Sec","description":"leave empty: a run takes its task's time limit (a playground try sets its own)"},"reference":{"type":"boolean","title":"Reference","description":"eval runs: also run the reference solution (solve.sh), which should pass; its own run, no model cost","default":false},"do_nothing":{"type":"boolean","title":"Do Nothing","description":"eval runs: also run an agent that does nothing, which should fail; its own run, no model cost","default":false},"efforts":{"additionalProperties":{"type":"string"},"type":"object","title":"Efforts","description":"model id -> reasoning level, one of the levels /v1/catalog lists for that model in the chosen harness; absent: the default"}},"type":"object","required":["task_version_id","kind"],"title":"RunRequest"},"RunsCancel":{"properties":{"run_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Run Ids"}},"type":"object","required":["run_ids"],"title":"RunsCancel"},"RunsRerun":{"properties":{"run_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Run Ids"}},"type":"object","required":["run_ids"],"title":"RunsRerun"},"RunsRerunStart":{"properties":{"budget_usd":{"type":"number","minimum":0.0,"title":"Budget Usd"},"past_budget":{"type":"boolean","title":"Past Budget","default":false},"run_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Run Ids"}},"type":"object","required":["budget_usd","run_ids"],"title":"RunsRerunStart"},"SettingIn":{"properties":{"role":{"type":"string","const":"tasker","title":"Role"},"ability":{"type":"string","enum":["create_tasks","work_in"],"title":"Ability"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"},"mode":{"type":"string","enum":["always","never","when"],"title":"Mode"},"gate_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate Id"}},"type":"object","required":["role","ability","mode"],"title":"SettingIn"},"SetupIn":{"properties":{"qc_template_id":{"type":"string","title":"Qc Template Id"},"review_template_id":{"type":"string","title":"Review Template Id"},"model":{"type":"string","title":"Model"},"adversarial_default":{"type":"boolean","title":"Adversarial Default"}},"type":"object","required":["qc_template_id","review_template_id","model","adversarial_default"],"title":"SetupIn"},"SignInSettings":{"properties":{"open_signup":{"type":"boolean","title":"Open Signup"}},"type":"object","required":["open_signup"],"title":"SignInSettings"},"SiteChoice":{"properties":{"overrides":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"null"}]},"type":"object","title":"Overrides"}},"type":"object","required":["overrides"],"title":"SiteChoice"},"SpendConfirmation":{"properties":{"budget_usd":{"type":"number","minimum":0.0,"title":"Budget Usd"},"past_budget":{"type":"boolean","title":"Past Budget","default":false}},"type":"object","required":["budget_usd"],"title":"SpendConfirmation"},"StatusBody":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"StatusBody"},"Submits":{"properties":{"task_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Task Ids"}},"type":"object","required":["task_ids"],"title":"Submits"},"TaskPatch":{"properties":{"domain":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Domain"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},"type":"object","title":"TaskPatch"},"TasksQcRequest":{"properties":{"task_ids":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Task Ids"},"kind":{"type":"string","const":"qc","title":"Kind","description":"qc: each task's files. A Trajectory QC reads evaluations chosen on the task's own page, so it is started there"},"adversarial":{"type":"boolean","title":"Adversarial","description":"said for all of them: tasks of several batches may have several defaults"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"a catalog model; None: each batch's model"}},"type":"object","required":["task_ids","kind","adversarial"],"title":"TasksQcRequest"},"TaxonomyBody":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":8000,"title":"Description","default":""},"profile":{"type":"string","title":"Profile","default":"harbor"},"editors":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Editors"},"clone_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clone Of","description":"start from this taxonomy's draft"},"harbor_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Harbor Version","description":"for a Harbor-based taxonomy: the synced Harbor release it checks with (ADR 0005); none: the workers' installed Harbor"}},"type":"object","required":["name"],"title":"TaxonomyBody"},"TaxonomyPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Description"},"editors":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50},{"type":"null"}],"title":"Editors"},"draft":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Draft"}},"type":"object","title":"TaxonomyPatch"},"TemplateCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"guidance":{"type":"string","title":"Guidance","default":""},"checks":{"items":{"$ref":"#/components/schemas/CheckIn"},"type":"array","title":"Checks"},"kind":{"type":"string","title":"Kind"}},"type":"object","required":["name","checks","kind"],"title":"TemplateCreate"},"TemplateIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"guidance":{"type":"string","title":"Guidance","default":""},"checks":{"items":{"$ref":"#/components/schemas/CheckIn"},"type":"array","title":"Checks"}},"type":"object","required":["name","checks"],"title":"TemplateIn"},"ThemeIn":{"properties":{"theme":{"anyOf":[{"type":"string","enum":["light","system"]},{"type":"null"}],"title":"Theme"}},"type":"object","required":["theme"],"title":"ThemeIn","description":"An appearance for the account: light, the system setting, or null for the dark page (apps/web/src/theme)."},"TokenCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"role":{"type":"string","title":"Role","default":"service"}},"type":"object","required":["name"],"title":"TokenCreate"},"TokenName":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"what it is for, e.g. Claude Code on my laptop"}},"type":"object","required":["name"],"title":"TokenName"},"TryCreate":{"properties":{"budget_usd":{"type":"number","minimum":0.0,"title":"Budget Usd","default":0.0},"past_budget":{"type":"boolean","title":"Past Budget","default":false},"mode":{"type":"string","title":"Mode","description":"ask: one question to the model; attempt: an agent on the packaged task; chat: one message of the playground's conversation with the model"},"model":{"type":"string","title":"Model"},"agent":{"type":"string","title":"Agent","default":"terminus-2"},"agent_timeout_sec":{"anyOf":[{"type":"number","maximum":28800.0,"minimum":60.0},{"type":"null"}],"title":"Agent Timeout Sec","description":"attempt: how long the agent may work, in seconds, asked of the person; no step limit"},"text":{"type":"string","maxLength":6210240,"title":"Text","description":"chat: the message; empty sends the instructions","default":""},"history":{"items":{"$ref":"#/components/schemas/ChatTurn"},"type":"array","title":"History","description":"chat: the conversation before this message, oldest first"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning","description":"chat: the reasoning level to ask a model that takes one for; attempt: the run's reasoning effort, one its model and harness both take (2026-11-24); none keeps its own"},"attach":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Attach","description":"chat: names of the draft's input files whose text goes with the message"}},"type":"object","required":["mode","model"],"title":"TryCreate"},"TryPrice":{"properties":{"mode":{"type":"string","title":"Mode"},"model":{"type":"string","title":"Model"},"agent":{"type":"string","title":"Agent","default":"terminus-2"},"agent_timeout_sec":{"anyOf":[{"type":"number","maximum":28800.0,"minimum":60.0},{"type":"null"}],"title":"Agent Timeout Sec","description":"attempt: how long the agent may work, in seconds, asked of the person; no step limit"}},"type":"object","required":["mode","model"],"title":"TryPrice"},"UserPatch":{"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"disabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disabled"}},"type":"object","title":"UserPatch"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyRequest":{"properties":{"kind":{"type":"string","title":"Kind","description":"qc: the task's files; review: also the evaluations in run_ids"},"run_ids":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Run Ids"},"together":{"type":"boolean","title":"Together","description":"several evaluations: one verification reading them all","default":false},"adversarial":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Adversarial","description":"None: the batch's default"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"a catalog model; None: the batch's model"}},"type":"object","required":["kind"],"title":"VerifyRequest"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}