Skip to navigation

Changes to the Rasen Developer API, newest first.

Follow a call’s transcript live

New operation: GET /calls/{call_id}/transcript/live (streamLiveCallTranscript). It requires calls.read and returns Server-Sent Events of a call’s transcript lines while the call runs. It works for every call: dialled, inbound, agent sessions and test calls. Open it any time after the call is created; it waits for the call to connect.

curl -N "$RASEN_API_BASE/calls/$CALL_ID/transcript/live" \
-H "Authorization: Bearer $RASEN_API_KEY"
  • Each transcript.message event carries call_id, segment_id, speaker (agent or customer), text, final, start_ms and end_ms.
  • Every payload of one line has the same segment_id. Show the newest payload of each line, but never replace a final: true line with a later final: false one.
  • Once the call is over, transcript.end arrives with the call’s state, and the stream closes.
  • Save the last id: value and send it as Last-Event-ID to resume. Comment frames are heartbeats. One connection lasts at most 55 minutes, and it shares the open-stream limits of streamCallTranscript.
  • Live lines show the call as it runs and are not its record: the last words of a call can be missing. After the call, read the verified transcript.

What to do: Nothing for existing integrations. To show a call as it runs, see Follow a call’s transcript live.

Resource key conflicts take precedence over name conflicts

A create that repeats both the name and the resource_key of an existing agent, MCP server, Knowledge source or secret now answers 409 resource_key_conflict with details.existing_id. It previously answered with a name conflict, so a client that lost a create response and retried with a new Idempotency-Key could not find the resource it had made. When the key is free and only the name is taken, the name conflict is unchanged. See Resource keys.

What to do: On 409 resource_key_conflict, read the resource with details.existing_id instead of creating it again.

Transcript stream limit answers 429

When a key or workspace already had the most transcript streams open, streamCallTranscript answered with a server error. It now answers 429 rate_limited with Retry-After, the same as streamLiveCallTranscript.

What to do: On 429 rate_limited, wait the seconds in Retry-After, then reconnect with Last-Event-ID.