Answered

How is pagination supported in conversations/search

  • 26 January 2023
  • 1 reply
  • 70 views

There's no mention in the docs how is pagination supported. Trying to add query params per_page and/or page has no effect on the response. I would expect it to affect the page size and the page of results that is returned.

Notice that in /conversations, paging works with ?start_after query parameter and this is no in accordance with the API doc.

icon

Best answer by Joseph S. 27 January 2023, 22:56

View original

1 reply

Userlevel 1
Badge +3

Hi @ron s​ 

 

Intercom uses a cursor-based pagination system for the conversations and search functionality, rather than using query parameters such as

per_page and page

So basically, instead of specifying the page number and page size, you provide a cursor to indicate where in the results you want to start. For example, when using the /conversations endpoint, you can use the start_after query parameter to specify the cursor for where you want to start in the conversations.

 

Here is the pagination documentation I found about it : https://developers.intercom.com/intercom-api-reference/reference/pagination-sorting-search(the sorting search)

 

I hope this helps you the slightest.

Reply