A1ROUTESdevelopers
A1ROUTES.com
Developers/BusinessPhoneSystem
BUSINESSPHONESYSTEM · A1PBX

List call history

Retrieve call detail records for reporting and integration with your business systems.

Account availability: These examples describe the A1PBX version 7 interface. Confirm the endpoint, header authentication, response format, and record permissions for your assigned account before production use.

Request

Retrieve call detail records for reporting and integration with your business systems.

GET/xml_cdrA1PBX API

Parameters

ParameterTypeRequiredDescription
limitintegerNoRequested result count; account limits may apply.
offsetintegerNoPagination position; verify the deployed API semantics.
order_bystringNoSort expression, for example start_epoch desc.
start_stamp[]stringNoRepeat this parameter for the start and end of a date range. Confirm account timezone and boundary behavior.

Examples

Request example
curl --fail-with-body --get \
  "https://$A1PBX_ACCOUNT_ID.a1routes.com/app/api/7/xml_cdr" \
  --header "Authorization: Basic $A1PBX_API_KEY" \
  --data-urlencode "limit=20" \
  --data-urlencode "offset=0" \
  --data-urlencode "order_by=start_epoch desc"

Response

Inspect an authorized response from your account to establish the returned fields, content type, and empty-result behavior. Response schemas are intentionally not asserted until verified for the deployed service.

Integration notes

The source interface supports date ranges using repeated start_stamp[] parameters and sorting such as start_epoch desc. Confirm timezone, range inclusivity, and offset behavior. Retention and maximum result size are account-specific.

See authentication, pagination, and error handling.