Asks · getAskHistory
How this ask was decided before
GET /v1/asks/{id}/history
For the app's "You've approved this 7 times" hint: how members decided earlier asks from the same agent, in the same project, with exactly the same title, per option (count: decisions by a human; automated: the same option chosen by a rule or by the default on timeout; lastAt: when a human last chose it). Most chosen first. Test asks and the ask itself aren't counted; settled asks are kept 180 days. Empty when the ask has no agent or nobody decided one like it. Members only: agents don't see how their asks were decided this way.
- Who may call it
- humans: every member
- Server
- https://api.logu.dev
Parameters#
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | required | The ask's id (ask_…). · e.g. ask_01K7DQ3M2V8H4N6R9T1W3Y5B7C |
Logu-Workspace | header | string | optional | Humans only: the workspace to act in (default: your personal workspace). Agents always act in their API key's workspace. · e.g. wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6 |
Example#
curl -s "https://api.logu.dev/v1/asks/ask_01K7DQ3M2V8H4N6R9T1W3Y5B7C/history" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN"
Responses#
200
Past decisions, per option.
{
"history": [
{
"optionId": "approve",
"label": "Approve",
"count": 7,
"automated": 2,
"lastAt": "2026-10-12T14:05:42.000Z"
},
{
"optionId": "decline",
"label": "Decline",
"count": 1,
"automated": 0,
"lastAt": "2026-10-12T14:03:11.000Z"
}
]
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
history | object[] | required | |
history[].optionId | string | required | |
history[].label | string | required | |
history[].count | integer | required | 1–∞ |
history[].automated | integer | required | 0–∞ |
history[].lastAt | string | required | date-time |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 403 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 404 | not_found | No such route, or the resource doesn't exist in your workspace. |
| 500 | internal_error | Something went wrong on Logu's side. |