List users
GET
/api/v1/users
const url = 'http://localhost:8080/api/v1/users';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/users \ --header 'Authorization: Bearer <token>'Admin only.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Every user.
Media typeapplication/json
object
items
required
Array<object>
object
id
required
integer format: int64
name
required
string
role
required
string
libraryIds
required
Libraries a reader may open. Empty for admins, who see every library.
Array<integer>
createdAt
required
string format: date-time
demo
True on /api/v1/me for a shared demo account, which can’t change its settings. Absent otherwise.
boolean
Example
{ "items": [ { "role": "admin" } ]}The request has no valid session token.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The signed-in user may not do this. demo_account when the user is a
shared demo account, named in CHEK_DEMO_USERS, which can’t change
its password, sessions, sign-in providers, extensions or annotations.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}The server failed; details are in its log.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}