Call Management
Get Batch Details
Inspect batch metadata and page through associated calls with filtering and sorting.
GET
Documentation Index
Fetch the complete documentation index at: https://docs.weya.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Fetch detailed information for a single batch, including campaign metadata, status, and a paginated list of call records. This endpoint supports advanced filtering, sorting, and searching to help you analyze call data. Use it for monitoring execution from the dashboard or building custom analytics.Prerequisites
- Bearer token for an authenticated user who owns the batch.
- The batch
idyou obtained during creation.
Request
Bearer token for the authenticated user.
Batch identifier you want to inspect.
Page number for paginated calls.
Maximum call records to return per page (default: 10).
JSON stringified filter object to filter calls by specific fields. Example:
{"callStatus":"completed"}.Field to sort by (e.g., “createdAt”).
Sort order: “asc” for ascending or “desc” for descending.
Search term to filter calls across dynamic fields (e.g., customer name, phone number).
Response
Contains batch metadata and paginated call records.
The batch identifier.
The name of the batch.
Current status of the batch (e.g., “active”, “completed”, “paused”).
Current page number.
Number of records per page.
Total number of calls in the batch matching the filter criteria.
Total number of pages available.
Array of call records with enriched data including phone logs, recording URLs, and transcripts when available.
Error Handling
- 400 Bad Request – Invalid batch ID format, invalid filter JSON, or query parameters out of range.
- 404 Not Found – Batch not found or does not belong to the authenticated user.
- 500 Internal Server Error – Failed to aggregate batch data; retry or contact support.
Advanced Features:
- Filtering: Use the
filterparameter with JSON to filter calls by specific fields from the phone logs - Sorting: Sort by any field using
sortByand control order withsortOrder - Searching: The
searchparameter performs a regex search across all dynamic string fields in call records - Phone logs are automatically included with each call record when available
Authorizations
Bearer token authentication for workspace access
Path Parameters
Query Parameters
Available options:
asc, desc Response
Batch details fetched successfully

