Menu
Platform
AI
Alerts and status pages
App store purchases
Credits
Generated Assets
Knowledge
KV
Localization
Notifications
Organizations
Payments
Queues
Realtime
Sandboxes
Storage
Workflows
API reference
- Overview
- Access API keys
- Agent sessions API
- Agent versions API
- Agents API
- AI models API
- Artifact references API
- Artifacts API
- Assets API
- Auth configs API
- Bank receipts API
- Bank transfer accounts API
- Buckets API
- Builds API
- Catalogs API
- Chat profiles API
- Chat reports API
- Chat sticker packs API
- Checkout policies API
- Checkout sessions API
- Config changes API
- Config flags API
- Config segments API
- Connection providers API
- Connections API
- Connectors API
- Credit grants API
- Customer organizations API
- Customer subscriptions API
- Databases API
- Documents API
- Email domains API
- End users API
- Entities API
- Entitlement grants API
- Entries API
- Environments API
- Episodes API
- Error events API
- Error groups API
- Events API
- Exchange rates API
- Generations API
- Glossaries API
- Goals API
- Identities API
- Inbound emails API
- Inbound endpoints API
- Inbound messages API
- Inbound sms API
- Invitations API
- Job runs API
- Jobs API
- Knowledge schemas API
- KV API
- KV namespaces API
- Lease events API
- Leases API
- Licence keys API
- Licence tokens API
- Mail domains API
- Mail routes API
- Mailbox connect links API
- Mailbox OAUTH apps API
- Mailboxes API
- Memberships API
- Memories API
- Memory stores API
- Merchant accounts API
- Message topics API
- Messages API
- OAUTH clients API
- Objects API
- Organization roles API
- Orgs API
- Owner pools API
- Phone numbers API
- Portal sessions API
- Preferences API
- Price catalogs API
- Processor events API
- Projects API
- Queued executions API
- Queues API
- Realtime channels API
- Realtime members API
- Realtime messages API
- Recipients API
- Relations API
- Releases API
- Revenue API
- Revenue facts API
- Revenue sources API
- Runs API
- Sandbox shapes API
- Schedules API
- Scrubbing policies API
- Search API
- Search indexes API
- Secret versions API
- Secrets API
- Service enablements API
- Service observations API
- Services API
- Serving routes API
- Session events API
- Sessions API
- Signing key versions
- Signing keys
- Sms numbers API
- Source maps API
- Spaces API
- Store connections API
- Store purchases API
- Subscriptions API
- Suppressions API
- Tax threshold statuses API
- Templates API
- Test clocks API
- Token exchanges API
- Transfers API
- Trust policies API
- Trusted issuers API
- Uptime checks API
- Uptime manifests API
- Uptime sources API
- Usage events API
- Usage invoices API
- Usage meter prices API
- Usage meters API
- Usage reservations API
- Usage settings API
- Usage tiers API
- Volumes API
- Waits API
- Webhook deliveries API
- Webhook endpoints API
- Workflows API
Getting Started
Authentication
KV Store
Deploy & Infrastructure
Reference
Database
What a Sylphx database is, what you configure, and how it connects to your app.
Today this runs on the management API
Databases are provisioned with POST /v1/resources and bound to an environment, as in the Database quickstart. The databases collection serves reads at api.sylphx.com; its create, delete, restore and connect are not served.
A Database is one customer Postgres. It is not a schema on a shared server: a database has its own engine, its own credentials, its own backup, its own region, and its own deletion. Nothing you do to yours can be seen from anyone else's.
#What you choose, and what you do not
You choose the Postgres major version, the compute size, the region, and
whether deletion is protected. You do not choose an instance class, a disk
size, a replica count or max_connections: those derive from the compute size,
so a database cannot be configured into a state it cannot serve.
| Field | Type | What it is |
|---|---|---|
postgres_version | string | The Postgres major version, for example 17. The newest supported version is the default. |
compute_units | double | The compute size, in units. The default comes from the plan, and max_connections derives from it. |
region | string | Where the data lives; the project’s home region by default. Changing it moves the data by signed export and import. |
deletion_protection | bool | While set, Delete fails, and the database is kept. |
An idle free-tier database stops, and the next connection wakes it. That is a state you do not manage: nothing to start, nothing to shut down.
#Every database is addressable
A database's name is a path, and the same path works in the API, the CLI and the console:
- Name
- orgs/{org}/projects/{project}/envs/{env}/databases/{database}
- Id
- db_<location><ulid>
Read a database, list the ones in an environment, create, update, delete,
open a connection, rotate its credentials and restore it in place — the
databases collection has every call, with its scope
and its examples. data:read covers the reads; everything that changes the
database needs data:write.
#Postgres, with the extensions you would install yourself
pgvector is part of the engine, so a vector column is a normal column:
CREATE EXTENSION IF NOT EXISTS vector;
CREATE TABLE documents (
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
content text NOT NULL,
embedding vector(1536)
);
CREATE INDEX ON documents USING hnsw (embedding vector_cosine_ops);#Backups and point-in-time restore
A database is backed up on its own schedule, and restore puts it back to a
point in time inside its retention window. The restore happens in place: the
database is unavailable while it restores, and everything written after the
restore point is gone.
A restore is destructive
restore is the one call that removes data on purpose, so the CLI asks before
it runs and the API takes validate_only. Backups and restore
has the procedure.
#Connections are issued, not constructed
There is no connection string in the console to copy into a repository: you
ask for one with connect, and it is returned to that caller only. The
response carries the pooled uri and — for Postgres — the direct_uri that
migrations, pg_dump, LISTEN/NOTIFY, session SET and logical
replication need.