How is pagination supported in conversations/search | Community
Skip to main content
Answered

How is pagination supported in conversations/search

  • January 26, 2023
  • 1 reply
  • 96 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.

Best answer by Joseph S.

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.

View original
Did this topic help you find an answer to your question?

1 reply

Joseph S.
Super User ✨
Forum|alt.badge.img+4
  • Super User ✨
  • 71 replies
  • Answer
  • January 27, 2023

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.