API: GET: Conversation: Pagination not working | Community
Skip to main content
Answered

API: GET: Conversation: Pagination not working

  • May 24, 2023
  • 1 reply
  • 362 views

Hello, I try to modify my json configurator to extract all conversions. However pagination does not work. Can someone assist please? 

 

The json I have is as following:

 

{
"parameters": {
"api": {
"baseUrl": "https://api.intercom.io/"
},
"pagination": {
"method": "cursor",
"perPageParam": "per_page",
"perPage": 150,
"startingAfterParam": "starting_after",
"startingAfter": ""
},
"config": {
"outputBucket": "ge-tutorial",
"debug": true,
"jobs": [
{
"endpoint": "conversations",
"params": {
"per_page": "{{perPage}}",
"starting_after": "{{startingAfter}}"
},
"headers": {
"Intercom-Version": "2.9",
"accept": "application/json",
"authorization": "Bearer -----"
}
}
]
},
"incrementalOutput": true
}
}

 

Best answer by Cam G.

Hi @chrisbr0! ! Cam with the Intercom Support Engineering team here.

Just to confirm - when you say you’re looking to ‘extract all conversions’, you’re wanting to use the List All Conversations API endpoint to fetch a list of all conversations and their parts - correct?  I presume you’re getting a ‘Successful’/200 Response for the initial page so I’m keen to understand what you might be seeing when trying to use pagination, are you getting any specific errors in response?

View original

1 reply

Forum|alt.badge.img+4
  • Employee
  • Answer
  • June 1, 2023

Hi @chrisbr0! ! Cam with the Intercom Support Engineering team here.

Just to confirm - when you say you’re looking to ‘extract all conversions’, you’re wanting to use the List All Conversations API endpoint to fetch a list of all conversations and their parts - correct?  I presume you’re getting a ‘Successful’/200 Response for the initial page so I’m keen to understand what you might be seeing when trying to use pagination, are you getting any specific errors in response?