Users
Get all users
Use this endpoint to retrieve all users
get/users
Query parameters
pageinteger
The page to retrieve results from
per_pageinteger
The number of results to return per page
site_idstring
Filter results by the site they belong to
organisation_idstring uuid
Filter users by the organisation they belong to
sortstring
The field to order results by.
querystring
Filter users by their name or email
twofa_enabledboolean
Filter users according to whether they have two-factor authentication enabled.
twofa_disabledboolean
Filter users according to whether they do not shave two-factor authentication enabled.
managed_by_ssoboolean
Filter users according to whether they are managed by SSO.
not_managed_by_ssoboolean
Filter users according to whether they are not managed by SSO.
include_inactiveboolean
Filter users according to whether they are active or not.
Response
A list of users
Example response
{
"links": {
"first": "http://example.com?page=1",
"next": "https://example.com?page=3",
"prev": "https://example.com?page=1",
"last": "https://example.com?page=4"
},
"meta": {
"from": 1,
"to": 2,
"total": 2,
"current_page": 1,
"last_page": 2,
"per_page": 15,
"path": "http://example.com/api"
},
"data": [
{
"id": "5e1e3f6c-2a44-4f6e-8c61-9c1f7d2e1c11",
"name": "John Smith",
"given_name": "John",
"family_name": "Smith",
"email": "john.smith@example.com",
"email_verified": true,
"organisation_id": "9c3ad1e2-2d1b-4f4f-9e07-6d6c4f3a2b1a",
"organisation_name": "Trybe Spa Group",
"avatar_id": "7d2a1f9c-5b3e-4d8c-9f0a-2c4e6f8b1d3a",
"avatar": {
"file_name": "super-cool-photo.jpg",
"mime_type": "image/jpeg",
"original_url": "https://example.com/media/super-cool-photo.jpg",
"size": 84256,
"url": "https://example.com/media/super-cool-photo-thumbnail@2x.jpg"
},
"cashier_id": "cashier-042",
"status": "active",
"2fa_enabled": true,
"twofa_enabled": true,
"created_at": "2020-01-01T00:00:00.000Z",
"updated_at": "2020-01-01T00:00:00.000Z",
"managed_by_sso": true
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.