{"openapi":"3.1.0","info":{"title":"DiscountRunners.io API","version":"1","description":"Runner classes, prices, jobs, workflow runs, usage, billing, monitors and warm pools of a DiscountRunners.io account."},"paths":{"/v1/classes":{"get":{"operationId":"get_list_runner_classes","summary":"List runner classes","description":"Every DiscountRunners runner class with its size, image, architecture, regions, price per minute, physical cores and GitHub-hosted price at the same core count.","tags":["Runners"],"parameters":[{"name":"image","in":"query","required":false,"schema":{"anyOf":[{"enum":["slim","full","full26"],"type":"string"},{"type":"null"}],"default":null,"description":"full (GitHub's ubuntu-latest image, the default of every size; -24.04 pins Ubuntu 24.04), slim (the small image: -lite) or full26 (ubuntu-26.04)","title":"Image"}},{"name":"arch","in":"query","required":false,"schema":{"anyOf":[{"enum":["x64","arm64"],"type":"string"},{"type":"null"}],"default":null,"title":"Arch"}},{"name":"min_vcpus","in":"query","required":false,"schema":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"title":"Min Vcpus"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{},{"oauth":[]}]}},"/v1/quote":{"get":{"operationId":"get_quote","summary":"Price a job","description":"What a job of a given duration costs on one of our classes, against a competitor at the same number of physical cores (GitHub-hosted by default), each under its own billing rule.","tags":["Runners"],"parameters":[{"name":"runner_class","in":"query","required":true,"schema":{"description":"One of our class labels, from list_runner_classes","title":"Runner Class","type":"string"}},{"name":"seconds","in":"query","required":true,"schema":{"description":"Duration of one run of the job","exclusiveMinimum":0,"title":"Seconds","type":"number"}},{"name":"runs","in":"query","required":false,"schema":{"default":1,"description":"How many runs to price, e.g. runs per month","minimum":1,"title":"Runs","type":"integer"}},{"name":"compare_to","in":"query","required":false,"schema":{"default":"github","description":"Competitor slug; github by default","title":"Compare To","type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{},{"oauth":[]}]}},"/v1/labels/map":{"post":{"operationId":"post_map_labels","summary":"Map runs-on to a class","description":"The DiscountRunners class for a job's runs-on value. For a ${{ }} expression, which quoted labels can move, to which class, and which variables still name an old label.","tags":["Runners"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"runs_on":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}],"description":"A job's runs-on exactly as written: a label, a list of labels, or a ${{ }} expression","title":"Runs On"},"variables":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},{"type":"null"}],"default":null,"description":"Actions variables the expression reads, as the job would see them: a value, or null when unset. Leave a variable out when you could not read it","title":"Variables"}},"required":["runs_on"]}}}},"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{},{"oauth":[]}]}},"/v1/labels/check":{"post":{"operationId":"post_check_rewrite","summary":"Check a runs-on rewrite","description":"Whether an edited runs-on value changes only runner labels, each to its planned class. Check every edited line before committing it.","tags":["Runners"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"old":{"description":"The runs-on value as it is now","title":"Old","type":"string"},"new":{"description":"The runs-on value you propose","title":"New","type":"string"}},"required":["new","old"]}}}},"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{},{"oauth":[]}]}},"/v1/account":{"get":{"operationId":"get_account_status","summary":"Account status","description":"Balance, holds, this month's spend, caps, concurrency limit and warm pools.","tags":["Account"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/usage":{"get":{"operationId":"get_usage","summary":"Monthly usage","description":"What the account was charged in a month, by product, repository, day and runner class, with billed minutes.","tags":["Account"],"parameters":[{"name":"month","in":"query","required":false,"schema":{"default":"","description":"YYYY-MM in UTC; the current month by default","pattern":"^(\\d{4}-\\d{2})?$","title":"Month","type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/ledger":{"get":{"operationId":"get_list_ledger","summary":"Balance and ledger entries","description":"The account's balance, any discount on its runner time, and its ledger entries (top-ups, charges, refunds, credits), newest first, each with the balance after it and what a discount took off it.","tags":["Account"],"parameters":[{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Entries older than this entry id","title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/activity":{"get":{"operationId":"get_analyze","summary":"Summarize recent activity","description":"The last days of an account's or one repository's workflow runs: runs and success rate by day, runner minutes on each provider, what we charged and what the same jobs would have cost elsewhere, the slowest workflows and jobs, and the jobs that failed most. Defaults to 7 days.","tags":["Account"],"parameters":[{"name":"repository","in":"query","required":false,"schema":{"default":"","description":"owner/name of one repository; empty summarizes the whole account","maxLength":200,"title":"Repository","type":"string"}},{"name":"days","in":"query","required":false,"schema":{"default":7,"description":"How many days back to summarize","maximum":90,"minimum":1,"title":"Days","type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/repositories":{"get":{"operationId":"get_list_repositories","summary":"List repositories","description":"The signed-in account's repositories: jobs, minutes and spend on DiscountRunners, and how many workflow jobs still run on another provider's runners.","tags":["Repositories"],"parameters":[{"name":"days","in":"query","required":false,"schema":{"default":30,"description":"How many days back to look","maximum":90,"minimum":1,"title":"Days","type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/repositories/{owner}/{name}/runners":{"get":{"operationId":"get_runner_choices","summary":"Each job's runner","description":"For one repository, the runner labels each workflow job last asked for, ours or anyone's, and whether it recently switched.","tags":["Repositories"],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"default":30,"description":"How many days back to look","maximum":90,"minimum":1,"title":"Days","type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/repositories/{owner}/{name}/jobs":{"get":{"operationId":"get_job_history","summary":"A repository's job runs","description":"Recent runs of a repository's jobs on DiscountRunners: class, queue wait, run time, cost, CPU and memory p95, and whether a smaller class would have fit.","tags":["Repositories"],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"default":30,"description":"How many days back to look","maximum":90,"minimum":1,"title":"Days","type":"integer"}},{"name":"workflow","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Workflow name, exactly as GitHub shows it","title":"Workflow"}},{"name":"job","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Job name, exactly as GitHub shows it","title":"Job"}},{"name":"limit","in":"query","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/repositories/{owner}/{name}/profile":{"get":{"operationId":"get_workflow_profile","summary":"Profile a repository's jobs","description":"Per workflow job and class: runs, failures, p50 and p95 run time, p95 queue wait, CPU and memory use, spend and cost per run. Start right-sizing here.","tags":["Repositories"],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"default":30,"description":"How many days back to look","maximum":90,"minimum":1,"title":"Days","type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/repositories/{owner}/{name}/recommendations":{"get":{"operationId":"get_recommend","summary":"Recommend runner changes","description":"For one repository: jobs to downsize or upsize, jobs on an older runner name to move to its published size, jobs a warm pool would start sooner, and jobs still running elsewhere that could move here, each with why and how.","tags":["Repositories"],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"default":30,"description":"How many days back to look","maximum":90,"minimum":1,"title":"Days","type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/repositories/{owner}/{name}/parallel-plan":{"get":{"operationId":"get_plan_parallel","summary":"Plan a faster workflow","description":"Where a workflow's recent successful runs could run in parallel: a matrix that shards a job's longest step, a long job split into jobs on separate runners, or a needs: wait that may not be needed. Each comes with the run time before and after and the runner minutes it adds.","tags":["Repositories"],"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"workflow","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"A workflow's name or file path; the workflow that spends the most time by default","title":"Workflow"}},{"name":"days","in":"query","required":false,"schema":{"default":14,"description":"How many days of runs to read","maximum":90,"minimum":1,"title":"Days","type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/jobs":{"get":{"operationId":"get_list_jobs","summary":"List jobs","description":"The account's jobs on our runners across every repository, newest first: state, runner class, queue, boot and run time, billed minutes and charge. Page with cursor.","tags":["Jobs"],"parameters":[{"name":"status","in":"query","required":false,"schema":{"default":"all","description":"Only jobs in this state","enum":["all","waiting","running","succeeded","failed","cancelled","preempted"],"title":"Status","type":"string"}},{"name":"search","in":"query","required":false,"schema":{"default":"","description":"Words that must each appear in the workflow, job, branch, runner class, runner or repository name; a number matches a job or run id, a hex word a commit","maxLength":200,"title":"Search","type":"string"}},{"name":"days","in":"query","required":false,"schema":{"default":7,"description":"Finished jobs from this many days back; waiting and running jobs always show","maximum":90,"minimum":1,"title":"Days","type":"integer"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"title":"Limit","type":"integer"}},{"name":"cursor","in":"query","required":false,"schema":{"default":"","description":"next_cursor from the previous page","maxLength":60,"title":"Cursor","type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/jobs/{job_id}":{"get":{"operationId":"get_get_job","summary":"Show a job","description":"One job with its VMs, its timeline from queued to finished, and what it was charged.","tags":["Jobs"],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/jobs/{job_id}/network":{"get":{"operationId":"get_get_job_network","summary":"A job's network traffic","description":"What the network itself logged for one job's VM, outside the VM: each address, port and host it talked to, bytes each way, blocked attempts, and whether the VM's own report left any out.","tags":["Jobs"],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"schema":{"default":200,"description":"The busiest this many flows","maximum":2000,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/jobs/{job_id}/explanation":{"get":{"operationId":"get_explain_job","summary":"Explain a job's state","description":"Why a job waited, failed over or ran where it did, in the dashboard's words.","tags":["Jobs"],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/runs":{"get":{"operationId":"get_list_runs","summary":"List workflow runs","description":"The account's workflow runs that used our runners, newest first, each with its job count, state, run time and charge. Page with cursor.","tags":["Jobs"],"parameters":[{"name":"status","in":"query","required":false,"schema":{"default":"all","description":"Only jobs in this state","enum":["all","waiting","running","succeeded","failed","cancelled","preempted"],"title":"Status","type":"string"}},{"name":"search","in":"query","required":false,"schema":{"default":"","description":"Words that must each appear in the workflow, job, branch, runner class, runner or repository name; a number matches a job or run id, a hex word a commit","maxLength":200,"title":"Search","type":"string"}},{"name":"days","in":"query","required":false,"schema":{"default":7,"description":"Finished jobs from this many days back; waiting and running jobs always show","maximum":90,"minimum":1,"title":"Days","type":"integer"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"title":"Limit","type":"integer"}},{"name":"cursor","in":"query","required":false,"schema":{"default":"","description":"next_cursor from the previous page","maxLength":60,"title":"Cursor","type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/runs/{run_id}":{"get":{"operationId":"get_get_run","summary":"Show a workflow run","description":"One attempt of a workflow run with each of its jobs on our runners.","tags":["Jobs"],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"attempt","in":"query","required":false,"schema":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Run attempt; the latest by default","title":"Attempt"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/monitors":{"get":{"operationId":"get_list_monitors","summary":"List monitors","description":"The account's job monitors (failure and slow-job alerts) and their recent events.","tags":["Monitors"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]},"post":{"operationId":"post_set_monitor","summary":"Create a monitor","description":"Creates a failure or slow-job monitor or changes one; fields left out keep their values. Slack alerts can reuse a webhook another monitor of the account already has.","tags":["Monitors"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"monitor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Change this monitor; omit to create one","title":"Monitor Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Enabled"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"owner/name; empty string for every repository","title":"Repository"},"workflow":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Shell-style pattern; empty matches any","title":"Workflow"},"job":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Job"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Branch"},"trigger":{"anyOf":[{"enum":["failed","slow"],"type":"string"},{"type":"null"}],"default":null,"title":"Trigger"},"consecutive":{"anyOf":[{"maximum":20,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"failed: failures in a row","title":"Consecutive"},"slow_after_minutes":{"anyOf":[{"exclusiveMinimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"slow: minutes","title":"Slow After Minutes"},"cooldown_minutes":{"anyOf":[{"maximum":10080,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Cooldown Minutes"},"keep_vm_minutes":{"anyOf":[{"maximum":30,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"failed: keep the VM up for SSH debug","title":"Keep Vm Minutes"},"slack_from_monitor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Alert to the same Slack webhook as this monitor of the account. A new webhook URL can only be added on the dashboard.","title":"Slack From Monitor Id"},"clear_slack":{"default":false,"title":"Clear Slack","type":"boolean"},"email_to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"description":"Up to 5 addresses to email alerts to; an empty list stops email","title":"Email To"}}}}}},"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:write"]}]}},"/v1/monitors/{monitor_id}":{"patch":{"operationId":"patch_set_monitor","summary":"Change a monitor","description":"Creates a failure or slow-job monitor or changes one; fields left out keep their values. Slack alerts can reuse a webhook another monitor of the account already has.","tags":["Monitors"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Enabled"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"owner/name; empty string for every repository","title":"Repository"},"workflow":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Shell-style pattern; empty matches any","title":"Workflow"},"job":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Job"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Branch"},"trigger":{"anyOf":[{"enum":["failed","slow"],"type":"string"},{"type":"null"}],"default":null,"title":"Trigger"},"consecutive":{"anyOf":[{"maximum":20,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"failed: failures in a row","title":"Consecutive"},"slow_after_minutes":{"anyOf":[{"exclusiveMinimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"slow: minutes","title":"Slow After Minutes"},"cooldown_minutes":{"anyOf":[{"maximum":10080,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Cooldown Minutes"},"keep_vm_minutes":{"anyOf":[{"maximum":30,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"failed: keep the VM up for SSH debug","title":"Keep Vm Minutes"},"slack_from_monitor_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Alert to the same Slack webhook as this monitor of the account. A new webhook URL can only be added on the dashboard.","title":"Slack From Monitor Id"},"clear_slack":{"default":false,"title":"Clear Slack","type":"boolean"},"email_to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"description":"Up to 5 addresses to email alerts to; an empty list stops email","title":"Email To"}}}}}},"parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:write"]}]},"delete":{"operationId":"delete_delete_monitor","summary":"Delete a monitor","description":"Deletes a monitor and its event history.","tags":["Monitors"],"parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:write"]}]}},"/v1/variable-changes":{"post":{"operationId":"post_record_variable_change","summary":"Record an Actions variable change","description":"Records a GitHub Actions variable you changed with the user's rights (gh variable set or delete), with the value it held before, in the account's audit log. Variables have no git history, so call it right after every variable change; it changes nothing on GitHub.","tags":["Account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"name":{"maxLength":100,"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","title":"Name","type":"string"},"scope":{"description":"Where the variable was changed","enum":["repository","environment","organization"],"title":"Scope","type":"string"},"repository":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"owner/name; required for repository and environment scope","title":"Repository"},"environment":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"default":null,"description":"Environment name; environment scope only","title":"Environment"},"old_value":{"anyOf":[{"maxLength":4096,"type":"string"},{"type":"null"}],"description":"The value at this scope before the change, as read just before it; null when the variable did not exist at this scope","title":"Old Value"},"new_value":{"anyOf":[{"maxLength":4096,"type":"string"},{"type":"null"}],"description":"The value set; null when the variable was deleted","title":"New Value"}},"required":["name","new_value","old_value","scope"]}}}},"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:write"]}]}},"/v1/storage":{"get":{"operationId":"get_list_storage","summary":"List caches, sticky disks or images","description":"The account's cache entries, sticky disk snapshots or repository images, largest first, with their ids.","tags":["Storage"],"parameters":[{"name":"kind","in":"query","required":true,"schema":{"description":"cache entries, sticky disk snapshots, or repository images","enum":["cache","sticky","image"],"title":"Kind","type":"string"}},{"name":"repository","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"owner/name; one repository only","title":"Repository"}},{"name":"key","in":"query","required":false,"schema":{"default":"","description":"Only keys containing this text","maxLength":200,"title":"Key","type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}},"/v1/account/settings":{"get":{"operationId":"get_get_account_settings","summary":"Show the account's settings","description":"The account's settings: job-log costs, re-runs, package mirrors, credit emails, pull-request comments, controls, SSH, network and the history import.","tags":["Account"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]},"patch":{"operationId":"patch_set_account_settings","summary":"Change the account's settings","description":"Turns job-log costs, automatic re-runs and the package mirrors on or off, and sets who gets credit emails; fields left out keep their values.","tags":["Account"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"job_log_costs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"End each job's log with its estimated cost and saving","title":"Job Log Costs"},"automatic_reruns":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Re-run a run's failed jobs once, automatically, when the failure wasn't the job's own","title":"Automatic Reruns"},"npm_mirror":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Use our npm package mirror","title":"Npm Mirror"},"pypi_mirror":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"Use our PyPI package mirror","title":"Pypi Mirror"},"credit_email_to":{"anyOf":[{"items":{"type":"string"},"maxItems":10,"type":"array"},{"type":"null"}],"default":null,"description":"Who is emailed when runs are held or stopped for credit; [] turns it off","title":"Credit Email To"}}}}}},"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:write"]}]}},"/v1/repositories/{owner}/{name}/pr-cost-comments":{"patch":{"operationId":"patch_set_pr_cost_comments","summary":"Turn pull-request cost comments on or off","description":"Whether a repository's pull requests get a comment with their runner cost and saving.","tags":["Repositories"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"pr_cost_comments":{"description":"Comment each pull request's runner cost and saving","title":"Pr Cost Comments","type":"boolean"}},"required":["pr_cost_comments"]}}}},"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:write"]}]}},"/v1/repositories/{owner}/{name}/connection":{"patch":{"operationId":"patch_set_repository_connection","summary":"Disconnect or reconnect a repository","description":"Stops new jobs from one repository running on our runners, or lets them run again. Jobs already running finish; queued ones are cancelled. History and billing stay.","tags":["Repositories"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"connected":{"description":"false stops new jobs from the repository running here; true lets them run again","title":"Connected","type":"boolean"}},"required":["connected"]}}}},"parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:write"]}]}},"/v1/monitors/{monitor_id}/test":{"post":{"operationId":"post_test_monitor","summary":"Send a monitor's test alert","description":"Sends a test message to the monitor's Slack and email, at most once a minute.","tags":["Monitors"],"parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:write"]}]}},"/v1/access-requests":{"post":{"operationId":"post_request_runner_class","summary":"Ask for a runner class","description":"Asks us to turn on a runner class this account can't use yet.","tags":["Runners"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"runner_class":{"description":"The class label, from list_runner_classes","maxLength":100,"title":"Runner Class","type":"string"},"note":{"default":"","description":"What you want it for","maxLength":500,"title":"Note","type":"string"}},"required":["runner_class"]}}}},"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:write"]}]}},"/v1/history-import":{"patch":{"operationId":"patch_change_history_import","summary":"Start, pause or resume the history import","description":"Imports the account's GitHub Actions history from a day up to 400 days back, or pauses or resumes it.","tags":["Account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"action":{"enum":["start","pause","resume"],"title":"Action","type":"string"},"since":{"default":"","description":"YYYY-MM-DD, the first day to import; start only","title":"Since","type":"string"},"keep_current":{"default":true,"description":"Keep importing new days as they end; start only","title":"Keep Current","type":"boolean"}},"required":["action"]}}}},"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:write"]}]}},"/v1/telemetry-export":{"get":{"operationId":"get_get_telemetry_export","summary":"Show the telemetry export","description":"Where the account's job traces, metrics and logs are sent over OpenTelemetry, which headers are set (names only), and how the last send went.","tags":["Telemetry"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"oauth":["runners:read"]}]}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"securitySchemes":{"oauth":{"type":"oauth2","description":"Sign in with GitHub; the grant covers one account.","flows":{"authorizationCode":{"authorizationUrl":"https://discountrunners.io/oauth/authorize","tokenUrl":"https://discountrunners.io/oauth/token","refreshUrl":"https://discountrunners.io/oauth/token","scopes":{"runners:read":"see this account's repositories, jobs, usage and balance","runners:write":"turn this account's warm pools and monitors on and off, and change them","actions:rerun":"re-run the failed jobs of a finished workflow run, which our GitHub App starts on GitHub"}}}}}}}