Skip to content

HTTP API

All routes are registered in Server.Handler (internal/api/server.go). The UI uses this API and nothing else, so anything the UI does can be scripted.

  • Auth: a session cookie set by GitHub login (/api/auth/login). Routes marked ๐Ÿ”’ return 401 without one or for people who are not members, and 403 when the person's role is below the route's.
  • Format: JSON in and out. Errors are {"error": "message"} with a matching status code.
  • Live updates: โ€ฆ/events routes are Server-Sent Events streams (text/event-stream). The ingress disables buffering for them.

Public

Method Path Does
GET /healthz ok; readiness and liveness probes
GET /llms.txt for AI agents: what the platform is, how to connect over MCP, roles and rules (Built for agents)
GET /api/public/stats aggregate numbers for a public page; only with PUBLIC_STATS=true, and only on the internal STATS_LISTEN port when that is set (what it contains)
GET /api/public/activity the welcome page's Right now in the town: runs queued or running and the 8 latest releases, by app name and time only (no repositories, commits, branches or messages); only with PUBLIC_ACTIVITY=true
POST /api/webhooks/github GitHub App webhooks (push, pull request, installation), verified by HMAC
POST /api/webhooks/gitlab GitLab project webhooks (push, merge request), checked by their X-Gitlab-Token (Connecting GitLab)
GET /api/auth/gitlab/{id} sign in with a connected GitLab
GET /api/forjas/gitlab/callback GitLab sends people back here: connecting, signing in or linking an account
POST /api/webhooks/bitbucket Bitbucket repository webhooks (push, pull request), verified by HMAC-SHA256 in X-Hub-Signature (Connecting Bitbucket)
GET /api/auth/bitbucket/{id} sign in with a connected Bitbucket workspace
GET /api/forjas/bitbucket/callback Bitbucket sends people back here (the OAuth consumer's callback URL): connecting, signing in or linking an account
GET /api/opiniones the comments received, newest first, without emails (operators, where comments are received)
GET /api/opiniones/cuenta how many comments wait for an answer: {porRevisar}
GET /api/opiniones/{id} one comment, with its email until it is deleted, and its answer
PUT /api/opiniones/{id} change its class, set it aside or back to review, its group (0: none) or its draft
POST /api/opiniones/{id}/reclasificar ask the AI to sort it and draft again
POST /api/opiniones/{id}/respuesta send the answer {respuesta}, once, with your name: by email to the form's sender; kept for an installation
GET /api/senales/comentarios/{id}/respuesta the answer to comment id, only for the installation whose token (header X-Ficha) hashes to the one it sent: 204 while there is none
GET /api/al-equipo writing to the team from this installation: whether comments may go (seรฑales on), exactly what would go, and your comments with their answers (it marks them seen); it first asks rendimiento.ai for the missing answers, at most once a minute and for at most 3 seconds
POST /api/al-equipo send a comment {texto} to the team, the way seรฑales go
GET /api/al-equipo/sin-ver how many answers you have not seen: {sinVer}
POST /api/senales/comentarios a comment for the team, where seรฑales are received: {texto, idioma, correo, nombre} from the public form or {texto, idioma, datos, ficha} from an installation; up to 2,000 characters, 3 an hour per sender and 200 a day in all (429 past that)
GET /api/auth/login redirects to GitHub OAuth
GET /api/auth/callback OAuth callback; creates the session
POST /api/auth/logout ends the session
GET /api/setup/status whether the platform is installed (configured; else install, the setup page's state), whether Sign in with GitHub leads anywhere (github), and the GitLabs and Bitbucket workspaces one can sign in with (signIn)
POST /api/setup/token {token}: install, step 1; the setup token, compared in constant time, opens an install session (a signed cookie). 404 once installed
POST /api/setup/gitlab install, step 2 with a GitLab {baseUrl, applicationId, applicationSecret}; needs the install session; answers where to authorize it
POST /api/setup/bitbucket install, step 2 with a Bitbucket workspace {workspace, consumerKey, consumerSecret}; needs the install session
GET /api/setup/github starts the App manifest flow (the install session, ?token=SETUP_TOKEN, or a platform administrator's session)
POST /mcp the MCP endpoint for agents (la Ruta); needs an agent key as a bearer token, not a session
GET /api/setup/github/callback GitHub returns the new App's credentials; they are saved in a Secret

Account and environment ๐Ÿ”’

Method Path Does
GET /api/inicio the signed-in person's home page: its sections in order, each {id, on} (secciones), whether they chose it (propias), the default (predeterminado, and predeterminadoPor when an administrator set it), and whether they may set it (puedeFijar)
PUT /api/inicio keeps the person's own home page, {"secciones": [{"id": "apps", "on": true}, โ€ฆ]} (any role; not in a demo)
DELETE /api/inicio Back to the usual: forgets the person's own home page
PUT /api/inicio/predeterminado the home page of everyone who never chose theirs (the platform's administrators)
DELETE /api/inicio/predeterminado back to the built-in default (the platform's administrators)
GET /api/me the signed-in login, and which rendimiento answers: version, modo (local or kubernetes), os, arch
GET /api/installations GitHub App installations
GET /api/installations/{id}/repos repositories of an installation
POST /api/installations/{id}/connect connect the GitHub App on your own GitHub account to your organization (GitHub accounts)
DELETE /api/installations/{id} stop your organization creating apps from an installation
GET /api/forjas where the apps' code lives: GitHub, the connected GitLabs and Bitbucket workspaces (operators)
POST /api/forjas/gitlab connect a GitLab {baseUrl, applicationId, applicationSecret}; answers where to authorize it
POST /api/forjas/gitlab/{id}/authorize authorize a GitLab connection again
DELETE /api/forjas/gitlab/{id} forget a GitLab connection no app uses; 409 when it is the last forja an administrator signs in with
GET /api/forjas/gitlab/{id}/acceso who would lose access without it (members, and admins among them)
GET /api/forjas/gitlab/{id}/projects the projects of a GitLab connection, for New app
POST /api/forjas/bitbucket connect a Bitbucket workspace {workspace, consumerKey, consumerSecret}; answers where to authorize it
POST /api/forjas/bitbucket/{id}/authorize authorize a Bitbucket connection again
DELETE /api/forjas/bitbucket/{id} forget a Bitbucket connection no app uses; 409 when it is the last forja an administrator signs in with
GET /api/forjas/bitbucket/{id}/acceso who would lose access without it (members, and admins among them)
GET /api/forjas/bitbucket/{id}/repos the repositories of a Bitbucket workspace, for New app
GET /api/me/identities your accounts on other forjas, linked to you
POST /api/me/identities/gitlab/{id} link your account on a GitLab; answers where to authorize it
POST /api/me/identities/bitbucket/{id} link your Bitbucket account; answers where to authorize it
DELETE /api/me/identities unlink one of your accounts (?forja&baseUrl&externalId)
GET /api/org-installations operators: every installation and the organizations it is given to
PUT /api/org-installations/{id} operators: give an installation to an organization: {org}
DELETE /api/org-installations/{id}?org= operators: take it away
GET /api/zones DNS zones the token can edit
GET /api/environment the Environment page's checks
GET /api/platform/version which release of rendimiento runs and whether a newer one is ready (SELF_APP)
POST /api/platform/update update rendimiento to a release's image: {release}; it restarts a few seconds later
GET /api/services the Services catalog (apps, add-ons, cluster services, connection info)
GET /api/universe every app from above: barrios, systems, nodes (with their latest uptime checks) and the edges between them, with calls per minute, errors and latency (with their trends) from traces over ?window= (15m, 1h, 24h); ?refresh=1 rebuilds the catalog first
GET /api/universe/traces requests the traces service kept, newest first; ?service=app/service, ?errors=1 for the failed ones, ?before= (RFC 3339) to page back
GET /api/universe/traces/{id} one kept request and its spans, for the waterfall
GET /api/universe/spans what one observed service does, from its traces: routes served, its own moments, calls made, with calls per minute, errors, latency and trends; ?service=app/service, ?window=
GET /api/stats/visits the dashboard's visitors panel: the last 7 days of every app Umami counts, and the 7 before (Visits)
GET /api/stats/delivery the dashboard's delivery stats: the last 30 days, the 30 before, and twelve weekly points
GET /api/problems the platform's own warnings and errors, grouped (Problems)
GET /api/problems/count how many problems are open (the top bar's badge)
POST /api/problems/{id}/dismiss dismiss a problem
GET /api/registro the platform's log, newest first, for its administrators (The log); ?proceso=, ?app=, ?nivel=WARN or ERROR (that level and worse), ?desde= and ?hasta= (RFC 3339), ?q= (in the message), ?antes= (the next cursor of the page before), ?limite= (up to 200)
POST /api/fallas the interface reports an error page it showed (not found, no access, failed, no answer) to Problems; who saw it is not kept
GET /api/ruta?kind=&q= la Ruta's entries
POST /api/ruta add an entry (written by the signed-in person)
PUT /api/ruta/{id} change an entry (the previous version is kept)
POST /api/ruta/{id}/archive hide an entry from lists
GET /api/ruta/activity agents' cargos and their latest tool calls
GET /api/ruta/portada the Ruta's front page for you: delivered encargos to review, entries tagged por-decidir, to-dos tagged para-usted or with your login, unconfirmed known failures, comments nobody answered, encargos nobody has, the counts of the day (?hoy=: when your day began) and the latest entries
GET /api/agent-keys agent keys (never the tokens)
POST /api/agent-keys create an agent key (name, role: reader or collaborator, apps: empty for all, days); the token is in this answer only
DELETE /api/agent-keys/{id} revoke an agent key
GET /api/orgs the organizations the person belongs to, with their role
POST /api/orgs create an organization (slug, name); the platform's operators only; the creator is its first administrator
POST /api/orgs/{id}/switch work in another of the person's organizations
GET /api/ia the organization's AI: provider, model, cap, the end of its own key, this month's spending, the latest calls
PUT /api/ia change it (provider: local, own, platform; kind, baseUrl, model, capDollars, key, removeKey, autoDiagnose, escalateTo: own, platform or empty, escalateLimit, encargoAutoDollars: the most an encargo may be estimated to cost for the platform's AI to take it, codeAgent: off, asked or auto, autoEncargo: off, branches or all); administrators
POST /api/ia/test ask the organization's model one question (prompt), measured; collaborators
GET /api/ia/cuentas how the coding agent is doing: what it finished, gave back and why, what you answered, spent against the estimate, the factor the estimator applies, and a warning of three releases in a row for one cause (days: 7, 30 by default, 90, or 0 for all of it); every member
GET /api/ia/orgs every organization's allowance of the platform's AI and spending, and the platform's bill; operators
PUT /api/ia/orgs/{id}/allowance an organization's monthly allowance of the platform's AI (dollars); operators
GET /api/ia/platica what one conversation about an entry may spend on paid models before it asks (capMicros)
PUT /api/ia/platica change it (dollars, $0.05 to $20); administrators
GET /api/ruta/{id}/platica the conversation about an entry (talking an entry over): its signed messages, the idea so far, the AIs it may choose (ias, with what a message costs) and the one answering (ia), what it spent and its cap (alTope: reached); never lo vivido
POST /api/ruta/{id}/platica write in it (texto); the chosen AI answers shortly (your own agent, over MCP). Past the cap it answers 402, and continuar: true allows one cap more; collaborators
PUT /api/ruta/{id}/platica/ia who answers it from now on (ia: local, own, platform or agente); collaborators
PUT /api/ruta/{id}/platica/idea correct the idea so far (idea); collaborators
POST /api/ruta/{id}/platica/propuesta the AI's proposal of encargos from it, priced by the estimator (encargos, decidido, precios for each difficulty); collaborators
POST /api/ruta/{id}/platica/encargos create the encargos kept from it (encargos: titulo, app, dificultad, detalle, ruta: platform or local, despuesDe), save the decision (decision: guardar, texto) and send the platform AI's to the coding agent (mandar); collaborators
GET /api/members the organization's people and their roles
POST /api/runs/{id}/diagnosis/feedback judge a run's explanation (useful, or cause when it was wrong): it becomes a known failure in the Ruta the diagnostician reads; collaborators
PUT /api/members/{login} add a person by GitHub login, or change their role (role: guest, collaborator, admin); administrators only
DELETE /api/members/{login} remove a person; the last administrator stays
GET /api/encargos open encargos (?all=1: also reviewed and dropped)
POST /api/encargos ask agents for something (title, body, app, runId)
GET /api/encargos/{id} one encargo with its history
POST /api/encargos/{id}/review accept a delivered encargo (accept: true) or send it back with a comment
POST /api/encargos/{id}/cancel drop an encargo (optional reason)
POST /api/encargos/{id}/app the app a pending encargo nobody has is about (app); collaborators of that app
POST /api/encargos/{id}/stop ask the coding agent to stop the encargo it does: it gives it back with what it did
POST /api/encargos/{id}/answer answer what the coding agent asks about an encargo (answer): it goes on on its branch with the answer; a person's session only, never an agent key
POST /api/encargos/{id}/pass pass an encargo the coding agent asks about to your own agent, with the question in its history
GET /api/encargos/cola the coding agent's queue: what it does now, next in order, finished for review, given back; its mode, how many at once, and what it spent today
POST /api/encargos/cola/orden the queue's order (ids, the first done first); the rest go after
GET /api/comentarios comments on agents' work, oldest first: a cargo's (?cargo=), an encargo's (?encargo=), or the organization's latest; new marks an agent's answer to one of yours not seen yet
POST /api/comentarios comment on a cargo (cargoId) or an encargo (encargoId) without sending it back (body); collaborators
GET /api/comentarios/respuestas agents' answers to your comments you have not seen yet (the bell)
POST /api/comentarios/vistos mark answers to your comments as seen (ids)
PUT /api/apps/{app}/auto-encargo when an encargo opens by itself for the app's explained failures (mode: off, branches, all, or empty to follow the organization); administrators
POST /api/encargos/do send pending encargos to the coding agent (ids); it must be on
POST /api/encargos/{id}/estimate rate an encargo again (the estimator does it within 30 seconds)
POST /api/encargos/{id}/route who does a pending encargo: route platform (the platform's AI) or local (your own agent)
POST /api/notifications/test send a sample notification email now (the Environment page's button)
POST /api/dns/sync re-create every app's DNS records now
POST /api/propose detect a repo and return a proposed rendimiento.yaml + Dockerfile
GET /api/namespaces/{name}/migration what already exists in a namespace (for adopting existing workloads)

Apps ๐Ÿ”’

Method Path Does
GET /api/apps list apps with status
POST /api/apps onboard a repo (opens the setup pull request, or adopts directly)
GET /api/mercado the Mercado: whether it is on, and every page with its app's state
POST /api/mercado open a page: {pagina, dominio}; creates its repository and app (photos as data: URLs, up to 24 MB in all)
POST /api/mercado/preview the page's HTML for the form's preview, as {html}
GET /api/mercado/{app} a page's form answers (pagina.json), address and repository
PUT /api/mercado/{app} save a page: one commit, which publishes it
GET /api/apps/{app} one app: spec, status, latest run and release
DELETE /api/apps/{app} delete the app and everything it created
GET /api/apps/{app}/impact what a delete would remove (shown before confirming)
POST /api/apps/{app}/disconnect stop managing the app but leave its workloads running
GET /api/apps/{app}/runs CI runs
GET /api/apps/{app}/branch-kinds the kind of each branch of the last 50 runs (main, fix, feature, release, deps, other) and its pull request (Kinds of branch)
GET /api/apps/{app}/caminos the last 14 days of runs by branch, with where each branch started and was merged (Roads)
POST /api/apps/{app}/runs start a run of the default branch (the Run button)
GET /api/apps/{app}/releases release history (digest per service)
GET /api/apps/{app}/reliability?range=24h\|7d\|30d uptime checks: per check, uptime, p50/p95, chart buckets and the latest check; outages; releases in the range
GET /api/apps/{app}/releases/{number}/tasks/{task}/log the log of a release's post-deploy task
GET /api/apps/{app}/visits?range=today\|yesterday\|24h\|7d\|30d or ?day=2026-10-20 visitors from Umami: per matching website, totals and the period before, a chart series, top pages, referrers and countries, and the period's latest visitors (anonymous sessions)
GET /api/apps/{app}/visits/{site}/sessions/{session}?from=&to= one visitor's pages and events, oldest first (from and to in milliseconds, at most 31 days apart; the website must be one of the app's)
POST /api/apps/{app}/rollback roll back to an earlier release ({"release": N})
GET /api/apps/{app}/resources the live Kubernetes objects and their health (the resource tree)
GET /api/apps/{app}/secrets/{secret} the keys a secret holds ({"keys": [...]}), never their values
PUT /api/apps/{app}/secrets/{secret} add or replace a secret's keys ({"KEY": "value"}), keeping the others; null removes a key. Write-only: values are never returned
GET /api/apps/{app}/events SSE: app status changes
GET /api/apps/{app}/addons per-app add-ons (e.g. Renovate) and their state
PUT /api/apps/{app}/addons/{addon} turn a per-app add-on on or off, or configure it

Runs ๐Ÿ”’

Method Path Does
GET /api/runs/{id} a run with its steps (the graph)
GET /api/corriendo what goes on in the organization's apps the person can enter: the runs queued or running with their steps (ahora, the home page's Running card), and the last 30 that ended (recientes, also for the top bar's search)
POST /api/runs/{id}/cancel cancel it; its build pods are deleted
GET /api/runs/{id}/steps/{step}/log a step's log (stored, or live while running)
GET /api/runs/{id}/dry/{task}/log the log of a check the run ran en seco, against the published release (?on=copy: against a copy of the branch)
GET /api/runs/{id}/events SSE: step state and log lines

Per-app add-ons (Renovate) ๐Ÿ”’

Method Path Does
GET /api/addons per-app add-on kinds
GET /api/addons/{addon} one, with its settings
PUT /api/addons/{addon} change its settings
GET /api/addons/{addon}/runs its runs
POST /api/addons/{addon}/runs run it now
GET /api/addons/{addon}/runs/{id} one run with its log

Installed add-ons (cluster add-ons) ๐Ÿ”’

Method Path Does
GET /api/addon-catalog the one-click catalog
GET /api/installed installed add-ons (Addon objects) with status
GET /api/installed/{name} one, with preview, hooks and inventory
PUT /api/installed/{name} install or change one (writes addons/<name>.yaml in the gitops repo)
PATCH /api/installed/{name} toggles: suspend, manual sync, prune, adopt
POST /api/installed/{name}/sync approve and apply pending changes (manual sync)
DELETE /api/installed/{name} uninstall (pre-delete hooks first; neverDelete kinds stay)

Example

# with a session cookie copied from the browser
curl -s -b "session=โ€ฆ" https://rendimiento.example.com/api/apps | jq '.[].name'
curl -s -b "session=โ€ฆ" -X POST https://rendimiento.example.com/api/apps/jobsentry/runs