Skip to Content
SeyloDocs
API referenceDatabases

Get connection details

GET
/api/v1/databases.connection

Returns the internal connection URL and, when exposure is on, the exposed URL, with passwords. Internal URLs only work for services of the project on the same node.

Needs databases.credentials on the service (a grant on its project covers it). Available to MCP clients and the assistant.

Authorization

cookieseylo_session<token>

Query Parameters

serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$

Response Body

Success.

application/json
  1. response
internal*
exposed*|null
Example Request
curl -X GET 'https://example.com/api/v1/databases.connection?serviceId=string'
Example Response
{  "internal": {    "url": "string",    "host": "string",    "port": 0,    "database": "string",    "user": "string",    "password": "string"  },  "exposed": {    "url": "string",    "host": "string",    "port": 0,    "database": "string",    "user": "string",    "password": "string",    "tlsParams": "string"  }}