{"openapi":"3.1.0","info":{"title":"Vektor API","version":"1.0","description":"Publish apps and AI agents, manage access, data and releases. Every endpoint is also a `vektor` CLI command; the CLI is a thin client of this API. Authenticate with an API key (`Authorization: Bearer vk_…`) from **API keys** in the dashboard or `vektor tokens create`."},"servers":[{"url":"https://api.getvektor.dev"}],"security":[{"bearer":[]}],"tags":[{"name":"Deploy","description":"Publish a folder. The same pipeline as the CLI and drag-and-drop: isolated build, health check, zero-downtime switch, release history."},{"name":"Apps","description":"Status, logs, environment variables, releases and scaling."},{"name":"Data","description":"Managed PostgreSQL per app and persistent files in `/data`."},{"name":"Agents","description":"AI agents: identity, outbound connections through the gateway, trace and kill switch."},{"name":"Files","description":"File storage for apps: uploads, images and PDFs that survive releases and work on every instance. Inside the app: `PUT/GET/DELETE $VEKTOR_FILES_URL/<path>` with `Authorization: Bearer $VEKTOR_FILES_KEY`, `GET $VEKTOR_FILES_URL?prefix=` lists, `POST $VEKTOR_FILES_URL/<path>?link=3600` makes a temporary download link. The endpoints below are for admins (CLI, CI)."},{"name":"Scheduled jobs","description":"Vektor calls a path of your app on a cron schedule (POST by default) with the `X-Vektor-Cron` header, wakes sleeping agents first and emails the owner when a job starts failing or recovers. Define jobs in `vektor.json` (`{\"cron\": [{ \"name\", \"schedule\", \"path\", \"timezone\" }]}`, synced on every deploy) or with the API."},{"name":"Templates and remix","description":"Start from a template, or make your own copy of an app you can open when its owner allows remixing. Only code is copied – never variables, data, the database or shares."},{"name":"AI models","description":"Every app gets `OPENAI_BASE_URL`/`OPENAI_API_KEY` and `ANTHROPIC_BASE_URL`/`ANTHROPIC_API_KEY` that point to the Vektor AI gateway, so the official SDKs work without a key in the code. Vektor adds the real key (the organization’s own or Vektor’s), enforces monthly budgets and records every call with its tokens and cost."},{"name":"OAuth for agents","description":"Agents act with each signed-in person’s own account (Google, GitHub, Microsoft or any OAuth 2.0 service). An org admin adds the OAuth app once; each person connects their account and can disconnect at any time. The agent gateway adds that person’s token (refreshed automatically) only for calls made on their behalf, and only to the listed API servers. If the person hasn’t connected yet, the gateway answers 403 with `consent_url`."},{"name":"Log streaming","description":"Stream the audit log, agent calls, AI calls and scheduled job runs to Splunk (HEC), Datadog, any OpenTelemetry collector (OTLP/HTTP) or a signed webhook. At-least-once delivery with retries; every event has a stable id. Team and Enterprise."},{"name":"Organizations","description":"Teams, members, usage and budgets."},{"name":"API keys","description":"Long-lived keys for CI, GitHub Actions and agents."},{"name":"Account","description":"Your own data: download everything Vektor stores about you, or delete your account (GDPR)."},{"name":"MCP","description":"Model Context Protocol endpoint for AI coding tools (Claude Code, Cursor)."}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key `vk_…` (dashboard → API keys) or a CLI sign-in"}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong, in plain language"},"code":{"type":"string","description":"Machine-readable code, when there is one"}}}}}}}},"paths":{"/deploy":{"post":{"tags":["Deploy"],"summary":"Deploy a folder","description":"Creates the app on first deploy, otherwise publishes a new release. The body may be gzip-compressed (`Content-Encoding: gzip`); the limit is 50 MB. An `index.html` without a server is served as a static site.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":"App name: lowercase letters, numbers, hyphens, max 40"},"org":{"type":"string","description":"Organization for a new app (default: personal)"},"kind":{"type":"string","description":"`app` (default) or `agent`","enum":["app","agent"]},"preview":{"type":"string","description":"Deploy a preview `<slug>--<preview>` of the existing app instead (same sign-in, sharing and variables; own data)"},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Path inside the app folder, forward slashes"},"content":{"type":"string","description":"File content, base64"}},"required":["path","content"]}}},"required":["slug","files"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":""},"org":{"type":"string","description":""},"release":{"type":"integer","description":"Release number"},"url":{"type":"string","description":"Public URL"},"port":{"type":"integer","description":""}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor push <slug> [--org <org>] [--agent]"}},"/apps":{"get":{"tags":["Apps"],"summary":"List apps you can access","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","description":""},"org_slug":{"type":"string","description":""},"url":{"type":"string","description":""},"role":{"type":"string","description":"admin | viewer"}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor apps"}},"/apps/{slug}":{"delete":{"tags":["Apps"],"summary":"Delete an app and its data","description":"Removes containers, images, the managed database (after a final backup) and `/data`. Cannot be undone.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor apps delete <slug>","x-vektor-role":"org admin"}},"/apps/{slug}/logs":{"get":{"tags":["Apps"],"summary":"Read logs","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"tail","in":"query","schema":{"type":"integer","default":200}},{"name":"follow","in":"query","schema":{"type":"string","enum":["1"]},"description":"Stream new lines"},{"name":"build","in":"query","schema":{"type":"string","enum":["1"]},"description":"The last build log instead"}],"responses":{"200":{"description":"Plain text","content":{"text/plain":{"schema":{"type":"string"}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor logs <slug> [-f] [--build]"}},"/apps/{slug}/env":{"get":{"tags":["Apps"],"summary":"List environment variables","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"reveal","in":"query","schema":{"type":"string","enum":["1"]},"description":"Include values (audited)"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor env <slug>"},"put":{"tags":["Apps"],"summary":"Set or remove variables","description":"Creates a new variable version and restarts the app without downtime.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"set":{"type":"object","additionalProperties":{"type":"string"}},"unset":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor env set <slug> KEY=value"}},"/apps/{slug}/public":{"get":{"tags":["Apps"],"summary":"Public paths (no sign-in)","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor public"},"put":{"tags":["Apps"],"summary":"Set public paths","description":"Everything needs sign-in by default. Requests to these paths reach the app without sign-in, with X-User-Role: public and no X-User-Email – for webhooks (Stripe, GitHub, Slack), public forms or an API for outside callers. \"/path/*\" covers everything under /path; \"*\" makes the whole app public. Rate-limited per IP. Also set by \"public\" in vektor.json on deploy. An organization can forbid public paths (policy allow_public).","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paths":{"type":"array","items":{"type":"string"},"description":"e.g. [\"/webhooks/*\", \"/form\"]; [] = all private"}},"required":["paths"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor public add /webhooks/* --app <slug>"}},"/apps/{slug}/activity":{"get":{"tags":["Apps"],"summary":"Who uses the app","description":"Signed-in people who opened the app, by day (kept 90 days): active people in the last 7 and 30 days, people per day, and each person’s last day and number of days.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"days","in":"query","schema":{"type":"integer","default":30,"maximum":90}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"active_7d":{"type":"integer","description":""},"active_30d":{"type":"integer","description":""},"last_used":{"type":"string","description":"YYYY-MM-DD"},"daily":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","description":""},"users":{"type":"integer","description":""}}}},"people":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","description":""},"days":{"type":"integer","description":""},"last_seen":{"type":"string","description":""}}}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor activity <slug>"}},"/apps/{slug}/releases":{"get":{"tags":["Apps"],"summary":"Release history","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor releases <slug>"}},"/apps/{slug}/rollback":{"post":{"tags":["Apps"],"summary":"Roll back to an earlier release","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","description":"Release to restore (default: the previous one)"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor rollback <slug> [--to <version>]"}},"/apps/{slug}/metrics":{"get":{"tags":["Apps"],"summary":"Traffic, latency and availability","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"range","in":"query","schema":{"type":"string","enum":["1h","24h","7d"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor metrics <slug>"}},"/apps/{slug}/scale":{"post":{"tags":["Apps"],"summary":"Set the number of instances","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"replicas":{"type":"integer","description":"1–10"}},"required":["replicas"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor scale <n> --app <slug>"}},"/apps/{slug}/autoscale":{"get":{"tags":["Apps"],"summary":"Autoscaling status","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor autoscale <slug>"},"put":{"tags":["Apps"],"summary":"Turn on autoscaling (Pro)","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"min":{"type":"integer","description":""},"max":{"type":"integer","description":""},"target_rpm":{"type":"integer","description":"Requests per minute per instance"},"p99_ms":{"type":"integer","description":"Optional latency target"}},"required":["max","target_rpm"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor autoscale <slug> --min 1 --max 4 --target-rpm 600"},"delete":{"tags":["Apps"],"summary":"Turn off autoscaling","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}}}},"/apps/{slug}/domains":{"get":{"tags":["Apps"],"summary":"Custom domains","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor domains <slug>"},"post":{"tags":["Apps"],"summary":"Add a custom domain","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"e.g. app.example.com"}},"required":["domain"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor domains add <slug> <domain>"}},"/apps/{slug}/db":{"get":{"tags":["Data"],"summary":"Database status","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor db <slug>"},"post":{"tags":["Data"],"summary":"Create a managed PostgreSQL database","description":"The app gets `DATABASE_URL` and restarts. Backups run every 24 h.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor db create <slug>"},"delete":{"tags":["Data"],"summary":"Delete the database (after a final backup)","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor db destroy <slug>"}},"/apps/{slug}/db/sql":{"post":{"tags":["Data"],"summary":"Run SQL as the app","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"One statement; 15 s, 500 rows"}},"required":["query"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor db sql <slug> \"select 1\""}},"/apps/{slug}/db/backups":{"get":{"tags":["Data"],"summary":"List backups","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor db backups <slug>"},"post":{"tags":["Data"],"summary":"Back up now","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor db backup <slug>"}},"/apps/{slug}/volume":{"get":{"tags":["Data"],"summary":"Files in /data: size and largest entries","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor volume <slug>"}},"/apps/{slug}/agent":{"get":{"tags":["Agents"],"summary":"Agent status, isolation and recent actions","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents status <slug>"}},"/apps/{slug}/agent/trace":{"get":{"tags":["Agents"],"summary":"Trace: every gateway call","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"limit","in":"query","schema":{"type":"integer","default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents trace <slug>"}},"/apps/{slug}/agent/kill":{"post":{"tags":["Agents"],"summary":"Kill switch","description":"Revokes the agent’s identity, freezes it and keeps the last log lines. Takes effect within a second.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Shown in the audit log"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents kill <slug>"}},"/apps/{slug}/agent/resume":{"post":{"tags":["Agents"],"summary":"Resume with a new identity","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents resume <slug>"}},"/apps/{slug}/agent/connections":{"post":{"tags":["Agents"],"summary":"Add an outbound connection","description":"The secret – or with oauth, the signed-in user’s own token – is added on the way out by the gateway; the agent never sees it.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"e.g. openai"},"base_url":{"type":"string","description":"https://…"},"header":{"type":"string","description":"Default Authorization"},"secret":{"type":"string","description":"Stored encrypted"},"methods":{"type":"array","items":{"type":"string"}},"oauth":{"type":"string","description":"Name of an org OAuth connection: the gateway adds the signed-in user’s own token (calls must carry x-vektor-delegation)"},"mcp":{"type":"boolean","description":"The URL is a remote MCP server: rules can target tools (POST /tools/<name>) and the trace shows the tool name"}},"required":["name","base_url"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents connect <slug> <name> <url> --secret"}},"/apps/{slug}/agent/stop":{"post":{"tags":["Agents"],"summary":"Stop gracefully","description":"Blocks new actions at once, lets running gateway calls finish, then freezes the agent. Credentials and memory are kept (unlike the kill switch). Resume with /agent/resume.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"wait":{"type":"boolean","description":"Return only after running calls have finished"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents stop <slug>"}},"/apps/{slug}/agent/rules":{"get":{"tags":["Agents"],"summary":"Rules: what the agent may do","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents rules <slug>"},"post":{"tags":["Agents"],"summary":"Add a rule","description":"Rules are checked in the gateway, before the request leaves Vektor. The first match wins; no match is allowed. `approve` holds the call until a human approves exactly that request (method, address and body).","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connection":{"type":"string","description":"Connection name"},"methods":{"type":"array","items":{"type":"string"},"description":"GET, POST, … or * (any)"},"path":{"type":"string","description":"Pattern inside the connection: * = one segment, ** = anything"},"effect":{"type":"string","description":"allow | deny | approve","enum":["allow","deny","approve"]}},"required":["connection","path","effect"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents rule <slug> <conn> \"DELETE /tickets/**\" approve"}},"/apps/{slug}/agent/rules/{id}":{"delete":{"tags":["Agents"],"summary":"Remove a rule","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents unrule <slug> <id>"}},"/apps/{slug}/agent/limits":{"put":{"tags":["Agents"],"summary":"Call limits and monthly budget","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"per_minute":{"type":"integer","description":"Calls per minute (null = default 600)"},"per_day":{"type":"integer","description":"Calls per 24 h (null = no limit)"},"budget_eur":{"type":["number","null"],"description":"Monthly spending cap in euros on priced connections (null = none)"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents limits <slug> --per-minute 60 --per-day 5000 --budget 50"}},"/apps/{slug}/agent/connections/{name}/pricing":{"put":{"tags":["Agents"],"summary":"Model pricing for a connection","description":"Euros per million tokens. Vektor reads token usage from OpenAI- and Anthropic-style responses and counts it against the monthly budget.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"price_in":{"type":["number","null"]},"price_out":{"type":["number","null"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents price <slug> <conn> --in 2.5 --out 10"}},"/apps/{slug}/agent/approvals":{"get":{"tags":["Agents"],"summary":"Actions waiting for a human","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"all","in":"query","schema":{"type":"string","enum":["1"]},"description":"Include decided ones"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents approvals <slug>"}},"/agent-approvals/{id}/approve":{"post":{"tags":["Agents"],"summary":"Approve an action","description":"The agent may then repeat exactly that request once, with the header `x-vektor-approval: <id>`. The person the agent acts on behalf of can’t approve their own request. Not available over MCP, so an agent can’t approve itself.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","description":""}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents approve <id>"}},"/agent-approvals/{id}/deny":{"post":{"tags":["Agents"],"summary":"Deny an action","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","description":"Shown to the agent and in the audit log"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents deny <id> --note \"…\""}},"/orgs":{"get":{"tags":["Organizations"],"summary":"Your organizations","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor orgs"},"post":{"tags":["Organizations"],"summary":"Create an organization","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":""},"name":{"type":"string","description":""}},"required":["slug"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor orgs create <slug>"}},"/orgs/{org}/members":{"get":{"tags":["Organizations"],"summary":"Members and invites","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor orgs members <org>"}},"/orgs/{org}/invites":{"post":{"tags":["Organizations"],"summary":"Invite a member","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":""},"role":{"type":"string","description":"admin | developer | viewer"}},"required":["email"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor orgs invite <org> <email> [--role developer]","x-vektor-role":"admin"}},"/orgs/{org}/members/{email}":{"put":{"tags":["Organizations"],"summary":"Change a role","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"email","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","description":"admin | developer | viewer"}},"required":["role"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-role":"admin"},"delete":{"tags":["Organizations"],"summary":"Remove a member","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"email","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-role":"admin"}},"/orgs/{org}/usage":{"get":{"tags":["Organizations"],"summary":"Usage this billing period","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor usage --org <org>"}},"/apps/{slug}/previews":{"get":{"tags":["Apps"],"summary":"Previews of an app","description":"Each preview is `<slug>--<name>`: same sign-in, sharing and variables as the app, its own data and database, no scheduled jobs. Created with `vektor push --preview <name>` or from git branches (`vektor git previews on`), removed after 14 days without a deploy or when the branch is deleted. Free: 1 per app, paid plans: 10.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor previews --app <slug>"}},"/apps/{slug}/previews/{name}/promote":{"post":{"tags":["Apps"],"summary":"Promote a preview to production","description":"The app switches to exactly the build that was tested in the preview – no rebuild – with zero downtime. Only code moves: the app keeps its own variables, database and /data. The new release shows in the history as a promotion (`summary.source` = `promote`) and can be undone with rollback.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"delete":{"type":"boolean","description":"Delete the preview afterwards"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":""},"preview":{"type":"string","description":""},"preview_release":{"type":"integer","description":""},"release":{"type":"integer","description":"New release of the app"},"preview_deleted":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor previews promote <name> --app <slug> [--delete]"}},"/apps/{slug}/previews/{name}":{"delete":{"tags":["Apps"],"summary":"Delete a preview","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor previews delete <name> --app <slug>"}},"/apps/{slug}/git/previews":{"put":{"tags":["Apps"],"summary":"Previews for git branches on or off","description":"A push to any branch other than the followed one deploys `<slug>--<branch>`; deleting the branch deletes the preview.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor git previews on --app <slug>"}},"/apps/{slug}/files":{"get":{"tags":["Files"],"summary":"List files and storage use","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"prefix","in":"query","schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor files ls [prefix]"}},"/apps/{slug}/files/{path}":{"get":{"tags":["Files"],"summary":"Download a file","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"path","in":"path","required":true,"schema":{"type":"string"},"description":"File path, e.g. `invoices/2026-11.pdf`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor files get <path>"},"put":{"tags":["Files"],"summary":"Upload a file","description":"The request body is the file; Content-Type is stored. Max 100 MB per file; storage quota per plan (Free 1 GB, Pro 10 GB, Team 50 GB).","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"path","in":"path","required":true,"schema":{"type":"string"},"description":"File path, e.g. `invoices/2026-11.pdf`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor files put <file> [path]"},"delete":{"tags":["Files"],"summary":"Delete a file","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"path","in":"path","required":true,"schema":{"type":"string"},"description":"File path, e.g. `invoices/2026-11.pdf`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor files rm <path>"}},"/apps/{slug}/files-link":{"post":{"tags":["Files"],"summary":"Temporary download link","description":"A signed link on the app’s own address that works without signing in until it expires (max 7 days).","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","description":"File path"},"expires_in":{"type":"integer","description":"Seconds, 60–604800 (default 3600)"}},"required":["path"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor files link <path> --expires 3600"}},"/apps/{slug}/cron":{"get":{"tags":["Scheduled jobs"],"summary":"Jobs and their latest runs","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor cron --app <slug>"},"post":{"tags":["Scheduled jobs"],"summary":"Add or update a job","description":"Free plan: 3 jobs per app, at most every 15 minutes. Paid plans: 50 jobs, every minute.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Lowercase letters, numbers, hyphens"},"schedule":{"type":"string","description":"Cron expression: `*/15 * * * *`, `0 9 * * 1-5`, or @hourly / @daily / @weekly / @monthly"},"path":{"type":"string","description":"Path to call, e.g. `/api/report`"},"timezone":{"type":"string","description":"IANA time zone (default UTC), e.g. `Europe/Helsinki`"},"method":{"type":"string","description":"POST (default) or GET","enum":["POST","GET"]},"timeout_s":{"type":"integer","description":"5–900 seconds (default 300)"}},"required":["name","schedule","path"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor cron add <name> \"<schedule>\" <path> --tz Europe/Helsinki"}},"/apps/{slug}/cron/{name}":{"put":{"tags":["Scheduled jobs"],"summary":"Pause or resume a job","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"name","in":"path","required":true,"schema":{"type":"string"},"description":"Job name, e.g. `daily-report`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor cron pause <name>"},"delete":{"tags":["Scheduled jobs"],"summary":"Remove a job","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"name","in":"path","required":true,"schema":{"type":"string"},"description":"Job name, e.g. `daily-report`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor cron remove <name>"}},"/apps/{slug}/cron/{name}/run":{"post":{"tags":["Scheduled jobs"],"summary":"Run a job now","description":"Waits for the result: status, duration and the start of the response.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"name","in":"path","required":true,"schema":{"type":"string"},"description":"Job name, e.g. `daily-report`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor cron run <name>"}},"/account/export":{"get":{"tags":["Account"],"summary":"Download your data","description":"Organizations, apps you created and that are shared with you, API key details (never the keys), sign-ins, access requests and your audit trail, as JSON.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor account export > my-data.json"}},"/account/deletion":{"get":{"tags":["Account"],"summary":"What deleting your account would do","description":"The apps and workspace that would be deleted, the organizations you would leave, and anything that blocks deletion (for example, being the only admin of a team).","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor account delete"}},"/account":{"delete":{"tags":["Account"],"summary":"Delete your account","description":"Deletes your personal workspace and its apps (data and databases too; a final database copy is kept 30 days), cancels its subscription, removes you from organizations and revokes every sign-in and key. Cannot be undone.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string","description":"Your email address, to confirm"}},"required":["confirm"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor account delete --confirm <email>"}},"/templates":{"get":{"tags":["Templates and remix"],"summary":"Starter templates","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor templates"}},"/templates/{id}/deploy":{"post":{"tags":["Templates and remix"],"summary":"Create an app from a template","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Template id, e.g. `ai-chat`"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":"Name of the new app (default: the template id, made unique)"},"org":{"type":"string","description":"Organization (default: personal)"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor new <template> [name] [--org <org>]"}},"/remixable":{"get":{"tags":["Templates and remix"],"summary":"Apps you can remix","description":"Apps you can open whose owner allows remixing.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor remix list"}},"/apps/{slug}/remix":{"get":{"tags":["Templates and remix"],"summary":"Remix status of an app","description":"Whether the app can be remixed, why not, how many times it was remixed, the variable names the copy needs, and the shareable remix link.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}}},"put":{"tags":["Templates and remix"],"summary":"Allow or stop remixing","description":"Refused for agents, when the organization doesn’t allow remixing, or when the code contains secrets.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor remix enable <slug>"},"post":{"tags":["Templates and remix"],"summary":"Make your own copy (remix)","description":"Builds the latest release’s code as a new app in your workspace. Both organizations get an audit entry.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","description":"Name of the copy (default: <app>, made unique)"},"org":{"type":"string","description":"Organization (default: personal)"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor remix <slug> [name] [--org <org>]"}},"/apps/{slug}/source":{"get":{"tags":["Templates and remix"],"summary":"Code of the latest release","description":"The files of the latest release in the same shape as a deploy (path + base64 content), for editing locally.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor pull <slug> [folder]"}},"/orgs/{org}/oauth":{"get":{"tags":["OAuth for agents"],"summary":"OAuth connections and the redirect URI","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor oauth --org <org>","x-vektor-role":"admin"},"post":{"tags":["OAuth for agents"],"summary":"Add an OAuth connection","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","description":"google | github | microsoft | custom","enum":["google","github","microsoft","custom"]},"name":{"type":"string","description":"Short name (default: the provider)"},"client_id":{"type":"string","description":"OAuth client id"},"client_secret":{"type":"string","description":"OAuth client secret (stored encrypted)"},"scopes":{"type":"string","description":"Space-separated scopes"},"hosts":{"type":"string","description":"API servers the tokens may be sent to, comma-separated (presets fill this)"},"authorize_url":{"type":"string","description":"custom only"},"token_url":{"type":"string","description":"custom only"}},"required":["provider","client_id","client_secret"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor oauth add google --client-id <id> --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/oauth/{name}":{"delete":{"tags":["OAuth for agents"],"summary":"Remove an OAuth connection (disconnects everyone)","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor oauth remove <name> --org <org>","x-vektor-role":"admin"}},"/account/oauth":{"get":{"tags":["OAuth for agents"],"summary":"Your connected accounts","description":"Every OAuth connection in your organizations, whether you have connected it, and the link to connect.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor oauth me"}},"/account/oauth/{id}":{"delete":{"tags":["OAuth for agents"],"summary":"Disconnect your account","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor oauth disconnect <id>"}},"/orgs/{org}/log-streams":{"get":{"tags":["Log streaming"],"summary":"Log streams and their delivery status","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor siem --org <org>","x-vektor-role":"admin"},"post":{"tags":["Log streaming"],"summary":"Add a log stream","description":"Starts from now unless backfill_hours is given (max 720). A webhook gets a signing secret, returned once.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"splunk | datadog | otlp | webhook","enum":["splunk","datadog","otlp","webhook"]},"url":{"type":"string","description":"Destination (Datadog: optional, default EU intake)"},"token":{"type":"string","description":"Splunk HEC token, Datadog API key, or a bearer token"},"categories":{"type":"array","items":{"type":"string","enum":["audit","agent","ai","cron"]}},"backfill_hours":{"type":"integer","description":"Send history from this many hours back"}},"required":["type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor siem add splunk https://splunk.example.com:8088 --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/log-streams/{id}":{"put":{"tags":["Log streaming"],"summary":"Pause, resume or change a stream","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"categories":{"type":"array","items":{"type":"string"}},"url":{"type":"string","description":"New destination"},"token":{"type":"string","description":"New token"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor siem pause <id> --org <org>","x-vektor-role":"admin"},"delete":{"tags":["Log streaming"],"summary":"Remove a stream","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor siem remove <id> --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/log-streams/{id}/test":{"post":{"tags":["Log streaming"],"summary":"Send a test event","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor siem test <id> --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/ai":{"get":{"tags":["AI models"],"summary":"AI spend, budget and keys of the organization","description":"Spend this billing period per app and per model, the effective monthly budget, and for each provider whether apps use the organization’s own key or Vektor’s key (list price + markup, billed with usage).","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor ai --org <org>","x-vektor-role":"admin"},"put":{"tags":["AI models"],"summary":"AI on/off, monthly budget and the model policy","description":"The model policy is enforced in the gateway: a call to a model outside allowed_models, or with a premium speed tier when allow_premium is false, answers 403 in the provider’s own error format and is recorded as blocked.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"budget_eur":{"type":["number","null"],"description":"Monthly AI budget in euros; null = default (€1 on Free, €20 on paid plans)"},"allowed_models":{"type":["array","null"],"items":{"type":"string"},"description":"Approved models; * matches anything (e.g. [\"claude-sonnet-*\", \"gpt-6.2-sol*\"]). null = every model"},"allow_premium":{"type":"boolean","description":"Allow premium speed tiers (Anthropic fast mode, OpenAI priority / fast / ultrafast), which cost 2–6 × the price"},"dlp":{"type":"string","enum":["off","block","redact"],"description":"AI data protection: payment card numbers (Luhn), IBANs (mod 97), Finnish personal identity codes (check character) and API / private keys in request bodies are blocked (403) or replaced with [REDACTED: <type>] before the request leaves Vektor. Only the type and count are recorded."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor ai budget <euros> --org <org> · vektor ai models --org <org> --allow \"claude-sonnet-*\"","x-vektor-role":"admin"}},"/orgs/{org}/ai/keys/{provider}":{"put":{"tags":["AI models"],"summary":"Use the organization’s own provider key","description":"The key is encrypted and never shown again; apps keep their Vektor key. Calls are then billed by the provider, not by Vektor.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"provider","in":"path","required":true,"schema":{"type":"string","enum":["openai","anthropic"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","description":"sk-… or sk-ant-…"}},"required":["key"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor ai key set openai --org <org>","x-vektor-role":"admin"},"delete":{"tags":["AI models"],"summary":"Remove the organization’s own provider key","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"provider","in":"path","required":true,"schema":{"type":"string","enum":["openai","anthropic"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor ai key remove openai --org <org>","x-vektor-role":"admin"}},"/apps/{slug}/ai":{"get":{"tags":["AI models"],"summary":"AI calls, cost and budget of an app","description":"The variables injected into the app, spend this period and the latest 25 calls (model, tokens, cost, blocked reason).","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor ai <slug>"},"put":{"tags":["AI models"],"summary":"Set the app’s monthly AI budget","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"budget_eur":{"type":["number","null"],"description":"Euros a month; null = only the organization budget applies"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor ai budget <euros> <slug>"}},"/orgs/{org}/governance":{"get":{"tags":["Organizations"],"summary":"Inventory of AI apps and agents with risk flags","description":"Every app and agent: owner, access (members and outside shares), last release, traffic, database, agent connections, rules and budget, secrets found in the code, review state. Risk flags: secrets, owner_left, shared_outside, agent_unguarded, no_backup, stale.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"format","in":"query","schema":{"type":"string","enum":["csv"]},"description":"CSV report instead of JSON"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor governance --org <org> [--csv]","x-vektor-role":"admin"}},"/orgs/{org}/governance/policy":{"put":{"tags":["Organizations"],"summary":"Review and secrets policy","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"require_review":{"type":"boolean","description":"New apps and agents open only for their owner and admins until approved"},"block_secrets":{"type":"boolean","description":"Reject deploys that contain API keys, private keys or passwords"},"allow_remix":{"type":"boolean"},"protect_production":{"type":"boolean","description":"Changes reach an existing app only through a preview that a different person promotes (four-eyes). Direct deploys answer 409; pushes to the followed git branch become a preview."},"allow_external_sharing":{"type":"boolean","description":"false = apps can be shared only with members and addresses in the organization’s verified SSO domains"},"allow_public":{"type":"boolean","description":"false = no public paths: every request to every app needs sign-in"},"require_mfa":{"type":"boolean","description":"Members reach the organization only with a passkey or single sign-on (an email link alone is refused; API keys must be created from such a session). Turning it on requires that you signed in that way yourself."},"access_log":{"type":"boolean","description":"Record every request to the organization’s apps (person, path, result, IP). Team and Enterprise."},"session_max_hours":{"type":["integer","null"],"minimum":1,"maximum":720,"description":"Members sign in again when their sign-in (email link, passkey or SSO) is older than this. Applies to the organization’s apps, pages and API; null = no limit. Refused (409) if your own sign-in is already older."},"api_key_max_days":{"type":["integer","null"],"minimum":1,"maximum":365,"description":"API keys (including vektor login keys) older than this are refused (403 key_too_old) in the organization; null = no limit."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor governance policy --org <org> --require-review on --block-secrets on","x-vektor-role":"admin"}},"/apps/{slug}/review":{"post":{"tags":["Organizations"],"summary":"Approve or reject a new app","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","description":"approve | reject","enum":["approve","reject"]},"note":{"type":"string","description":""}},"required":["decision"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor review approve <slug>","x-vektor-role":"org admin"}},"/orgs/{org}/audit":{"get":{"tags":["Organizations"],"summary":"Audit log (hash-chained)","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor audit --org <org>","x-vektor-role":"admin"}},"/apps/{slug}/domains/{domain}":{"delete":{"tags":["Apps"],"summary":"Remove a custom domain","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"description":"e.g. `app.example.com`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor domains remove <domain> --app <slug>"}},"/apps/{slug}/domains/{domain}/verify":{"post":{"tags":["Apps"],"summary":"Check the DNS records of a domain","description":"Checks the TXT ownership record and the CNAME/A record. When both are right the domain starts routing and the HTTPS certificate is requested automatically.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"description":"e.g. `app.example.com`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor domains verify <domain> --app <slug>"}},"/apps/{slug}/domains/{domain}/cert":{"post":{"tags":["Apps"],"summary":"Retry the HTTPS certificate","description":"Certificates renew automatically; use this after fixing DNS if the first request failed.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"domain","in":"path","required":true,"schema":{"type":"string"},"description":"e.g. `app.example.com`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}}}},"/apps/{slug}/git":{"get":{"tags":["Deploy"],"summary":"Git connection and recent git deploys","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor git --app <slug>"},"put":{"tags":["Deploy"],"summary":"Connect a git repository","description":"Every push to the branch deploys automatically through a webhook (`POST /apps/{slug}/git/secret` gives its URL and secret). The token for a private repo is stored encrypted and never shown again.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repo_url":{"type":"string","description":"https://github.com/acme/app.git"},"branch":{"type":"string","description":"Default main"},"subdir":{"type":"string","description":"Folder inside the repo"},"token":{"type":"string","description":"Read-only access token for a private repo"},"clear_token":{"type":"boolean"},"auto_deploy":{"type":"boolean","description":"Deploy on every push (default true); false = only on demand"},"previews":{"type":"boolean","description":"A preview for every other branch"}},"required":["repo_url"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor git connect <repo-url> --app <slug> [--branch main] [--dir sub] [--private]"},"delete":{"tags":["Deploy"],"summary":"Disconnect the repository","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor git disconnect --app <slug>"}},"/apps/{slug}/git/deploy":{"post":{"tags":["Deploy"],"summary":"Deploy the latest commit now","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"202":{"description":"Queued","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Git deploy id"},"sha":{"type":"string","description":"Commit"},"branch":{"type":"string","description":""},"queued":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor git deploy --app <slug>"}},"/apps/{slug}/git/secret":{"post":{"tags":["Deploy"],"summary":"Webhook URL and secret","description":"Add these to GitHub (Settings → Webhooks, content type `application/json`) or GitLab. The secret is shown here only.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor git secret --app <slug>"}},"/apps/{slug}/git/secret/rotate":{"post":{"tags":["Deploy"],"summary":"Replace the webhook secret","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor git secret --rotate --app <slug>"}},"/apps/{slug}/instances":{"get":{"tags":["Apps"],"summary":"Running instances: node, port, status","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor ps <slug>"}},"/apps/{slug}/shares":{"get":{"tags":["Apps"],"summary":"People the app is shared with","description":"Individual shares. Members of the app’s organization see it through their organization role.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor share --app <slug>"},"post":{"tags":["Apps"],"summary":"Share with a person","description":"The person signs in with that email (a one-time link) and sees the app with the role given. If the organization turned off sharing outside it, only members and addresses in its verified SSO domains can be added (403 otherwise).","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":""},"role":{"type":"string","description":"viewer (default) or admin","enum":["viewer","admin"]}},"required":["email"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor share <email> --role viewer --app <slug>"}},"/apps/{slug}/shares/{email}":{"delete":{"tags":["Apps"],"summary":"Remove a share","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"email","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor unshare <email> --app <slug>"}},"/apps/{slug}/owner":{"put":{"tags":["Apps"],"summary":"Change the owner of an app","description":"The owner gets the app’s monitoring and scheduled job emails. The new owner must be an admin or developer of the organization. When a member leaves or is removed (also through SCIM), their apps move to the admin who removed them (or the organization’s oldest admin) automatically, and apps shared with them one by one are unshared.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","description":""}},"required":["email"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor apps owner <slug> <email>","x-vektor-role":"org admin"}},"/apps/{slug}/move":{"post":{"tags":["Apps"],"summary":"Move an app to another organization","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"org":{"type":"string","description":"Destination organization"}},"required":["org"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor apps move <slug> --org <org>","x-vektor-role":"admin of both organizations (developer is enough in the destination)"}},"/apps/{slug}/volume/unlock":{"post":{"tags":["Data"],"summary":"Make locked /data writable for 15 minutes","description":"When `/data` is over the plan’s limit it becomes read-only. Unlock it briefly to delete files.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor volume unlock <slug>","x-vektor-role":"org admin"}},"/apps/{slug}/volume/reset":{"post":{"tags":["Data"],"summary":"Wipe /data permanently","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"string","description":"The app name, to confirm"}},"required":["confirm"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor volume reset <slug>","x-vektor-role":"org admin"}},"/apps/{slug}/db/rotate":{"post":{"tags":["Data"],"summary":"Rotate the database password","description":"The app gets the new `DATABASE_URL` with a zero-downtime restart.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor db rotate --app <slug>"}},"/apps/{slug}/db/backups/{id}/restore":{"post":{"tags":["Data"],"summary":"Restore a backup","description":"A safety backup of the current data is taken first. The backup is restored into a new database that replaces the old one only after the restore succeeds.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor db restore <id> --app <slug>"}},"/apps/{slug}/db/backups/{id}/download":{"get":{"tags":["Data"],"summary":"Download a backup","description":"PostgreSQL custom format: `pg_restore -d <url> backup.dump`. Audited.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Backup file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor db download <id> --app <slug>"}},"/apps/{slug}/agent/sleep":{"put":{"tags":["Agents"],"summary":"Sleep when idle","description":"The agent is paused after this many idle minutes and woken by the next request (about half a second).","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"minutes":{"type":["integer","null"],"description":"null = never sleep"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents sleep <slug> <minutes|off>"}},"/apps/{slug}/agent/connections/{name}":{"delete":{"tags":["Agents"],"summary":"Remove a connection","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents disconnect <slug> <name>"}},"/orgs/{org}/agents":{"get":{"tags":["Agents"],"summary":"Agents in an organization","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents --org <org>"}},"/orgs/{org}/agents/kill":{"post":{"tags":["Agents"],"summary":"Kill every agent in the organization","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Shown in the audit log"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor agents kill --all --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/billing":{"get":{"tags":["Organizations"],"summary":"Plan, limits and subscription","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor billing --org <org>"}},"/orgs/{org}/billing/checkout":{"post":{"tags":["Organizations"],"summary":"Start a subscription (Stripe Checkout)","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Open this page to pay by card"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor billing upgrade --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/billing/portal":{"post":{"tags":["Organizations"],"summary":"Card, invoices and cancellation (Stripe portal)","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":""}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor billing portal --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/notifications":{"get":{"tags":["Organizations"],"summary":"Notification channels","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor notify --org <org>","x-vektor-role":"admin"},"post":{"tags":["Organizations"],"summary":"Add a Slack, Teams or webhook channel","description":"Events: app.down, app.recovered, deploy.failed, cron.failed, cron.recovered, agent.approval, agent.budget, budget.alert, review.pending. The URL is stored encrypted and shown masked. A webhook channel gets signed JSON (X-Vektor-Signature: sha256=HMAC of the body with the signing secret, returned once; X-Vektor-Event, X-Vektor-Delivery). Delivery is retried 3 times.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"slack | teams | webhook","enum":["slack","teams","webhook"]},"url":{"type":"string","description":"Incoming webhook URL (https)"},"name":{"type":"string","description":""},"events":{"description":"\"all\" (default) or a list","oneOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"string"}}]}},"required":["type","url"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor notify add --type slack --url <webhook> --org <org>","x-vektor-role":"admin"}},"/apps/{slug}/classification":{"get":{"tags":["Apps"],"summary":"Data classification","description":"public, internal (default), confidential or restricted, and the rules it enforces.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor classify --app <slug>"},"put":{"tags":["Apps"],"summary":"Classify an app","description":"confidential: no public paths, no sharing outside the organization, no remix. restricted: as confidential, plus opening the app needs a passkey or single sign-on and the AI gateway refuses its calls. 409 lists what has to change first (public paths, outside shares, remix). Also \"classification\" in vektor.json.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"classification":{"type":"string","enum":["public","internal","confidential","restricted"]}},"required":["classification"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor classify confidential --app <slug>","x-vektor-role":"admin"}},"/apps/{slug}/sla":{"get":{"tags":["Apps"],"summary":"App reliability","description":"Availability target and where it comes from (app, organization or default), the last 30 days with the error budget left, and up to six months.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor sla --app <slug>"},"put":{"tags":["Apps"],"summary":"Set the availability target","description":"null returns to the organization default.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":["number","null"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor sla target 99.95 --app <slug>","x-vektor-role":"admin"}},"/apps/{slug}/details":{"put":{"tags":["Apps"],"summary":"Set the app description","description":"A short sentence about what the app is for (max 200 characters; empty removes it). Shown on the dashboard, in search and in the IT inventory. Also \"description\" in vektor.json.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string","description":""},"cost_center":{"type":["string","null"],"description":"Cost center for cost allocation, e.g. FIN-1200 (null clears)"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor describe \"Holiday planner for the sales team\"","x-vektor-role":"admin"}},"/orgs/{org}/region":{"get":{"tags":["Organizations"],"summary":"Data residency","description":"The organization’s data region, each app’s region, available regions and where databases, files and backups run (the platform’s home region).","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor region --org <org>"},"put":{"tags":["Organizations"],"summary":"Set the data region","description":"New apps and replicas run only on servers in this region; null = any region. Refused (409) if apps already run elsewhere, or if the region is not the home region while the organization has databases or stored files (those then answer 409 data_residency).","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"region":{"type":["string","null"],"description":"e.g. eu, eu-north, us"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor region set eu --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/report":{"get":{"tags":["Organizations"],"summary":"Monthly report settings","description":"Whether admins (and up to 10 extra recipients) get a monthly email with last month’s costs by cost center and app, which apps met their availability targets, and deploys and member changes.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"preview","in":"query","schema":{"type":"boolean"},"description":"Include the text of last month’s report"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor report --org <org> [preview]","x-vektor-role":"admin"},"put":{"tags":["Organizations"],"summary":"Change the monthly report","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string","format":"email"},"description":"Extra recipients besides the admins (or a comma-separated string)"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor report on --org <org> --to finance@company.com","x-vektor-role":"admin"}},"/orgs/{org}/report/send":{"post":{"tags":["Organizations"],"summary":"Send last month’s report now","description":"Sends to the admins and extra recipients; 409 if there is nobody to send to.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor report send --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/sla":{"get":{"tags":["Organizations"],"summary":"Reliability report","description":"Each app’s availability (share of health checks answered), successful-request rate (no 5xx), downtime, incidents, target and whether it was met in the month. Daily figures are kept for 400 days.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"month","in":"query","schema":{"type":"string"},"description":"YYYY-MM, default this month"},{"name":"format","in":"query","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor sla --org <org> [--month YYYY-MM] [--csv]"},"put":{"tags":["Organizations"],"summary":"Default availability target","description":"Target for apps without their own (90–99.999 %, null = 99.9 %).","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":["number","null"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor sla target 99.95 --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/costs":{"get":{"tags":["Organizations"],"summary":"Cost allocation","description":"Usage by app and cost center for a billing period. allocated_cents splits the organization’s usage charges between apps in proportion to what each used, metric by metric, so it adds up to the usage part of the invoice; list_cents is the same usage at list price before included amounts. Previews count under their own name and inherit the parent’s cost center; deleted apps stay in the period they ran in.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"period","in":"query","schema":{"type":"string","enum":["current","previous"]}},{"name":"format","in":"query","schema":{"type":"string","enum":["json","csv"]},"description":"csv: one row per app for accounting and BI tools"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor costs --org <org> [--previous] [--csv]","x-vektor-role":"admin"}},"/orgs/{org}/byok":{"get":{"tags":["Organizations"],"summary":"Customer-managed encryption key","description":"Whether the organization’s secrets are encrypted with its own AWS KMS or HashiCorp Vault key: key reference (no credentials), last successful use, last error and how many values it protects. Enterprise plan.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor byok --org <org>","x-vektor-role":"admin"},"put":{"tags":["Organizations"],"summary":"Use your own encryption key","description":"Turns on a customer-managed key, or moves to a different one. The key is tried in both directions before anything is stored. Turning it on re-encrypts the data keys of all app environment variables, their saved versions and shared variables. Credentials are stored encrypted and never returned. 402 without Enterprise, 502 if the key service refuses.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["aws-kms","vault"]},"key_id":{"type":"string","description":"aws-kms: key ARN, alias/<name> or key id"},"region":{"type":"string","description":"aws-kms"},"access_key_id":{"type":"string","description":"aws-kms"},"secret_access_key":{"type":"string","description":"aws-kms"},"address":{"type":"string","description":"vault: https://…"},"mount":{"type":"string","description":"vault: Transit mount, default transit"},"key_name":{"type":"string","description":"vault"},"namespace":{"type":"string","description":"vault (optional)"},"token":{"type":"string","description":"vault"}},"required":["provider"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor byok aws --key <arn> --region <region> --org <org>","x-vektor-role":"admin"},"delete":{"tags":["Organizations"],"summary":"Back to Vektor’s key","description":"Re-encrypts the secrets with the platform key and forgets the customer key. The key must still work (409 otherwise).","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor byok off --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/byok/check":{"post":{"tags":["Organizations"],"summary":"Check the encryption key now","description":"Forgets the cached key and asks the key service to open it again. { ok, error } plus the status. Secrets answer 503 customer_key_unavailable while the key does not work.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor byok check --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/config":{"get":{"tags":["Organizations"],"summary":"Organization settings as a file","description":"format vektor-org-config/1: policy, retention, ai, roles and ip_allowlist. No secrets and no members.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor config --org <org> > vektor.org.json","x-vektor-role":"admin"},"post":{"tags":["Organizations"],"summary":"Apply a settings file","description":"Makes the organization match the file. Only sections in the file are managed; roles and IP rules are declarative (missing ones are removed). Every change goes through the same validation and audit as the dashboard, and the run is audited (org.config_apply). Returns the list of changes.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"dry_run","in":"query","schema":{"type":"boolean"},"description":"Only list the changes"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor apply vektor.org.json [--dry-run]","x-vektor-role":"admin"}},"/orgs/{org}/support-access":{"get":{"tags":["Organizations"],"summary":"Vektor support access","description":"Whether Vektor’s support team can currently access the organization, until when and why, and the last ten grants.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor support --org <org>","x-vektor-role":"admin"},"post":{"tags":["Organizations"],"summary":"Let Vektor support in","description":"Support staff become members with the chosen role until the time runs out (at most 72 hours). Their actions appear in the audit log; grant and end are sent to notification channels.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Why, e.g. a ticket number"},"role":{"type":"string","enum":["viewer","developer"]},"hours":{"type":"number","maximum":72}},"required":["reason"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor support grant --org <org> --reason \"Ticket #123\"","x-vektor-role":"admin"},"delete":{"tags":["Organizations"],"summary":"End Vektor support access now","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor support revoke --org <org>","x-vektor-role":"admin"}},"/account/sessions":{"get":{"tags":["Account"],"summary":"Signed-in browsers","description":"One entry per sign-in (email link, passkey or SSO) with its browser, IP address, last use and how many apps it opened. Signing one out ends it in the dashboard and in every app.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor sessions"},"delete":{"tags":["Account"],"summary":"Sign out every browser","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor sessions revoke --all"}},"/account/sessions/{id}":{"delete":{"tags":["Account"],"summary":"Sign out one browser","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor sessions revoke <id>"}},"/orgs/{org}/members/{email}/sign-out":{"post":{"tags":["Organizations"],"summary":"Sign a member out everywhere","description":"Ends every browser session of a member whose address is in one of the organization’s verified domains (403 otherwise). API keys are not affected.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"email","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor orgs signout <org> <email>","x-vektor-role":"admin"}},"/apps/{slug}/access-log":{"get":{"tags":["Apps"],"summary":"Access log","description":"Every request to the app when the organization has the access log on (Team and Enterprise): time, person and role, method and path (no query string), status, duration, IP address and user agent. Denied attempts (401 / 403) are included. Newest first.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"description":"App name, e.g. `timeoff`"},{"name":"user","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"},"description":"denied, 4xx, 5xx or a status code"},{"name":"path","in":"query","schema":{"type":"string"},"description":"Path prefix"},{"name":"limit","in":"query","schema":{"type":"integer","maximum":1000}},{"name":"before","in":"query","schema":{"type":"integer"},"description":"Paging: the next value of the previous page"},{"name":"format","in":"query","schema":{"type":"string","enum":["csv"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor access-log --app <slug> [--user email] [--status denied]","x-vektor-role":"admin (or a custom role with logs)"}},"/orgs/{org}/export":{"get":{"tags":["Organizations"],"summary":"Export all organization data","description":"One ZIP: README, organization.json (settings and policies), members.csv, invites.csv, apps/<name>/app.json and apps/<name>/source/ (latest release), audit-log.csv with hashes, ai-calls.csv and agent-traces.csv. Secrets (variable values, keys, tokens, webhook URLs) are left out. Audited (org.export) and sent to notification channels. At most 5 exports per 10 minutes.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"application/zip"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor export --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/freezes":{"get":{"tags":["Organizations"],"summary":"Change freezes","description":"The active freeze (if any), upcoming freezes and the last five that ended.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor freeze --org <org>","x-vektor-role":"member"},"post":{"tags":["Organizations"],"summary":"Freeze production changes","description":"While a freeze is on, deploys to existing apps’ production, preview promotions and changes to app or shared variables answer 409 (code change_freeze). Previews, new apps, rollbacks and scaling keep working; pushes to a followed git branch become previews. An org admin can make an urgent change by sending the header X-Vektor-Freeze-Override with a URI-encoded reason (CLI: --override \"why\"); it is audited (freeze.override) and sent to notification channels. At most 90 days.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Why production is frozen, e.g. Holidays"},"starts_at":{"type":"string","description":"ISO time; default now"},"ends_at":{"type":"string","description":"ISO time"},"hours":{"type":"integer","description":"Instead of ends_at"},"days":{"type":"integer","description":"Instead of ends_at"}},"required":["reason"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor freeze start --org <org> --reason \"Holidays\" --until 2026-12-27T08:00Z","x-vektor-role":"admin"}},"/orgs/{org}/freezes/{id}":{"delete":{"tags":["Organizations"],"summary":"End or cancel a change freeze","description":"An active freeze ends now; an upcoming one is cancelled.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor freeze end <id> --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/retention":{"get":{"tags":["Organizations"],"summary":"Data retention","description":"How long the organization’s usage data is kept, with the record count and the oldest record per type. The audit log is not listed here: it is kept for as long as the organization exists.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor retention --org <org>","x-vektor-role":"admin"},"put":{"tags":["Organizations"],"summary":"Change data retention","description":"Days per data type, or null for the platform default. Older records are deleted right away (purged counts in the response) and then every hour.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ai_calls":{"type":["integer","null"],"minimum":35,"maximum":3650,"description":"AI call log: model, tokens, cost, blocks (never prompts). Default 400."},"agent_traces":{"type":["integer","null"],"minimum":1,"maximum":365,"description":"Agent traces. Default 30."},"activity":{"type":["integer","null"],"minimum":1,"maximum":365,"description":"Who opened which app, by day. Default 90."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor retention --org <org> --ai-days 90 --agent-days 14 --activity-days 30","x-vektor-role":"admin"}},"/orgs/{org}/notifications/{id}":{"put":{"tags":["Organizations"],"summary":"Change events or pause a channel","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"name":{"type":"string","description":""}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-role":"admin"},"delete":{"tags":["Organizations"],"summary":"Remove a channel","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor notify remove <id> --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/notifications/{id}/test":{"post":{"tags":["Organizations"],"summary":"Send a test notification","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor notify test <id> --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/access-reviews":{"get":{"tags":["Organizations"],"summary":"Access reviews","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor access-review --org <org>","x-vektor-role":"admin"},"post":{"tags":["Organizations"],"summary":"Start an access review (Team, Enterprise)","description":"Snapshots every member (role, custom role) and every app shared with a person. Admins mark each entry keep or revoke; nobody decides their own access. One open review at a time.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":""},"due_days":{"type":"integer","description":"Optional deadline in days"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor access-review start --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/access-reviews/{id}":{"get":{"tags":["Organizations"],"summary":"An access review with its entries","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}},{"name":"format","in":"query","schema":{"type":"string","enum":["csv"]},"description":"CSV evidence for auditors"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor access-review show <id> --org <org>","x-vektor-role":"admin, or a role with audit.read"}},"/orgs/{org}/access-reviews/{id}/decisions":{"post":{"tags":["Organizations"],"summary":"Decide entries","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decisions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Entry id"},"decision":{"type":"string","description":"keep | revoke","enum":["keep","revoke"]},"note":{"type":"string","description":""}},"required":["id","decision"]}}},"required":["decisions"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor access-review decide <id> <items> keep|revoke --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/access-reviews/{id}/close":{"post":{"tags":["Organizations"],"summary":"Close and apply revokes","description":"Requires every entry to be decided. Revoked members leave the organization (their apps move, their shares go); revoked shares are removed. Everything is in the audit log.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor access-review close <id> --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/roles":{"get":{"tags":["Organizations"],"summary":"Custom roles and the permission catalog","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor roles --org <org>"},"post":{"tags":["Organizations"],"summary":"Create a custom role (Team, Enterprise)","description":"A custom role starts from a built-in role. **developer** + `deny` removes permissions (e.g. a Deployer who can’t see secret values or the database). **viewer** + `grant` adds read access (e.g. an Auditor who reads the audit log and the inventory). Permissions: deploy, env.read, env.write, data, logs, share, settings, agents, delete. Read access: logs, audit.read, governance.read, usage.read. Give it to a member with PUT /orgs/{org}/members/{email} { role: \"<name>\" }. Every app endpoint maps to one permission, so new endpoints are covered automatically. A person’s individual app share (POST /apps/{slug}/shares) is not narrowed by their role.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"e.g. Deployer"},"base":{"type":"string","description":"developer | viewer","enum":["developer","viewer"]},"deny":{"type":"array","items":{"type":"string"}},"grant":{"type":"array","items":{"type":"string"}},"description":{"type":"string","description":""}},"required":["name","base"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor roles create <name> --base developer --deny env.read,data --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/roles/{name}":{"put":{"tags":["Organizations"],"summary":"Change a custom role","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor roles update <name> --deny … --org <org>","x-vektor-role":"admin"},"delete":{"tags":["Organizations"],"summary":"Delete a custom role (no members may have it)","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor roles delete <name> --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/vars":{"get":{"tags":["Organizations"],"summary":"Shared variables (names, scope, lock)","description":"Variables the organization shares with its apps – e.g. a company API key set once by IT. Apps get them as ordinary environment variables. An app’s own variable with the same name wins, unless the shared one is locked.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor env --org <org>","x-vektor-role":"admin, developer"}},"/orgs/{org}/vars/{key}":{"get":{"tags":["Organizations"],"summary":"Show a shared variable’s value","description":"Audited (`orgvar.reveal`).","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"Variable name, e.g. `SLACK_WEBHOOK_URL`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","description":""},"value":{"type":"string","description":""}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor env --org <org> --reveal","x-vektor-role":"admin"},"put":{"tags":["Organizations"],"summary":"Create or change a shared variable","description":"Apps that get the variable restart one at a time without downtime, in the background (`restart` lists them). Changing only `apps` restarts only the apps added or removed.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"Variable name, e.g. `SLACK_WEBHOOK_URL`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string","description":"Required for a new variable; leave out to change only the scope"},"apps":{"description":"`\"all\"` (default: every app in the organization, also future ones) or a list of app names","oneOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"string"}}]},"locked":{"type":"boolean","description":"Apps can’t override it with their own variable"},"description":{"type":"string","description":"What it is for (shown to members)"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","description":""},"created":{"type":"boolean"},"changed":{"type":"boolean"},"restart":{"type":"array","items":{"type":"string"}}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor env set KEY --org <org> [--apps a,b] [--locked]","x-vektor-role":"admin"},"delete":{"tags":["Organizations"],"summary":"Remove a shared variable","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"Variable name, e.g. `SLACK_WEBHOOK_URL`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor env unset KEY --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/usage/budget":{"put":{"tags":["Organizations"],"summary":"Monthly usage budget","description":"Email alerts at 80 % and 100 %. When the budget is used up, scaling up is blocked.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"euros":{"type":["number","null"],"description":"null = no budget"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor usage budget <euros|off> --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/scim":{"get":{"tags":["Organizations"],"summary":"SCIM provisioning: URL, users and groups","description":"Connect Okta or Microsoft Entra ID: people are added and removed automatically, and group membership sets the role.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor scim --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/scim/token":{"post":{"tags":["Organizations"],"summary":"Create or replace the SCIM token","description":"Shown once. Paste it into the identity provider together with the SCIM URL.","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor scim token --org <org>","x-vektor-role":"admin"},"delete":{"tags":["Organizations"],"summary":"Revoke the SCIM token","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor scim revoke --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/scim/default-role":{"put":{"tags":["Organizations"],"summary":"Role for people in no mapped group","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","description":"admin | developer | viewer","enum":["admin","developer","viewer"]}},"required":["role"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor scim default-role <role> --org <org>","x-vektor-role":"admin"}},"/orgs/{org}/scim/groups/{group}/role":{"put":{"tags":["Organizations"],"summary":"Map an identity provider group to a role","parameters":[{"name":"org","in":"path","required":true,"schema":{"type":"string"},"description":"Organization slug, e.g. `acme`"},{"name":"group","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":["string","null"],"description":"admin | developer | viewer, or null to remove"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor scim map \"<group>\" <role|none> --org <org>","x-vektor-role":"admin"}},"/tokens":{"get":{"tags":["API keys"],"summary":"List your API keys and CLI sign-ins","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor tokens"},"post":{"tags":["API keys"],"summary":"Create an API key","description":"The key is returned once. It has your permissions.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"e.g. GitHub Actions"},"days":{"type":["integer","null"],"enum":[7,30,90,365,null],"description":"null = no expiry"}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":""},"name":{"type":"string","description":""},"prefix":{"type":"string","description":""},"expires_at":{"type":"string","description":""},"token":{"type":"string","description":"vk_… – shown once"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor tokens create <name> [--days 90]"}},"/tokens/{id}":{"delete":{"tags":["API keys"],"summary":"Revoke a key","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor tokens revoke <id>"}},"/auth/whoami":{"get":{"tags":["API keys"],"summary":"Who am I","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor whoami"}},"/mcp":{"post":{"tags":["MCP"],"summary":"MCP endpoint (JSON-RPC over HTTP)","description":"Tools: deploy_files, app_status, app_logs, list_env, set_env, rollback, db_query, agent_status, agent_trace, agent_kill, agent_resume, whoami, list_apps.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"}},"x-vektor-cli":"vektor mcp config"}}}}