Get requested shifts
GET/api/v2/public/shift-requests
Returns requested shift with clinician's details and a link to download clinician profile that is generated when the shift was requested. This ensures the clinician information is up to date.
Users can also create a Webhook in our system to receive notifications when a clinician requests to work a shift.
Request
Query Parameters
Possible values: <= 100
Default value: 10
Pagination parameter, use to specify the quantity of records returned
Default value: 0
Pagination parameter, use to specify the number of records to skip before starting to return results
Possible values: [ASC
, DESC
]
Default value: DESC
Pagination parameter, use to specify the order of records by creation date, either 'asc' for ascending or 'desc' for descending
When you provide date-time value, time is ignored and will take the start of the day for the given date (00:00:00)
License Type of the shift
Id of the facility
Id of the shift
Responses
- 201
- 400
- 401
- 403
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
data object[]
Id of the shift
License Type of the shift
Id of the facility
Shift start date
Shift end date
clinicians object[]required
Id of the clinician
First name of the clinician
Last name of the clinician
URL to download clinician profile
Email of the clinician
Contact Phone of the clinician
Break Time for the shift
meta object
Number of items returned
Starting position
Sorting direction
Total records found
{
"data": [
{
"shiftId": "8222234296",
"licenseType": "RN",
"facilityId": "NUR-123456",
"from": "2024-10-04T18:30:16.313Z",
"to": "2024-10-04T18:30:16.313Z",
"clinicians": [
{
"id": "I7002epLHLhBCypdPCrn9XP4kTN2",
"firstName": "Jane",
"lastName": "Doe",
"url": "/api/v2/public/downloads/clinician/I7002epLHLhBCypdPCrn9XP4kTN2/shift/8222234296",
"contactEmail": "jane@doe.com",
"contactPhone": "+12345678910"
}
],
"breakTime": "PT45M"
}
],
"meta": {
"limit": 0,
"offset": 0,
"sortDirection": {},
"total": 0
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Request Validation
Schema
Error description
The type of error
Status code of the error
{
"message": [
"Property must be a string"
],
"error": "Bad Request",
"statusCode": 400
}
Request Validation Error
{
"message": [
"limit must be a number conforming to the specified constraints",
"limit must not be less than 0",
"limit must not be greater than 50",
"offset must be a number conforming to the specified constraints",
"offset must not be less than 0",
"sortDirection must be one of the following values: ASC, DESC",
"startDate must be a valid ISO 8601 date string",
"facilityId must be a string",
"shiftId must be a string"
],
"error": "Bad Request",
"statusCode": 400
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error description
Status code of the error
{
"message": "Unauthorized",
"statusCode": 401
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error description
The type of error
Status code of the error
{
"message": "Forbidden Resource",
"error": "Forbidden",
"statusCode": 403
}