Get a shift by ID.
const url = 'https://api-us.suiteop.com/api/v1/shifts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';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 https://api-us.suiteop.com/api/v1/shifts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Get full details for a single shift by ID: scheduled window, assigned member, status, linked tasks, time entries (work + break blocks), and approval state.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”Success.
object
Response payload.
object
object
Response metadata present on every success response.
object
Present on list responses.
object
Page size used for this request.
Number of items skipped.
Total number of matching items (across all pages).
Unique identifier for this request.
Example generated
{ "data": { "assignedMemberId": "example", "assignedMemberName": "example", "breakMinutes": 1, "createdAt": "2026-04-15T12:00:00Z", "date": "example", "departmentId": "example", "id": "example", "isOpen": true, "linkedTasks": [ { "id": "example" } ], "notes": "example", "requiresApproval": true, "scheduledEnd": "2026-04-15T12:00:00Z", "scheduledStart": "2026-04-15T12:00:00Z", "status": "example", "timezone": "example", "updatedAt": "2026-04-15T12:00:00Z" }, "meta": { "pagination": { "limit": 1, "offset": 1, "total": 1 }, "requestId": "example" }}Headers
Section titled “Headers ”Maximum requests per minute for this API key.
Remaining requests in the current rate-limit window.
Unix epoch seconds when the rate-limit window resets.
Unique identifier for this request (matches meta.requestId in the body).
400
Error envelope returned for HTTP 400 responses.
object
object
Machine-readable error code.
Optional structured details (omitted when undefined).
object
Human-readable error message.
Error type.
object
Example
{ "error": { "type": "validation_error" }}Headers
Section titled “Headers ”Maximum requests per minute.
Remaining requests in the current window.
Unix epoch seconds when the window resets.
Request correlation id (also in meta.requestId).
401
Error envelope returned for HTTP 401 responses.
object
object
Machine-readable error code.
Optional structured details (omitted when undefined).
object
Human-readable error message.
Error type.
object
Example
{ "error": { "type": "authentication_error" }}Headers
Section titled “Headers ”Request correlation id (also in meta.requestId).
403
Error envelope returned for HTTP 403 responses.
object
object
Machine-readable error code.
Optional structured details (omitted when undefined).
object
Human-readable error message.
Error type.
object
Example
{ "error": { "type": "authorization_error" }}Headers
Section titled “Headers ”Maximum requests per minute.
Remaining requests in the current window.
Unix epoch seconds when the window resets.
Request correlation id (also in meta.requestId).
404
Error envelope returned for HTTP 404 responses.
object
object
Machine-readable error code.
Optional structured details (omitted when undefined).
object
Human-readable error message.
Error type.
object
Example
{ "error": { "type": "not_found_error" }}Headers
Section titled “Headers ”Maximum requests per minute.
Remaining requests in the current window.
Unix epoch seconds when the window resets.
Request correlation id (also in meta.requestId).
409
Error envelope returned for HTTP 409 responses.
object
object
Machine-readable error code.
Optional structured details (omitted when undefined).
object
Human-readable error message.
Error type.
object
Example
{ "error": { "type": "conflict_error" }}Headers
Section titled “Headers ”Maximum requests per minute.
Remaining requests in the current window.
Unix epoch seconds when the window resets.
Request correlation id (also in meta.requestId).
422
Error envelope returned for HTTP 422 responses.
object
object
Machine-readable error code.
Optional structured details (omitted when undefined).
object
Human-readable error message.
Error type.
object
Example
{ "error": { "type": "business_rule_error" }}Headers
Section titled “Headers ”Maximum requests per minute.
Remaining requests in the current window.
Unix epoch seconds when the window resets.
Request correlation id (also in meta.requestId).
429
Error envelope returned for HTTP 429 responses.
object
object
Machine-readable error code.
Optional structured details (omitted when undefined).
object
Human-readable error message.
Error type.
object
Example
{ "error": { "type": "rate_limit_error" }}Headers
Section titled “Headers ”Number of seconds to wait before retrying.
Maximum requests per minute.
Remaining requests in the current window.
Unix epoch seconds when the window resets.
Request correlation id (also in meta.requestId).
500
Error envelope returned for HTTP 500 responses.
object
object
Machine-readable error code.
Optional structured details (omitted when undefined).
object
Human-readable error message.
Error type.
object
Example
{ "error": { "type": "internal_error" }}Headers
Section titled “Headers ”Maximum requests per minute.
Remaining requests in the current window.
Unix epoch seconds when the window resets.
Request correlation id (also in meta.requestId).