Endpoints
Query history
GET
/api/v1/me/query-historyThis user's recent queries in the active org, newest first.
Scoped to the caller by construction: the service takes the user id from the session, and there is no parameter that could name another user.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Query Parameters
limit?Limit
Range
1 <= value <= 200Default
50Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/me/query-history"[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5", "query_text": "string", "executed_at": "2019-08-24T14:15:22Z" }]POST
/api/v1/me/query-historyRecords a submitted query. Never fails — see this module's docstring.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/me/query-history" \ -H "Content-Type: application/json" \ -d '{ "query_text": "string" }'null