cURL
curl --request GET \ --url https://api.clarityq.ai/api/v1/products/{product_id}/tasks/{task_id}/last-run-summary \ --header 'X-API-Key: <api-key>'
{ "assets": [ { "asset_type": "SQL", "data": [ { "query": "<string>", "title": "", "result_count": 123, "result_rows": [ {} ], "error": "<string>" } ] } ], "summary": "<string>" }
Retrieve the SQL results and text summary from the last completed run of a task.
API key obtained from the ClarityQ dashboard.
Successful Response
Summary of a conversation's last assistant response.
Assets extracted from the last assistant message, grouped by type.
Show child attributes
Text summary from the assistant (last text part of the message).