List attendance rows

GET/v2/helpdesk/attendance

Return how long each Helpdesk member was Available, Away and Offline per day, with the number of tickets they received.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Returns attendance totals for your Helpdesk members, one row per member and day. Call it to plan coverage, build a staffing report or compare availability with ticket volume. Attendance is the state a member sets in the Helpdesk, as described in Attendance.

Request

GET /v2/helpdesk/attendance

Query parameters:

Name Type Required Description
from string No The first day to include, as YYYY-MM-DD. Defaults to seven days ago.
to string No The last day to include, as YYYY-MM-DD. Defaults to today.
teamId string No Only members of this team, starting with team_.
memberId string No Only this member, starting with usr_.
limit integer No Items per page, from 1 to 100. Defaults to 20.
cursor string No The nextCursor value from the previous page.

Days are calendar days in UTC. Rows are sorted by date, newest first, then by member.

Example request

curl "https://api.askocto.co/v2/helpdesk/attendance?teamId=team_2c7h5v&from=2026-03-19&to=2026-03-20" \
  -H "Authorization: Bearer $OCTO_API_KEY"
const url = new URL("https://api.askocto.co/v2/helpdesk/attendance")
url.searchParams.set("teamId", "team_2c7h5v")
url.searchParams.set("from", "2026-03-19")
url.searchParams.set("to", "2026-03-20")

const response = await fetch(url, {
  headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` },
})

const { data } = await response.json()
for (const row of data) {
  console.log(row.date, row.memberId, `${row.availableSeconds / 3600} hours available`)
}

Example response

A successful call returns 200 OK.

{
  "data": [
    {
      "date": "2026-03-20",
      "memberId": "usr_6k9d2r",
      "availableSeconds": 25200,
      "awaySeconds": 3600,
      "offlineSeconds": 57600,
      "ticketsReceived": 14
    },
    {
      "date": "2026-03-20",
      "memberId": "usr_3b6t0z",
      "availableSeconds": 21600,
      "awaySeconds": 5400,
      "offlineSeconds": 59400,
      "ticketsReceived": 11
    },
    {
      "date": "2026-03-19",
      "memberId": "usr_6k9d2r",
      "availableSeconds": 27000,
      "awaySeconds": 1800,
      "offlineSeconds": 57600,
      "ticketsReceived": 16
    }
  ],
  "nextCursor": null
}

Response fields

Name Type Description
data[].date string The day, as YYYY-MM-DD.
data[].memberId string The workspace member, starting with usr_.
data[].availableSeconds integer Time in the Available state.
data[].awaySeconds integer Time in the Away state.
data[].offlineSeconds integer Time in the Offline state.
data[].ticketsReceived integer Tickets that were assigned to the member that day.
nextCursor string or null Pass it as cursor for the next page. null on the last page.

The three durations add up to the length of the day. For the exact periods behind a row, read List activity segments.

Errors

Status Code When
400 invalid_request from or to is not a YYYY-MM-DD date, from is after to, or limit is outside 1 to 100.
401 unauthorized The API key is missing, malformed or deleted.
404 not_found The team or member does not exist in your workspace.
429 rate_limited Too many requests. Wait for the number of seconds in the Retry-After header.

Something unclear or missing? Tell us and we will fix the page.