Connections

Execute SQL

Execute a raw SQL query against the connection and return results.

post/connections/{id}/query

Request

  • Base URL: https://app.aifordatabase.com/api/v1
  • URL: https://app.aifordatabase.com/api/v1/connections/{id}/query
  • Auth: HTTP bearer

Path parameters

idstring required

Resource ID

Request body

sqlstring required

SQL query to execute

questionstring

Optional: the question this query answers, in the user's words. Stored with the query and shown in the app's query history.

Response

Query result

errorunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.