Every endpoint the VaultDB API serves. This page is built from the same OpenAPI document that GET /api/openapi returns, generated from the API's route table.
Multi-tenant SQLite databases over HTTP.
Authenticate with Authorization: Bearer <token>, where the token is
either an API key (created in System > Security > API keys) or a session JWT. Every
endpoint is scoped to the account the credential belongs to; a request
can never reach another account's data.
Generated from the live route table, so it describes what this
deployment actually serves.
databases
GET/api/databases
List the databases on this account, with table and row counts
Operation ID: getDatabases
Responses| Status | Description |
|---|
200 | List the databases on this account, with table and row counts |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases
Provision a database for the account
Operation ID: postDatabases
Responses| Status | Description |
|---|
201 | Provision a database for the account |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}
One database with its table list
Operation ID: getDatabasesByDbid
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
200 | One database with its table list |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
DELETE/api/databases/{dbid}
Drop a database, its file, and its policies, webhooks and schedules
Operation ID: deleteDatabasesByDbid
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
200 | Drop a database, its file, and its policies, webhooks and schedules |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/tables
Table names in a database
Operation ID: getDatabasesByDbidTables
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
200 | Table names in a database |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/tables
Create a table
Operation ID: postDatabasesByDbidTables
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
201 | Create a table |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/tables/{table}/data
Read rows, filtered by query params and row-level policies
Operation ID: getDatabasesByDbidTablesByTableData
Path parameters| Name | Description |
|---|
dbid | Database identifier |
table | Table name |
Responses| Status | Description |
|---|
200 | Read rows, filtered by query params and row-level policies |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/tables/{table}/data
Insert one row or many, within the plan row/storage/batch limits
Operation ID: postDatabasesByDbidTablesByTableData
Path parameters| Name | Description |
|---|
dbid | Database identifier |
table | Table name |
Responses| Status | Description |
|---|
201 | Insert one row or many, within the plan row/storage/batch limits |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
PUT/api/databases/{dbid}/tables/{table}/data
Update rows matching a non-empty where filter
Operation ID: putDatabasesByDbidTablesByTableData
Path parameters| Name | Description |
|---|
dbid | Database identifier |
table | Table name |
Responses| Status | Description |
|---|
200 | Update rows matching a non-empty where filter |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
DELETE/api/databases/{dbid}/tables/{table}/data
Delete rows matching a non-empty where filter
Operation ID: deleteDatabasesByDbidTablesByTableData
Path parameters| Name | Description |
|---|
dbid | Database identifier |
table | Table name |
Responses| Status | Description |
|---|
200 | Delete rows matching a non-empty where filter |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/tables/{table}/schema
Column definitions for a table
Operation ID: getDatabasesByDbidTablesByTableSchema
Path parameters| Name | Description |
|---|
dbid | Database identifier |
table | Table name |
Responses| Status | Description |
|---|
200 | Column definitions for a table |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
DELETE/api/databases/{dbid}/tables/{table}
Drop a table and its row-level policies
Operation ID: deleteDatabasesByDbidTablesByTable
Path parameters| Name | Description |
|---|
dbid | Database identifier |
table | Table name |
Responses| Status | Description |
|---|
200 | Drop a table and its row-level policies |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/policies
Row-level policies on a database, optionally filtered to one table
Operation ID: getDatabasesByDbidPolicies
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
200 | Row-level policies on a database, optionally filtered to one table |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.policies permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/policies
Create a row-level policy (one column comparison, never free SQL)
Operation ID: postDatabasesByDbidPolicies
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
201 | Create a row-level policy (one column comparison, never free SQL) |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.policies permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
DELETE/api/databases/{dbid}/policies/{policyId}
Drop a row-level policy
Operation ID: deleteDatabasesByDbidPoliciesByPolicyId
Path parameters| Name | Description |
|---|
dbid | Database identifier |
policyId | Row-level policy identifier |
Responses| Status | Description |
|---|
200 | Drop a row-level policy |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.policies permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/schedules
Scheduled queries on a database
Operation ID: getDatabasesByDbidSchedules
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
200 | Scheduled queries on a database |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.schedules permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/schedules
Create a scheduled query (5-field cron, UTC). Also needs Databases.sql.
Operation ID: postDatabasesByDbidSchedules
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
201 | Create a scheduled query (5-field cron, UTC). Also needs Databases.sql. |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.schedules permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
DELETE/api/databases/{dbid}/schedules/{scheduleId}
Drop a scheduled query
Operation ID: deleteDatabasesByDbidSchedulesByScheduleId
Path parameters| Name | Description |
|---|
dbid | Database identifier |
scheduleId | Scheduled query identifier |
Responses| Status | Description |
|---|
200 | Drop a scheduled query |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.schedules permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/webhooks
Hooks registered on a database (never their signing secrets)
Operation ID: getDatabasesByDbidWebhooks
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
200 | Hooks registered on a database (never their signing secrets) |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.webhooks permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/webhooks
Register a hook; returns its signing secret once
Operation ID: postDatabasesByDbidWebhooks
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
201 | Register a hook; returns its signing secret once |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.webhooks permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
DELETE/api/databases/{dbid}/webhooks/{webhookId}
Remove a hook
Operation ID: deleteDatabasesByDbidWebhooksByWebhookId
Path parameters| Name | Description |
|---|
dbid | Database identifier |
webhookId | Webhook identifier |
Responses| Status | Description |
|---|
200 | Remove a hook |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.webhooks permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/subscribe
Server-Sent Events stream of row changes, optionally filtered by table
Operation ID: getDatabasesByDbidSubscribe
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
200 | Server-Sent Events stream of row changes, optionally filtered by table |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/query
Run SQL against a database; read-only plans are held to non-mutating statements
Operation ID: postDatabasesByDbidQuery
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
201 | Run SQL against a database; read-only plans are held to non-mutating statements |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.sql permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/branches
Branches taken from a database
Operation ID: getDatabasesByDbidBranches
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
200 | Branches taken from a database |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/branches
Copy a database to a new one
Operation ID: postDatabasesByDbidBranches
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
201 | Copy a database to a new one |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/tables/{table}/export
Stream a table as CSV or JSON
Operation ID: getDatabasesByDbidTablesByTableExport
Path parameters| Name | Description |
|---|
dbid | Database identifier |
table | Table name |
Responses| Status | Description |
|---|
200 | Stream a table as CSV or JSON |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/tables/{table}/import
Load rows from CSV, creating the table if it does not exist
Operation ID: postDatabasesByDbidTablesByTableImport
Path parameters| Name | Description |
|---|
dbid | Database identifier |
table | Table name |
Responses| Status | Description |
|---|
201 | Load rows from CSV, creating the table if it does not exist |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/tables/{table}/search
Vector similarity search over a JSON-array column
Operation ID: postDatabasesByDbidTablesByTableSearch
Path parameters| Name | Description |
|---|
dbid | Database identifier |
table | Table name |
Responses| Status | Description |
|---|
201 | Vector similarity search over a JSON-array column |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/snapshots
Restore points taken from a database
Operation ID: getDatabasesByDbidSnapshots
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
200 | Restore points taken from a database |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/snapshots
Take a point-in-time snapshot of a database
Operation ID: postDatabasesByDbidSnapshots
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
201 | Take a point-in-time snapshot of a database |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
DELETE/api/databases/{dbid}/snapshots/{snapshotId}
Delete a snapshot
Operation ID: deleteDatabasesByDbidSnapshotsBySnapshotId
Path parameters| Name | Description |
|---|
dbid | Database identifier |
snapshotId | snapshotId |
Responses| Status | Description |
|---|
200 | Delete a snapshot |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/snapshots/{snapshotId}/restore
Replace a database with one of its snapshots
Operation ID: postDatabasesByDbidSnapshotsBySnapshotIdRestore
Path parameters| Name | Description |
|---|
dbid | Database identifier |
snapshotId | snapshotId |
Responses| Status | Description |
|---|
201 | Replace a database with one of its snapshots |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/databases/{dbid}/graphql
Generated GraphQL schema for a database
Operation ID: getDatabasesByDbidGraphql
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
200 | Generated GraphQL schema for a database |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/databases/{dbid}/graphql
Run a GraphQL query or mutation against a database
Operation ID: postDatabasesByDbidGraphql
Path parameters| Name | Description |
|---|
dbid | Database identifier |
Responses| Status | Description |
|---|
201 | Run a GraphQL query or mutation against a database |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Databases.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
billing
GET/api/billing/status
Plan, its limits, and current usage
Operation ID: getBillingStatus
Responses| Status | Description |
|---|
200 | Plan, its limits, and current usage |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Billing permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
PUT/api/billing/plan
Set any account plan directly, without Stripe (instance owner only)
Operation ID: putBillingPlan
Responses| Status | Description |
|---|
200 | Set any account plan directly, without Stripe (instance owner only) |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Billing.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/billing/checkout
Start a Stripe Checkout session for an upgrade
Operation ID: postBillingCheckout
Responses| Status | Description |
|---|
201 | Start a Stripe Checkout session for an upgrade |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Billing.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/billing/portal
Open the Stripe billing portal
Operation ID: postBillingPortal
Responses| Status | Description |
|---|
201 | Open the Stripe billing portal |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Billing.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
DELETE/api/billing/account
Delete your own organization and everything it owns (an organization admin, signed in, with password)
Operation ID: deleteBillingAccount
Responses| Status | Description |
|---|
200 | Delete your own organization and everything it owns (an organization admin, signed in, with password) |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Billing.edit permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/billing/webhook
Stripe subscription events, authenticated by signature
Operation ID: postBillingWebhook
Responses| Status | Description |
|---|
201 | Stripe subscription events, authenticated by signature |
400 | Invalid request |
401 | No valid credential |
403 | Requires the Billing permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
governance
GET/api/governance/policies
Governance policies on this instance, with their newest and published version numbers
Operation ID: getGovernancePolicies
Responses| Status | Description |
|---|
200 | Governance policies on this instance, with their newest and published version numbers |
400 | Invalid request |
401 | No valid credential |
403 | Requires the System.security.governance permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/governance/policies
Create a named governance policy and its version 1 (instance owner only)
Operation ID: postGovernancePolicies
Responses| Status | Description |
|---|
201 | Create a named governance policy and its version 1 (instance owner only) |
400 | Invalid request |
401 | No valid credential |
403 | Requires the System.security.governance permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/governance/policies/{id}
One governance policy with every saved version
Operation ID: getGovernancePoliciesById
Path parameters| Name | Description |
|---|
id | id |
Responses| Status | Description |
|---|
200 | One governance policy with every saved version |
400 | Invalid request |
401 | No valid credential |
403 | Requires the System.security.governance permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
PUT/api/governance/policies/{id}
Rename a governance policy, change its slug, or publish or unpublish a version (instance owner only)
Operation ID: putGovernancePoliciesById
Path parameters| Name | Description |
|---|
id | id |
Responses| Status | Description |
|---|
200 | Rename a governance policy, change its slug, or publish or unpublish a version (instance owner only) |
400 | Invalid request |
401 | No valid credential |
403 | Requires the System.security.governance permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
POST/api/governance/policies/{id}/versions
Save the next version of a governance policy (instance owner only)
Operation ID: postGovernancePoliciesByIdVersions
Path parameters| Name | Description |
|---|
id | id |
Responses| Status | Description |
|---|
201 | Save the next version of a governance policy (instance owner only) |
400 | Invalid request |
401 | No valid credential |
403 | Requires the System.security.governance permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |
GET/api/governance/templates
Starter templates for new governance policies, with their blanks
Operation ID: getGovernanceTemplates
Responses| Status | Description |
|---|
200 | Starter templates for new governance policies, with their blanks |
400 | Invalid request |
401 | No valid credential |
403 | Requires the System.security.governance permission, or a plan that includes this endpoint |
404 | Not found, or owned by another account |