vektor/APIopenapi.jsonSign in

Vektor API

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.

Base URL

https://api.getvektor.dev

Auth

Authorization: Bearer vk_…

Errors

{ "error": "…" } with a 4xx/5xx status
# Deploy a folder from CI (GitHub Actions, GitLab, anywhere with Node)
$ npm install -g https://getvektor.dev/cli/vektor.tgz
$ VEKTOR_TOKEN=$VEKTOR_KEY vektor push my-app

# Or call the API directly
$ curl -H "Authorization: Bearer $VEKTOR_KEY" https://api.getvektor.dev/apps

Deploy

Publish a folder. The same pipeline as the CLI and drag-and-drop: isolated build, health check, zero-downtime switch, release history.

POST/deploy

Deploy a folder

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.

Body

slug string · required
App name: lowercase letters, numbers, hyphens, max 40
org string
Organization for a new app (default: personal)
kind string · app | agent
app (default) or agent
preview string
Deploy a preview <slug>--<preview> of the existing app instead (same sign-in, sharing and variables; own data)
files array · required
path string · required
Path inside the app folder, forward slashes
content string · required
File content, base64
GET/apps/{slug}/git

Git connection and recent git deploys

PUT/apps/{slug}/git

Connect a git repository

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.

Body

repo_url string · required
https://github.com/acme/app.git
branch string
Default main
subdir string
Folder inside the repo
token string
Read-only access token for a private repo
clear_token boolean
auto_deploy boolean
Deploy on every push (default true); false = only on demand
previews boolean
A preview for every other branch
DELETE/apps/{slug}/git

Disconnect the repository

POST/apps/{slug}/git/deploy

Deploy the latest commit now

POST/apps/{slug}/git/secret

Webhook URL and secret

Add these to GitHub (Settings → Webhooks, content type application/json) or GitLab. The secret is shown here only.

POST/apps/{slug}/git/secret/rotate

Replace the webhook secret

Apps

Status, logs, environment variables, releases and scaling.

GET/apps

List apps you can access

DELETE/apps/{slug}

Delete an app and its data · org admin

Removes containers, images, the managed database (after a final backup) and /data. Cannot be undone.

GET/apps/{slug}/logs

Read logs

slug path
App name, e.g. timeoff
tail query · default 200
follow query · 1
Stream new lines
build query · 1
The last build log instead
GET/apps/{slug}/env

List environment variables

slug path
App name, e.g. timeoff
reveal query · 1
Include values (audited)
PUT/apps/{slug}/env

Set or remove variables

Creates a new variable version and restarts the app without downtime.

Body

set object
unset array
GET/apps/{slug}/public

Public paths (no sign-in)

PUT/apps/{slug}/public

Set public paths

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).

Body

paths array · required
e.g. ["/webhooks/*", "/form"]; [] = all private
GET/apps/{slug}/activity

Who uses the app

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.

slug path
App name, e.g. timeoff
days query · default 30
GET/apps/{slug}/releases

Release history

POST/apps/{slug}/rollback

Roll back to an earlier release

Body (optional)

version integer
Release to restore (default: the previous one)
GET/apps/{slug}/metrics

Traffic, latency and availability

slug path
App name, e.g. timeoff
range query · 1h | 24h | 7d
POST/apps/{slug}/scale

Set the number of instances

Body

replicas integer · required
1–10
GET/apps/{slug}/autoscale

Autoscaling status

PUT/apps/{slug}/autoscale

Turn on autoscaling (Pro)

Body

min integer
max integer · required
target_rpm integer · required
Requests per minute per instance
p99_ms integer
Optional latency target
DELETE/apps/{slug}/autoscale

Turn off autoscaling

GET/apps/{slug}/domains

Custom domains

POST/apps/{slug}/domains

Add a custom domain

Body

domain string · required
e.g. app.example.com
GET/apps/{slug}/previews

Previews of an app

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.

POST/apps/{slug}/previews/{name}/promote

Promote a preview to production

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.

slug path
App name, e.g. timeoff
name path

Body (optional)

delete boolean
Delete the preview afterwards
DELETE/apps/{slug}/previews/{name}

Delete a preview

slug path
App name, e.g. timeoff
name path
PUT/apps/{slug}/git/previews

Previews for git branches on or off

A push to any branch other than the followed one deploys <slug>--<branch>; deleting the branch deletes the preview.

Body

enabled boolean · required
DELETE/apps/{slug}/domains/{domain}

Remove a custom domain

slug path
App name, e.g. timeoff
domain path
e.g. app.example.com
POST/apps/{slug}/domains/{domain}/verify

Check the DNS records of a domain

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.

slug path
App name, e.g. timeoff
domain path
e.g. app.example.com
POST/apps/{slug}/domains/{domain}/cert

Retry the HTTPS certificate

Certificates renew automatically; use this after fixing DNS if the first request failed.

slug path
App name, e.g. timeoff
domain path
e.g. app.example.com
GET/apps/{slug}/instances

Running instances: node, port, status

GET/apps/{slug}/shares

People the app is shared with

Individual shares. Members of the app’s organization see it through their organization role.

POST/apps/{slug}/shares

Share with a person

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).

Body

email string · required
role string · viewer | admin
viewer (default) or admin
DELETE/apps/{slug}/shares/{email}

Remove a share

slug path
App name, e.g. timeoff
email path
PUT/apps/{slug}/owner

Change the owner of an app · org admin

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.

Body

email string · required
POST/apps/{slug}/move

Move an app to another organization · admin of both organizations (developer is enough in the destination)

Body

org string · required
Destination organization
GET/apps/{slug}/classification

Data classification

public, internal (default), confidential or restricted, and the rules it enforces.

PUT/apps/{slug}/classification

Classify an app · admin

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.

Body

classification string · public | internal | confidential | restricted · required
GET/apps/{slug}/sla

App reliability

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.

PUT/apps/{slug}/sla

Set the availability target · admin

null returns to the organization default.

Body

target number | null
PUT/apps/{slug}/details

Set the app description · admin

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.

Body

description string
cost_center string | null
Cost center for cost allocation, e.g. FIN-1200 (null clears)
GET/apps/{slug}/access-log

Access log · admin (or a custom role with logs)

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.

slug path
App name, e.g. timeoff
user query
status query
denied, 4xx, 5xx or a status code
path query
Path prefix
limit query
before query
Paging: the next value of the previous page
format query · csv

Data

Managed PostgreSQL per app and persistent files in /data.

GET/apps/{slug}/db

Database status

POST/apps/{slug}/db

Create a managed PostgreSQL database

The app gets DATABASE_URL and restarts. Backups run every 24 h.

DELETE/apps/{slug}/db

Delete the database (after a final backup)

POST/apps/{slug}/db/sql

Run SQL as the app

Body

query string · required
One statement; 15 s, 500 rows
GET/apps/{slug}/db/backups

List backups

POST/apps/{slug}/db/backups

Back up now

GET/apps/{slug}/volume

Files in /data: size and largest entries

POST/apps/{slug}/volume/unlock

Make locked /data writable for 15 minutes · org admin

When /data is over the plan’s limit it becomes read-only. Unlock it briefly to delete files.

POST/apps/{slug}/volume/reset

Wipe /data permanently · org admin

Body

confirm string · required
The app name, to confirm
POST/apps/{slug}/db/rotate

Rotate the database password

The app gets the new DATABASE_URL with a zero-downtime restart.

POST/apps/{slug}/db/backups/{id}/restore

Restore a backup

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.

slug path
App name, e.g. timeoff
id path
GET/apps/{slug}/db/backups/{id}/download

Download a backup

PostgreSQL custom format: pg_restore -d <url> backup.dump. Audited.

slug path
App name, e.g. timeoff
id path

Agents

AI agents: identity, outbound connections through the gateway, trace and kill switch.

GET/apps/{slug}/agent

Agent status, isolation and recent actions

GET/apps/{slug}/agent/trace

Trace: every gateway call

slug path
App name, e.g. timeoff
limit query · default 50
POST/apps/{slug}/agent/kill

Kill switch

Revokes the agent’s identity, freezes it and keeps the last log lines. Takes effect within a second.

Body (optional)

reason string
Shown in the audit log
POST/apps/{slug}/agent/resume

Resume with a new identity

POST/apps/{slug}/agent/connections

Add an outbound connection

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.

Body

name string · required
e.g. openai
base_url string · required
https://…
header string
Default Authorization
secret string
Stored encrypted
methods array
oauth string
Name of an org OAuth connection: the gateway adds the signed-in user’s own token (calls must carry x-vektor-delegation)
mcp boolean
The URL is a remote MCP server: rules can target tools (POST /tools/<name>) and the trace shows the tool name
POST/apps/{slug}/agent/stop

Stop gracefully

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.

Body (optional)

wait boolean
Return only after running calls have finished
GET/apps/{slug}/agent/rules

Rules: what the agent may do

POST/apps/{slug}/agent/rules

Add a rule

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).

Body

connection string · required
Connection name
methods array
GET, POST, … or * (any)
path string · required
Pattern inside the connection: * = one segment, ** = anything
effect string · allow | deny | approve · required
allow | deny | approve
DELETE/apps/{slug}/agent/rules/{id}

Remove a rule

slug path
App name, e.g. timeoff
id path
PUT/apps/{slug}/agent/limits

Call limits and monthly budget

Body

per_minute integer
Calls per minute (null = default 600)
per_day integer
Calls per 24 h (null = no limit)
budget_eur number | null
Monthly spending cap in euros on priced connections (null = none)
PUT/apps/{slug}/agent/connections/{name}/pricing

Model pricing for a connection

Euros per million tokens. Vektor reads token usage from OpenAI- and Anthropic-style responses and counts it against the monthly budget.

slug path
App name, e.g. timeoff
name path

Body

price_in number | null
price_out number | null
GET/apps/{slug}/agent/approvals

Actions waiting for a human

slug path
App name, e.g. timeoff
all query · 1
Include decided ones
POST/agent-approvals/{id}/approve

Approve an action

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.

Body (optional)

note string
POST/agent-approvals/{id}/deny

Deny an action

Body (optional)

note string
Shown to the agent and in the audit log
PUT/apps/{slug}/agent/sleep

Sleep when idle

The agent is paused after this many idle minutes and woken by the next request (about half a second).

Body

minutes integer | null
null = never sleep
DELETE/apps/{slug}/agent/connections/{name}

Remove a connection

slug path
App name, e.g. timeoff
name path
GET/orgs/{org}/agents

Agents in an organization

POST/orgs/{org}/agents/kill

Kill every agent in the organization · admin

Body (optional)

reason string
Shown in the audit log

Files

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).

GET/apps/{slug}/files

List files and storage use

slug path
App name, e.g. timeoff
prefix query
cursor query
GET/apps/{slug}/files/{path}

Download a file

slug path
App name, e.g. timeoff
path path
File path, e.g. invoices/2026-11.pdf
PUT/apps/{slug}/files/{path}

Upload a file

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).

slug path
App name, e.g. timeoff
path path
File path, e.g. invoices/2026-11.pdf
DELETE/apps/{slug}/files/{path}

Delete a file

slug path
App name, e.g. timeoff
path path
File path, e.g. invoices/2026-11.pdf
POST/apps/{slug}/files-link

Temporary download link

A signed link on the app’s own address that works without signing in until it expires (max 7 days).

Body

path string · required
File path
expires_in integer
Seconds, 60–604800 (default 3600)

Scheduled jobs

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.

GET/apps/{slug}/cron

Jobs and their latest runs

POST/apps/{slug}/cron

Add or update a job

Free plan: 3 jobs per app, at most every 15 minutes. Paid plans: 50 jobs, every minute.

Body

name string · required
Lowercase letters, numbers, hyphens
schedule string · required
Cron expression: */15 * * * *, 0 9 * * 1-5, or @hourly / @daily / @weekly / @monthly
path string · required
Path to call, e.g. /api/report
timezone string
IANA time zone (default UTC), e.g. Europe/Helsinki
method string · POST | GET
POST (default) or GET
timeout_s integer
5–900 seconds (default 300)
PUT/apps/{slug}/cron/{name}

Pause or resume a job

slug path
App name, e.g. timeoff
name path
Job name, e.g. daily-report

Body

enabled boolean · required
DELETE/apps/{slug}/cron/{name}

Remove a job

slug path
App name, e.g. timeoff
name path
Job name, e.g. daily-report
POST/apps/{slug}/cron/{name}/run

Run a job now

Waits for the result: status, duration and the start of the response.

slug path
App name, e.g. timeoff
name path
Job name, e.g. daily-report

Templates and remix

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.

GET/templates

Starter templates

POST/templates/{id}/deploy

Create an app from a template

Body (optional)

slug string
Name of the new app (default: the template id, made unique)
org string
Organization (default: personal)
GET/remixable

Apps you can remix

Apps you can open whose owner allows remixing.

GET/apps/{slug}/remix

Remix status of an app

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.

POST/apps/{slug}/remix

Make your own copy (remix)

Builds the latest release’s code as a new app in your workspace. Both organizations get an audit entry.

Body (optional)

slug string
Name of the copy (default: <app>, made unique)
org string
Organization (default: personal)
PUT/apps/{slug}/remix

Allow or stop remixing

Refused for agents, when the organization doesn’t allow remixing, or when the code contains secrets.

Body

enabled boolean · required
GET/apps/{slug}/source

Code of the latest release

The files of the latest release in the same shape as a deploy (path + base64 content), for editing locally.

AI models

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.

GET/orgs/{org}/ai

AI spend, budget and keys of the organization · admin

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).

PUT/orgs/{org}/ai

AI on/off, monthly budget and the model policy · admin

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.

Body

enabled boolean
budget_eur number | null
Monthly AI budget in euros; null = default (€1 on Free, €20 on paid plans)
allowed_models array | null
Approved models; * matches anything (e.g. ["claude-sonnet-*", "gpt-6.2-sol*"]). null = every model
allow_premium boolean
Allow premium speed tiers (Anthropic fast mode, OpenAI priority / fast / ultrafast), which cost 2–6 × the price
dlp string · off | block | redact
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.
PUT/orgs/{org}/ai/keys/{provider}

Use the organization’s own provider key · admin

The key is encrypted and never shown again; apps keep their Vektor key. Calls are then billed by the provider, not by Vektor.

org path
Organization slug, e.g. acme
provider path · openai | anthropic

Body

key string · required
sk-… or sk-ant-…
DELETE/orgs/{org}/ai/keys/{provider}

Remove the organization’s own provider key · admin

org path
Organization slug, e.g. acme
provider path · openai | anthropic
GET/apps/{slug}/ai

AI calls, cost and budget of an app

The variables injected into the app, spend this period and the latest 25 calls (model, tokens, cost, blocked reason).

PUT/apps/{slug}/ai

Set the app’s monthly AI budget

Body

budget_eur number | null
Euros a month; null = only the organization budget applies

OAuth for agents

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.

GET/orgs/{org}/oauth

OAuth connections and the redirect URI · admin

POST/orgs/{org}/oauth

Add an OAuth connection · admin

Body

provider string · google | github | microsoft | custom · required
google | github | microsoft | custom
name string
Short name (default: the provider)
client_id string · required
OAuth client id
client_secret string · required
OAuth client secret (stored encrypted)
scopes string
Space-separated scopes
hosts string
API servers the tokens may be sent to, comma-separated (presets fill this)
authorize_url string
custom only
token_url string
custom only
DELETE/orgs/{org}/oauth/{name}

Remove an OAuth connection (disconnects everyone) · admin

org path
Organization slug, e.g. acme
name path
GET/account/oauth

Your connected accounts

Every OAuth connection in your organizations, whether you have connected it, and the link to connect.

DELETE/account/oauth/{id}

Disconnect your account

Log streaming

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.

GET/orgs/{org}/log-streams

Log streams and their delivery status · admin

POST/orgs/{org}/log-streams

Add a log stream · admin

Starts from now unless backfill_hours is given (max 720). A webhook gets a signing secret, returned once.

Body

type string · splunk | datadog | otlp | webhook · required
splunk | datadog | otlp | webhook
url string
Destination (Datadog: optional, default EU intake)
token string
Splunk HEC token, Datadog API key, or a bearer token
categories array
backfill_hours integer
Send history from this many hours back
PUT/orgs/{org}/log-streams/{id}

Pause, resume or change a stream · admin

org path
Organization slug, e.g. acme
id path

Body

enabled boolean
categories array
url string
New destination
token string
New token
DELETE/orgs/{org}/log-streams/{id}

Remove a stream · admin

org path
Organization slug, e.g. acme
id path
POST/orgs/{org}/log-streams/{id}/test

Send a test event · admin

org path
Organization slug, e.g. acme
id path

Organizations

Teams, members, usage and budgets.

GET/orgs

Your organizations

POST/orgs

Create an organization

Body

slug string · required
name string
GET/orgs/{org}/members

Members and invites

POST/orgs/{org}/invites

Invite a member · admin

Body

email string · required
role string
admin | developer | viewer
PUT/orgs/{org}/members/{email}

Change a role · admin

org path
Organization slug, e.g. acme
email path

Body

role string · required
admin | developer | viewer
DELETE/orgs/{org}/members/{email}

Remove a member · admin

org path
Organization slug, e.g. acme
email path
GET/orgs/{org}/usage

Usage this billing period

GET/orgs/{org}/governance

Inventory of AI apps and agents with risk flags · admin

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.

org path
Organization slug, e.g. acme
format query · csv
CSV report instead of JSON
PUT/orgs/{org}/governance/policy

Review and secrets policy · admin

Body

require_review boolean
New apps and agents open only for their owner and admins until approved
block_secrets boolean
Reject deploys that contain API keys, private keys or passwords
allow_remix boolean
protect_production boolean
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 boolean
false = apps can be shared only with members and addresses in the organization’s verified SSO domains
allow_public boolean
false = no public paths: every request to every app needs sign-in
require_mfa boolean
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 boolean
Record every request to the organization’s apps (person, path, result, IP). Team and Enterprise.
session_max_hours integer | null
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 integer | null
API keys (including vektor login keys) older than this are refused (403 key_too_old) in the organization; null = no limit.
POST/apps/{slug}/review

Approve or reject a new app · org admin

Body

decision string · approve | reject · required
approve | reject
note string
GET/orgs/{org}/audit

Audit log (hash-chained) · admin

GET/orgs/{org}/billing

Plan, limits and subscription

POST/orgs/{org}/billing/checkout

Start a subscription (Stripe Checkout) · admin

POST/orgs/{org}/billing/portal

Card, invoices and cancellation (Stripe portal) · admin

GET/orgs/{org}/notifications

Notification channels · admin

POST/orgs/{org}/notifications

Add a Slack, Teams or webhook channel · admin

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.

Body

type string · slack | teams | webhook · required
slack | teams | webhook
url string · required
Incoming webhook URL (https)
name string
events object
"all" (default) or a list
GET/orgs/{org}/region

Data residency

The organization’s data region, each app’s region, available regions and where databases, files and backups run (the platform’s home region).

PUT/orgs/{org}/region

Set the data region · admin

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).

Body

region string | null
e.g. eu, eu-north, us
GET/orgs/{org}/report

Monthly report settings · admin

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.

org path
Organization slug, e.g. acme
preview query
Include the text of last month’s report
PUT/orgs/{org}/report

Change the monthly report · admin

Body

enabled boolean
recipients array
Extra recipients besides the admins (or a comma-separated string)
POST/orgs/{org}/report/send

Send last month’s report now · admin

Sends to the admins and extra recipients; 409 if there is nobody to send to.

GET/orgs/{org}/sla

Reliability report

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.

org path
Organization slug, e.g. acme
month query
YYYY-MM, default this month
format query · json | csv
PUT/orgs/{org}/sla

Default availability target · admin

Target for apps without their own (90–99.999 %, null = 99.9 %).

Body

target number | null
GET/orgs/{org}/costs

Cost allocation · admin

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.

org path
Organization slug, e.g. acme
period query · current | previous
format query · json | csv
csv: one row per app for accounting and BI tools
GET/orgs/{org}/byok

Customer-managed encryption key · admin

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.

PUT/orgs/{org}/byok

Use your own encryption key · admin

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.

Body

provider string · aws-kms | vault · required
key_id string
aws-kms: key ARN, alias/<name> or key id
region string
aws-kms
access_key_id string
aws-kms
secret_access_key string
aws-kms
address string
vault: https://…
mount string
vault: Transit mount, default transit
key_name string
vault
namespace string
vault (optional)
token string
vault
DELETE/orgs/{org}/byok

Back to Vektor’s key · admin

Re-encrypts the secrets with the platform key and forgets the customer key. The key must still work (409 otherwise).

POST/orgs/{org}/byok/check

Check the encryption key now · admin

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.

GET/orgs/{org}/config

Organization settings as a file · admin

format vektor-org-config/1: policy, retention, ai, roles and ip_allowlist. No secrets and no members.

POST/orgs/{org}/config

Apply a settings file · admin

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.

org path
Organization slug, e.g. acme
dry_run query
Only list the changes
GET/orgs/{org}/support-access

Vektor support access · admin

Whether Vektor’s support team can currently access the organization, until when and why, and the last ten grants.

POST/orgs/{org}/support-access

Let Vektor support in · admin

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.

Body

reason string · required
Why, e.g. a ticket number
role string · viewer | developer
hours number
DELETE/orgs/{org}/support-access

End Vektor support access now · admin

POST/orgs/{org}/members/{email}/sign-out

Sign a member out everywhere · admin

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.

org path
Organization slug, e.g. acme
email path
GET/orgs/{org}/export

Export all organization data · admin

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.

GET/orgs/{org}/freezes

Change freezes · member

The active freeze (if any), upcoming freezes and the last five that ended.

POST/orgs/{org}/freezes

Freeze production changes · admin

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.

Body

reason string · required
Why production is frozen, e.g. Holidays
starts_at string
ISO time; default now
ends_at string
ISO time
hours integer
Instead of ends_at
days integer
Instead of ends_at
DELETE/orgs/{org}/freezes/{id}

End or cancel a change freeze · admin

An active freeze ends now; an upcoming one is cancelled.

org path
Organization slug, e.g. acme
id path
GET/orgs/{org}/retention

Data retention · admin

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.

PUT/orgs/{org}/retention

Change data retention · admin

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.

Body

ai_calls integer | null
AI call log: model, tokens, cost, blocks (never prompts). Default 400.
agent_traces integer | null
Agent traces. Default 30.
activity integer | null
Who opened which app, by day. Default 90.
PUT/orgs/{org}/notifications/{id}

Change events or pause a channel · admin

org path
Organization slug, e.g. acme
id path

Body

events array
enabled boolean
name string
DELETE/orgs/{org}/notifications/{id}

Remove a channel · admin

org path
Organization slug, e.g. acme
id path
POST/orgs/{org}/notifications/{id}/test

Send a test notification · admin

org path
Organization slug, e.g. acme
id path
GET/orgs/{org}/access-reviews

Access reviews · admin

POST/orgs/{org}/access-reviews

Start an access review (Team, Enterprise) · admin

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.

Body (optional)

name string
due_days integer
Optional deadline in days
GET/orgs/{org}/access-reviews/{id}

An access review with its entries · admin, or a role with audit.read

org path
Organization slug, e.g. acme
id path
format query · csv
CSV evidence for auditors
POST/orgs/{org}/access-reviews/{id}/decisions

Decide entries · admin

org path
Organization slug, e.g. acme
id path

Body

decisions array · required
id integer · required
Entry id
decision string · keep | revoke · required
keep | revoke
note string
POST/orgs/{org}/access-reviews/{id}/close

Close and apply revokes · admin

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.

org path
Organization slug, e.g. acme
id path
GET/orgs/{org}/roles

Custom roles and the permission catalog

POST/orgs/{org}/roles

Create a custom role (Team, Enterprise) · admin

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.

Body

name string · required
e.g. Deployer
base string · developer | viewer · required
developer | viewer
deny array
grant array
description string
PUT/orgs/{org}/roles/{name}

Change a custom role · admin

org path
Organization slug, e.g. acme
name path
DELETE/orgs/{org}/roles/{name}

Delete a custom role (no members may have it) · admin

org path
Organization slug, e.g. acme
name path
GET/orgs/{org}/vars

Shared variables (names, scope, lock) · admin, developer

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.

GET/orgs/{org}/vars/{key}

Show a shared variable’s value · admin

Audited (orgvar.reveal).

org path
Organization slug, e.g. acme
key path
Variable name, e.g. SLACK_WEBHOOK_URL
PUT/orgs/{org}/vars/{key}

Create or change a shared variable · admin

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.

org path
Organization slug, e.g. acme
key path
Variable name, e.g. SLACK_WEBHOOK_URL

Body

value string
Required for a new variable; leave out to change only the scope
apps object
"all" (default: every app in the organization, also future ones) or a list of app names
locked boolean
Apps can’t override it with their own variable
description string
What it is for (shown to members)
DELETE/orgs/{org}/vars/{key}

Remove a shared variable · admin

org path
Organization slug, e.g. acme
key path
Variable name, e.g. SLACK_WEBHOOK_URL
PUT/orgs/{org}/usage/budget

Monthly usage budget · admin

Email alerts at 80 % and 100 %. When the budget is used up, scaling up is blocked.

Body

euros number | null
null = no budget
GET/orgs/{org}/scim

SCIM provisioning: URL, users and groups · admin

Connect Okta or Microsoft Entra ID: people are added and removed automatically, and group membership sets the role.

POST/orgs/{org}/scim/token

Create or replace the SCIM token · admin

Shown once. Paste it into the identity provider together with the SCIM URL.

DELETE/orgs/{org}/scim/token

Revoke the SCIM token · admin

PUT/orgs/{org}/scim/default-role

Role for people in no mapped group · admin

Body

role string · admin | developer | viewer · required
admin | developer | viewer
PUT/orgs/{org}/scim/groups/{group}/role

Map an identity provider group to a role · admin

org path
Organization slug, e.g. acme
group path

Body

role string | null
admin | developer | viewer, or null to remove

API keys

Long-lived keys for CI, GitHub Actions and agents.

GET/tokens

List your API keys and CLI sign-ins

POST/tokens

Create an API key

The key is returned once. It has your permissions.

Body

name string · required
e.g. GitHub Actions
days integer | null · 7 | 30 | 90 | 365 | null
null = no expiry
DELETE/tokens/{id}

Revoke a key

GET/auth/whoami

Who am I

Account

Your own data: download everything Vektor stores about you, or delete your account (GDPR).

GET/account/export

Download your data

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.

GET/account/deletion

What deleting your account would do

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).

DELETE/account

Delete your account

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.

Body

confirm string · required
Your email address, to confirm
GET/account/sessions

Signed-in browsers

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.

DELETE/account/sessions

Sign out every browser

DELETE/account/sessions/{id}

Sign out one browser

MCP

Model Context Protocol endpoint for AI coding tools (Claude Code, Cursor).

POST/mcp

MCP endpoint (JSON-RPC over HTTP)

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.