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

Changes

Changed in 1 of the 52 revisions of this API.1