while.sh

v2.3.0
sh.while/while Checked 47 minutes ago Published 10 days ago

Deploy and share tools built with Claude or ChatGPT: your team, a client or everyone.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_catalog Read while's catalog

What while can run, block by block: what it does, its cost, the while.yaml line that declares it.

ParameterTypeDescription
blockstringThe building block (postgres, valkey…), for format detail.
formatstringtext: the contract and the blocks; detail: one block (block); guide: designing an app; dockerfile: a typical Dockerfile (language); json: the summary.
languagestringThe language, for format dockerfile; without it: the list.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

search_docs Search while's docs

The passages of while's documentation that answer a question, with their address.

ParameterTypeDescription
query *stringThe question, in a few words.
langstringBy default, the user's language.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

read_source Read the project's code

The project's code at while, without changing anything: a folder or a file (path), in pages of 60,000 characters, or the archive link of a deployed version (archive).

ParameterTypeDescription
archivebooleantrue: the archive link of a deployed version.
environmentstringarchive: the version's environment (production by default).
formatstringarchive: the archive's form.
pathstringA folder (empty, or ending in /): its list; a file: its content.
projectstringThe project.
startintegerA file: the first line returned (the rest of a long file, given by the response).
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.
versionintegerarchive: the version number; the live version by default.

upload_source Send code from a terminal

Trial version, not for production, online for a limited time. Without a key, this first call creates the trial. The upload command (curl) that sends the project folder to while from a terminal, through a 15-minute link; deploy_app then deploys it.

ParameterTypeDescription
environmentstringProduction or a preview.
languagestringTrial creation: your human's language. while's texts for them are in that language, to_say included. Without this parameter, your session's language, then English.
projectstringThe project.
terminalbooleantrue: the curl command even when the client presents itself as a conversation (a client with a terminal that reaches while).
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

write_files Write project files

Trial version, not for production, online for a limited time. Without a key, this first call creates the trial. A commit on the project's branch at while, without a terminal: each named file is replaced by its full content, a binary file in base64 in binary_files, those in delete are removed; deploy: true also deploys it. 2 MiB and 200 files per call.

ParameterTypeDescription
binary_filesobjectPath → content of a binary file (image, font) in base64.
branchstringA preview branch: production does not change.
deletearrayThe files or folders to delete.
deploybooleantrue: also deploys it, like deploy_app (on a branch, its preview).
filesobjectPath → full content of the file (it replaces the old one); a .json as an object.
languagestringTrial creation: your human's language. while's texts for them are in that language, to_say included. Without this parameter, your session's language, then English.
messagestringThe commit message, in one sentence.
projectstringThe project.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

plan_deploy Plan a deployment

What a deployment would change, block by block, and what each block costs per month; the plan is kept for apply_plan.

ParameterTypeDescription
environmentstringProduction or a preview.
from_stateintegerGo back to a state version (number given by observe_app { view: "history" }): the plan says what to change to get it back; then apply_plan.
intentstringContent of while.yaml; without it, the one in the latest commit at while (like deploy_app), otherwise the last one deployed.
plan_idstringReread this plan (computed earlier) instead of computing one.
projectstringThe project.
timeout_secondsintegerLongest wait, in seconds.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

deploy_app Deploy an app

Trial version, not for production, online for a limited time. Without a key, this first call creates the trial. Builds the code sent (or the GitHub or GitLab repository linked with link_git_repo, or an image) and deploys it; reversible: rollback_app restores the previous version.

ParameterTypeDescription
confirm_overwritebooleantrue: while.yaml overwrites what a person changed on screen.
digeststringsha256:<64 hex>; without it, while resolves it: the image always goes by its digest.
environmentstringProduction or a preview.
imagestringOCI image already built (while registry or external), ideally with its digest.
intentstringContent of while.yaml, when deploying an image without sending sources.
languagestringTrial creation: your human's language. while's texts for them are in that language, to_say included. Without this parameter, your session's language, then English.
projectstringThe project.
redeployintegerA version already built, put back online with today's variables and secrets (after set_env, or to restart an app that went down), without rebuilding. Going back: rollback_app.
releaseintegerThe number returned by an upload (or a version in progress): deploy_app follows its build and its deployment.
source_archive_base64stringLast resort, slow: the tar.gz archive of the sources, in base64. Exclusive with image and release.
timeout_secondsintegerMaximum wait; beyond it, the response says how to resume.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.
waitbooleanfalse: returns at once (follow with deploy_app { release }).

get_app_status Read an app's status

An environment's state: its live version, its addresses, its health, its services, its recent traffic; include: its live while.yaml (while_yaml), its known vulnerabilities and the bots seen (vulnerabilities), or who opened the app, when and how (openings).

ParameterTypeDescription
environmentstringProduction or a preview.
includearrayAn extra view on top of the state: while_yaml, vulnerabilities or openings.
probebooleanfalse: without probing (does not wake a sleeping service).
projectstringThe project.
renew_keep_linkbooleantrue: a new claim link, and the one given before stops working. Without this parameter, the link that is still valid.
sincestringvulnerabilities: the window of bots seen in the traffic; openings: the window of openings, 7d without since (30m, 6h, 7d…).
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

list_approvals Read pending requests

The requests a person still has to accept or approve in while (a production deployment, a restore…), and their state; id: a single one.

ParameterTypeDescription
idstringId of a request (approval_id): its detail, even decided.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

get_environment Read an environment

An environment, by view: variables, the names of its variables and secrets (never the values); domains, its domains and their DNS proof; links, its access links (never the link); backups, the last 50 backups of a database (their id for restore_backup); queues, its queues and their state; cdn, its CDN (the zone of each service, the state of each address, the PoPs' traffic).

ParameterTypeDescription
databasestringDatabase name; the first declared by default.
environmentstringProduction or a preview.
projectstringThe project.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.
viewstringThe view returned.

set_env Set variables and secrets

Sets or removes an environment's variables and secrets (in the vault by default, never read back); they apply at the next deployment.

ParameterTypeDescription
buildbooleantrue: a build secret (build.secrets, e.g. NPM_TOKEN), read by builds only, never by the app. With delete: removes one.
deletearrayNames of the variables or secrets to delete from this environment.
environmentstringProduction or a preview.
filebooleantrue: a secret delivered as a file, never as a variable: the app reads it in /run/secrets/<NAME>. Required for a secret in the production of a project linked to a federated connection.
keystringA single variable: its name (with "value"), instead of "values".
movestringA name: this secret moves to the build (build: true) or to the app, its value kept in the vault.
projectstringThe project.
secretbooleantrue: in the vault, never read back (default). false: plain variable, which a person reads back in while, never an agent.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.
valuestringA single variable: its value (with "key").
valuesobjectKey/value pairs: { "LOG_LEVEL": "debug" }

query_database Read a database with SQL

A read-only SQL query on one of the project's PostgreSQL databases; format short (default; a cut response says how to read the rest), detailed (wider limits) or csv (an export).

ParameterTypeDescription
sql *stringA read statement.
databasestringName of the database (databases[].name); the first declared by default.
environmentstringProduction or a preview.
formatstringThe response format.
limitintegerRow cap: short 200, detailed 400 (2,000 at most); csv 10,000 (50,000).
max_bytesintegerByte limit: short 40 KB, detailed and csv 200 KB.
projectstringThe project.
timeout_secondsnumberQuery timeout.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

get_logs Read logs

An environment's logs (or a build's: build_id), most recent first, filterable by a text.

ParameterTypeDescription
build_idstringTo read a build's log rather than the application's.
environmentstringProduction or a preview.
limitintegerLines returned: 100 by default, 200 with build_id; 1,000 at most.
projectstringThe project.
querystringA LogsQL filter (VictoriaLogs' query language: https://docs.victoriametrics.com/victorialogs/logsql/), for example "timeout"; "error": the error lines.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

observe_app Understand what is happening

What is happening in production, by view: metrics, traces, errors (grouped), history (versions and events), timeline, impact (a version's effect), database (frequent and slow SQL queries), edge (what the CDN PoPs serve) or ask (dated facts around a question).

ParameterTypeDescription
databasestringDatabase name; the first declared by default.
environmentstringProduction or a preview.
errorsbooleanOnly the traces with a span in error.
familiesarrayKeep only these families.
fingerprintstringFingerprint of a group, for its detail.
limitinteger100 at most.
min_durationstringOnly the traces longer than this: "500ms", "2s".
operationstringOnly the traces of this operation (span name): "GET /orders".
projectstringThe project.
querystringA PromQL query (Prometheus' query language: https://prometheus.io/docs/prometheus/latest/querying/basics/); without it, traffic and errors.
questionstringThe question, in plain words.
rangestringThe window.
servicestringThe app's OTEL_SERVICE_NAME; by default, the project's name.
sincestringWindow: 30m, 2h, 1d, or an ISO 8601 date.
since_minutesintegerWindow, in minutes (30 days at most).
trace_idstringOne trace in detail: its id (32 hexadecimal characters).
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.
untilstringEnd (ISO 8601 date); now by default.
urlstringAn address of the environment: why a PoP keeps it or not.
versionintegerVersion number; the active version by default.
viewstringThe view returned.
window_minutesintegerThe compared window, before and after the version.

send_feedback Send feedback to the while team

Sends feedback to the while team in the person's words, at their request. It also requests a block (kind: "block") as soon as the person's need calls for it. while attaches who sends it, the organization, its version and the last 5 failed calls of this identity (the tool and the code only), never the conversation.

ParameterTypeDescription
kind *stringbug (while is wrong), frustration (the user's, in their words), idea, other, integration (a service to connect), block (a block to open).
message *stringWhat happens, what was expected; 4,000 characters at most.
authenticationstringintegration: how the service authenticates (API key, OAuth, OIDC federation, other).
blockstringblock: the block (its id in catalog).
documentationstringintegration: the https address of its documentation.
organizationstringThe organization; otherwise the project's or the token's.
projectstringThe project concerned.
referencestringThe identifier of an error, a call or a request.
routestringThe API route concerned ("POST /v1/…").
servicestringintegration: the service to connect (Stripe, Snowflake, Anthropic…).
toolstringThe MCP tool concerned.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.
usagestringintegration, block: what the app wants to do with it.
volumestringblock: the expected volume (sends per day, GiB…).

list_feedback Read feedback and replies

The feedback sent to the while team and its replies; organization: the organization's feedback (its admins).

ParameterTypeDescription
organizationstringThe whole organization's feedback (its admins).
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

get_project Read projects

Without project, the projects the identity sees; project, one project and its environments; include: ["webhooks"], its webhooks.

ParameterTypeDescription
includearraywebhooks: its webhooks.
projectstringA project; without it, the list.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

create_project Create a project

Creates a project in an organization, with its monthly budget (€20 by default); deploy_app then deploys an app to it.

ParameterTypeDescription
project *stringThe project name (lowercase letters, digits, hyphens).
budget_eurnumberEuros per month (20 by default; 0, no cap, or more than €20: admins); alert at 80% then 100%.
namestringThe display name (the project name by default).
organizationstringThe organization that holds it (the token's by default).
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

keep_trial Keep the trial app

When the user wants to keep their trial app: returns the link that keeps it in their own organization. Ask them first for their organization's name, and for the project's name, which makes the app's address; the page proposes names and lets them change them.

ParameterTypeDescription
organization_namestringThe user's organization.
project_namestringThe project, which makes the app's address.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

open_trial_app Open the trial app

To check the trial app yourself, past the "Trial tool" page that visitors see first: a one-hour identifier for its address, tied to the trial key. Write cookie.value to the file named in file, then run the curl command (or the Playwright setting), which reads it from there: never in an argument. read_only: GET and HEAD only.

ParameterTypeDescription
read_onlybooleanGET and HEAD only.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

sign_up Create the user's while account

Sends the user's email address to while, which emails them a link (60 min) to choose a password. With the trial key, the trial app moves to their account. The link and the password are never returned here.

ParameterTypeDescription
email *stringThe user's email address.
trialstringThe key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call.

load_tools Load a tool group

Adds a tool group to this agent: alerts (alerts, incidents, channels), feedback_and_docs (page notes, feedback, docs), environments_and_storage (domains, internal apps, git credential, buckets, destroying or restarting an environment, proposing a private destination, linking apps privately, reading MikroTik sites, the network entry points and egress), administer (members, groups, roles, access, tokens, service accounts, bindings, usage, project settings and deletion, organization settings), connections (calling a connection's API, writes included), functions (trying the function in front of a…

ParameterTypeDescription
group *stringThe group to load.

apply_plan Apply a plan

Applies a plan computed by plan_deploy (what it changes goes live); discard: true drops it without applying anything.

ParameterTypeDescription
plan_id *stringThe plan returned by plan_deploy.
discardbooleantrue: drop the plan instead of applying it.
projectstringThe project.
timeout_secondsintegerLongest wait, in seconds.
waitbooleantrue: answers once done.

rollback_app Roll back to a previous version

Puts a previous version of an environment back online (the previous one by default, or to); the live version is replaced.

ParameterTypeDescription
approval_idstringThe request, accepted or approved (its id), when the action needs one.
environmentstringProduction or a preview.
projectstringThe project.
tointegerThe target version number; without it, the previous active version.
waitbooleantrue: answers once done.

create_preview Create a preview

A preview environment for a branch, with its own address.

ParameterTypeDescription
branchstringThe Git branch.
copy_databasebooleanCopy the production data (otherwise empty databases): needs data.backup on its databases.
fromstringReference environment.
namestringName of the environment (otherwise, the branch).
projectstringThe project.
ttl_hoursintegerLifetime of the preview, in hours.
waitbooleantrue: answers once done.

backup_database Back up a database

Starts a backup of a database declared in while.yaml, and a test restore on a throwaway database that proves it.

ParameterTypeDescription
databasestringDatabase name; the first declared by default.
environmentstringProduction or a preview.
projectstringThe project.
test_restorebooleanRestore it to a throwaway database, to prove it.
waitbooleanWait for the backup (and its restore test) to receive its id and its result.

restore_backup Restore a database

Restores a database from a backup or to a point in time; its current data is replaced, and in production this goes through a request.

ParameterTypeDescription
approval_idstringThe request, accepted or approved (its id), when the action needs one.
backup_idstringThe backup (get_environment { view: "backups" }); the last successful one by default.
databasestringDatabase name; the first declared by default.
environmentstringProduction or a preview.
instantstringRestore the database to this instant (ISO 8601), 14 days at most; excludes backup_id.
projectstringThe project.
reasonstringWhy restore, in one sentence for the person who accepts or approves.
waitbooleantrue: answers once done.

list_tasks List the scheduled jobs

An environment's scheduled jobs, their schedule, their last runs and the next one.

ParameterTypeDescription
environmentstringProduction or a preview.
limitintegerNumber of runs in the detailed history.
projectstringThe project.
taskstringName of a task, for its detailed history.

run_task Run a job

Runs one of the app's scheduled jobs from its while.yaml now, without waiting for its time: the app's code, in its environment; while runs nothing else.

ParameterTypeDescription
task *stringName of the task (crons[].name).
approval_idstringThe request, accepted or approved (its id), when the action needs one.
argsarrayArguments appended to the command: ["--since", "2026-10-12"].
catch_upobjectPeriod to catch up: the run is counted "catch_up" and receives it as variables.
envobjectExtra variables for this run only.
environmentstringProduction or a preview.
projectstringThe project.
timeout_secondsintegerLongest wait, in seconds.
waitbooleantrue: answers once done.

acknowledge_announcement Acknowledge an announcement

Records that an announcement from the while team has been read.

ParameterTypeDescription
id *stringThe id of the announcement (id, in the announcements).

explain_access Explain access

Who has access to what, in sentences; with who and permission, yes or no and why (the chain that grants it, or what is missing); activity: what this identity did with it.

ParameterTypeDescription
activitybooleanWith who: what the identity did (log, calls).
organizationstringThe organization.
permissionstringWith who: "can X <permission> on the scope?".
projectstringShortcut for scope.project.
scopeobject{}: the organization; otherwise down to a table, a connection, or a source of a relay.
whostringAn address, group:<name>, service_account:<name>, app:<project>/<service>, task:<project>/<task>, or token:<id or name>.

request_access Request access

Requests a permission for the person (or their agent): whoever can grant it decides in while.

ParameterTypeDescription
reason *stringWhy ("Q4 audit"), read by whoever decides.
daysintegerDuration, in days; not used for an app (for), whose right has no expiry.
forstringFor an app that will call a connection: app:<project>/<service> or task:<project>/<task>, role connection-caller (or connection-writer), scope { connection }.
organizationstringThe organization.
permissionstringOr a permission (the smallest role that grants it).
renewstringOne of your assignments to extend (only days and reason count).
rolestringThe role (missing.proposed_role).
scopeobject{}: the organization; otherwise down to a table, a connection, or a source of a relay.
toolstringOr the id of a reserved tool (view existing).

get_activity_log Read the organization's activity log

The organization's activity log, append-only and chained: who did what and through what (a person, an agent, the API, a task, while), filterable.

ParameterTypeDescription
assignmentstringAn assignment's history (its id): granted, revoked, expired, flagged, kept.
cursorstringThe "next" of a previous response.
familystringFamilies, separated by commas: deploy, data, security, access, permissions, approval, task, alert, connection, app, observation, loop (agents' wake-ups).
limitintegerMaximum number of items returned.
organizationstringThe organization.
personstringAddress or name (partial) of the person, or "while".
projectstringProject name.
resourcestringText searched in the object ("carnet", "main.reservations"), or id or type of resource.
sincestringStart: 30m, 24h, 7d, a date (2026-10-18) or an ISO 8601 instant.
tabstringReady-made filter.
untilstringEnd, same format; a date alone counts the whole day.
verifybooleanCheck the log's chain instead of reading it.
viastringWhat the action went through.
whostringAn identity, written as for explain_access (what it did).

list_connections Read connections

The organization's external APIs, called through while: without connection, their list; connection, its detail, its rules and how to call it; view limits, the call limits; bindings, a federated connection's bindings.

ParameterTypeDescription
connectionstringConnection name (meteo): its detail.
organizationstringThe organization.
refusalbooleanWith since: refusals only.
sincestringWith connection: the call log since this date (2026-10-01); 7 days by default.
untilstringWith connection and since: up to this date (now by default).
viewstringThe view returned.

declare_connection Declare a connection

Declares an external API (domain, authentication without a secret, callers), to be accepted; a person enters the secret in while.

ParameterTypeDescription
name *stringLowercase, digits, hyphens: weather, accounting.
appsarrayCalling services and tasks (web, task:charger); by default, those of the while.yaml that declare it.
authenticationobjectRecipe, no secret: header {name, prefix}; parameter {name}; oauth2 {token_url|issuer, scope, client_auth basic|body, header}; session {login_url, token_field, duration_seconds}; jwt {mode exchange|cli…
directionstringThe apps will also write (POST, PUT, PATCH, DELETE).
domainstringAPI host, no path: api.example.com.
labelstringThe displayed name ("Pennylane").
modelstringAn AI or Snowflake (account, user, role, warehouse): domain and recipe set automatically.
organizationstringThe organization.
ownerstringEmail of the owner; by default, the signed-in user.
projectstringThe project of the calling apps; by default, the token's.
rate_per_minuteintegerCalls allowed per minute.
readarrayPatterns read with POST (a search, a GraphQL query): /api/v1/searches.
readsstringall, except refused_paths; listed: those in rules.
refused_pathsarrayRefused before any rule: /admin/**.
rulesarrayIts writes, and its reads if reads: listed. Federated: required. A POST that reads: its pattern in read too.
secondary_domainsarrayHosts relayed without a key (/~<host>/…).
updatebooleanAn existing connection: read becomes the wanted list; removing applies at once, adding goes through a request.

read_connection Read a connection's API

Reads the HTTP API of a third party the organization declared as a connection: GET, or POST with body on a path it declares as a read; nothing else goes out. Its rights, rules and function apply; while adds the authentication and keeps a trace of the call.

ParameterTypeDescription
connection *stringConnection name (list_connections).
path *stringPath at the provider, with its query string: /api/v1/slots?site=origines.
bodyOnly on a path declared as a read (POST): an object (sent as JSON) or text.
organizationstringThe organization.

get_organization Read organizations

Without organization, your organizations; otherwise, view detail (members, groups, stewards), existing (what exists for the person, to_say), sources (the catalog of sources, the person's access and the call to request it; source: one card), map (projects, databases, connections), rules (requests, budget), branding, private_network, private_networks, private_destination, private_network_log, vpn_ingress.

ParameterTypeDescription
destinationstringnetwork/destination.
minutesinteger60 by default.
organizationstringThe organization.
sourcestringview sources: one card, “type:name” (database:crm/main).
viewstringThe view returned.

invite_member Invite a person

Invites a person with a role on an app (project; otherwise the whole organization); for an internal app, role access and project, in one request. An address with no email (.test, .invalid…) is refused.

ParameterTypeDescription
email *stringThe person's address.
organizationstringThe organization.
projectstringThe app where the role is given; without it: the whole organization.
reasonstringThe reason for the assignment (in the log); "member of the organization" by default.
resendbooleantrue: sends the pending invitation again (a new link, once an hour), without changing anything else.
rolestringOn an app (project): access to use it, or reader, developer, admin. On the whole organization: developer by default; external sees only what it is granted. People who only use your internal apps: Acce…

grant_role Grant a role

Grants a role to an identity (a person, a group, a service account, an app) on a scope, until a date; only what one holds oneself, never to oneself. On a relay source, an app only receives source-reader, accepted by its owners. Access for an address in the company's domain: it waits for their first sign-in.

ParameterTypeDescription
reason *stringWhy ("Q4 audit"): it goes to the log and is read in the sentence.
role *stringA built-in role (owner, admin, developer, reader, access, data-reader, connection-caller, connection-writer, service-caller, data-writer, source-reader, source-writer) or one of the organization's (re…
scope *object{}: the organization; otherwise down to a table, a connection, or a source of a relay.
who *stringAn address, group:<name>, service_account:<name>, app:<project>/<service> or task:<project>/<task>.
daysintegerDuration, in days.
organizationstringThe organization.
untilstringEnd date (included): 2026-11-30.

revoke_role Revoke a role

Removes an assignment at once; the last owner stays.

ParameterTypeDescription
assignment *stringThe assignment's id.
reason *stringWhy (in the log).
organizationstringThe organization.

create_token Create an API token

Creates an API token for a project or for the organization, with its permissions, its environments and its lifetime; it is returned only once. Not by an agent connected through OAuth: a person creates it in while.

ParameterTypeDescription
daysintegerLifetime in days (30 by default, 0 without expiry).
environmentsarrayWhere it can act (production, previews, or names); without a list, everywhere.
namestringWhat it is for ("GitLab CI").
organizationstringFor an organization token: its name; optional with an organization token.
permissionsarraydeploy and read by default.
projectstringThe project.
scopestringA project, or the organization.

update_connection Configure a connection

One setting per call: change, a review action (refuse, remove; all_reads, restore; forward_authorization, drop_authorization: keyless, the app's Authorization); method and pattern alone request a rule; lock limits its reads. caller, window and calls set a call limit, remove_limit removes it.

ParameterTypeDescription
approve_each_callbooleantrue: each call waits to be accepted.
callerstringWho is limited (agent:<id>, group:finance, app:boutique/web…).
callsintegerThe number of calls allowed per window.
changestringThe action, as the review offers it.
connectionstringConnection name (list_connections).
lockbooleantrue: its reads limited to what was used in 30 days.
methodstringHTTP method.
organizationstringThe organization.
patternstringPath, e.g. /api/v1/slots/*/close.
readbooleanA POST that only reads.
reasonstringWhy this rule, in one sentence.
remove_limitstringThe limit to remove (its id, list_connections { view: "limits" }).
windowstringThe window.

set_connection_binding Request or configure a federated binding

Without binding, requests (to be accepted) that a production app call a federated connection (OIDC), with a short token signed by while, without a secret; federation must be enabled there. With binding: resume: true resumes a suspended binding; approve_production_deploys, the box for its production deploys.

ParameterTypeDescription
connection *stringName of the federated connection.
approve_production_deploysbooleantrue: its production deploys go through a request; false: they do not.
bindingstringThe id of the binding.
callerstringA request: the app's service (web), or "task:<name>".
organizationstringThe organization.
projectstringThe app's project.
reasonstringWhy (in the log).
resumebooleantrue: resume the binding.