LoguDocs
Open Logu

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#

NameInTypeRequiredDescription
idpathstringrequiredThe ask's id (ask_…). · e.g. ask_01K7DQ3M2V8H4N6R9T1W3Y5B7C
Logu-WorkspaceheaderstringoptionalHumans 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
FieldTypeRequiredNotes
historyobject[]required
history[].optionIdstringrequired
history[].labelstringrequired
history[].countintegerrequired1–∞
history[].automatedintegerrequired0–∞
history[].lastAtstringrequireddate-time

Errors#

Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.

StatusCodeMeaning
401unauthorizedNo credentials, or the API key or session is invalid or revoked.
403forbiddenThe caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint).
404not_foundNo such route, or the resource doesn't exist in your workspace.
500internal_errorSomething went wrong on Logu's side.