Skip to main content
Integration S
Jan 27, 2023 4:15 AM UTC
Solved

Users API pagination

Hi Colleagues

I'm trying to send a request for the users list but it only return 200 users and it doesn't have a link for the next page although I'm seeing 2K + users

 

 

jkrueger
jkruegerAnswer
Lucid product team
Sep 11, 2024 4:50 PM UTC

An explanation on how to use the link header to retrieve subsequent pages can be found in the response to this post

Comments

Michael B
Lucid product team
Jan 27, 2023 3:48 PM UTC

Hello

The pagination Link is in the the response headers. An example is shown below.  For more information see: getting-started-pagination

HTTP/1.1 200 OK Content-Type: application/json 
Link: https://api.lucid.co/users?pageSize=20&pageToken=eyJvIjoiMSIsImUiOjE2Mjg2OTc3OTF9; rel="next"

 

Translate
Sep 11, 2024 4:28 PM UTC

Hey Michael

Would you be kind to explain how we should actually use the information provided within the header?

documentation is not clear on how to do it, we need at least one example...

Translate
jkrueger
jkruegerAnswer
Lucid product team
Sep 11, 2024 4:50 PM UTC

An explanation on how to use the link header to retrieve subsequent pages can be found in the response to this post

Translate