Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Connect a KV namespace

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

Returns how to connect to the KV namespace: 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/kv_namespaces/kv-namespace:connect
  • Scope data:write
  • Effect read — nothing is written.
  • Collection kv_namespaces

#Request

FieldTypeWhat it is
namestringThe name of the kv namespace. Required.

#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/kv_namespaces/kv-namespace:connect" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'