Skip to navigation

Changes to the Rasen Developer API, newest first.

The API version moves from 1.10.0 to 1.11.0.

Read the request and result of each tool run

New operation: listAgentToolRuns (GET /agents/{agent_id}/tools/{tool_id}/runs). It lists the runs of one webhook or MCP tool across the agent’s calls, newest first. Each run carries the filtered arguments and result, the registered reason, error_message, the webhook http_status and latency_ms. Filter by call_id, by state, and by start and end. It requires calls.read.

A run never holds a credential, a resolved header, a URL path or query, or a provider exception. arguments and result are cut at 32,768 bytes, and are null for a run recorded while their capture was off.

What to do: Nothing for existing integrations. To read tool payloads, follow Read tool call logs.

Tool outcomes include latency_ms

listCallToolOutcomes (GET /calls/{call_id}/tool-outcomes) adds the required field latency_ms to each item: the run time in milliseconds, or null until the run has a result. Each outcome id equals the id of its run in listAgentToolRuns, which holds the request and response payloads.

What to do: Read latency_ms as nullable. To read a run’s payloads, call listAgentToolRuns with the outcome’s tool_id and the call_id.

Choose what the agent does on a voicemail

Agent settings add voicemail_action (hang_up or leave_message) and voicemail_message, at most 500 characters. With leave_message, the agent speaks the message when voicemail detection finds a voicemail, then ends the call. A blank message with leave_message is refused with invalid_request on voicemail_message.

createAgent (POST /agents), updateAgentDraft (PATCH /agents/{agent_id}/draft) and validateAgentDraft (POST /agents/{agent_id}/draft/validate) accept both fields. Every answer that holds draft or version settings includes them: getAgentDraft, updateAgentDraft, publishAgent, listAgentVersions, getAgentVersion, deleteAgentTool and deleteAgentVariable.

An agent that never set voicemail_action reads hang_up: on a voicemail, it ends the call at once.

What to do: Nothing for existing integrations. To leave a message, see Build and publish an agent.