while.sh
v2.3.0Deploy 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.
| Parameter | Type | Description |
|---|---|---|
block | string | The building block (postgres, valkey…), for format detail. |
format | string | text: the contract and the blocks; detail: one block (block); guide: designing an app; dockerfile: a typical Dockerfile (language); json: the summary. |
language | string | The language, for format dockerfile; without it: the list. |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | The question, in a few words. |
lang | string | By default, the user's language. |
trial | string | The 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).
| Parameter | Type | Description |
|---|---|---|
archive | boolean | true: the archive link of a deployed version. |
environment | string | archive: the version's environment (production by default). |
format | string | archive: the archive's form. |
path | string | A folder (empty, or ending in /): its list; a file: its content. |
project | string | The project. |
start | integer | A file: the first line returned (the rest of a long file, given by the response). |
trial | string | The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call. |
version | integer | archive: 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.
| Parameter | Type | Description |
|---|---|---|
environment | string | Production or a preview. |
language | string | Trial 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. |
project | string | The project. |
terminal | boolean | true: the curl command even when the client presents itself as a conversation (a client with a terminal that reaches while). |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
binary_files | object | Path → content of a binary file (image, font) in base64. |
branch | string | A preview branch: production does not change. |
delete | array | The files or folders to delete. |
deploy | boolean | true: also deploys it, like deploy_app (on a branch, its preview). |
files | object | Path → full content of the file (it replaces the old one); a .json as an object. |
language | string | Trial 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. |
message | string | The commit message, in one sentence. |
project | string | The project. |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
environment | string | Production or a preview. |
from_state | integer | Go 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. |
intent | string | Content of while.yaml; without it, the one in the latest commit at while (like deploy_app), otherwise the last one deployed. |
plan_id | string | Reread this plan (computed earlier) instead of computing one. |
project | string | The project. |
timeout_seconds | integer | Longest wait, in seconds. |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
confirm_overwrite | boolean | true: while.yaml overwrites what a person changed on screen. |
digest | string | sha256:<64 hex>; without it, while resolves it: the image always goes by its digest. |
environment | string | Production or a preview. |
image | string | OCI image already built (while registry or external), ideally with its digest. |
intent | string | Content of while.yaml, when deploying an image without sending sources. |
language | string | Trial 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. |
project | string | The project. |
redeploy | integer | A 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. |
release | integer | The number returned by an upload (or a version in progress): deploy_app follows its build and its deployment. |
source_archive_base64 | string | Last resort, slow: the tar.gz archive of the sources, in base64. Exclusive with image and release. |
timeout_seconds | integer | Maximum wait; beyond it, the response says how to resume. |
trial | string | The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call. |
wait | boolean | false: 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).
| Parameter | Type | Description |
|---|---|---|
environment | string | Production or a preview. |
include | array | An extra view on top of the state: while_yaml, vulnerabilities or openings. |
probe | boolean | false: without probing (does not wake a sleeping service). |
project | string | The project. |
renew_keep_link | boolean | true: a new claim link, and the one given before stops working. Without this parameter, the link that is still valid. |
since | string | vulnerabilities: the window of bots seen in the traffic; openings: the window of openings, 7d without since (30m, 6h, 7d…). |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
id | string | Id of a request (approval_id): its detail, even decided. |
trial | string | The 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).
| Parameter | Type | Description |
|---|---|---|
database | string | Database name; the first declared by default. |
environment | string | Production or a preview. |
project | string | The project. |
trial | string | The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call. |
view | string | The 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.
| Parameter | Type | Description |
|---|---|---|
build | boolean | true: a build secret (build.secrets, e.g. NPM_TOKEN), read by builds only, never by the app. With delete: removes one. |
delete | array | Names of the variables or secrets to delete from this environment. |
environment | string | Production or a preview. |
file | boolean | true: 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. |
key | string | A single variable: its name (with "value"), instead of "values". |
move | string | A name: this secret moves to the build (build: true) or to the app, its value kept in the vault. |
project | string | The project. |
secret | boolean | true: in the vault, never read back (default). false: plain variable, which a person reads back in while, never an agent. |
trial | string | The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call. |
value | string | A single variable: its value (with "key"). |
values | object | Key/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).
| Parameter | Type | Description |
|---|---|---|
sql * | string | A read statement. |
database | string | Name of the database (databases[].name); the first declared by default. |
environment | string | Production or a preview. |
format | string | The response format. |
limit | integer | Row cap: short 200, detailed 400 (2,000 at most); csv 10,000 (50,000). |
max_bytes | integer | Byte limit: short 40 KB, detailed and csv 200 KB. |
project | string | The project. |
timeout_seconds | number | Query timeout. |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
build_id | string | To read a build's log rather than the application's. |
environment | string | Production or a preview. |
limit | integer | Lines returned: 100 by default, 200 with build_id; 1,000 at most. |
project | string | The project. |
query | string | A LogsQL filter (VictoriaLogs' query language: https://docs.victoriametrics.com/victorialogs/logsql/), for example "timeout"; "error": the error lines. |
trial | string | The 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).
| Parameter | Type | Description |
|---|---|---|
database | string | Database name; the first declared by default. |
environment | string | Production or a preview. |
errors | boolean | Only the traces with a span in error. |
families | array | Keep only these families. |
fingerprint | string | Fingerprint of a group, for its detail. |
limit | integer | 100 at most. |
min_duration | string | Only the traces longer than this: "500ms", "2s". |
operation | string | Only the traces of this operation (span name): "GET /orders". |
project | string | The project. |
query | string | A PromQL query (Prometheus' query language: https://prometheus.io/docs/prometheus/latest/querying/basics/); without it, traffic and errors. |
question | string | The question, in plain words. |
range | string | The window. |
service | string | The app's OTEL_SERVICE_NAME; by default, the project's name. |
since | string | Window: 30m, 2h, 1d, or an ISO 8601 date. |
since_minutes | integer | Window, in minutes (30 days at most). |
trace_id | string | One trace in detail: its id (32 hexadecimal characters). |
trial | string | The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call. |
until | string | End (ISO 8601 date); now by default. |
url | string | An address of the environment: why a PoP keeps it or not. |
version | integer | Version number; the active version by default. |
view | string | The view returned. |
window_minutes | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
kind * | string | bug (while is wrong), frustration (the user's, in their words), idea, other, integration (a service to connect), block (a block to open). |
message * | string | What happens, what was expected; 4,000 characters at most. |
authentication | string | integration: how the service authenticates (API key, OAuth, OIDC federation, other). |
block | string | block: the block (its id in catalog). |
documentation | string | integration: the https address of its documentation. |
organization | string | The organization; otherwise the project's or the token's. |
project | string | The project concerned. |
reference | string | The identifier of an error, a call or a request. |
route | string | The API route concerned ("POST /v1/…"). |
service | string | integration: the service to connect (Stripe, Snowflake, Anthropic…). |
tool | string | The MCP tool concerned. |
trial | string | The key returned by the call that created the trial (deploy_app, upload_source or write_files: trial_key), passed again on each call. |
usage | string | integration, block: what the app wants to do with it. |
volume | string | block: 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).
| Parameter | Type | Description |
|---|---|---|
organization | string | The whole organization's feedback (its admins). |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
include | array | webhooks: its webhooks. |
project | string | A project; without it, the list. |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
project * | string | The project name (lowercase letters, digits, hyphens). |
budget_eur | number | Euros per month (20 by default; 0, no cap, or more than €20: admins); alert at 80% then 100%. |
name | string | The display name (the project name by default). |
organization | string | The organization that holds it (the token's by default). |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
organization_name | string | The user's organization. |
project_name | string | The project, which makes the app's address. |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
read_only | boolean | GET and HEAD only. |
trial | string | The 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.
| Parameter | Type | Description |
|---|---|---|
email * | string | The user's email address. |
trial | string | The 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…
| Parameter | Type | Description |
|---|---|---|
group * | string | The group to load. |
link_git_repo Link a git repository
Keeps the code on GitHub or GitLab (without a token: the while App, an authorized GitLab group): a push to the default branch deploys production, a pull or merge request opens a preview; unlink removes the link.
| Parameter | Type | Description |
|---|---|---|
base_url | string | Address of a self-hosted GitLab. |
forge | string | The repository's forge. |
project | string | The project. |
repo | string | "owner/name" (GitHub) or "group/project" (GitLab). |
token | string | Access token for the forge, stored in the vault; without it, through the while App (GitHub) or an authorized GitLab group. |
unlink | boolean | true: removes the link and the webhook. |
apply_plan Apply a plan
Applies a plan computed by plan_deploy (what it changes goes live); discard: true drops it without applying anything.
| Parameter | Type | Description |
|---|---|---|
plan_id * | string | The plan returned by plan_deploy. |
discard | boolean | true: drop the plan instead of applying it. |
project | string | The project. |
timeout_seconds | integer | Longest wait, in seconds. |
wait | boolean | true: 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.
| Parameter | Type | Description |
|---|---|---|
approval_id | string | The request, accepted or approved (its id), when the action needs one. |
environment | string | Production or a preview. |
project | string | The project. |
to | integer | The target version number; without it, the previous active version. |
wait | boolean | true: answers once done. |
create_preview Create a preview
A preview environment for a branch, with its own address.
| Parameter | Type | Description |
|---|---|---|
branch | string | The Git branch. |
copy_database | boolean | Copy the production data (otherwise empty databases): needs data.backup on its databases. |
from | string | Reference environment. |
name | string | Name of the environment (otherwise, the branch). |
project | string | The project. |
ttl_hours | integer | Lifetime of the preview, in hours. |
wait | boolean | true: answers once done. |
request_access_link Share an app with a link
Share an internal app, show it to a client or a tester without a while account: requests a sharing link (access link); a person creates it and passes it on in while. With dev_address: the workstation's dev address (its dev server), 7 days at most.
| Parameter | Type | Description |
|---|---|---|
days | integer | The proposed expiry: 1, 7 or 30 days (otherwise 7). |
dev_address | string | The name of a dev address (what follows -dev- in <project>-dev-<name>): share it rather than an environment. |
environment | string | Production or a preview. |
name | string | The proposed name of the link ("Dupont client demo"). |
project | string | The project. |
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.
| Parameter | Type | Description |
|---|---|---|
database | string | Database name; the first declared by default. |
environment | string | Production or a preview. |
project | string | The project. |
test_restore | boolean | Restore it to a throwaway database, to prove it. |
wait | boolean | Wait 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.
| Parameter | Type | Description |
|---|---|---|
approval_id | string | The request, accepted or approved (its id), when the action needs one. |
backup_id | string | The backup (get_environment { view: "backups" }); the last successful one by default. |
database | string | Database name; the first declared by default. |
environment | string | Production or a preview. |
instant | string | Restore the database to this instant (ISO 8601), 14 days at most; excludes backup_id. |
project | string | The project. |
reason | string | Why restore, in one sentence for the person who accepts or approves. |
wait | boolean | true: answers once done. |
list_tasks List the scheduled jobs
An environment's scheduled jobs, their schedule, their last runs and the next one.
| Parameter | Type | Description |
|---|---|---|
environment | string | Production or a preview. |
limit | integer | Number of runs in the detailed history. |
project | string | The project. |
task | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
task * | string | Name of the task (crons[].name). |
approval_id | string | The request, accepted or approved (its id), when the action needs one. |
args | array | Arguments appended to the command: ["--since", "2026-10-12"]. |
catch_up | object | Period to catch up: the run is counted "catch_up" and receives it as variables. |
env | object | Extra variables for this run only. |
environment | string | Production or a preview. |
project | string | The project. |
timeout_seconds | integer | Longest wait, in seconds. |
wait | boolean | true: answers once done. |
acknowledge_announcement Acknowledge an announcement
Records that an announcement from the while team has been read.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
activity | boolean | With who: what the identity did (log, calls). |
organization | string | The organization. |
permission | string | With who: "can X <permission> on the scope?". |
project | string | Shortcut for scope.project. |
scope | object | {}: the organization; otherwise down to a table, a connection, or a source of a relay. |
who | string | An 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.
| Parameter | Type | Description |
|---|---|---|
reason * | string | Why ("Q4 audit"), read by whoever decides. |
days | integer | Duration, in days; not used for an app (for), whose right has no expiry. |
for | string | For an app that will call a connection: app:<project>/<service> or task:<project>/<task>, role connection-caller (or connection-writer), scope { connection }. |
organization | string | The organization. |
permission | string | Or a permission (the smallest role that grants it). |
renew | string | One of your assignments to extend (only days and reason count). |
role | string | The role (missing.proposed_role). |
scope | object | {}: the organization; otherwise down to a table, a connection, or a source of a relay. |
tool | string | Or 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.
| Parameter | Type | Description |
|---|---|---|
assignment | string | An assignment's history (its id): granted, revoked, expired, flagged, kept. |
cursor | string | The "next" of a previous response. |
family | string | Families, separated by commas: deploy, data, security, access, permissions, approval, task, alert, connection, app, observation, loop (agents' wake-ups). |
limit | integer | Maximum number of items returned. |
organization | string | The organization. |
person | string | Address or name (partial) of the person, or "while". |
project | string | Project name. |
resource | string | Text searched in the object ("carnet", "main.reservations"), or id or type of resource. |
since | string | Start: 30m, 24h, 7d, a date (2026-10-18) or an ISO 8601 instant. |
tab | string | Ready-made filter. |
until | string | End, same format; a date alone counts the whole day. |
verify | boolean | Check the log's chain instead of reading it. |
via | string | What the action went through. |
who | string | An 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.
| Parameter | Type | Description |
|---|---|---|
connection | string | Connection name (meteo): its detail. |
organization | string | The organization. |
refusal | boolean | With since: refusals only. |
since | string | With connection: the call log since this date (2026-10-01); 7 days by default. |
until | string | With connection and since: up to this date (now by default). |
view | string | The 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Lowercase, digits, hyphens: weather, accounting. |
apps | array | Calling services and tasks (web, task:charger); by default, those of the while.yaml that declare it. |
authentication | object | Recipe, 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… |
direction | string | The apps will also write (POST, PUT, PATCH, DELETE). |
domain | string | API host, no path: api.example.com. |
label | string | The displayed name ("Pennylane"). |
model | string | An AI or Snowflake (account, user, role, warehouse): domain and recipe set automatically. |
organization | string | The organization. |
owner | string | Email of the owner; by default, the signed-in user. |
project | string | The project of the calling apps; by default, the token's. |
rate_per_minute | integer | Calls allowed per minute. |
read | array | Patterns read with POST (a search, a GraphQL query): /api/v1/searches. |
reads | string | all, except refused_paths; listed: those in rules. |
refused_paths | array | Refused before any rule: /admin/**. |
rules | array | Its writes, and its reads if reads: listed. Federated: required. A POST that reads: its pattern in read too. |
secondary_domains | array | Hosts relayed without a key (/~<host>/…). |
update | boolean | An 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.
| Parameter | Type | Description |
|---|---|---|
connection * | string | Connection name (list_connections). |
path * | string | Path at the provider, with its query string: /api/v1/slots?site=origines. |
body | Only on a path declared as a read (POST): an object (sent as JSON) or text. | |
organization | string | The 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.
| Parameter | Type | Description |
|---|---|---|
destination | string | network/destination. |
minutes | integer | 60 by default. |
organization | string | The organization. |
source | string | view sources: one card, “type:name” (database:crm/main). |
view | string | The 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.
| Parameter | Type | Description |
|---|---|---|
email * | string | The person's address. |
organization | string | The organization. |
project | string | The app where the role is given; without it: the whole organization. |
reason | string | The reason for the assignment (in the log); "member of the organization" by default. |
resend | boolean | true: sends the pending invitation again (a new link, once an hour), without changing anything else. |
role | string | On 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.
| Parameter | Type | Description |
|---|---|---|
reason * | string | Why ("Q4 audit"): it goes to the log and is read in the sentence. |
role * | string | A 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 * | string | An address, group:<name>, service_account:<name>, app:<project>/<service> or task:<project>/<task>. |
days | integer | Duration, in days. |
organization | string | The organization. |
until | string | End date (included): 2026-11-30. |
revoke_role Revoke a role
Removes an assignment at once; the last owner stays.
| Parameter | Type | Description |
|---|---|---|
assignment * | string | The assignment's id. |
reason * | string | Why (in the log). |
organization | string | The 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.
| Parameter | Type | Description |
|---|---|---|
days | integer | Lifetime in days (30 by default, 0 without expiry). |
environments | array | Where it can act (production, previews, or names); without a list, everywhere. |
name | string | What it is for ("GitLab CI"). |
organization | string | For an organization token: its name; optional with an organization token. |
permissions | array | deploy and read by default. |
project | string | The project. |
scope | string | A 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.
| Parameter | Type | Description |
|---|---|---|
approve_each_call | boolean | true: each call waits to be accepted. |
caller | string | Who is limited (agent:<id>, group:finance, app:boutique/web…). |
calls | integer | The number of calls allowed per window. |
change | string | The action, as the review offers it. |
connection | string | Connection name (list_connections). |
lock | boolean | true: its reads limited to what was used in 30 days. |
method | string | HTTP method. |
organization | string | The organization. |
pattern | string | Path, e.g. /api/v1/slots/*/close. |
read | boolean | A POST that only reads. |
reason | string | Why this rule, in one sentence. |
remove_limit | string | The limit to remove (its id, list_connections { view: "limits" }). |
window | string | The 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.
| Parameter | Type | Description |
|---|---|---|
connection * | string | Name of the federated connection. |
approve_production_deploys | boolean | true: its production deploys go through a request; false: they do not. |
binding | string | The id of the binding. |
caller | string | A request: the app's service (web), or "task:<name>". |
organization | string | The organization. |
project | string | The app's project. |
reason | string | Why (in the log). |
resume | boolean | true: resume the binding. |