A1ROUTESdevelopers
A1ROUTES.com
Developers/BusinessPhoneSystem
BUSINESSPHONESYSTEM · A1PBX

Connect your BusinessPhoneSystem

Build against your own A1PBX account hostname.

Confirm your account details

Obtain your assigned hostname, A1PBX API key, and enabled API version. The examples use /app/api/7 and header authentication. Confirm both with A1ROUTES before use.

Start with call history

If call-history access is enabled, use a read request to check connectivity without initiating a call. Save your account identifier as A1PBX_ACCOUNT_ID and your key as A1PBX_API_KEY.

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"

Choose a workflow

Keep access narrow

Request only the operations required for your integration. Mailbox and recording access must match the user's entitlement; account membership alone should not be assumed to grant access to every message.