A1ROUTESdevelopers
A1ROUTES.com
Developers/Guides
Guides

Retrieve recording audio

Find a recorded call and save its audio securely.

Find the recording

Use List call recordings with your authorized account. Select a recording identifier from the returned data. Confirm identifier mapping before joining it to a CRM call record.

Download the audio

Request Download a recording with type=binary. Check the HTTP status and content type before saving the result. A JSON error must not be saved as an audio file.

Request example
curl --fail-with-body --get \
  "https://$A1PBX_ACCOUNT_ID.a1routes.com/app/api/7/call_recording" \
  --header "Authorization: Basic $A1PBX_API_KEY" \
  --data-urlencode "uuid=$RECORDING_UUID" \
  --data-urlencode "type=binary" \
  --output recording.audio

Make playback private

Store files in private storage and enforce your own user authorization before playback. Avoid permanent public links. Retention and recording availability depend on the account and the original call configuration.