Discussions

Ask a Question
Back to all

Empty data array returned when requesting Shift Break details via API

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:

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?