curl -X GET "https://api.whatabot.app/api/v1/sessions/logs?page=0&size=10" \
-H "X-Api-Key: wh_your_api_key"
{
"content": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"workspaceId": "660e8400-e29b-41d4-a716-446655440000",
"flowId": "550e8400-e29b-41d4-a716-446655440000",
"externalId": "contact-123",
"status": "completed",
"warnings": 0,
"startedAt": "2025-01-15T10:30:00.000Z",
"expiresAt": "2025-01-15T10:45:00.000Z",
"finishedAt": "2025-01-15T10:32:15.000Z"
}
],
"totalElements": 1,
"totalPages": 1,
"number": 0,
"size": 10,
"first": true,
"last": true
}
Sessions
List Session Logs
Retrieve a paginated list of session logs.
GET
/
v1
/
sessions
/
logs
curl -X GET "https://api.whatabot.app/api/v1/sessions/logs?page=0&size=10" \
-H "X-Api-Key: wh_your_api_key"
{
"content": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"workspaceId": "660e8400-e29b-41d4-a716-446655440000",
"flowId": "550e8400-e29b-41d4-a716-446655440000",
"externalId": "contact-123",
"status": "completed",
"warnings": 0,
"startedAt": "2025-01-15T10:30:00.000Z",
"expiresAt": "2025-01-15T10:45:00.000Z",
"finishedAt": "2025-01-15T10:32:15.000Z"
}
],
"totalElements": 1,
"totalPages": 1,
"number": 0,
"size": 10,
"first": true,
"last": true
}
Retrieve session execution logs with pagination and filtering. Use this to monitor flow executions, track errors, and audit session activity.
string
required
Your API key (prefixed with
wh_).integer
default:"0"
Page number (zero-based).
integer
default:"10"
Number of items per page (1-100).
string
Column name to order results by.
string
default:"ASC"
Sort direction.
ASC or DESC.string
Filter by workspace UUID.
string
Filter by date range. One of
today, last7days, last15days, last30days.string
Filter by a specific session UUID.
string
Filter by session status. One of
running, completed, timeout, error.curl -X GET "https://api.whatabot.app/api/v1/sessions/logs?page=0&size=10" \
-H "X-Api-Key: wh_your_api_key"
{
"content": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"workspaceId": "660e8400-e29b-41d4-a716-446655440000",
"flowId": "550e8400-e29b-41d4-a716-446655440000",
"externalId": "contact-123",
"status": "completed",
"warnings": 0,
"startedAt": "2025-01-15T10:30:00.000Z",
"expiresAt": "2025-01-15T10:45:00.000Z",
"finishedAt": "2025-01-15T10:32:15.000Z"
}
],
"totalElements": 1,
"totalPages": 1,
"number": 0,
"size": 10,
"first": true,
"last": true
}