This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a list of up to 100 staff members, given the provided paging, filtering, and sorting.
Query Staff Members has the following default settings, which you can override:
createdDate
in ascending order.cursorPaging.limit
set to 100
.Refer to the supported filters article (REST) for a complete list of supported filters and sorting options.
To learn about working with Query methods, see API Query Language and Sorting and Paging.
Information about filters, paging, and sorting. See the article about booking policy filters (REST) for all supported filters and sorting options.
Conditional fields to return.
Retrieved staff members.
Paging metadata.
Query staff members, providing fields
parameter to request additional fields.
curl -X POST \
'https://www.wixapis.com/bookings/v1/staff-members/query' \
-H 'Authorization: <AUTH>' \
-d '{
"query": {
"cursorPaging": {
"cursor": null,
"limit": 100
},
"fields": ["RESOURCE_DETAILS"]
}
}'
{
"staffMembers": [{
"id": "0954bbb2-88cd-445c-9827-44253eb8b039",
"name": "Some other name",
"resourceId": "e0936563-7fd8-4e08-9db0-a327b2cb653e",
"default": false,
"revision": "3",
"createdDate": "2024-08-28T13:22:32.784Z",
"updatedDate": "2024-08-28T14:16:11.948Z",
"resource": {
"id": "e0936563-7fd8-4e08-9db0-a327b2cb653e",
"working_hours_schedules": [
{
"id": "77ee564a-80d5-4ffc-85a3-284df66a0d12",
"shared": true
}
],
"events_schedule": {
"id": "7c147d9e-89a8-4e2e-a723-b095db0610c1"
},
"uses_default_working_hours": true
}
}]
"pagingMetadata": {
"count": 1,
"cursors": {},
"hasNext": false
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.