LMS Collaborator knowledge base

Home/Technical requirements/API/API - User List

API – User List

  • To get the list of users you need to send GET request to the following URI /api/v2/users/list.
  • The request must contain the headings Content-Type: application/json;charset=UTF-8 and Authorization: Bearer xxxxxx.

Request example:

curl 'http://your-domain.davintoo.com/api/v2/users/list' -H 'Authorization: Bearer xxxxxx' -H 'Content-Type: application/json;charset=UTF-8'

The query supports filtering by the following fields:

  • fullname - (Fullname or email or login)
  • position - Position
  • department - Departmaent
  • city- City
  • tags - User tags

Example of a query with an email search:

curl 'https://your-domain.davintoo.com/api/v2/users/list?filter[fullname][email protected]' -H 'Authorization: Bearer xxxxxx' -H 'Content-Type: application/json;charset=UTF-8'


Answer

In case of successful request (HTTP response code - 200), there will be reply result in JSON format of the form:
data - results array
"pager":{"current":1,"count":16,"total":155,"countPerPage":10} - pagination object (information about the number of pages, the current page, the number of results)

  • In case of error (HTTP code response - 400) it returns JSON object with information about the error
Still have questions?
Our technical support team is always happy to help!
Write to us at technical support [email protected]. If you are registered on our Helpdesk - send request button below.
Send request