POST /handle_query Handle US Data ChatMTG querying via SQL query
handleUSDataQueryingViaSQL
Endpoint function serves as an interface for users to interact with a US Data database by accepting a SQL query as an input and executing the query.
Request
{
"sql": "select count(*) from \"sc-us-data-consumer-data\""
} Response
Success
Total Number of People - 258,617,916 Request data invalid
{
"message": "Request body is invalid."
} Forbidden
{
"message": "Invalid Api Key"
} Request bodyapplication/json
1 fields
application/json| Field | Type | Description |
|---|---|---|
sqlrequired | string | SQL statement |
Response 400application/json
1 fields
400application/jsonRequest data invalid
| Field | Type | Description |
|---|---|---|
message | string | Error message |
Response 403application/json
1 fields
403application/jsonForbidden
| Field | Type | Description |
|---|---|---|
message | string | Error message |
Other responses
200