Skip to main content

Hi there!

 

I’m trying to get the list of users from the API.

 

So far i was able to get 200 users which i understand is the limit per page. With that said, i’m having a hard time trying to figure out how to move to the next page, the documentation is not clear on what should be done exactly to move to the next page

When i fetch the first time i get a Link Header, something like this
https://api.lucid.co/users?pageSize=20&pageToken=eyJvIjoiMSIsImUiOjE2Mjg2OTc3OTF9>; rel="next"

this is the link header of the current page, but how should i move to the next one? i mean, how to i actually use the “next” provided.

Link to the documentation:
https://lucid.readme.io/reference/reference-rest#pagination


Also, second question, is this Endpoint to List Users able to provide Licenses allocated to users?


Thanks in advance,

Rapha

Hi Rapha,

The link header in the response contains the URL that the next request should be made to. 

In this case, if you send the second request to 
https://api.lucid.co/users?pageSize=20&pageToken=eyJvIjoiMSIsImUiOjE2Mjg2OTc3OTF9
then the next 20 users will be returned, along with another link.

To answer your second question, there are currently no API endpoints for obtaining a user’s license information.

Hope this helps!

Jamie


hey Jkrueger, thanks for the quick reply.

So not a single endpoint available in the API is able to provide me the column “Licenses” that identify the license of the user?

If that’s the case, is there any other way of retrieving that info? I saw an Integration with ServiceNow, is this possible through the integration?


Sorry, that is correct. We have no offerings currently for identifying user license via API. 

I do not believe the ServiceNow integration will help in this scenario. That integration is primarily built to help you visualize your ServiceNow data within Lucidchart.

We understand this is a useful feature missing in our API and will consider licensing APIs in the future.


Reply