FruxonDocs
ApiVoice

Lists an agent's voice calls, newest first.

Each call carries its status, language, start and end, why it ended, and its number of turns. Read one with its turns at `…/voiceSessions/{voiceSession}`.

GET
/v1/tenants/{tenant}/agents/{agent}/voiceSessions
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.

tenant*string

The tenant identifier

Query Parameters

PageSize?integer

The maximum number of items to return per page

Formatint32
PageToken.Skip?integer
Formatint32
PageToken.Cursor?string

Opaque pagination token returned by an external service. Pass it back unchanged rather than interpreting it as an offset.

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/voiceSessions"
{
  "items": [
    {
      "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"
    }
  ],
  "nextPageToken": "string",
  "totalCount": 0
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}