Retrieving calls that contain a number string

Here is an example sh script that will retrieve the 2nd page of 20 calls that have numbers containing the string "3322":

ACCESS_ID='yourlongbabelforceapiaccessidgoeshere'
TOKEN='yourlongbabelforceapitokengoeshere'

ENDPOINT="https://services.babelforce.com/api/v2/calls/reporting?max=20&page=2&q=3322"

curl $ENDPOINT \
-H "X-Auth-Access-Id: $ACCESS_ID" \
-H "X-Auth-Access-Token: $TOKEN" \

 

Have more questions? Submit a request