v1
latestOpenAPI 3.0.32026-07-17256.5 KBList all data sources
Returns an array of all configured database data sources
get/api/sources
Response
Successful response with array of data sources
Example response
[
{
"id": "prod_pg",
"description": "Production read replica for analytics queries",
"type": "postgres",
"host": "localhost",
"port": 5432,
"database": "production",
"user": "dbuser",
"ssh_tunnel": {
"enabled": true,
"ssh_host": "bastion.example.com",
"ssh_port": 22,
"ssh_user": "deploy"
},
"tools": [
{
"name": "execute_sql_prod_pg",
"description": "Execute a SQL query on the 'prod_pg' postgres database (default)",
"parameters": [
{
"name": "sql",
"type": "string",
"required": true,
"description": "SQL query or multiple SQL statements to execute (separated by semicolons)"
}
],
"statement": "SELECT * FROM users WHERE id = $1",
"readonly": true,
"max_rows": 1000
}
]
}
]