Beta APIs

[beta] Get voice agent session details

Returns full details — including the transcript, tool calls, lifecycle events, and a recording URL — for a batch of voice agent sessions identified by ids. Discover session IDs with GET /agent-studio/voice-sessions/stream. Up to 100 IDs may be requested per call; IDs that are not found are omitted from the response.

<b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

To use this endpoint, select Read Agent Studio Voice Sessions under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>

Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

get/agent-studio/voice-sessions

Request

  • Base URL
    https://api.samsara.com
  • Auth
    HTTP bearer

Query parameters

idsstring[] required

Required, comma-separated list of voice session IDs to fetch full details for. Up to 100 session IDs per call. IDs that are not found are omitted from the response.

Response

OK response.

Example response

{
  "data": [
    {
      "agentId": "agt_01HX0000000000000000000001",
      "agentName": "Pole Yard Intake",
      "callEvents": [
        {
          "happenedAtTime": "2026-05-19T14:23:12Z",
          "type": "call_connected"
        }
      ],
      "durationMilliseconds": 87420,
      "happenedAtTime": "2026-05-19T14:23:11Z",
      "id": "ses_01HX9Z7VKQ8N3B2YQ1F4E5R6T7",
      "recipient": "Driver Bob",
      "recordingUrl": "https://samsara-voice-recordings.s3.amazonaws.com/...",
      "recordingUrlExpiresAtTime": "2026-05-26T14:23:11Z",
      "sessionStatus": "completed",
      "toolCalls": [
        {
          "arguments": "{\"deliveryId\":\"DLV-1234\"}",
          "durationMilliseconds": 820,
          "name": "lookup_delivery_status",
          "output": "{\"status\":\"out_for_delivery\"}",
          "startMilliseconds": 4100,
          "status": "success"
        }
      ],
      "transcript": [
        {
          "endMilliseconds": 3200,
          "speakerType": "agent",
          "text": "Hi, this is your dispatch assistant calling about your delivery."
        }
      ],
      "triggerType": "geofence",
      "updatedAtTime": "2026-05-19T14:24:38Z"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.