Skip to main content
Answered

API: GET: Conversation: Pagination not working

  • May 24, 2023
  • 1 reply
  • 163 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 cameron.gumley

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
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+4
  • Intercom Team
  • 109 replies
  • 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?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings