curl --request POST \ --url "https://api.roe-ai.com/v1/database/query/async/?organization_id=YOUR_ORG_ID" \ --header "Authorization: Bearer YOUR_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "query": "SELECT * FROM my_table LIMIT 10" }'
{ "query": "SELECT * FROM users LIMIT 10", "worksheet_id": "123e4567-e89b-12d3-a456-426614174000", "use_admin": false }
Execute a query asynchronously and return query object.
Worksheet ID. Required if organization_id is not provided.
Serializer for creating worksheet queries.
1
Worksheet ID to associate with the query
Whether to use admin privileges
Query object
Show child attributes
Simple organization serializer for nested use.