Skip to content
VaultDBDocs

VaultDB documentation

VaultDB hosts SQLite databases for you. You create a database, define tables, and then read and write it over HTTPS from any language. There is no server for you to run.

Each database is its own SQLite file, separate from every other database and every other customer. A request can only reach databases that belong to the account its credential belongs to.

What you can do with a database

  • Databases and tables: create and delete databases, create and drop tables, read a table's columns.
  • REST API: read, insert, update and delete rows with JSON.
  • Raw SQL: run your own SQL statements.
  • GraphQL: query and change rows with a GraphQL schema generated from your tables.
  • Webhooks: get an HTTPS request, signed with HMAC-SHA256, when rows change.
  • Realtime: receive row changes as a Server-Sent Events stream.
  • Scheduled queries: run a SQL statement on a cron schedule.
  • Vector search: find the rows whose stored vector is most similar to yours.
  • Branches and snapshots: copy a database to a new one, or save a point-in-time copy.
  • Row-level security: limit which rows a caller can read and write.
  • CSV import and export: load a table from CSV, download a table as CSV or JSON.
  • SDKs: download a TypeScript or Python client.

The API reference lists every endpoint.

How requests work

  • The API is at https://api.vaultdb.io. Every endpoint path starts with /api.
  • Send a credential in the Authorization: Bearer <token> header. See Authentication.
  • Request and response bodies are JSON, except where a page says otherwise (CSV import and export, the SDK downloads, the realtime stream).
  • An error response has a status code and a JSON body with a readable message:
{ "statusCode": 404, "message": "Database not found" }
Status Meaning
400 The request is invalid. The message says which field is wrong.
401 No valid credential was sent.
403 The credential lacks the permission, or your plan does not include the feature or has reached a limit.
404 The database, table or item does not exist, or belongs to another account.
409 A database or table with that name already exists.

Plans and limits

Plans are priced per account, per month. Every limit below applies to the whole account unless the row says otherwise.

Limit Free Starter Pro Business
Price per month $0 $9 $29 $99
Databases 3 5 25 100
Tables per database 10 50 Unlimited Unlimited
Rows per table 10,000 100,000 Unlimited Unlimited
API calls per day 1,000 25,000 100,000 500,000
Storage 500 MB 1 GB 10 GB 100 GB
API keys 1 5 25 Unlimited
Rows per bulk insert 100 1,000 10,000 50,000
Raw SQL Read-only Read and write Read and write Read and write
Webhooks Not included 3 25 Unlimited
Scheduled queries Not included 3 10 Unlimited
Realtime No Yes Yes Yes
Snapshots No Yes Yes Yes
Branching No Yes Yes Yes
GraphQL No Yes Yes Yes
Vector search No Yes Yes Yes
Row-level security No No Yes Yes

Enterprise plans are arranged directly with VaultDB. Email hello@vaultdb.io for pricing.

Some details about how the limits are counted:

  • Storage is the total size of your live database files. Snapshots are not counted. A write that would take you past it is refused and nothing is written: the row API, GraphQL and CSV import count the size of the values a write adds, and a raw SQL or scheduled write is stopped when it would grow a database past the space you have left. Two raw SQL writes running at once on different databases are each measured against the same space left, so together they can pass the limit by up to that much.
  • Request size: a request body may be up to 10 MB, or 20 MB for a CSV import. A larger one is refused with 413, and a body sent without a Content-Length header (chunked) with 411.
  • Rows per table is checked before each insert. An insert that would take a table past the limit is refused.
  • Rows per bulk insert applies to any insert of more than one row, including a CSV import.
  • Webhooks and scheduled queries are counted across all databases on the account, not per database.
  • A branch is a database, so it counts toward the database limit.
  • API calls per day counts requests made with an API key to the VaultDB API (/api/databases, /api/billing, /api/openapi and /api/sdk), from 00:00 UTC. Requests the admin app makes while you are signed in are not counted. Once the limit is reached, a request made with a key gets 429 with a Retry-After header giving the seconds until the count resets.
  • API keys is checked when a key is used on those same routes. Your oldest keys, up to the plan's number, work as normal. A newer key gets 403 until you delete an older one or upgrade. Expired keys do not count.

You can read your account's plan, its limits and your current usage with GET /api/billing/status, which needs the Billing permission. usage includes apiCallsToday and apiKeys. Plan changes and payment are handled in the admin app at admin.vaultdb.io.