Agents

Lists the background runs of the last 7 days, newest first, to recover a run whose response was lost. Pages are read with a cursor: pass pagination.nextCursor as cursor to get the next page.

get/agents/ask

Request

  • Base URL
    https://api.modjo.ai/v2
  • URL
    https://api.modjo.ai/v2/agents/ask
  • Auth
    HTTP bearer

Query parameters

status'queued' | 'processing' | 'completed' | 'failed'

Only list the runs in this status

Example:failed
sizeinteger

Number of items per page

Example:25
cursorstring

The pagination.nextCursor of the previous page

Response

Agent runs

Example response

{
  "data": [
    {
      "uuid": "01a17e2e-975f-739d-9953-d6f664bb35e0",
      "status": "completed",
      "scope": {
        "id": 1
      },
      "output": {
        "budget": "50k EUR",
        "nextStep": null
      },
      "createdOn": "2026-10-27T16:25:45.034Z",
      "finishedOn": "2026-10-27T16:26:03.872Z",
      "expiresOn": "2026-11-03T16:25:45.000Z"
    }
  ],
  "pagination": {
    "size": 25
  }
}

Changes