Skip to content
Console
Menu

Getting Started

Authentication

KV Store

Connect a database

Returns how to connect to the database: its endpoint and its own engine credentials.

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

Returns how to connect to the database: its endpoint and its own engine credentials. The credentials are not API keys and are returned only here.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/databases/database:connect
  • Scope data:write
  • Effect read — nothing is written.
  • Collection databases

#Request

FieldTypeWhat it is
namestringThe name of the database. Required.
profileConnectionProfilePOOLED (default) or DIRECT. One of pooled, direct.

#Response

FieldTypeWhat it is
connection_infoConnectionInfoHow to connect.

#ConnectionInfo

FieldTypeWhat it is
hoststringThe endpoint host, {ref}.sylphx.net.
portint32The TLS port: 5432 Postgres, 6379 Valkey, 8108 search, 443 objects.
usernamestringThe engine user.
passwordstringThe engine password. Never returned again.
databasestringThe Postgres database name; empty for other kinds.
uristringA driver URL embedding the credentials. Never returned again.
direct_uristringPostgres only: the direct URL for migrations, pg_dump, LISTEN/NOTIFY, session SET, and logical replication. Never returned again.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/databases/database:connect" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'