Skip to the content
Forge

Schemas

The request and response bodies of the API's endpoints, field by field. A field marked required is always in an answer, and must be in a request.

AbuseReportInput

Field Type Description
category one of phishing, malware, spam, mining, scanning, illegal, other, required
details string, required
email string Optional contact for anonymous reporters; ignored when signed in (the account is recorded).
target string, required What is reported, e.g. a link to the organization, an address or an IP.
website string Leave empty. Forms hide it; a filled-in value drops the report silently.

ActivityEntry

Field Type Description
action string, required run.started, run.finished, flow_run.started, flow_run.finished, fire.skipped, fire.failed, delivery.skipped, delivery.failed, runner.offline, runner.online, or an audit action (see AuditEntry) for changes and runner changes.
actor object, required
id ID, required
kind ActivityKind, required run and flow_run: started or finished (shown with run:read); fire: a schedule fire that was skipped or failed; delivery: a Git delivery (or a trigger run by hand) that a trigger skipped or failed on; change: a project or organization change (audited actions, without billing, invoices, support access, keys and secret uses); runner: the owner's own runners joining, renamed, drained, revoked, going offline or back online.
metadata object, required Names and states only: name, number, state, source (schedule, trigger, template, flow, manual), reason (Forge's own: a finish reason or why a fire failed), exit_code, attempt, schedule, trigger, outcome, event, ref, role and the like. Never emails, URLs, request IPs, secret values or payloads.
occurred_at string (date-time), required
project_id ID
target_id ID
target_kind string run, flow_run, schedule, trigger, runner, or an audit target kind.

ActivityKind

run and flow_run: started or finished (shown with run:read); fire: a schedule fire that was skipped or failed; delivery: a Git delivery (or a trigger run by hand) that a trigger skipped or failed on; change: a project or organization change (audited actions, without billing, invoices, support access, keys and secret uses); runner: the owner's own runners joining, renamed, drained, revoked, going offline or back online.

One of run, flow_run, fire, delivery, change, runner.

ActivityPage

Field Type Description
entries array of ActivityEntry, required
next_cursor string Absent on the last page.

AddProjectMember

Field Type Description
role_id ID, required
user_id ID, required

Artifact

Field Type Description
created_at string (date-time), required
expired_at string (date-time) When it was deleted by its own expiry: its download answers 410.
expires_at string (date-time) When it expires by its own expire_in_days; the run's data retention may delete it sooner.
file_name string, required e.g. report.xml, or dist.tar.gz for a directory
id ID, required
kind one of file, directory, required
message string Why it isn't stored.
path string, required The output path from the spec.
sha256 string Hex SHA-256 of the download.
size integer (int64), required Bytes of the download.
status one of stored, missing, too_large, error, required Only stored artifacts can be downloaded.

AuditEntry

Field Type Description
action string, required <thing>.<verb>, e.g. member.role_change. Current actions: org.create, org.rename, org.delete, org.restore, org.suspend, org.unsuspend, org.warn, support.request, support.grant, support.decline, support.revoke, support.expire, member.add, member.role_change, member.remove, member.leave, invite.create, invite.revoke, invite.accept, project.create, project.update, project.delete, project.restore, project_member.add, project_member.role_change, project_member.remove, project_member.leave, role.create, role.update, role.delete, service_account.create, service_account.update, service_account.delete, service_account.token_create, service_account.token_revoke, runner.token_create, runner.token_revoke, runner.join, runner.rename, runner.revoke, runner.drain, runner.undrain, runner_group.create, runner_group.update, runner_group.delete, runner_group.key_create, runner_group.key_revoke, runner_group.autoscale, machine_provider.create, machine_provider.token, machine_provider.delete, machine.create, machine.delete, environment.create, environment.update, environment.delete.
actor object, required
id ID, required
metadata object, required Action details (role ids, names, invited email); never secrets.
occurred_at string (date-time), required
project_id ID
request_ip string
target_id ID
target_kind string What the action changed, e.g. org, user, invite, project, role, service_account, runner, runner_token, runner_group, machine_provider, machine, webhook, variable, secret, environment, badge, template, flow, run, schedule, trigger, git_installation, repository, registry, key, plan, invoice, location, region, class. New kinds come with new actions.

AutoscaleInput

Field Type Description
autoscalers array of ID Shared groups only, instead of provider_id and settings: the platform's autoscalers in the order they're tried, each fitting the group's kind. Turned on, at least one, and every country they reach needs a Forge location.
boot_minutes integer 2 to 60; 0 or absent: 10.
country_locations map of ID Shared groups only. The Forge location for each country with several (the group's own location is used where it's there).
enabled boolean, required false turns autoscaling off: running machines are drained, the rest deleted.
idle_minutes integer 0 or absent: 10.
min_machines integer At most the group's max_runners.
provider_id ID
settings object The provider's own settings; it checks them. At most 4 KiB.

AvailableRepository

Field Type Description
account string, required
default_branch string, required
external_id integer, required
full_name string, required
html_url string, required
installation_id ID, required
linked boolean, required The project has linked it already.
private boolean, required
provider one of github, gitlab, generic, gitea, bitbucket, required

Badge

A public status badge of a template, trigger or stored flow: an SVG at path on this server, showing the label and whether the latest run (of the branch, when set) passed. Anyone with the path can see it; deleting the badge revokes it.

Field Type Description
branch string, required The branch whose runs count; empty for every run.
created_at string (date-time), required
id ID, required
kind one of template, trigger, flow, required
label string, required
path string, required The SVG's path, /badges/TOKEN.svg.
project_id ID, required
target_id ID, required

BillingAccount

Field Type Description
details any, required Null until entered.
payment_method string, required The provider's summary, e.g. Test card ending 4242; empty without one.
payment_method_at string (date-time), required
provider string, required The installation's payment provider, e.g. dummy.

BillingDetails

Sent to the payment provider as the customer, which calculates tax from them.

Field Type Description
address_line1 string, required
address_line2 string
city string, required
country string, required ISO 3166-1 alpha-2, e.g. NL.
email string, required Where invoices go.
legal_name string, required
postal_code string
vat_id string Optional, with its country prefix, e.g. NL123456789B01; spaces, dots and dashes are dropped.

BlockedFire

Field Type Description
at string (date-time), required
scope one of organization, project, required The budget that closes the day.

Budget

What an organization or a project may spend, in euro cents, every amount optional (null: no limit; 0 stops everything in its period). What counts is the price of runs that finished in the period, on shared and own runners. Once one is reached, new runs in its scope are refused (422 budget_exceeded) and queued ones wait (wait_reason budget); runs already placed finish. 422 invalid for an amount out of range, an unknown mode or time zone.

Field Type Description
daily_cents integer, required
daily_mode one of every_day, weekdays, required every_day: daily_cents applies to every day; weekdays: weekday_cents, one per weekday.
monthly_cents integer, required Per calendar month in UTC.
time_zone string, required IANA time zone the days run in, e.g. Europe/Amsterdam; UTC when empty.
weekday_cents array of integer, required Monday to Sunday.

BudgetView

Field Type Description
can_write boolean, required The caller may change it (billing:manage on the organization).
closed_schedules array of ClosedSchedule On GET and PUT of one budget: the schedules the caller may read with a fire in the coming week on a day this budget (for a project, also its organization's) closes. Those fires fail.
daily_cents integer, required
daily_mode one of every_day, weekdays, required every_day: daily_cents applies to every day; weekdays: weekday_cents, one per weekday.
monthly_cents integer, required Per calendar month in UTC.
reached object, required The budget stops new runs now; null when it doesn't.
spent object, required
time_zone string, required IANA time zone the days run in, e.g. Europe/Amsterdam; UTC when empty.
weekday_cents array of integer, required Monday to Sunday.

CacheDeleteResult

Field Type Description
deleted integer, required
more boolean, required More entries match; delete again for them.

CacheEntry

One of a project's cache entries.

Field Type Description
created_at string (date-time), required
id string (uuid), required
key string, required
last_used_at string (date-time), required
repository string The linked repository of the scope; absent for none or one unlinked since.
run_id string (uuid), required The run that saved it.
scope string, required refs/heads/NAME, refs/tags/NAME, refs/pull/NUMBER, or none.
size_bytes integer (int64), required

CachePage

Field Type Description
count integer, required How many entries the project has.
entries array of CacheEntry, required
next_cursor string
quota_bytes integer (int64), required The project's cache quota; least recently used entries are evicted past it.
quota_days integer, required Entries unused this many days expire.
total_bytes integer (int64), required What all the project's entries take.

ClosedSchedule

Field Type Description
at string (date-time), required The first fire in the coming week on a closed day.
id ID, required
name string, required
project_id ID, required
project_name string, required
project_slug string, required

Concurrency

A concurrency group: of the project's runs in one group, one is active at a time. The group may use ${git.FIELD} and ${env.NAME} of the spec's env (and a template's ${params.NAME}); it is filled in when the run is created, at most 255 bytes.

Field Type Description
group string, required
policy one of queue, cancel_in_progress, skip While the group has an active run, a new one: queue (the default) waits as waiting; cancel_in_progress cancels the active ones and waits for them to stop; skip isn't created (409 concurrency_busy; a trigger or schedule records a skipped fire). Retries and re-runs always queue.

CreateProject

Field Type Description
description string At most 1000 characters
name string, required 1-100 characters
slug string, required Unique within the organization; same rules as organization slugs; fixed.

CreateServiceAccountToken

Field Type Description
expires_at string (date-time), required Between 1 hour and 1 year from now.
name string, required
scopes array of Permission Omit to follow the account's role; otherwise a non-empty subset of its project permissions.

CreatedServiceAccountToken

Field Type Description
id ID, required
prefix string, required
token string, required The secret (fs_…). Shown only in this response.

DeleteAccount

Field Type Description
confirm string, required The username (or email without one), typed again

DeleteOrganization

Field Type Description
confirm string, required The organization's slug, typed again

DeletedOrganization

Field Type Description
deleted_at string (date-time), required
id ID, required
name string, required
purge_after string (date-time), required When it can no longer be restored
slug string, required

DeletedProject

Field Type Description
created_at string (date-time), required
default_class_id any The runner class runs get when their spec names none; absent for the platform's default.
deleted_at string (date-time), required
description string, required
honor_skip_markers boolean A push or pull request whose head commit's message has [skip ci], [ci skip], [no ci], [skip forge] or [forge skip] fires none of the project's triggers. On by default; manual runs ignore the markers. Always sent.
id ID, required
name string, required
organization_id ID, required
permissions array of Permission Only on single-project responses; what the caller may do in the project.
purge_after string (date-time), required When it can no longer be restored
runner_pools RunnerPools, required Which runners the project's runs may use: all = the project's, its organization's and shared runners; no_shared = the project's and its organization's; project_only = the project's own.
slug string, required

Deployment

A run's deployment to an environment: recorded when the run is created, its state follows the run's. It keeps its own copy of the commit, ref, creator, approvers and URL, so it stays after the run is purged (run_exists false).

Field Type Description
approved_by array of DeploymentSubject, required
attempt integer, required
created_at string (date-time), required
created_by DeploymentSubject, required A user or service account with the name they had then.
environment_id ID, required
finished_at string (date-time)
flow_run_id ID
flow_run_number integer The flow run's number while it still exists.
flow_step string
id ID, required
reason string
ref string
repository string
run_exists boolean, required Whether the run is still there to link to.
run_id ID, required
run_number integer, required
sha string
started_at string (date-time)
state RunState, required waiting_approval: a run that deploys to a protected environment waits for its reviewers, then its wait timer. waiting: a run whose concurrency group has an earlier active run. awaiting_approval: a run of a pull request from a fork that waits until someone with git:approve approves its commit. rejected: a reviewer rejected the deploy, nobody decided in time (reason approval_expired), or its creator could no longer start it once approved (reason not_allowed). debugging: a debug run whose process exited and whose container is held for a shell; it then ends with the result its process had.
url string This deployment's address: the run spec's, else the environment's.

DeploymentPage

Field Type Description
current Deployment A run's deployment to an environment: recorded when the run is created, its state follows the run's. It keeps its own copy of the commit, ref, creator, approvers and URL, so it stays after the run is purged (run_exists false).
deployments array of Deployment, required
next_cursor string

DeploymentSubject

A user or service account with the name they had then.

Field Type Description
id ID, required
kind one of user, service_account, required
name string, required

Environment

A deployment target of a project with its protection rules.

Field Type Description
allow_manual boolean, required Runs without a Git context may deploy
allowed_refs array of string, required Globs over branch and tag names that may deploy; empty for all.
approval_timeout_days integer, required A run nobody decides on is rejected after this
created_at string (date-time), required
description string, required
id ID, required
min_approvals integer, required
name string, required
prevent_self_review boolean, required Whoever started the run can't approve it
project_id ID, required
require_approval boolean, required Runs that target it wait for approval
required_reviewers array of EnvironmentReviewer, required Users and roles whose holders may approve; empty means anyone with environment:approve.
updated_at string (date-time), required
url string, required The environment's address; empty for none
wait_timer_minutes integer, required A delay after approval, or before the start without one

EnvironmentInput

Fields left out stay as they are (on create, they get their defaults).

Field Type Description
allow_manual boolean
allowed_refs array of string
approval_timeout_days integer
description string
min_approvals integer
name string
prevent_self_review boolean
require_approval boolean
required_reviewers array of EnvironmentReviewer
url string
wait_timer_minutes integer

EnvironmentReviewer

Field Type Description
id ID, required
kind one of user, role, required

EnvironmentTarget

The project's environment the run deploys to. The run is refused when the environment doesn't exist or its rules don't take it: its allowed branches and tags (a pull request's run matches none), runs without Git context when it doesn't allow them, and, until runs can wait for them, an environment that requires approval or a wait.

Field Type Description
name string, required
url string This deployment's address (http or https); without it the environment's own.

Flow

Field Type Description
created_at string (date-time), required
description string, required The latest version's.
file string, required The flow file (YAML).
id ID, required
latest_version integer, required
name string, required
parameters array of TemplateParam, required The file's parameters, defaults in canonical form.
project_id ID, required
updated_at string (date-time), required
version integer, required The version shown; description and file are its.
version_created_at string (date-time), required
version_created_by object, required

FlowInput

Field Type Description
description string
file string, required A valid flow file (YAML, at most 64 KiB); its own name doesn't count.
name string, required Letters, digits, '.', '_' and '-'; unique in the project. Names the flow's runs.

FlowInstance

One of a matrix step's instances.

Field Type Description
allowed_failure boolean It failed and its step's allow_failure allows that.
ended_at string (date-time)
exit_code integer
index integer, required 0-based, in combination order.
matrix array of object, required Its values in order, as written in the file.
message string
name string, required e.g. test (go=1.24, arch=amd64)
outputs array of RunOutput
run FlowStepRun A step's (or instance's) latest attempt.
started_at string (date-time)
state one of waiting, running, succeeded, failed, skipped, cancelled, rejected, required

FlowRun

A run of a flow file. file, params, stages and steps are only in a single flow run, not in lists.

Field Type Description
attempt integer From 1; each partial re-run makes the next.
cancel_requested_at string (date-time)
concurrency_group string Its file's concurrency group, filled in.
created_at string (date-time), required
created_by object, required
ended_at string (date-time)
file string The flow file as started.
flow object The stored flow and version the flow run ran, if any.
gating one of needs, stages How its steps wait. needs, the default, starts a step with needs once they have ended; stages starts each stage once the one before has ended. Only on a single flow run.
git any The commit a Git-triggered flow run is for; each step's run gets it.
id ID, required
includes array of object The files the flow file included, as read when it started, by path.
name string, required
number integer (int64), required Per project, from 1.
outputs array of object Only on a single ended flow run whose file has outputs:: each filled in from its steps' outputs, by name. A step output that wasn't there is empty, with a note.
params map of string The values the flow's parameters had, as text (defaults included).
parent object The flow run whose flow step started this one as its child, if any.
project_id ID, required
schedule_id any The schedule that started the flow run.
stage integer, required The stage running (or reached), from 0.
stages array of object The file's stages in order (steps' stage indexes them).
started_at string (date-time) When it left its concurrency group's queue; created_at if it never queued, absent while queued.
state one of queued, running, succeeded, failed, timed_out, cancelled, required queued while it waits for its concurrency group; timed_out when the file's timeout_seconds passed.
steps array of FlowStep
timeout_seconds integer The file's timeout_seconds, counted from created_at; absent without one. Only on a single flow run.
trigger_id any The Git trigger that started the flow run.

FlowStep

Field Type Description
allowed_failure boolean It failed and its allow_failure allows that: it doesn't fail the flow run or make success false. A matrix step's when every failed instance's was allowed.
child object A flow step's child flow run, once started; its outputs are the step's.
ended_at string (date-time)
exit_code integer A matrix step's is its first failed instance's.
flow object A flow step's stored flow version, pinned at the start.
instances array of FlowInstance A matrix step's instances in combination order; a matrix step itself has no run.
message string Why a step was skipped or couldn't start, or that an output it takes from an earlier step wasn't there; a matrix step's counts its instances' results.
name string, required
needs array of string The steps it needs; with gating by needs it starts once they have ended.
outputs array of RunOutput The outputs of its latest attempt's run; a matrix step's are JSON arrays of its instances' values in combination order, null for one without it.
run FlowStepRun A step's (or instance's) latest attempt.
stage integer, required
started_at string (date-time)
state one of waiting, running, succeeded, failed, skipped, cancelled, rejected, required rejected: its run's deploy was rejected.
template object The template version the step was pinned to at the start.

FlowStepRun

A step's (or instance's) latest attempt.

Field Type Description
attempt integer, required
finished_at string (date-time)
id ID, required
number integer (int64), required
started_at string (date-time) When the run's process started.
state RunState, required waiting_approval: a run that deploys to a protected environment waits for its reviewers, then its wait timer. waiting: a run whose concurrency group has an earlier active run. awaiting_approval: a run of a pull request from a fork that waits until someone with git:approve approves its commit. rejected: a reviewer rejected the deploy, nobody decided in time (reason approval_expired), or its creator could no longer start it once approved (reason not_allowed). debugging: a debug run whose process exited and whose container is held for a shell; it then ends with the result its process had.
summary boolean The run wrote a summary, read from /runs/{run}/summary.
tests object The totals of the run's test reports, when it has some; the rest from /runs/{run}/tests.

FlowSummary

A stored flow.

Field Type Description
created_at string (date-time), required
description string, required The latest version's.
id ID, required
latest_version integer, required
name string, required
project_id ID, required
updated_at string (date-time), required

A new generic Git server link, with its signing secret, shown only now.

Field Type Description
account string
checkout_secret string A generic Git server's or Gitea link: the project secret it is checked out with; absent for none.
checkout_username string A generic Git server's link: the checkout's username; absent for git.
created_at string (date-time), required
default_branch string, required
external_id integer, required
full_name string, required
hook_url string A generic Git server's link: where its signed deliveries go.
html_url string, required
id ID, required
installation_id ID, required
private boolean, required
project_id ID, required
provider one of github, gitlab, generic, gitea, bitbucket Its connection's provider (in lists).
signing_secret string, required The HMAC key of the link's deliveries; shown only in this answer.
suspended boolean, required The installation is suspended on GitHub.

GitChoice

An installation the signed-in GitHub user can connect.

Field Type Description
connected_to one of ``, this, other, required Empty when not connected yet.
id integer, required
login string, required
type string, required

GitInstallation

A Git connection of an organization: a GitHub App installation, a GitLab instance's access token, a generic Git server or a Gitea or Forgejo instance's access token.

Field Type Description
account string, required The user or organization the app is installed on; for GitLab, the token's user; for a generic Git server, its name.
account_type string, required User or Organization; for GitLab, user or bot; for a generic Git server, server.
base_url string The GitLab instance or generic Git server; absent for GitHub.
created_at string (date-time), required
external_id integer, required The provider's installation id; for GitLab, the token's user id.
id ID, required
provider one of github, gitlab, generic, gitea, bitbucket, required
suspended boolean, required
token_expires_at string (date-time) When a GitLab token expires; absent without an expiry.

GroupAutoscale

Whether Forge starts and deletes the group's machines itself, with a machine provider of the group's owner. Changed with PUT /runner-groups/{group}/autoscale.

Field Type Description
autoscalers array of ID A shared group's autoscalers in the order they're tried; absent for others.
boot_minutes integer, required A machine that hasn't joined by then is deleted.
country_locations map of ID A shared group's picks of the Forge location for countries with several, by country code.
enabled boolean, required
idle_minutes integer, required A machine without a run for this long is drained and deleted.
min_machines integer, required Machines kept even without runs.
provider_id ID
settings object, required The provider's own settings, as the provider normalized them.
status string, required Why the group gets no machines, empty when it does: cap (the organization used its machine hours this month), unknown_kind (this Forge doesn't offer the provider's kind), or the provider's last error (settings, token, capacity, unavailable, failed).

GroupCountry

A country a shared group's autoscalers reach, and the Forge location its runners get.

Field Type Description
choices array of ID, required Forge's locations in the country.
chosen any The one its runners get; absent when there's none, or several and no pick.
code string, required ISO 3166-1 alpha-2.
name string, required
picked boolean, required The admin's pick (not the only one, nor the group's own).

ID

String (uuid).

IDToken

Field Type Description
audience string, required The token's aud: what the cloud's trust expects, e.g. sts.amazonaws.com.

InsertPosition

Where in the saved order (display only) to put it, counting from 0. Left out, a new entry goes last and an existing one stays where it is; past the end means last.

Integer.

InsightNamedStats

Field Type Description
cancelled integer, required
duration any, required From the process start to the end.
failed integer, required Failed, timed out or lost.
hints array of one of cpu_oversized, memory_oversized, memory_near_limit, required Right-sizing hints, from 3 measured runs: cpu_oversized and memory_oversized (runs peak at under half of what they reserve), memory_near_limit (a run peaked at 90 % or more of the reservation).
id ID
name string Empty once deleted.
outcomes map of integer, required Runs by outcome: succeeded, or state:reason (failed:exit_code, timed_out:run_timeout, cancelled:queue_timeout, …), the state alone without a reason.
price_micros integer (int64) Price in micro-euros; only when the report's prices is true.
pull any, required Pulling the image.
queue any, required From creation to placement on a runner.
runner_seconds number, required Runner time as billed (from placement to the end).
runs integer, required
succeeded integer, required
use object, required What runs reserved against what they used (runs whose runner reported it; memory needs a run long enough for a sample).

InsightStats

Field Type Description
cancelled integer, required
duration any, required From the process start to the end.
failed integer, required Failed, timed out or lost.
hints array of one of cpu_oversized, memory_oversized, memory_near_limit, required Right-sizing hints, from 3 measured runs: cpu_oversized and memory_oversized (runs peak at under half of what they reserve), memory_near_limit (a run peaked at 90 % or more of the reservation).
outcomes map of integer, required Runs by outcome: succeeded, or state:reason (failed:exit_code, timed_out:run_timeout, cancelled:queue_timeout, …), the state alone without a reason.
price_micros integer (int64) Price in micro-euros; only when the report's prices is true.
pull any, required Pulling the image.
queue any, required From creation to placement on a runner.
runner_seconds number, required Runner time as billed (from placement to the end).
runs integer, required
succeeded integer, required
use object, required What runs reserved against what they used (runs whose runner reported it; memory needs a run long enough for a sample).

InsightsReport

Field Type Description
classes array of any, required By runner kind (shared, own, none: never reached a runner) and, on shared runners, class.
days array of any, required Every day of the range, oldest first.
flow_steps array of any, required Runs of flow steps, by stored flow (none for flow files) and step.
from string (date), required
prices boolean, required Whether stats carry price_micros (the caller has billing:manage).
projects array of InsightNamedStats By project (organization reports only).
sources array of any, required By how runs started, most runs first: web, cli, api, retry (automatic), user and service_account (runs from before Forge recorded more), or a schedule, trigger or flow with its id and name (no name once deleted; no id for a flow from a file).
templates array of InsightNamedStats, required By template, most runs first; no id for runs without one.
to string (date), required
total InsightStats, required

Invoice

Field Type Description
buyer any, required The billing details when issued; only the name without them.
id ID, required
issued_at string (date-time), required
kind one of monthly, change, required monthly, or change for an upgrade's prorated difference.
lines array of InvoiceLine Only when getting one invoice.
number string, required Gapless per year, e.g. FORGE-2026-000042.
paid_at string (date-time), required
pdf boolean, required The PDF is ready for download.
period string, required The month (YYYY-MM) whose plan fee it bills.
seller object, required
status one of open, paid, failed, void, required open until charged (or without a payment method), paid, or failed (retried later).
subtotal_cents integer (int64), required
tax_cents integer (int64), required As the payment provider quoted it.
total_cents integer (int64), required

InvoiceLine

Field Type Description
amount_cents integer (int64), required
description string, required
kind one of plan_fee, overage, proration, required
quantity integer (int64), required
unit_price integer (int64), required In cents / unit_price_scale.
unit_price_scale integer (int64), required The unit price is in cents / unit_price_scale. Every line Forge writes uses 1.

JoinToken

Field Type Description
created_at string (date-time), required
created_by_name string, required
expires_at string (date-time), required
id ID, required

LegalDocument

Field Type Description
html string, required Rendered from the operator's Markdown text.
kind one of terms, aup, required
title string, required
version string, required

Location

Where runners stand (plan §2.2a).

Field Type Description
country string, required ISO 3166-1 alpha-2, upper case.
id ID, required
name string, required
runners integer (int64), required Runners in it, not counting revoked ones.
slug string, required

LogRecord

One line of a run's output.

Field Type Description
c object On a Forge line where one of the run's commands starts or ends; the output between a command's start and end is its own. A command's output can't produce these.
l string, required The line without its newline.
p boolean The line was too long and continues in the next record of this stream.
s one of out, err, forge, required stdout, stderr, or a note from Forge
t string (date-time), required When the line was written.

Machine

A machine Forge started for an autoscaled group.

Field Type Description
created_at string (date-time), required
delete_reason string, required Why Forge deleted it: idle, boot_timeout, orphan, group_deleted, autoscale_off, runner_gone, create_failed.
error string, required A short code (boot_timeout, capacity, …), never the provider's message.
gone_at string (date-time)
id ID, required
joined_at string (date-time)
location_id any The Forge location its runner gets (shared groups on autoscalers).
name string, required
runner_id ID
state one of creating, booting, running, deleting, gone, required
where object A shared group's machine on the platform's autoscalers - where it runs.

MachinePlace

Where a shared group starts machines: one autoscaler at one of its locations, in the order they're tried, with the autoscaler's last status.

Field Type Description
autoscaler string, required
autoscaler_id ID, required
cooldown_until string (date-time)
country string, required
error string, required A short code (capacity, quota, unavailable, token, failed), never the cloud's message.
location string, required The cloud's location, e.g. nbg1; empty when the cloud couldn't be asked.
location_name string, required
machines integer, required
state one of ready, cooling, error, no_image, image_building, image_failed, waiting, removed, required ready; cooling (after a capacity, quota or availability error, until cooldown_until); error (see error); no_image (no runner image there yet); image_building (its first runner image is being built); image_failed (that build failed, error has its code; it's retried later); waiting (not set up yet: autoscaling is off, or the autoscaler hasn't run); removed (left the group, its machines are being retired).

MachineProvider

Where Forge starts machines for autoscaled groups, with the owner's API token for it. The token is write-only: it is never returned.

Field Type Description
created_at string (date-time), required
created_by_name string, required
groups integer, required Groups that autoscale with it.
id ID, required
kind string, required One of the kinds this Forge offers (the list's kinds).
name string, required
updated_at string (date-time), required

Me

Field Type Description
account_url string Users only; their account page at the login service.
api_keys_url string Users only; where they create personal API keys (ak_…) that act as them in this API and in forge login.
csrf_token string Only for browser sessions; send it as X-CSRF-Token.
display_name string
email string
email_verified boolean, required
id ID, required
kind one of user, service_account, required
maintenance object Set while maintenance mode is on.
open_abuse_reports integer (int64) Platform admins only, and only when there are any; the open abuse reports.
open_contact_messages integer (int64) Holders of platform:support only, and only when there are any; the website's open contact messages.
organizations array of Organization, required
orgs_url string Users only; their organizations at the login service, where they create a team organization. Its members who are given Forge appear here.
platform_admin boolean, required The user holds a platform role, so the platform admin applies to them; what they may do there depends on the role.
platform_permissions array of string Users with a platform role: the platform permissions they hold through it (limited by an API key's scopes), so the platform admin shows only what they may do. Absent without any.
recovery boolean Forge runs in recovery mode: only the recovery admins sign in, and the web app shows only the Recovery screens.
service_account object Only for service accounts; the project they belong to.
terms_accepted boolean, required Whether the caller accepted the current legal documents. While false, the organizations list is empty and other endpoints answer 403 terms_required.
username string

Member

Field Type Description
display_name string, required
email string Only shown to callers with member:manage.
joined_at string (date-time), required
role_id ID, required
user_id ID, required
username string, required

OrderInput

The saved order of a scope's variables or secrets (display only).

Field Type Description
order array of string, required Every name of the scope, each once, in the new order.

Organization

Field Type Description
id ID, required
kind one of personal, team, required
managed_url string Set for an organization from the auth service: its members, their roles, its name and its deletion are managed there, at this page; Forge's endpoints for them answer 409 managed_by_auth_service.
name string, required
permissions array of Permission, required What the caller may do in this organization (the server still checks).
slug string, required
support_access array of object Platform admins who may read the organization right now, granted by its owners. A platform admin's own granted organizations are listed in /me too.
suspended object Set while the organization is suspended: it is read-only, only reading, deleting and billing are allowed. billing: suspended for an unpaid invoice, lifted once it is paid.

OverviewStatus

An Overview's status row. Run counts cover the projects whose runs the caller may read.

Field Type Description
awaiting_approval integer, required
failed_24h integer, required Runs that failed, timed out or were lost in the last 24 hours.
next_fire object The next fire of an enabled schedule; absent when none is due.
queued integer, required
runners object, required The owner's own runners (an organization's include its projects' that the caller may read).
running integer, required Runs on a runner (scheduled, pulling, starting, running).

Permission

String.

PermissionInfo

Field Type Description
levels array of one of org, project, required Where the permission applies; project permissions in an org role apply to all projects.
name Permission, required

PlacedSecret

A secret a level can use, from the source a run would take it from, with where it sits in the level's merged list. An organization secret limited to other projects isn't listed, and on a project's or environment's list its projects are left empty.

Field Type Description
below SecretPlace The secret a secret overrides directly.
created_at string (date-time), required
current_version integer, required The version runs get.
description string, required
flows array of ID, required Stored flows whose flow runs' steps may use the secret; empty means no restriction by flow. With templates too, a run from either will do. A deleted flow stays listed.
group string The group it comes from, when source is group.
latest_version integer, required
layer integer, required Its source's place in the chain, lowest first; a source's secrets share it.
lost boolean, required The current value was lost when the key service was restored from a backup; runs that need it fail until a new value is set.
name string, required
position integer, required Its place in the saved order; lists come in it.
projects array of ID, required Projects that may use an organization secret; empty means all.
runner_labels map of string, required Labels a runner must have to receive the secret (besides being the owner's own).
source SecretLevel, required
templates array of ID, required Templates whose runs may use the secret; empty means any run. Runs not started from one of them (ad hoc, another template, a schedule of another template) can't use it. A deleted template stays listed, so the secret doesn't become usable by everyone. With flows too, a run from either will do.
updated_at string (date-time), required
via one of org, project, environment What brought that group in: org (included in every project), or the project or environment it is attached to; absent in a group's own view.

PlacedVariable

A resolved variable with where it sits in a level's merged list: inherited values first, by source, each source in its saved order; a level's own value that overrides an inherited one in that one's place.

Field Type Description
below VariablePlace The definition a value overrides directly.
group string The group the value comes from, when source is group.
layer integer, required Its source's place in the chain, lowest first; a source's values share it.
name string, required
overrides array of VariableLevel Levels above that define the name too.
position integer, required Its place in its source's saved order.
source VariableLevel, required
value string, required After ${NAME} references are expanded.
via one of org, project, environment What brought that group in: org (included in every project), or the project or environment it is attached to; absent in a group's own view.

Plan

Field Type Description
classes array of string Slugs of the runner classes its organizations' runs may use on shared runners; empty (or left out of a request) for all. Always in responses. 422 if one doesn't exist.
created_at string (date-time), required
credit_cents integer, required Usage included each month, on shared and own runners, in euro cents.
default boolean, required New organizations start on it.
description string, required
hidden boolean, required
id string (uuid), required
max_retention_days integer, required Caps log and artifact retention; null keeps the platform's bounds.
name string, required
overage boolean, required Usage above the credit is billed (at the class rates, and the own-runner rate); false stops new runs once the credit is used: on shared runners, and on own runners too when they cost.
own_micros_per_minute integer, required The platform rate for runs on the organization's own (self-hosted) runners, in micro-euros per minute they occupy a runner, whatever their size.
price_cents integer, required Monthly fee in euro cents.
quotas QuotaOverrides, required
slug string, required
subscribers integer, required Organizations on the plan (platform admins only; 0 otherwise).
updated_at string (date-time), required
version integer, required The current version.

Project

Field Type Description
created_at string (date-time), required
default_class_id any The runner class runs get when their spec names none; absent for the platform's default.
description string, required
honor_skip_markers boolean A push or pull request whose head commit's message has [skip ci], [ci skip], [no ci], [skip forge] or [forge skip] fires none of the project's triggers. On by default; manual runs ignore the markers. Always sent.
id ID, required
name string, required
organization_id ID, required
permissions array of Permission Only on single-project responses; what the caller may do in the project.
runner_pools RunnerPools, required Which runners the project's runs may use: all = the project's, its organization's and shared runners; no_shared = the project's and its organization's; project_only = the project's own.
slug string, required

ProjectMember

Field Type Description
display_name string, required
email string Only shown to callers with member:manage.
joined_at string (date-time), required
org_role_id ID, required
role_id ID, required
user_id ID, required
username string, required

QuotaLimits

Field Type Description
autoscale_machine_hours integer, required Hours a month the machines Forge starts for the organization's autoscaled runner groups may run.
cache_bytes integer (int64), required What each project's caches may take; past it the least recently used entries go.
cache_days integer, required Days a cache entry is kept unused.
debug_keep_seconds integer, required The longest a debug run's container may be kept for a shell.
flow_step_runs integer, required Step runs a flow run may have, each matrix combination counted.
kept_bytes integer (int64), required What the organization's kept runs may hold, their logs and artifacts.
matrix_combinations integer, required Combinations (runs) a flow step's matrix may have.
matrix_keys integer, required Keys a flow step's matrix may have, include's added ones counted.
projects integer, required
queued_runs integer, required
runners integer, required The organization's and its projects' runners.
schedules integer, required
shared_cpu_millis integer, required Per run on shared runners.
shared_memory_bytes integer (int64), required Per run on shared runners.
shared_run_seconds integer, required Largest run timeout on shared runners.
shared_runs integer, required Runs at once on shared runners.
triggers integer, required

QuotaOverrides

Field Type Description
autoscale_machine_hours integer
cache_bytes integer (int64)
cache_days integer
debug_keep_seconds integer
flow_step_runs integer
kept_bytes integer (int64)
matrix_combinations integer
matrix_keys integer
projects integer
queued_runs integer
runners integer
schedules integer
shared_cpu_millis integer
shared_memory_bytes integer (int64)
shared_run_seconds integer
shared_runs integer
triggers integer

Quotas

Field Type Description
can_write boolean, required The caller may change the overrides (platform:billing).
defaults any, required The platform defaults with the plan's values over them.
limits QuotaLimits, required
overrides QuotaOverrides, required
plan any, required The values the organization's plan sets.
usage object, required

Region

A named set of countries, for residency policies.

Field Type Description
countries array of string, required
id ID, required
name string, required
slug string, required

Registry

An image registry. No endpoint returns a login.

Field Type Description
created_at string (date-time), required
description string, required
host string, required host or host:port, e.g. ghcr.io; docker.io for Docker Hub. Fixed at creation.
last_test any, required The latest login test; null before the first.
name string, required
projects array of ID, required Projects that may use an organization registry; empty means all.
pull_login any, required Set when it has a login for pulling; null without.
push_login any, required Set when it has a login for pushing; null without.
runner_labels map of string, required Runners its logins may be sent to have all these labels.
test_repository string, required A repository the login tests check too, e.g. acme/app; empty for none.
updated_at string (date-time), required

RegistryCheck

Field Type Description
message string
private boolean forge-server may not reach the host: it is on a private network.
result one of ok, unauthorized, unreachable, tls_error, error, required

RegistryInput

Field Type Description
description string
host string Required for a new registry; it can't change.
projects array of ID Organization registries only.
pull_login any Replaces the pull login; left out, it is kept.
push_login any Replaces the push login; left out, it is kept.
remove_pull_login boolean
remove_push_login boolean
runner_labels map of string
test_repository string
untested boolean Save even though the test fails; audited.

RegistryTest

A login test: each login given (or, with none, the registry itself) against the /v2/ endpoint, and with a test repository whether it may pull from it, or push to it.

Field Type Description
at string (date-time), required
from one of server, runner, required Where it was tested from: forge-server, or (for a host forge-server may not reach) one of the owner's online runners with the registry's runner labels.
pull RegistryCheck
push RegistryCheck
registry RegistryCheck
runner string The runner's name, when tested from a runner.
untested boolean It didn't pass, and the change was saved anyway.

RenameOrganization

Field Type Description
name string, required

Repository

A repository linked to a project.

Field Type Description
account string
checkout_secret string A generic Git server's or Gitea link: the project secret it is checked out with; absent for none.
checkout_username string A generic Git server's link: the checkout's username; absent for git.
created_at string (date-time), required
default_branch string, required
external_id integer, required
full_name string, required
hook_url string A generic Git server's link: where its signed deliveries go.
html_url string, required
id ID, required
installation_id ID, required
private boolean, required
project_id ID, required
provider one of github, gitlab, generic, gitea, bitbucket Its connection's provider (in lists).
suspended boolean, required The installation is suspended on GitHub.

Residency

An organization's or project's own residency rules. Runs only go to runners whose location is in an allowed country; a project's rules narrow its organization's.

Field Type Description
can_lock boolean, required For an organization: the caller is a platform admin and may change and lock it (in Forge's admin), locked or not.
can_write boolean, required
countries array of string, required
effective array of string, required The countries runs may go to; null for anywhere.
inherited array of string For a project, the countries its organization allows; null or absent for anywhere.
locked boolean, required Platform admins locked the organization's policy.
regions array of string, required

ResidencyPolicy

Rules of a residency policy; no regions and no countries mean anywhere. Bad rules answer 422 unknown_country or unknown_region with the unknown codes or slugs as the message, or too_many_rules with the limit (50 regions and countries together).

Field Type Description
countries array of string ISO 3166-1 alpha-2 codes.
regions array of string Region slugs (see GET /locations).

ResolvedVariable

Field Type Description
group string The group the value comes from, when source is group.
name string, required
overrides array of VariableLevel Levels above that define the name too.
source VariableLevel, required
value string, required After ${NAME} references are expanded.
via one of org, project, environment What brought that group in: org (included in every project), or the project or environment it is attached to; absent in a group's own view.

Resources

Field Type Description
cpu_millis integer (int64), required
disk_bytes integer (int64), required
memory_bytes integer (int64), required

RetentionSettings

Field Type Description
can_write boolean, required The caller may change it (org:manage).
days integer, required The organization's own choice; null for the platform default.
default_days integer, required
effective_days integer, required What applies now.
max_days integer, required
min_days integer, required

Role

Field Type Description
builtin boolean, required
description string, required
id ID, required
name string, required
permissions array of Permission, required

Run

Field Type Description
annotations array of RunAnnotation Only when getting one ended run whose log had some - its ::error, ::warning and ::notice lines, at most 50 in log order.
annotations_dropped integer How many more annotations its log had past 50.
approval_due_at string (date-time) While waiting_approval for reviewers: when it is rejected if nobody decides.
attempt integer, required 1 for a first run; later attempts are retries of retry_of.
caches array of RunCacheReport Only when getting one ended run with caches - how each was restored and saved, in the spec's order.
cancel_requested boolean, required
class object The runner class the run asked for (its spec's, else its project's default, else the platform's) and, once placed on a shared runner, the class version it is priced at.
commands array of RunCommandResult Only when getting one run that has commands - their results, in the spec's order.
concurrency_group string Its spec's concurrency group, filled in.
created_at string (date-time), required
created_by object, required
data_expired_at string (date-time) Set once retention deleted the run's logs and artifacts (410 on reading them).
debug object Set on a debug run - how long its container is held once its process exited, and when.
debugging_at string (date-time) When a debug run's container was held for a shell.
exit_code integer
finished_at string (date-time)
flow_instance integer Its matrix step's instance, 0-based.
flow_run_id any The flow run the run is a step of.
flow_step string Its step in the flow run.
git any Only when getting one run - the commit a Git-triggered run is for.
id ID, required
image string, required
kept_at string (date-time) Set while the run is kept from retention.
kept_bytes integer (int64) While kept: what the run held when kept, counted against the kept_bytes quota.
location object Where the run was placed (its runner's location then); absent until placed.
max_attempts integer The template's retry policy's, when it has one.
message string, required
name string, required
number integer (int64), required Per project, from 1.
organization_id ID, required
output_notes array of string What the runner or the server left out of the outputs, and why (names, never values).
outputs array of RunOutput Only when getting one ended run that wrote outputs to $FORGE_OUTPUT, in the order first written. Values never hold the run's secrets: the runner leaves those out.
params map of string The values the template's parameters had, as text (defaults included).
project_id ID, required
pull object Only while the run is pulling: how far the image download is, updated at most every 2 s. The total grows while the runner learns about the image's layers.
pushes array of RunPush Only when getting one run that pushes - its pushes, in the spec's order.
queue_hint one of no_runner Only when getting one queued run - no_runner when no runner or runner group the project may use could have the labels the run and its secrets need, so it waits until its queue time runs out. Runners that never connected and groups that don't fix a label otherwise count as possible.
queued_at string (date-time) When it left waiting (for its group or approval) for the queue; its queue timeout counts from then.
reason string, required Why the run is in its state, e.g. cancelled, queue_timeout.
release_at string (date-time) While waiting_approval once approved (or with only a wait timer): when its wait timer ends and it joins the queue.
retried_as object Only when getting one run - the run that is its next attempt.
retry_at string (date-time) Only when getting one run - when its next attempt is due.
retry_of any The first attempt, on retries.
runner_id ID
schedule_id any The schedule that started the run.
scheduled_at string (date-time)
services array of RunService Only when getting one run that has services - their states, by name.
spec RunSpec, required Everything needed to start a run. Omitted resources and timeouts get defaults; the stored spec has them filled in. Env values are stored and shown as they are: name secrets in secrets instead.
started_at string (date-time)
state RunState, required waiting_approval: a run that deploys to a protected environment waits for its reviewers, then its wait timer. waiting: a run whose concurrency group has an earlier active run. awaiting_approval: a run of a pull request from a fork that waits until someone with git:approve approves its commit. rejected: a reviewer rejected the deploy, nobody decided in time (reason approval_expired), or its creator could no longer start it once approved (reason not_allowed). debugging: a debug run whose process exited and whose container is held for a shell; it then ends with the result its process had.
template object Set when the run was launched from a template; the template may since be deleted.
trigger_id any The Git trigger that started the run.
usage object Only when getting one finished run that reached a runner. price_micros is what it cost in micro-euros: its occupied time times its reserved cores, memory and disk at the rates of the class version it was placed at, plus its egress per GB; 0 on own runners. Traffic is what its network namespace received and sent (with its services and checkout), as its runner reported it.
wait_reason one of no_runner, budget, shared_limit, credit, features, residency, labels, arch, too_big, busy While the run is queued, why the scheduler couldn't place it yet: a budget of its organization or project is reached (budget); the plan's usage credit is used up and its own runners cost too, so no runner may take it (credit); no runner it may use is online; only shared runners could take it and the organization's limits or credit don't let it now; none can run what it needs; none where its residency policy allows; none with its labels; none of an arch its image has; it needs more than any of them has; or they're full now. Absent before the first try and once placed.

RunAnnotation

A ::error, ::warning or ::notice line of the run's (masked) output, in GitHub Actions' syntax. It is what the run printed, so treat it as untrusted text.

Field Type Description
col integer
command string The command whose output it was in.
end_col integer
end_line integer
file string As the run printed it.
level one of error, warning, notice, required
line integer
message string, required
title string

RunApproval

A reviewer's decision on a run that deploys to an environment.

Field Type Description
by object, required
comment string, required
created_at string (date-time), required
decision one of approved, rejected, required
environment_id ID, required
id ID, required

RunArtifactEntry

An artifact of a run spec: its path, or the path with its own expiry.

String or object.

RunCache

A cache of the run. key and restore_keys may use ${hashFiles('glob', …)} (SHA-256 over the matching files below /workspace, in path order), ${git.branch}, ${git.ref} and ${runner.arch}, filled in by the runner, and in templates ${params.*}; $${ is a literal ${.

Field Type Description
key string, required At most 255 bytes once filled in; the first save of a key in a scope wins.
paths array of string, required Absolute directories or files, not below /proc, /sys, /dev or /run, not overlapping another path of the run's caches.
policy one of pull-push, pull, push Restore and save, only restore, or only save.
restore_keys array of string Prefixes tried in order when key has no entry; the newest entry matching wins.
save one of on_success, always Save once the process exited 0, or whatever its exit (not with policy pull).

RunCacheReport

How one of a run's caches went, as its runner reported it.

Field Type Description
key string, required The key filled in.
note string
restore one of hit, partial, miss, failed, skipped, required hit is the key's own entry, partial a restore key's; skipped for policy push.
restore_bytes integer (int64), required
restore_seconds number, required
restored_key string The restored entry's key, on a partial restore.
save one of saved, failed, skipped, required skipped for policy pull, a failed run without save always, a key saved already, or a fork's run (the note says which).
save_bytes integer (int64), required
save_seconds number, required

RunCheckout

How a run with Git context checks out its commit.

Field Type Description
depth integer Commits to fetch; default 1, 0 the full history.
fetch_tags boolean Fetch the repository's tags too.
lfs boolean Fetch the Git LFS files.
path string Where it goes: /workspace (default) or a directory inside it, which is then the default working dir.
repositories array of object More of the project's linked repositories to clone, each into a directory of its own, on the same connection as the run's own repository. Also for runs without Git context. A fork's runs skip them. Their runs go only to runners of protocol 13.
sparse array of string Cone-mode directories relative to the repository's root; only they and the root's files are checked out.
submodules boolean or one of recursive false (default), true (one level) or "recursive". Only the repository's host gets the token.

RunCommand

Field Type Description
always boolean Run even after an earlier command failed, e.g. cleanup or reports.
env map of string Added to the run's env for this command only. Values may reference the run's variables as ${NAME}. Can't name a secret the run gets as env.
name string Unique in the run. Default (and stored as) its position, 1, 2, …
run string, required The script, the last argument of the run's shell. Multi-line allowed.
timeout_seconds integer (int32) At most the run's run_seconds. When it passes the command is stopped and the run ends timed_out.

RunCommandResult

One of a run's commands. pending: not started (yet); running; succeeded; failed: exited non-zero (exit_code) or couldn't be started; timed_out: stopped at its own timeout; skipped: not run because an earlier command failed; cancelled: stopped or not run because the run was stopped or ended. Times are the runner's.

Field Type Description
ended_at string (date-time)
exit_code integer
name string, required
started_at string (date-time)
state one of pending, running, succeeded, failed, timed_out, skipped, cancelled, required

RunEvent

Field Type Description
data object
id ID, required
message string
occurred_at string (date-time), required
reason string
state RunState waiting_approval: a run that deploys to a protected environment waits for its reviewers, then its wait timer. waiting: a run whose concurrency group has an earlier active run. awaiting_approval: a run of a pull request from a fork that waits until someone with git:approve approves its commit. rejected: a reviewer rejected the deploy, nobody decided in time (reason approval_expired), or its creator could no longer start it once approved (reason not_allowed). debugging: a debug run whose process exited and whose container is held for a shell; it then ends with the result its process had.
type string, required run.<state> for state changes, e.g. run.queued; run.cancel_requested; run.waiting when a queued run's wait reason changes (reason is the Run's wait_reason); service.ready, service.exited and service.failed for a service (data.service names it, data.exit_code if any).

RunOutput

One of a run's outputs.

Field Type Description
name string, required
value string, required

RunPush

One of a run's pushes. pending until the runner pushed it or the run failed before.

Field Type Description
digest string The pushed index's or manifest's digest.
from string, required
message string, required Why it failed.
pushed_at string (date-time)
references array of string, required host/repository:tag for each tag.
registry string, required
repository string, required host/repository
state one of pending, pushed, failed, required

RunPushSpec

Field Type Description
from string, required Absolute path in the run's filesystem of an OCI image layout (a directory) or a tarball of one, e.g. from docker save, buildx type=oci or kaniko --tarPath.
image string, required The repository below the registry's host, e.g. acme/app.
registry string, required The registry to push to, by name.
tags array of string, required Tags to push it with. They may use ${git.sha}, ${git.short_sha} (7 characters), ${git.branch}, ${git.tag} and ${run.number}, filled in at creation (characters a tag can't have become -), and in templates ${params.*}. A retry pushes the same tags as its first attempt.

RunService

One of a run's services. pending: not started (yet); starting: started, not ready; ready; exited: ended on its own while the run went on; failed: couldn't be pulled, started or made ready (message says why; the run failed); stopped: stopped when the run ended.

Field Type Description
ended_at string (date-time)
exit_code integer
log_bytes integer (int64), required How much of its log the server has.
message string, required
name string, required
ready_at string (date-time)
state one of pending, starting, ready, exited, failed, stopped, required

RunSpec

Everything needed to start a run. Omitted resources and timeouts get defaults; the stored spec has them filled in. Env values are stored and shown as they are: name secrets in secrets instead.

Field Type Description
args array of string Replaces the image's command. At most 256 items with command.
artifacts array of RunArtifactEntry Absolute paths uploaded as artifacts once the process has ended (whatever the outcome): a file as it is, a directory as .tar.gz. They must be on the container's own filesystem, not below /proc, /sys, /dev or /run. All artifacts of a run together may take 1 GiB by default. An entry may be {path, expire_in_days} to be deleted that many days after it was stored, sooner than the run's data retention.
caches array of RunCache Directories restored before the process and saved after it, keyed by content. Container and VM runs, not compose runs. A miss or a failed restore or save is a note, not a failure.
checkout boolean or RunCheckout For runs with Git context (from a trigger): false skips checking out the commit. By default it is cloned into /workspace, which is then the default working dir, with a short-lived read-only token the run's container never sees. An object sets how; its runs go only to runners of protocol 12.
class string The runner class (slug, see GET /classes) of the shared runners the run may go to; unset: the project's default class, else the platform's. 422 if no such class; 422 class_not_allowed if the organization's plan doesn't allow it and no own runner could take the run.
command array of string Replaces the image's entrypoint.
commands array of RunCommand Commands run one after another in the same container, each under shell with its run as the last argument, sharing the filesystem, env, secrets and services; the first failure stops the rest, except always ones. Replaces the image's entrypoint; can't be used with command or args, or in a compose run. In a VM run with init: image they start once the system is up. At most 48 KiB of scripts together. Runs with commands go only to runners that run them. A command's $FORGE_ENV file takes NAME=value lines (or NAME<<DELIMITER, the value's lines, then the delimiter) that go into the following commands' env. A command that runs out of time fails the run as timed_out with reason command_timeout.
compose string Compose runs only: the compose file. Its services run in the VM with Docker; images are pulled there, with the registry's pull login as Docker's credentials for its host. Variables like ${NAME} come from the run's env and env secrets. Relative paths are under /compose.
concurrency Concurrency A concurrency group: of the project's runs in one group, one is active at a time. The group may use ${git.FIELD} and ${env.NAME} of the spec's env (and a template's ${params.NAME}); it is filled in when the run is created, at most 255 bytes.
env map of string The run's own variables, on top of the platform's, the organization's and the project's. Values may reference variables as ${NAME}; $${ is a literal ${. Stored as given; GET /runs/{run}/variables shows what the run got.
environment EnvironmentTarget The project's environment the run deploys to. The run is refused when the environment doesn't exist or its rules don't take it: its allowed branches and tags (a pull request's run matches none), runs without Git context when it doesn't allow them, and, until runs can wait for them, an environment that requires approval or a wait.
exit_from string Compose runs only, required. The service whose exit ends the run and gives its exit code.
id_tokens map of IDToken OIDC tokens the run gets, by name: $NAME is the path of a file holding a token for the audience, signed by the organization's issuer, which the runner rewrites before it expires. Given like secrets: not to a fork's run before approval (named in withheld_secrets), and a repository's run file may only ask for the audiences its trigger allows. A name can't also be in env or secrets.
image string Required, except for a compose run, where it is the image with Docker and Compose, by default Docker's official docker:dind pinned by Forge. Normalized on create, e.g. alpine becomes docker.io/library/alpine:latest.
init one of forge, image VM runs only. image boots the image's own init (/sbin/init, e.g. systemd) as PID 1 and runs the command once the system is up; the run ends with the command and the VM is powered off. Omitted or forge: Forge's init runs the command (stored as omitted).
labels map of string Labels a runner must have, e.g. location=eu-west, arch=arm64.
outputs array of string The old name of artifacts, still taken when creating a run or a template, never returned; not together with artifacts.
push array of RunPushSpec Images the run leaves in its files, pushed by the runner once the process exits 0 and the artifacts are collected; a failed push fails the run as push_failed. Needs registry:push on the project and a push login on each registry, pins it and, like secrets, limits the run to the organization's or project's own runners with the registry's runner labels. Runs of forks don't push.
registry string A registry (the project's, else the organization's) whose pull login pulls the image; its host must be the image's (a compose run's: for its compose file's images). Without it the image is pulled anonymously. Needs registry:pull on the project, pins the current pull login and, like secrets, limits the run to the organization's or project's own runners with the registry's runner labels.
reports object Test report files read once the process exited, whatever its state: absolute globs in the run's files (** any number of directories), at most 8 per format. The runner masks them like the log; together at most 100 files and 20 MiB. Container and VM runs, not compose runs; runners of protocol 15.
resources object
secrets map of object Secrets the run uses, by name: the project's secret, else the organization's (needs secret:use on the project). {} sets env NAME; {"file": "/path"} puts the value in a read-only in-memory file instead (not below /proc, /sys, /dev or /run/forge). The run pins each secret's current version and only goes to runners with the labels the secrets need: the organization's or project's own, or shared runners that sandbox each run.
services map of ServiceSpec Containers started next to the run before it, e.g. a database, by name: a DNS label other than localhost. They share the run's network, so a service listening on a port is reachable from the run (and the other services) as name:port; two services can't use the same port. The run starts once all are ready; a service that can't be pulled, started or made ready fails the run. They are stopped when the run's process ends. The run reserves (and is billed for) its own resources plus theirs.
shell array of string With commands only: the program and arguments each command's script is appended to. Default (and stored as) ["/bin/sh", "-e", "-c"].
timeouts object
type one of container, vm, compose, approval vm runs the image in a Firecracker VM of its own: the process is root on its own kernel. Only runners labelled vm=true take VM runs; VM runs can't have services. compose runs compose with Docker in such a VM: the run's result is exit_from's. Omitted or container: a container (stored as omitted). approval is a flow's approval step: it holds only its environment, runs nothing and succeeds once approved; a flow file writes it as approval: {environment: NAME}, and runs can't be created with it otherwise.
working_dir string

RunState

waiting_approval: a run that deploys to a protected environment waits for its reviewers, then its wait timer. waiting: a run whose concurrency group has an earlier active run. awaiting_approval: a run of a pull request from a fork that waits until someone with git:approve approves its commit. rejected: a reviewer rejected the deploy, nobody decided in time (reason approval_expired), or its creator could no longer start it once approved (reason not_allowed). debugging: a debug run whose process exited and whose container is held for a shell; it then ends with the result its process had.

One of waiting_approval, waiting, awaiting_approval, queued, scheduled, pulling, starting, running, debugging, succeeded, failed, timed_out, cancelled, lost, rejected.

RunTestCase

Field Type Description
class string
duration_ms integer (int64), required
file string
line integer
message string A failure's or skip's message and details, at most 4 KiB.
name string, required
status one of passed, failed, skipped, required
suite string

RunTestReport

Field Type Description
cases_dropped integer Cases past 50,000, counted in the totals but not kept.
coverage object Line coverage of all coverage files together, when the spec has any that could be read.
duration_ms integer (int64), required The cases' times added up.
failed integer, required Failures and errors.
failures array of RunTestCase, required The failed cases, at most 200, in report order.
files integer, required The report files read.
flaky array of RunTestCase, required Tests that failed in an earlier attempt of the run and passed in this one.
notes array of string, required What couldn't be read or was left out, and why (paths, never contents).
passed integer, required
skipped integer, required
slowest array of RunTestCase, required The 20 slowest cases that took any time, slowest first.
tests integer, required

RunUsageSeries

Field Type Description
containers array of object, required The run's own container (service "") and its services', by name.
reserved object, required What the run and its services reserved together, to compare with.

Runner

Field Type Description
active_runs integer, required Runs scheduled on the runner, pulling, starting or running.
allocatable Resources, required
arch string, required
auto_update boolean, required The runner updates itself from the release manager (forge-runner run --update-url).
cert_expires_at string (date-time)
class_id any A shared runner's class (see GET /classes); own runners have none.
created_at string (date-time), required
created_by_name string, required
draining boolean, required
group_id any The runner group it joined with a group key.
id ID, required
labels map of string, required
last_seen_at string (date-time)
location_id any, required Where the machine stands (see GET /locations).
name string, required
organization_id ID
os string, required
owner one of shared, org, project, required
project_id ID
protocol_version integer, required
status one of new, online, offline, unreachable, required new = never connected; online = seen in the last 30 s; offline = shut down and said goodbye; unreachable = stopped heartbeating without a goodbye.
update_error string Why the runner's last self-update failed, e.g. a signature that didn't verify.
usage object Only while online: what its runs use together, from the last heartbeat (CPU averaged over the last ~10 s, memory without reclaimable page cache, disk as the runs' writable layers and workspaces measured every 30 s), and its runs' disk and network per second at their latest samples (0 from older runners).
version string, required
version_status one of current, outdated, unsupported, required Compared with the server's release: outdated = one minor version behind (still accepted); unsupported = further behind, refused when it connects.

RunnerClass

A priced kind of shared runner.

Field Type Description
created_at string (date-time), required
default boolean, required The platform default: runs whose spec and project name no class get it.
description string, required
hardware string, required The machines, e.g. "AMD EPYC, NVMe".
id ID, required
limits RunnerClassLimits, required What each run on the class's shared runners may do per second; 0 is no limit. Not billed. Disk is what the run reads and writes, each of its services held to the same limits (for VM runs one bucket for both: the lower limit; Kata runs only get the network limits for now), network what it receives (in) and sends (out).
name string, required
rates RunnerClassRates, required Prices in micro-euros (1/1 000 000 euro).
runners integer (int64), required Its shared runners, not revoked (platform admins only; 0 otherwise).
slug string, required
updated_at string (date-time), required
version integer, required The current version.

RunnerClassLimits

What each run on the class's shared runners may do per second; 0 is no limit. Not billed. Disk is what the run reads and writes, each of its services held to the same limits (for VM runs one bucket for both: the lower limit; Kata runs only get the network limits for now), network what it receives (in) and sends (out).

Field Type Description
disk_read_bps integer (int64), required Bytes per second.
disk_read_iops integer (int64), required Operations per second.
disk_write_bps integer (int64), required Bytes per second.
disk_write_iops integer (int64), required Operations per second.
net_in_bps integer (int64), required Bytes per second.
net_out_bps integer (int64), required Bytes per second.

RunnerClassRates

Prices in micro-euros (1/1 000 000 euro).

Field Type Description
cpu integer (int64), required Per CPU core per hour.
disk integer (int64), required Per GiB of disk per hour.
egress integer (int64), required Per GB sent out of the run.
memory integer (int64), required Per GiB of memory per hour.

RunnerGroup

Runners that join with a reusable group key: autoscaled or cloud-init machines. Each member is its own runner with its own certificate; it takes the group's owner, labels (and group=<name>), location and class.

Field Type Description
allowed_networks array of string, required CIDRs joins must come from; empty for any.
autoscale GroupAutoscale, required Whether Forge starts and deletes the group's machines itself, with a machine provider of the group's owner. Changed with PUT /runner-groups/{group}/autoscale.
class_id any A shared group's class.
cleanup_minutes integer, required Members offline this long leave the group.
created_at string (date-time), required
description string, required
ephemeral boolean, required Each member takes one run and then leaves.
id ID, required
io_limits any, required What each run on its members may do per second; 0 is no limit. On a shared runner its class's limits hold too: the lower of the two. Members of protocol 17 and older get no runs while any limit is set.
kind one of ``, sandbox, container, vm, required A shared group's: sandbox (Kata microVMs; machine types need KVM), container (runc, trusted work) or vm (a fresh machine per run, : always ephemeral; takes only VM runs that ask for one of its labels, each reserving and billed as the whole machine; machine types need KVM). Empty for other groups.
labels map of string, required Set on every member over what the runner reports.
location_id ID, required
max_runners integer, required Members at most; joins beyond are refused.
members integer, required Runners in the group now.
name string, required
organization_id ID
owner one of shared, org, project, required
project_id ID
runs_use_metadata boolean, required Runs on members may reach the cloud metadata service (and so read the key in user-data).
updated_at string (date-time), required

RunnerGroupInput

Field Type Description
allowed_networks array of string
class_id any Shared groups only; default the platform's default class.
cleanup_minutes integer Default 30, or 5 for an ephemeral group.
description string
ephemeral boolean
io_limits any Each run's disk and network limits; none when left out.
kind one of sandbox, container, vm Shared groups only; default sandbox. vm makes the group ephemeral. Changing to sandbox or vm is refused (422) while the group lists an autoscaler without KVM.
labels map of string Not arch, sandbox, egress, vm or group, which runners report themselves.
location_id any Default the default location.
max_runners integer Default 10.
name string, required Unique among the owner's groups; members get the label group=<name>.
runs_use_metadata boolean

RunnerGroupKey

Field Type Description
created_at string (date-time), required
created_by_name string, required
expires_at string (date-time) Absent for a key that lasts until revoked.
id ID, required
last_used_at string (date-time) The last join with it.
name string, required

RunnerPools

Which runners the project's runs may use: all = the project's, its organization's and shared runners; no_shared = the project's and its organization's; project_only = the project's own.

One of all, no_shared, project_only.

Schedule

Field Type Description
blocked array of BlockedFire, required Fires in the coming week on days a budget closes; they will fail.
concurrency one of allow, skip, replace, required
created_at string (date-time), required
created_by object, required
cron string
description string, required
enabled boolean, required
env map of string, required
flow_id any A flow schedule's stored flow.
flow_name string
id ID, required
interval_minutes integer
last_fire_at string (date-time)
last_message string
last_outcome one of started, skipped, failed
last_run_id ID
missed one of skip, run_once, required
missed_max_age_seconds integer
name string, required
params map of any, required
project_id ID, required
service_account_id ID, required
service_account_name string Empty when the account was deleted.
source one of template, flow, required What the schedule launches, always at its latest version.
template_id any, required Null for a stored flow's schedule.
template_name string
timezone string, required
upcoming array of string (date-time), required The next fire times; empty while disabled.
updated_at string (date-time), required

ScheduleFire

What happened at one fire time; kept 30 days.

Field Type Description
fire_time string (date-time), required
fired_at string (date-time), required
flow_run_id any The flow run a stored flow's schedule started.
flow_run_number integer
message string, required Why it was skipped or failed, or missed fire times.
outcome one of started, skipped, failed, required
run_id ID
run_number integer

ScheduleInput

A schedule starts runs of its template's latest version, or flow runs of its stored flow's, as its service account. Give cron or interval_minutes. Everything is replaced on update; a changed timing, or enabling, counts the next fire time from now.

Field Type Description
concurrency one of allow, skip, replace When a run of the schedule is still active: start another (default), skip this fire, or cancel the active runs once the new one is queued.
cron string Five fields (minute hour day-of-month month day-of-week) or @hourly, @daily, @weekly, @monthly, @yearly, in timezone. Not @every or TZ=.
description string
enabled boolean Default true.
env map of string The schedule's level in the variable chain, above the template's except its locked entries.
interval_minutes integer Every so many minutes, counted from when it was saved.
missed one of skip, run_once Fire times more than a minute in the past (Forge was down, or the organization suspended) are skipped (default), or run_once starts one run for the latest of them if it is at most missed_max_age_seconds old.
missed_max_age_seconds integer Required for run_once.
name string, required Unique in the project.
params map of any Values for the template's or stored flow's parameters, checked against its latest version.
project_id any On create, the project an organization template's schedule runs in.
service_account_id any, required The project's service account the runs are started as; you must be able to grant its role.
timezone string An IANA time zone such as Europe/Amsterdam; default UTC.

Secret

A secret's metadata. No endpoint returns a secret's value.

Field Type Description
created_at string (date-time), required
current_version integer, required The version runs get.
description string, required
flows array of ID, required Stored flows whose flow runs' steps may use the secret; empty means no restriction by flow. With templates too, a run from either will do. A deleted flow stays listed.
latest_version integer, required
lost boolean, required The current value was lost when the key service was restored from a backup; runs that need it fail until a new value is set.
name string, required
position integer, required Its place in the saved order; lists come in it.
projects array of ID, required Projects that may use an organization secret; empty means all.
runner_labels map of string, required Labels a runner must have to receive the secret (besides being the owner's own).
templates array of ID, required Templates whose runs may use the secret; empty means any run. Runs not started from one of them (ad hoc, another template, a schedule of another template) can't use it. A deleted template stays listed, so the secret doesn't become usable by everyone. With flows too, a run from either will do.
updated_at string (date-time), required

SecretInput

Field Type Description
description string
flows array of ID Stored flows of the organization's projects (of the project, for a project secret).
position InsertPosition Where in the saved order (display only) to put it, counting from 0. Left out, a new entry goes last and an existing one stays where it is; past the end means last.
projects array of ID Organization secrets only.
runner_labels map of string
templates array of ID Templates of the organization's projects (of the project, for a project secret).
value string Adds a version and makes it current. Leave out to change only the settings; required for a new secret. (Registry logins are registries', not secrets.)

SecretLevel

One of org, group, project, environment.

SecretPlace

The secret a secret overrides directly.

Field Type Description
group string
layer integer, required
position integer, required
source SecretLevel, required

SecretVersion

Field Type Description
created_at string (date-time), required
created_by object, required
version integer, required

ServiceAccount

Field Type Description
active_tokens integer, required
can_manage boolean, required The caller may edit or delete the account and manage its tokens.
created_at string (date-time), required
created_by_name string, required
description string, required
id ID, required
name string, required
role_id ID, required

ServiceAccountInput

Field Type Description
description string, required
name string, required
role_id ID, required

ServiceAccountToken

Field Type Description
created_at string (date-time), required
created_by_name string, required
expires_at string (date-time), required
id ID, required
last_used_at string (date-time)
name string, required
prefix string, required The start of the token, to tell tokens apart.
scopes array of Permission, required Null when the token may do whatever the account's role allows.

ServiceSpec

Field Type Description
args array of string
command array of string
env map of string The service's own variables; it gets none of the run's otherwise. Values may refer to the run's variables as ${NAME}.
image string, required
ready object When the service is ready: port accepts a TCP connection, or command (run in the service) exits 0; with neither, the image's HEALTHCHECK if it has one, else once it has started.
registry string Like the run's registry, for this service's image.
resources object
secrets map of object Like the run's secrets, for this service only.
working_dir string

SetMemberRole

Field Type Description
role_id ID, required

Subscription

Field Type Description
classes array of string Slugs of the runner classes its organizations' runs may use on shared runners; empty (or left out of a request) for all. Always in responses. 422 if one doesn't exist.
credit_cents integer, required Usage included each month, on shared and own runners, in euro cents.
description string, required
latest boolean, required On the plan's current version.
max_retention_days integer, required Caps log and artifact retention; null keeps the platform's bounds.
name string, required
overage boolean, required Usage above the credit is billed (at the class rates, and the own-runner rate); false stops new runs once the credit is used: on shared runners, and on own runners too when they cost.
own_micros_per_minute integer, required The platform rate for runs on the organization's own (self-hosted) runners, in micro-euros per minute they occupy a runner, whatever their size.
pending object, required A downgrade scheduled for the 1st of next month.
plan_id string (uuid), required
plan_slug string, required
price_cents integer, required Monthly fee in euro cents.
quotas QuotaOverrides, required
started_at string (date-time), required
version integer, required

SubscriptionChange

Field Type Description
classes array of string Slugs of the runner classes its organizations' runs may use on shared runners; empty (or left out of a request) for all. Always in responses. 422 if one doesn't exist.
credit_cents integer, required Usage included each month, on shared and own runners, in euro cents.
description string, required
invoice_id any, required The upgrade's prorated invoice, charged right away; null otherwise.
latest boolean, required On the plan's current version.
max_retention_days integer, required Caps log and artifact retention; null keeps the platform's bounds.
name string, required
overage boolean, required Usage above the credit is billed (at the class rates, and the own-runner rate); false stops new runs once the credit is used: on shared runners, and on own runners too when they cost.
own_micros_per_minute integer, required The platform rate for runs on the organization's own (self-hosted) runners, in micro-euros per minute they occupy a runner, whatever their size.
pending object, required A downgrade scheduled for the 1st of next month.
plan_id string (uuid), required
plan_slug string, required
price_cents integer, required Monthly fee in euro cents.
quotas QuotaOverrides, required
started_at string (date-time), required
version integer, required

SupportGrant

Field Type Description
admin UserRef, required
decided_at string (date-time)
decided_by UserRef
ended_at string (date-time)
ended_by UserRef
expires_at string (date-time)
id ID, required
reason string, required
requested_at string (date-time), required
status one of requested, granted, declined, revoked, expired, required granted only while active.

Template

Field Type Description
allowed_versions array of integer, required The versions of an organization template its projects may run; empty allows all.
created_at string (date-time), required
description string, required The latest version's.
id ID, required
latest_version integer, required
locked_env array of string, required
name string, required
parameters array of TemplateParam, required
project_id any Absent for an organization's own template.
ref string, required How a flow file names it: the name, or @org/NAME for an organization template.
retry any
spec RunSpec, required Everything needed to start a run. Omitted resources and timeouts get defaults; the stored spec has them filled in. Env values are stored and shown as they are: name secrets in secrets instead.
updated_at string (date-time), required
version integer, required The version shown; description, spec, parameters and locked_env are its.
version_created_at string (date-time), required
version_created_by object, required

TemplateInput

Field Type Description
description string
locked_env array of string Names in spec.env that schedules and launches can't override.
name string, required Unique in the project.
parameters array of TemplateParam
retry any
spec any, required A run spec in which the image, command, args, working_dir, env values and label values may use ${params.NAME}; $${params. is a literal ${params.. In env values the substituted text can't add ${VAR} references. The env is the template's level in the variable chain, below the project's and above schedules and launches.

TemplateParam

Field Type Description
default string The value used when a launch gives none, as text ("3", "true"). A parameter has a default or is required, not both.
description string
name string, required Referenced as ${params.NAME}.
options array of string The allowed values of a choice (1 to 100).
required boolean
type one of string, number, boolean, choice, required

TemplateSummary

Field Type Description
created_at string (date-time), required
description string, required The latest version's.
id ID, required
latest_version integer, required
name string, required
project_id any Absent for an organization's own template.
ref string, required How a flow file names it: the name, or @org/NAME for an organization template.
updated_at string (date-time), required

TemplateVersion

Field Type Description
created_at string (date-time), required
created_by object, required
description string, required
version integer, required

Trigger

Field Type Description
branches array of string, required
concurrency one of allow, replace, required
created_at string (date-time), required
created_by object, required
description string, required
enabled boolean, required
env map of string, required
environments array of string, required The environments a file trigger's file may deploy to.
events array of one of push, tag, pull_request, merge_group, required
file_path string A file trigger's run file.
flow_id any A flow trigger's stored flow.
flow_name string
id ID, required
id_token_audiences array of string, required The audiences a file trigger's file may get OIDC tokens for.
last_fire_at string (date-time)
last_message string
last_outcome one of started, skipped, failed
last_run_id ID
name string, required
params map of any, required
paths array of string, required
pr_comment boolean, required It keeps a comment with its latest results on each pull request it runs for.
project_id ID, required
registries array of string, required The registries a file trigger's file may pull with.
repositories array of string, required The extra repositories a file trigger's file may check out.
repository_id ID, required
repository_name string
secrets array of string, required The secrets a file trigger's file may use.
service_account_id ID, required
service_account_name string Empty when the account was deleted.
source one of template, file, flow, required What the trigger runs.
tags array of string, required
template_id any, required Null for a file or flow trigger.
template_name string
updated_at string (date-time), required

TriggerFire

What a matching Git event did; kept 30 days.

Field Type Description
actor string, required
event one of push, tag, pull_request, merge_group, manual, required
fired_at string (date-time), required
flow_run_id any The flow run it started instead, for a flow file.
flow_run_number integer
id ID, required
message string, required Why it was skipped or failed.
outcome one of started, skipped, failed, required
ref string, required
run_id ID
run_number integer
sha string, required

TriggerInput

A trigger starts runs of its template's latest version, or of a run file in the repository at the event's commit, when Git events of a linked repository match its filters, as its service account. Filters are globs (* within a path segment, ** across them, ?); a leading ! excludes and the last matching pattern wins; an empty list matches everything. Everything is replaced on update.

Field Type Description
branches array of string The pushed branch, or a pull request's base branch.
concurrency one of allow, replace allow (default) starts every run; replace cancels the trigger's active runs for the same branch, tag or pull request once the new one is queued.
description string
enabled boolean Default true.
env map of string The trigger's level in the variable chain; FORGE_GIT_* are set from the event.
environments array of string File triggers only: the environments the file's runs and inline flow steps (approval steps included) may deploy to. Empty allows none.
events array of one of push, tag, pull_request, merge_group, required push: branch pushes; tag: tag pushes; pull_request: opened, synchronized or reopened; merge_group: a GitHub merge queue's group (GitHub repositories only).
file_path string File triggers only: the run file, a .yaml or .yml path under .forge/ (default .forge/run.yaml).
id_token_audiences array of string File triggers only: the audiences the file's runs and inline flow steps may get OIDC tokens for with id_tokens. Empty allows none.
name string, required Unique in the project.
params map of any Values for the template's or stored flow's parameters, checked against its latest version. Not for file triggers.
paths array of string Changed files; passes when they can't all be known.
pr_comment boolean Keep one comment on each pull request the trigger runs for, updated with its latest run's or flow run's results. GitHub, GitLab, Gitea/Forgejo and Bitbucket; on GitHub the app needs the Pull requests (write) permission. Default false.
project_id any On create from a template, the project an organization template's trigger runs in.
registries array of string File triggers only: the registries the file may pull with.
repositories array of string File triggers only: the project's linked repositories (full names) the file's checkouts may add with checkout.repositories. Empty allows none.
repository_id any, required One of the project's linked repositories.
secrets array of string File triggers only: the secrets the file may name.
service_account_id any, required The project's service account the runs are started as; you must be able to grant its role.
tags array of string

TriggerRunInput

A branch or a tag; neither means the repository's default branch.

Field Type Description
branch string
tag string

UpdateProject

Fields left out stay as they are.

Field Type Description
default_class_id string A runner class id (project:manage), or "" for the platform's default. 422 if no such class; 422 class_not_allowed if the organization's plan doesn't allow it.
description string
honor_skip_markers boolean Whether [skip ci] and the like keep the triggers from firing (project:manage)
name string
runner_pools RunnerPools Which runners the project's runs may use: all = the project's, its organization's and shared runners; no_shared = the project's and its organization's; project_only = the project's own.

UsageTotals

Field Type Description
cpu_core_seconds number, required Reserved CPU cores × run seconds.
disk_gib_seconds number, required Reserved disk in GiB × run seconds.
egress_bytes integer (int64), required What the runs sent, priced per GB at the class rate.
ingress_bytes integer (int64), required What the runs received (free).
memory_gib_seconds number, required Reserved memory in GiB × run seconds.
occupied_seconds number, required
price_micros integer (int64), required What the runs cost in micro-euros, at their class versions' rates; 0 on own runners.
run_seconds number, required
runs integer (int64), required

UserRef

Field Type Description
id ID, required
username string, required

Variable

Field Type Description
created_at string (date-time), required
description string, required
locked boolean, required Levels below (and a run's own env) can't set this name.
name string, required
position integer, required Its place in the saved order; lists come in it.
updated_at string (date-time), required
value string, required May reference other variables as ${NAME}; $${ is a literal ${.

VariableGroup

An organization's named set of variables and secrets, included in every project or attached in order to projects and environments. Groups are the organization's: a run merges the organization's values, the default groups, the project's groups, the environment's groups, then the project's and the environment's own values.

Field Type Description
created_at string (date-time), required
default boolean, required Included in every project of the organization without being attached.
description string, required
name string, required
parent string, required The group it builds on; "" for none.
updated_at string (date-time), required

VariableInput

Field Type Description
description string
locked boolean
position InsertPosition Where in the saved order (display only) to put it, counting from 0. Left out, a new entry goes last and an existing one stays where it is; past the end means last.
value string, required

VariableLevel

One of platform, org, group, project, environment, template, flow, schedule, trigger, run, git.

VariablePlace

The definition a value overrides directly.

Field Type Description
group string
layer integer, required
position integer, required
source VariableLevel, required

WaitingDeploy

A run that waits to deploy to an environment: for its reviewers, or (with the Run's release_at set) for its wait timer.

Field Type Description
decided boolean, required Whether the caller already decided on it.
environment string, required The environment's name.
may_decide boolean, required Whether the caller may approve or reject it now.
project object, required
run Run, required

WaitingDeployList

Field Type Description
approvals array of WaitingDeploy, required Oldest first, at most 500.

Webhook

Field Type Description
created_at string (date-time), required
description string, required
enabled boolean, required
events array of string, required Event types it gets, e.g. run.* or run.failed.
id ID, required
previous_secret_until string (date-time) After a rotation the previous secret signs too, until then.
project_id ID, required
secret string The signing secret; only returned on create and rotation.
secret_lost boolean, required The signing secret was lost when the key service was restored from a backup; deliveries fail until the secret is rotated.
updated_at string (date-time), required
url string, required

WebhookDelivery

Field Type Description
attempts integer, required
created_at string (date-time), required
duration_ms integer
error string, required
event_id ID, required
event_type string, required
finished_at string (date-time)
id ID, required
next_attempt_at string (date-time)
payload object, required
response_body string, required The first 1 KiB of the last response.
response_status integer
status one of pending, succeeded, failed, required

WebhookInput

Field Type Description
description string
enabled boolean
events array of string
url string