Skip to main content
POST
/
talk2data
/
mcp
/
execute-query
Execute Query Endpoint
curl --request POST \
  --url https://api.example.com/talk2data/mcp/execute-query \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sql": "<string>",
  "database": "<string>",
  "max_rows": 500
}
'
{
  "columns": [
    "<string>"
  ],
  "rows": [
    {}
  ],
  "row_count": 123,
  "truncated": true,
  "sql": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for synchronous query execution.

sql
string
required

SQL query to execute

Minimum string length: 1
database
string
required

Resource URI of the data connection (e.g. data:org:project:name)

Minimum string length: 1
max_rows
integer
default:500

Maximum rows to return

Required range: 1 <= x <= 5000

Response

Successful Response

Synchronous query execution result.

columns
string[]
required
rows
Rows · object[]
required
row_count
integer
required
truncated
boolean
required
sql
string
required