Discussions
Empty data array returned when requesting Shift Break details via API
yesterday by Hashir
Issue Description:
I am attempting to retrieve break start and end times for shifts using the Humanity API inside an n8n workflow. The API call completes successfully (status: 1 with no explicit error message), but the data array returns empty ([]) instead of returning the scheduled or actual break timestamps.
API Request Details:
- Endpoint URL:
[https://www.humanity.com/api/v2/shifts/shift_id/shiftbreaks] - HTTP Method:
[GET / POST] - Parameters/Payload Sent:
[INSERT PARAMETERS, e.g., shift_id = 12345] - Authentication: API token included and authenticated.
Actual Response Received:
[
{
"status": 1,
"data": [],
"metadata": [],
"token": "abc",
"error": null
}
]
Expected Result:
The JSON response should contain break start and end timestamps (or break duration data) associated with the specified shift.
Questions:
- Are specific API scope permissions or account-level settings required to expose break data via the API?
- Is there a different method, endpoint, or parameter required to fetch break details specifically for shifts?