AirCall - Retrieving More than 10,000 Calls
I am needing to retrieve more than 10,000 calls from the AirCall API, but even using the “from” parameter it is still only retrieving 10,000 calls. Reading through the API documentation it seems that over 10,000 calls is possible, but I am wondering if this is a flow where I would need to a custom paging method in order to do so.
https://developer.aircall.io/api-references/#list-all-calls
Current setup


0
Comments
Dave Guderian ,
Try setting the “Paging method” field to “Custom relative URI” and
“Override relative URI for subsequent page requests” field to
{{{replace (replace previous_page.full_response.meta.next_page_link 'https://api.aircall.io/v1' '') 'https://api.aircall.io/v1' ''}}}
Dave Guderian it looks like 10,000 is the limit when using paging. You should instead just keep passing the
from
variable:You won't be able to use the “export type = all”, you'll need to use “export type = delta”, then set it up like this:
Then for paging, do this:
?from={{{previous_page.last_record.started_at}}}
Thank you both Sree Vani Amara and Tyler Lamparter !
I tied to use Tyler's method but am receiving an error. I couldn't see the HTTP Method, but tried both POST and PUT and both had errors. I mirrored what was in the screenshots, but it doesnt seem to be working for me.
POST Body:
Dave Guderian the /mirror is just a dummy endpoint. You would use your actual endpoint which is /calls.
Thanks Tyler Lamparter . I had actually tried that thinking that the /mirror was a dummy endpoint, but still receive the same error even with /calls.
I am thinking something might need to be adjusted in the relative URI, perhaps?
Dave Guderian tough to tell, but I'm guessing there are no results, then it tries to reference the field in handlebars even though there are no results. Can you enable the debug log in the top right and see what the api calls are? Would need to see what the status code, response is, etc. There may be 2 requests, one that works and one that doesn't. Maybe also try hardcoding in some unix timestamps to see.
I am only seeing one request with each run. Below is the request and response I am seeing.
Dave Guderian my bad, the page relative url field would be
/calls?from={{{previous_page.last_record.started_at}}}
. I missed ading the /calls.Hmmm, Im still running into the same error upon execution. I'm just not even sure where to look. My POST body is right off the developer page. Would that need to be changed potentially?
Dave Guderian it's a GET call, not POST.
That was my point of confusion! I wasn't clear why you had the request body populated so thought it must have been a POST or PUT request even though GET is what made sense!
Thanks for working through this with me Tyler Lamparter . Really appreciate your help today getting this working!
Dave Guderian yeah I was just using our own /v1/mirror api to mimic the response your api was giving: https://docs.celigo.com/hc/en-us/community/posts/20017341423003-Post-and-receive-sample-data-with-the-Mirror-API-endpoint
Please sign in to leave a comment.