WayloAIWaylo Docs
APIReferenceSessions

List sessions

GET
/sessions

Sessions in one workspace, newest first, offset-paginated. Filters are exact matches, plus a createdAt range and hasItems; search matches the caller (end-user name, phone, external id, from-address). configSummary carries the agent name when the session started, and the provider, model and voice of each stage by id and current name; it is null for a key without agents:read.

Access: workspace_viewer · API key sessions:read

Authorization

api-key
headerAuthorizationBearer <sk_waylo_<lookup><secret><checksum>>

Query Parameters

page?number
Range1 <= value <= 10000
Default1
limit?number
Range1 <= value <= 100
Default25
orderDirection?string
Default"desc"
Value in"asc""desc"
workspaceId*string
Formatuuid
status?string
Value in"pending""active""completed""failed"
agentId?string
Formatuuid
channel?string
Value in"web""telephony"
endReason?string
Value in"caller_hangup""caller_inactive""caller_goodbye""agent_end""busy""no_answer""rejected""cancelled""provider_error""provider_key_failed""worker_error""max_duration""timeout"
isDraft?boolean
hasItems?boolean
endUserExternalId?string
Length1 <= length <= 255
phoneNumberId?string
Formatuuid
createdByUserId?string
Formatuuid
createdByApiKeyId?string
Formatuuid
from?string

Inclusive lower bound on createdAt, as an ISO-8601 instant (a date-only value is midnight UTC).

Formatdate-time
to?string

Inclusive upper bound on createdAt, as an ISO-8601 instant (a date-only value is midnight UTC, so pass a full timestamp to include a whole day).

Formatdate-time
orderBy?string
Value in"status""channel""agentName""createdAt""startedAt""endedAt"
search?string

Free-text search over the searchBy fields.

Length1 <= length <= 255
searchBy?string

Comma-separated: endUserName, endUserPhone, endUserExternalId, fromAddress.

Header Parameters

Authorization*string

Your API key.

Response Body

Success

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://api.poc.app.waylovoice.ai/sessions?workspaceId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Authorization: Bearer sk_waylo_...'
Example Response
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c",    "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2",    "agentVersion": 0,    "isDraft": true,    "createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620",    "createdByApiKeyId": "353906ab-73e3-4c9b-814b-174af6419ced",    "endUser": {      "externalId": "string",      "name": "string",      "phone": "string",      "metadata": {}    },    "spokenNumber": {      "value": "+15745550123",      "national": "(574) 555-0123",      "raw": "574 555 0123",      "confirmation": "not_requested"    },    "channel": "web",    "direction": "inbound",    "phoneNumberId": "8e9ce3fb-4d22-4fe3-baa7-b7892dd942d7",    "fromAddress": "string",    "toAddress": "string",    "provider": "string",    "providerCallId": "string",    "status": "pending",    "endReason": "caller_hangup",    "failureCode": "invalid_dispatch",    "roomName": "string",    "roomSid": "string",    "livekitSipParticipantSid": "string",    "clientRequestId": "string",    "metadata": {},    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "startedAt": "2019-08-24T14:15:22Z",    "endedAt": "2019-08-24T14:15:22Z",    "agentName": "string",    "createdByUserName": "string",    "itemCount": 0,    "configSummary": {      "name": "string",      "llm": {        "provider": "string",        "model": "string",        "providerName": "string",        "modelName": "string"      },      "stt": {        "provider": "string",        "model": "string",        "providerName": "string",        "modelName": "string"      },      "tts": {        "provider": "string",        "model": "string",        "providerName": "string",        "modelName": "string",        "voiceId": "string",        "voiceName": "string"      }    }  }]