API and actions

The panel, the command palette and your scripts all call the same actions. If you can do it in the panel, you can do it from code.

One registry for everything

Every module declares its actions in its manifest: an id, a title, a permission, a risk level, whether it changes anything, whether it can preview itself, and a JSON schema for its parameters and result. Today's build has 1283 actions across 34 modules, 734 of which can run as a dry run. Here is a real one, from the domains module:

- id: domains.create
  title: Add a domain
  permission: domains.manage
  risk: low
  mutates: true
  dry_run: true
  inverse: domains.delete
  params: schemas/create.params.json
  result: schemas/domain.json

The host checks the permission, the parameters (strict: unknown fields are refused), plan limits and risk before the module sees the call, and writes the audit row. The menu, the forms, the command palette and the API all come from the same entries.

Calling an action

Every action is a POST to its id, with the parameters as the JSON body. Reads are actions too.

curl -s https://panel.example.com:7443/api/v1/a/domains.list \
  -H "Authorization: Bearer $RC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"limit": 50}'
  • GET /api/v1/actions lists the actions you may run, with their schemas.
  • GET /api/v1/modules lists the installed modules.
  • Send an Idempotency-Key header with changes you might retry.

Previewing a change

Add ?dry_run=1 to any action that supports it. Nothing changes; you get back a plan with the targets and their diffs, the same plan the panel shows before Apply changes. Dry runs are not recorded as changes.

curl -s "https://panel.example.com:7443/api/v1/a/domains.create?dry_run=1" \
  -H "Authorization: Bearer $RC_TOKEN" -H "Content-Type: application/json" \
  -d '{"name": "shop.example.com", "kind": "addon", "account_id": "…"}'

Actions that can be undone also name their inverse (for example domains.create is undone by domains.delete).

Signing in from code

  • API tokens: send Authorization: Bearer <token>. Tokens are created on your Security page, scoped, and revocable at once. They can never change sign-in settings.
  • Browser sessions use a secure, HTTP-only cookie plus a CSRF header on every call.
  • Every method and path is denied unless an action allows it.

Errors

Every error has the same shape:

{"error": {"code": "limit_exceeded", "message": "…", "details": {}, "request_id": "…"}}
StatusCodeMeaning
400 invalid_params A parameter failed the action's schema. details names the field.
401 unauthenticated No valid session or token.
403 forbidden Signed in, but not allowed to run this action on this resource.
403 step_up_required A high-risk or critical action needs a fresh confirmation first.
404 not_found The resource does not exist, or is outside what you can see.
409 conflict The change clashes with existing state, such as a name already taken.
422 limit_exceeded A plan limit would be exceeded. details names the limit.
422 precondition_failed Something the action needs is missing, such as DNS access for a wildcard certificate. When details carries steps, they say what to do.
429 rate_limited Too many requests. Try again later.
502 agent_unreachable The server that should do the work did not answer. The desired state is kept for reconcile.
500 internal An unexpected error, logged with the request id.

Live events

GET /api/v1/events is a server-sent event stream of what modules emit (domains.created, ssl.cert.issued, security.firewall.reverted and so on), filtered to what you are allowed to see. The panel's live activity uses the same stream.

Beside the stream, the API describes itself per caller: an OpenAPI document that lists only what the caller may do. Integration tokens carry rate limits, batch calls and idempotent replay (long-running actions included), webhooks are signed, and rcctl runs the same action registry from the command line. rcctl mcp offers the same actions to AI clients over the Model Context Protocol, with the caller's permissions, and every change is previewed first. The panel serves the same at /mcp over HTTPS for remote clients such as claude.ai connectors, with an API token or OAuth 2.1 sign-in and consent. Whichever way a change is made, open panel pages show it at once.

Actions by module

ModuleActionsCan previewChange something
AI assistant and services 83 37 47
Apps 55 32 33
Backups 34 20 20
Branding 33 18 18
CDN 43 25 25
Cloud servers 27 18 18
Cluster 62 40 40
Containers 39 25 26
Databases 63 38 41
DNS 57 37 37
Domain providers 65 34 36
Domains 9 4 5
Editor 19 6 11
Files and SSH 41 24 27
Git 16 10 10
Hosting accounts 21 13 14
Importers 20 6 14
Integrations 26 17 17
Kubernetes 27 15 15
Logs 14 6 6
Mail 109 70 74
Mobile app 7 3 4
Plans and sizing 15 9 9
Projects 20 11 11
Security 44 31 31
Software 41 25 25
Spend and protection 11 4 4
SSL 29 18 18
Stats 15 7 7
Storage 31 17 18
Store and licence 26 14 15
Terminal 16 6 10
Webmail 97 52 59
Websites 68 42 43