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
slugstring · required
App name: lowercase letters, numbers, hyphens, max 40
orgstring
Organization for a new app (default: personal)
kindstring · app | agent
app (default) or agent
previewstring
Deploy a preview <slug>--<preview> of the existing app instead (same sign-in, sharing and variables; own data)
filesarray · required
pathstring · required
Path inside the app folder, forward slashes
contentstring · 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_urlstring · required
https://github.com/acme/app.git
branchstring
Default main
subdirstring
Folder inside the repo
tokenstring
Read-only access token for a private repo
clear_tokenboolean
auto_deployboolean
Deploy on every push (default true); false = only on demand
previewsboolean
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
slugpath
App name, e.g. timeoff
tailquery · default 200
followquery · 1
Stream new lines
buildquery · 1
The last build log instead
GET/apps/{slug}/env
List environment variables
slugpath
App name, e.g. timeoff
revealquery · 1
Include values (audited)
PUT/apps/{slug}/env
Set or remove variables
Creates a new variable version and restarts the app without downtime.
Body
setobject
unsetarray
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
pathsarray · 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.
slugpath
App name, e.g. timeoff
daysquery · default 30
GET/apps/{slug}/releases
Release history
POST/apps/{slug}/rollback
Roll back to an earlier release
Body (optional)
versioninteger
Release to restore (default: the previous one)
GET/apps/{slug}/metrics
Traffic, latency and availability
slugpath
App name, e.g. timeoff
rangequery · 1h | 24h | 7d
POST/apps/{slug}/scale
Set the number of instances
Body
replicasinteger · required
1–10
GET/apps/{slug}/autoscale
Autoscaling status
PUT/apps/{slug}/autoscale
Turn on autoscaling (Pro)
Body
mininteger
maxinteger · required
target_rpminteger · required
Requests per minute per instance
p99_msinteger
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
domainstring · 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.
slugpath
App name, e.g. timeoff
namepath
Body (optional)
deleteboolean
Delete the preview afterwards
DELETE/apps/{slug}/previews/{name}
Delete a preview
slugpath
App name, e.g. timeoff
namepath
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
enabledboolean · required
DELETE/apps/{slug}/domains/{domain}
Remove a custom domain
slugpath
App name, e.g. timeoff
domainpath
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.
slugpath
App name, e.g. timeoff
domainpath
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.
slugpath
App name, e.g. timeoff
domainpath
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
emailstring · required
rolestring · viewer | admin
viewer (default) or admin
DELETE/apps/{slug}/shares/{email}
Remove a share
slugpath
App name, e.g. timeoff
emailpath
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
emailstring · required
POST/apps/{slug}/move
Move an app to another organization · admin of both organizations (developer is enough in the destination)
Body
orgstring · 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.
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
targetnumber | 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
descriptionstring
cost_centerstring | 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.
slugpath
App name, e.g. timeoff
userquery
statusquery
denied, 4xx, 5xx or a status code
pathquery
Path prefix
limitquery
beforequery
Paging: the next value of the previous page
formatquery · 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
querystring · 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
confirmstring · 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.
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
slugpath
App name, e.g. timeoff
limitquery · 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)
reasonstring
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
namestring · required
e.g. openai
base_urlstring · required
https://…
headerstring
Default Authorization
secretstring
Stored encrypted
methodsarray
oauthstring
Name of an org OAuth connection: the gateway adds the signed-in user’s own token (calls must carry x-vektor-delegation)
mcpboolean
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)
waitboolean
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
connectionstring · required
Connection name
methodsarray
GET, POST, … or * (any)
pathstring · required
Pattern inside the connection: * = one segment, ** = anything
effectstring · allow | deny | approve · required
allow | deny | approve
DELETE/apps/{slug}/agent/rules/{id}
Remove a rule
slugpath
App name, e.g. timeoff
idpath
PUT/apps/{slug}/agent/limits
Call limits and monthly budget
Body
per_minuteinteger
Calls per minute (null = default 600)
per_dayinteger
Calls per 24 h (null = no limit)
budget_eurnumber | 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.
slugpath
App name, e.g. timeoff
namepath
Body
price_innumber | null
price_outnumber | null
GET/apps/{slug}/agent/approvals
Actions waiting for a human
slugpath
App name, e.g. timeoff
allquery · 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)
notestring
POST/agent-approvals/{id}/deny
Deny an action
Body (optional)
notestring
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
minutesinteger | null
null = never sleep
DELETE/apps/{slug}/agent/connections/{name}
Remove a connection
slugpath
App name, e.g. timeoff
namepath
GET/orgs/{org}/agents
Agents in an organization
POST/orgs/{org}/agents/kill
Kill every agent in the organization · admin
Body (optional)
reasonstring
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
slugpath
App name, e.g. timeoff
prefixquery
cursorquery
GET/apps/{slug}/files/{path}
Download a file
slugpath
App name, e.g. timeoff
pathpath
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).
slugpath
App name, e.g. timeoff
pathpath
File path, e.g. invoices/2026-11.pdf
DELETE/apps/{slug}/files/{path}
Delete a file
slugpath
App name, e.g. timeoff
pathpath
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
pathstring · required
File path
expires_ininteger
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.
IANA time zone (default UTC), e.g. Europe/Helsinki
methodstring · POST | GET
POST (default) or GET
timeout_sinteger
5–900 seconds (default 300)
PUT/apps/{slug}/cron/{name}
Pause or resume a job
slugpath
App name, e.g. timeoff
namepath
Job name, e.g. daily-report
Body
enabledboolean · required
DELETE/apps/{slug}/cron/{name}
Remove a job
slugpath
App name, e.g. timeoff
namepath
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.
slugpath
App name, e.g. timeoff
namepath
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)
slugstring
Name of the new app (default: the template id, made unique)
orgstring
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)
slugstring
Name of the copy (default: <app>, made unique)
orgstring
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
enabledboolean · 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
enabledboolean
budget_eurnumber | null
Monthly AI budget in euros; null = default (€1 on Free, €20 on paid plans)
allowed_modelsarray | null
Approved models; * matches anything (e.g. ["claude-sonnet-*", "gpt-6.2-sol*"]). null = every model
allow_premiumboolean
Allow premium speed tiers (Anthropic fast mode, OpenAI priority / fast / ultrafast), which cost 2–6 × the price
dlpstring · 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.
orgpath
Organization slug, e.g. acme
providerpath · openai | anthropic
Body
keystring · required
sk-… or sk-ant-…
DELETE/orgs/{org}/ai/keys/{provider}
Remove the organization’s own provider key · admin
orgpath
Organization slug, e.g. acme
providerpath · 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_eurnumber | 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
providerstring · google | github | microsoft | custom · required
google | github | microsoft | custom
namestring
Short name (default: the provider)
client_idstring · required
OAuth client id
client_secretstring · required
OAuth client secret (stored encrypted)
scopesstring
Space-separated scopes
hostsstring
API servers the tokens may be sent to, comma-separated (presets fill this)
authorize_urlstring
custom only
token_urlstring
custom only
DELETE/orgs/{org}/oauth/{name}
Remove an OAuth connection (disconnects everyone) · admin
orgpath
Organization slug, e.g. acme
namepath
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.
Destination (Datadog: optional, default EU intake)
tokenstring
Splunk HEC token, Datadog API key, or a bearer token
categoriesarray
backfill_hoursinteger
Send history from this many hours back
PUT/orgs/{org}/log-streams/{id}
Pause, resume or change a stream · admin
orgpath
Organization slug, e.g. acme
idpath
Body
enabledboolean
categoriesarray
urlstring
New destination
tokenstring
New token
DELETE/orgs/{org}/log-streams/{id}
Remove a stream · admin
orgpath
Organization slug, e.g. acme
idpath
POST/orgs/{org}/log-streams/{id}/test
Send a test event · admin
orgpath
Organization slug, e.g. acme
idpath
Organizations
Teams, members, usage and budgets.
GET/orgs
Your organizations
POST/orgs
Create an organization
Body
slugstring · required
namestring
GET/orgs/{org}/members
Members and invites
POST/orgs/{org}/invites
Invite a member · admin
Body
emailstring · required
rolestring
admin | developer | viewer
PUT/orgs/{org}/members/{email}
Change a role · admin
orgpath
Organization slug, e.g. acme
emailpath
Body
rolestring · required
admin | developer | viewer
DELETE/orgs/{org}/members/{email}
Remove a member · admin
orgpath
Organization slug, e.g. acme
emailpath
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.
orgpath
Organization slug, e.g. acme
formatquery · csv
CSV report instead of JSON
PUT/orgs/{org}/governance/policy
Review and secrets policy · admin
Body
require_reviewboolean
New apps and agents open only for their owner and admins until approved
block_secretsboolean
Reject deploys that contain API keys, private keys or passwords
allow_remixboolean
protect_productionboolean
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_sharingboolean
false = apps can be shared only with members and addresses in the organization’s verified SSO domains
allow_publicboolean
false = no public paths: every request to every app needs sign-in
require_mfaboolean
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_logboolean
Record every request to the organization’s apps (person, path, result, IP). Team and Enterprise.
session_max_hoursinteger | 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_daysinteger | 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
decisionstring · approve | reject · required
approve | reject
notestring
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
typestring · slack | teams | webhook · required
slack | teams | webhook
urlstring · required
Incoming webhook URL (https)
namestring
eventsobject
"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
regionstring | 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.
orgpath
Organization slug, e.g. acme
previewquery
Include the text of last month’s report
PUT/orgs/{org}/report
Change the monthly report · admin
Body
enabledboolean
recipientsarray
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.
orgpath
Organization slug, e.g. acme
monthquery
YYYY-MM, default this month
formatquery · json | csv
PUT/orgs/{org}/sla
Default availability target · admin
Target for apps without their own (90–99.999 %, null = 99.9 %).
Body
targetnumber | 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.
orgpath
Organization slug, e.g. acme
periodquery · current | previous
formatquery · 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
providerstring · aws-kms | vault · required
key_idstring
aws-kms: key ARN, alias/<name> or key id
regionstring
aws-kms
access_key_idstring
aws-kms
secret_access_keystring
aws-kms
addressstring
vault: https://…
mountstring
vault: Transit mount, default transit
key_namestring
vault
namespacestring
vault (optional)
tokenstring
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.
orgpath
Organization slug, e.g. acme
dry_runquery
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
reasonstring · required
Why, e.g. a ticket number
rolestring · viewer | developer
hoursnumber
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.
orgpath
Organization slug, e.g. acme
emailpath
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
reasonstring · required
Why production is frozen, e.g. Holidays
starts_atstring
ISO time; default now
ends_atstring
ISO time
hoursinteger
Instead of ends_at
daysinteger
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.
orgpath
Organization slug, e.g. acme
idpath
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.
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)
namestring
due_daysinteger
Optional deadline in days
GET/orgs/{org}/access-reviews/{id}
An access review with its entries · admin, or a role with audit.read
orgpath
Organization slug, e.g. acme
idpath
formatquery · csv
CSV evidence for auditors
POST/orgs/{org}/access-reviews/{id}/decisions
Decide entries · admin
orgpath
Organization slug, e.g. acme
idpath
Body
decisionsarray · required
idinteger · required
Entry id
decisionstring · keep | revoke · required
keep | revoke
notestring
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.
orgpath
Organization slug, e.g. acme
idpath
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
namestring · required
e.g. Deployer
basestring · developer | viewer · required
developer | viewer
denyarray
grantarray
descriptionstring
PUT/orgs/{org}/roles/{name}
Change a custom role · admin
orgpath
Organization slug, e.g. acme
namepath
DELETE/orgs/{org}/roles/{name}
Delete a custom role (no members may have it) · admin
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).
orgpath
Organization slug, e.g. acme
keypath
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.
orgpath
Organization slug, e.g. acme
keypath
Variable name, e.g. SLACK_WEBHOOK_URL
Body
valuestring
Required for a new variable; leave out to change only the scope
appsobject
"all" (default: every app in the organization, also future ones) or a list of app names
lockedboolean
Apps can’t override it with their own variable
descriptionstring
What it is for (shown to members)
DELETE/orgs/{org}/vars/{key}
Remove a shared variable · admin
orgpath
Organization slug, e.g. acme
keypath
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
eurosnumber | 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.
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
namestring · required
e.g. GitHub Actions
daysinteger | 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
confirmstring · 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).