v1

latestSwagger 2.02026-07-13180103150.2 KB
database

Returns the database branch connection string for a specific branch.

get/sites/{site_id}/database/branch/{branch_id}

Query parameters

role'netlifydb_owner' | 'netlifydb_readonly'

The database role to use for the connection string. Defaults to netlifydb_owner if not specified.

Response

OK

connection_stringstring

The connection string for the database branch

metadataobject

Metadata associated with the branch