FruxonDocs
ApiVoice

Gets one voice call with its turns.

Turns come in the order they were taken. Each has the caller's transcript, the reply as it was handed to the voice, the generation and delivery outcomes, what the caller heard when they cut in (`spokenText`), the worker-reported timings, and `executionRecordId`, the run behind the reply, to read at `…/executionRecords/{executionRecord}/trace`.

GET
/v1/tenants/{tenant}/agents/{agent}/voiceSessions/{voiceSession}
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agent*string

The unique identifier of the agent.

voiceSession*string

The call's id.

Formatuuid
tenant*string

The tenant identifier

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/voiceSessions/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "sttProvider": "string",
  "ttsProvider": "string",
  "sttSeconds": 0,
  "ttsCharacters": 0,
  "turns": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "turnId": "00000000-0000-0000-0000-000000000000",
      "language": "string",
      "transcript": "string",
      "replyText": "string",
      "generation": "PENDING",
      "delivery": "PENDING",
      "spokenText": "string",
      "deliveredDurationMs": 0,
      "executionRecordId": "00000000-0000-0000-0000-000000000000",
      "createdAt": 0,
      "userStartedAt": 0,
      "userEndedAt": 0,
      "generationEndedAt": 0,
      "cancelRequestedAt": 0,
      "deliveryReportedAt": 0
    }
  ],
  "id": "00000000-0000-0000-0000-000000000000",
  "agentId": "string",
  "fruxonSessionId": "string",
  "status": "CREATED",
  "language": "string",
  "createdAt": 0,
  "startedAt": 0,
  "endedAt": 0,
  "endReason": "USER_HANGUP",
  "callDurationMs": 0,
  "turnCount": 0,
  "createdByUserId": "string"
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}