Skip to navigation

List one tool's runs with request and result

Runs of one webhook or MCP tool across the agent’s calls, newest first by started_at then id. Each run carries the filtered arguments and result, the registered error code and the webhook HTTP status. Payloads of runs recorded while capture was off are null. Requires calls.read. A run of the agent’s before-call tool has timing pre_call and no model arguments. Each run carries source and diagnosis; include adds the request as sent and the response status and headers; include_test=true adds stored test runs.

Authentication

AuthorizationBearer

An organisation-owned key whose secret starts ra_org_. The Owner or an Admin of an organisation that Rasen has invited makes it in the app; no API operation makes, changes, rotates or revokes a key. On a workspace operation send the workspace ID in the Rasen-Workspace header; without it the answer is 400 invalid_request with details.field Rasen-Workspace. A workspace outside the organisation or outside the key’s workspace list is 404 not_found. An organisation that is not invited gets 403 organisation_api_not_enabled.

Path parameters

agent_idstringRequired1-128 characters
Resource identity within the authenticated workspace.
tool_idstringRequired1-128 characters
Resource identity within the authenticated workspace.

Headers

Rasen-WorkspacestringRequired

The ID of the workspace that this operation acts in. It must be a workspace of the key’s organisation and in the key’s workspace list. A missing, empty or malformed value is 400 invalid_request with details.field Rasen-Workspace; a workspace outside the organisation or the key’s workspace list is the hidden 404 not_found.

Query parameters

limitintegerOptional1-200Defaults to 50

Page size; 50 by default, at most 200.

cursorstringOptional
Opaque cursor bound to the workspace, every filter, grouping and limit. Send them unchanged with it. Expires after 24 hours.
call_idstringOptional1-128 characters
Only the runs of this call.
statelist of stringsOptional

Exact run state filter. Known values: pending, succeeded, failed, indeterminate. Invalid filters are refused, not ignored. Repeat for OR; AND with other fields. Omission means no filter.

startdatetimeOptional
Inclusive UTC timestamp. Range must be at most 93 days.
enddatetimeOptional
Exclusive UTC timestamp. Default range is trailing 30 days.
includelist of stringsOptional

Adds fields to each run. Known values: request, response. Repeat the parameter or send a comma-separated list. An unknown value is refused (400 invalid_request, details.field include).

include_testbooleanOptionalDefaults to false

true also lists the tool’s stored test runs (source test). A cursor is bound to this value.

Response headers

X-Request-IdstringOptional
Safe server request correlation ID.
RateLimit-LimitintegerOptional
Requests allowed in the current window for the tightest applicable limit.
RateLimit-RemainingintegerOptional
Requests left in the current window.
RateLimit-ResetintegerOptional
Seconds until the current window resets.

Response

List one tool's runs with request and result.
itemslist of objects
next_cursorstring or null
Opaque continuation cursor. Null means the last page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error