Execute SQL get query
POST https://data.jetadmin.io/projects/{{project_id}}/prod/{{resource_name}}/sql_get_query
Replace the double-brace placeholders with your identifiers. The interactive endpoint below uses standard OpenAPI path parameters.
Use SELECT queries supported by your resource's SQL engine. In the example query, replace {{model_id}} with the actual SQL table name; a model API identifier may differ from the SQL table name.
Executes a query using the resource SQL engine syntax. Only SELECT queries are allowed.
Static API token for the selected resource, passed directly in the Authorization header. Use the token and auth format shown by the resource API.
Project identifier. Replace {{project_id}} with your project identifier.
Connected resource API name. Replace {{resource_name}} with your resource name.
SQL query using the resource SQL engine syntax. Must be a SELECT query.
SQL query result rows.
Invalid request parameters or body.
Missing or invalid API token.
POST /projects/{project_id}/prod/{resource_name}/sql_get_query HTTP/1.1
Host: data.jetadmin.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"query": "SELECT id, name FROM {{model_id}} LIMIT 10"
}{
"results": [
{
"id": 1001,
"name": "Record name"
},
{
"id": 1002,
"name": "Second record name"
}
]
}Was this helpful?