Skip to main content

Get Staffers

Method GET

https://my.easyweek.io/api/public/v2/locations/{location_uuid}/staffers

Description: This endpoint is used to retrieve a list of staffers working at a specific location. It provides information about each staffer, including their first name, last name, position, description, and avatar (if available).

Example Request

curl -i -X GET \
https://my.easyweek.io/api/public/v2/locations/{location_uuid}/staffers \
-H 'Authorization: Bearer <YOUR_SECRET>' \
-H 'Workspace: <YOUR_WORKSPACE>'

Path Parameters

  • location_uuid (string, required): This is a parameter that represents the unique identifier of the location for which you want to retrieve a list of staffers. It allows you to specify the location by its UUID, and the endpoint will return the staffers associated with that particular location.

Example Response

{
"data": [
{
"uuid": "eac5a506-69c0-40c4-8758-85c501d26bcb",
"first_name": "John",
"last_name": "Doe",
"position": "Barber",
"description": "Experienced barber with a passion for creating great haircuts.",
"avatar": "https://storage.easyweek.io/media/75/avatar.png",
"category": {
"uuid": "0be3a85c-52ab-4bb6-9580-d2f7f11dbeda",
"name": "Barbering",
"order": 2
}
}
],
"links": {
"first": "https://my.easyweek.io/api/public/v2/locations/123b2980-3506-4f8c-abce-97e1ab653406/staffers?page=1",
"last": "https://my.easyweek.io/api/public/v2/locations/123b2980-3506-4f8c-abce-97e1ab653406/staffers?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "https://my.easyweek.io/api/public/v2/locations/123b2980-3506-4f8c-abce-97e1ab653406/staffers?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next &raquo;",
"active": false
}
],
"path": "https://my.easyweek.io/api/public/v2/locations/123b2980-3506-4f8c-abce-97e1ab653406/staffers",
"per_page": 15,
"to": 1,
"total": 1
}
}