Developers
Sign inGet API keys

Team

TeamService runs the team: who works here, what their role lets them do, when they are scheduled, the time they clock, and what they sold.

Roles are named sets of permissions. Every business has Owner, Manager, Cashier and Staff and can add its own. A team member signs in to a register with a four-digit passcode, which registers check offline; one with an email can also be invited to the dashboard.

Reading the team takes team.manage, or shifts.manage for the schedule and timecards. Changing anyone's role takes team.manage and every permission the role gives: nobody hands out more than they have.

holygrail.team.v1.TeamService50 methodsteam.read · team.write

ListTeam#

team.readRead
POST/holygrail.team.v1.TeamService/ListTeam

ListTeam returns the team members, the roles and the permissions there are.

Request body

No fields: send {}.

Response

permissionGroupsPermissionGroup[]permission_groups
positionsPosition[]

Positions not archived.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListTeam \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "members": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "fullName": "Amina Mushi",
      "email": "amina@example.co.tz",
      "phone": "+255712345678",
      "roleId": "",
      "roleName": "Amina Mushi",
      "permissions": [
        ""
      ],
      "locationIds": [
        ""
      ],
      "hourlyRate": "0",
      "color": "",
      "active": false,
      "hasPasscode": false,
      "hasLogin": false,
      "invited": false,
      "passcodeSalt": "",
      "passcodeHash": "",
      "owner": false,
      "updatedAt": "2026-12-05",
      "positionIds": [
        ""
      ],
      "maxWeeklyMinutes": 0
    }
  ],
  "roles": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "systemKey": "",
      "name": "Amina Mushi",
      "description": "",
      "permissions": [
        ""
      ],
      "memberCount": 1
    }
  ],
  "permissionGroups": [
    {
      "title": ""
    }
  ],
  "positions": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "name": "Amina Mushi",
      "color": "",
      "sort": 0,
      "archived": false
    }
  ]
}

CreateTeamMember#

team.writeWrite
POST/holygrail.team.v1.TeamService/CreateTeamMember

Request body

passcodestring

Empty picks a random one.

inviteboolean

Email them a link to sign in to the dashboard; needs an email.

Response

passcodestring

The passcode to tell them; it is not shown again.

inviteUrlstringinvite_url

When invited: the link that was emailed, to share another way if needed.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/CreateTeamMember \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "member": {
    "fullName": "Amina Mushi",
    "email": "amina@example.co.tz",
    "phone": "+255712345678",
    "locationIds": [
      ""
    ],
    "positionIds": [
      ""
    ]
  }
}'
Response example
{
  "member": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "fullName": "Amina Mushi",
    "email": "amina@example.co.tz",
    "phone": "+255712345678",
    "roleId": "",
    "roleName": "Amina Mushi",
    "permissions": [
      ""
    ],
    "locationIds": [
      ""
    ],
    "hourlyRate": "0",
    "color": "",
    "active": false,
    "hasPasscode": false,
    "hasLogin": false,
    "invited": false,
    "passcodeSalt": "",
    "passcodeHash": "",
    "owner": false,
    "updatedAt": "2026-12-05",
    "positionIds": [
      ""
    ],
    "maxWeeklyMinutes": 0
  },
  "passcode": "",
  "inviteUrl": ""
}

UpdateTeamMember#

team.writeWrite
POST/holygrail.team.v1.TeamService/UpdateTeamMember

Request body

idstring

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/UpdateTeamMember \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
  "member": {
    "fullName": "Amina Mushi",
    "email": "amina@example.co.tz",
    "phone": "+255712345678",
    "locationIds": [
      ""
    ],
    "positionIds": [
      ""
    ]
  }
}'
Response example
{
  "member": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "fullName": "Amina Mushi",
    "email": "amina@example.co.tz",
    "phone": "+255712345678",
    "roleId": "",
    "roleName": "Amina Mushi",
    "permissions": [
      ""
    ],
    "locationIds": [
      ""
    ],
    "hourlyRate": "0",
    "color": "",
    "active": false,
    "hasPasscode": false,
    "hasLogin": false,
    "invited": false,
    "passcodeSalt": "",
    "passcodeHash": "",
    "owner": false,
    "updatedAt": "2026-12-05",
    "positionIds": [
      ""
    ],
    "maxWeeklyMinutes": 0
  }
}

SetTeamMemberActive#

team.writeWrite
POST/holygrail.team.v1.TeamService/SetTeamMemberActive

SetTeamMemberActive deactivates someone who left, or brings them back. A deactivated member cannot sign in anywhere; their history stays.

Request body

idstring
activeboolean

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SetTeamMemberActive \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "member": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "fullName": "Amina Mushi",
    "email": "amina@example.co.tz",
    "phone": "+255712345678",
    "roleId": "",
    "roleName": "Amina Mushi",
    "permissions": [
      ""
    ],
    "locationIds": [
      ""
    ],
    "hourlyRate": "0",
    "color": "",
    "active": false,
    "hasPasscode": false,
    "hasLogin": false,
    "invited": false,
    "passcodeSalt": "",
    "passcodeHash": "",
    "owner": false,
    "updatedAt": "2026-12-05",
    "positionIds": [
      ""
    ],
    "maxWeeklyMinutes": 0
  }
}

SetPasscode#

team.writeWrite
POST/holygrail.team.v1.TeamService/SetPasscode

SetPasscode sets a member's register passcode, or picks a new random one when passcode is empty. Passcodes are unique in the business. Anyone may set their own.

Request body

teamMemberIdstringteam_member_id
passcodestring

Four digits; empty for a random one.

Response

passcodestring
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SetPasscode \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "passcode": ""
}

InviteTeamMember#

team.writeWrite
POST/holygrail.team.v1.TeamService/InviteTeamMember

InviteTeamMember emails a member a link to sign in to the dashboard.

Request body

teamMemberIdstringteam_member_id

Response

inviteUrlstringinvite_url
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/InviteTeamMember \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "inviteUrl": ""
}

CreateRole#

team.writeWrite
POST/holygrail.team.v1.TeamService/CreateRole

Request body

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/CreateRole \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "role": {
    "name": "Amina Mushi",
    "permissions": [
      ""
    ]
  }
}'
Response example
{
  "role": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "systemKey": "",
    "name": "Amina Mushi",
    "description": "",
    "permissions": [
      ""
    ],
    "memberCount": 1
  }
}

UpdateRole#

team.writeWrite
POST/holygrail.team.v1.TeamService/UpdateRole

UpdateRole renames a role or changes its permissions. The Owner role's permissions cannot change. Members get the change when their session next refreshes, and registers on their next sync.

Request body

idstring

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/UpdateRole \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
  "role": {
    "name": "Amina Mushi",
    "permissions": [
      ""
    ]
  }
}'
Response example
{
  "role": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "systemKey": "",
    "name": "Amina Mushi",
    "description": "",
    "permissions": [
      ""
    ],
    "memberCount": 1
  }
}

DeleteRole#

team.writeWrite
POST/holygrail.team.v1.TeamService/DeleteRole

DeleteRole removes a custom role nobody has.

Request body

idstring

Response

No fields: send {}.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/DeleteRole \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{}

ExportTeam#

team.readRead
POST/holygrail.team.v1.TeamService/ExportTeam

ExportTeam is what a register needs to start: the team at its location with passcodes, who is clocked in there, and the published shifts from yesterday to a week ahead. Keep current from the change feed after cursor.

Request body

locationIdstringlocation_id

Response

timecardsTimecard[]

Open timecards at the location.

cursorint64 string
positionsPosition[]
announcementsAnnouncement[]

Announcements still showing.

timeOffTimeOffRequest[]time_off

Time off that is pending or not over yet, for the location's team.

shiftRequestsShiftRequest[]shift_requests

Shift changes still waiting at the location.

availabilityAvailability[]
namedShiftsNamedShift[]named_shifts

The location's named shifts, archived ones too.

shiftRunsShiftRun[]shift_runs

Shift runs at the location still open, and those ended in the last day.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ExportTeam \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "members": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "fullName": "Amina Mushi",
      "email": "amina@example.co.tz",
      "phone": "+255712345678",
      "roleId": "",
      "roleName": "Amina Mushi",
      "permissions": [
        ""
      ],
      "locationIds": [
        ""
      ],
      "hourlyRate": "0",
      "color": "",
      "active": false,
      "hasPasscode": false,
      "hasLogin": false,
      "invited": false,
      "passcodeSalt": "",
      "passcodeHash": "",
      "owner": false,
      "updatedAt": "2026-12-05",
      "positionIds": [
        ""
      ],
      "maxWeeklyMinutes": 0
    }
  ],
  "timecards": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "teamMemberId": "",
      "deviceId": "",
      "shiftId": "",
      "clockInAt": "",
      "clockOutAt": "",
      "note": "",
      "editedBy": "",
      "editedAt": "",
      "approvedBy": "",
      "approvedAt": "",
      "namedShiftId": "",
      "shiftDate": "2026-12-05",
      "shiftRunId": ""
    }
  ],
  "shifts": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "teamMemberId": "",
      "startsAt": "",
      "endsAt": "",
      "breakMinutes": 0,
      "note": "",
      "published": false,
      "removed": false,
      "positionId": "",
      "source": ""
    }
  ],
  "cursor": "0",
  "positions": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "name": "Amina Mushi",
      "color": "",
      "sort": 0,
      "archived": false
    }
  ],
  "announcements": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "title": "",
      "body": "",
      "locationIds": [
        ""
      ],
      "pinned": false,
      "requireAck": false,
      "publishedAt": "",
      "expiresAt": "",
      "authorName": "Amina Mushi",
      "archived": false,
      "acknowledgedMemberIds": [
        ""
      ],
      "audience": 0
    }
  ],
  "timeOff": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "teamMemberId": "",
      "kind": "",
      "startsAt": "",
      "endsAt": "",
      "allDay": false,
      "note": "",
      "status": "",
      "minutes": "0",
      "decidedBy": "",
      "decidedAt": "",
      "decisionNote": "",
      "createdAt": "",
      "shortNotice": false
    }
  ],
  "shiftRequests": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "kind": "",
      "shiftId": "",
      "teamMemberId": "",
      "targetMemberId": "",
      "targetShiftId": "",
      "note": "",
      "status": "",
      "peerStatus": "",
      "decidedBy": "",
      "decidedAt": "",
      "decisionNote": "",
      "createdAt": ""
    }
  ],
  "availability": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "teamMemberId": "",
      "note": "",
      "updatedAt": "2026-12-05"
    }
  ],
  "namedShifts": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "name": "Amina Mushi",
      "code": "",
      "color": "",
      "startMinute": 0,
      "endMinute": 0,
      "days": [
        0
      ],
      "teamMemberIds": [
        ""
      ],
      "earlyClockInMinutes": 0,
      "lateGraceMinutes": 0,
      "sort": 0,
      "archived": false,
      "updatedAt": "2026-12-05"
    }
  ],
  "shiftRuns": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "teamMemberId": "",
      "deviceId": "",
      "namedShiftId": "",
      "shiftDate": "2026-12-05",
      "startedAt": "",
      "endedAt": "",
      "endedBy": "",
      "fullName": "Amina Mushi"
    }
  ]
}

ListShifts#

team.readRead
POST/holygrail.team.v1.TeamService/ListShifts

Scheduling. Shifts are drafts until published; registers and the team see published ones.

Request body

locationIdstringlocation_id
fromstring

RFC 3339 instants: shifts that start in [from, to).

tostring

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListShifts \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "shifts": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "teamMemberId": "",
      "startsAt": "",
      "endsAt": "",
      "breakMinutes": 0,
      "note": "",
      "published": false,
      "removed": false,
      "positionId": "",
      "source": ""
    }
  ]
}

SaveShift#

team.writeWrite
POST/holygrail.team.v1.TeamService/SaveShift

Request body

Empty id makes a new shift. Changing a published shift keeps it published.

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveShift \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "shift": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
  }
}'
Response example
{
  "shift": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "teamMemberId": "",
    "startsAt": "",
    "endsAt": "",
    "breakMinutes": 0,
    "note": "",
    "published": false,
    "removed": false,
    "positionId": "",
    "source": ""
  }
}

DeleteShift#

team.writeWrite
POST/holygrail.team.v1.TeamService/DeleteShift

Request body

idstring

Response

No fields: send {}.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/DeleteShift \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{}

PublishShifts#

team.writeWrite
POST/holygrail.team.v1.TeamService/PublishShifts

Request body

locationIdstringlocation_id
fromstring
tostring

Response

publishedinteger
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/PublishShifts \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "published": 0
}

CopyShifts#

team.writeWrite
POST/holygrail.team.v1.TeamService/CopyShifts

CopyShifts copies a week's shifts to another week as drafts, skipping any that would overlap one already there.

Request body

locationIdstringlocation_id
fromWeekstringfrom_week

RFC 3339: the start of the week to copy, and of the week to copy into.

toWeekstringto_week

Response

copiedinteger
skippedinteger
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/CopyShifts \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "copied": 0,
  "skipped": 0
}

ListTimecards#

team.readRead
POST/holygrail.team.v1.TeamService/ListTimecards

Timecards. Registers clock people in and out through sync; managers correct timecards here.

Request body

locationIdstringlocation_id
fromstring

RFC 3339: timecards clocked in during [from, to).

tostring
teamMemberIdstringteam_member_id

Empty for everyone.

Response

timecardsTimecard[]
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListTimecards \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "timecards": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "teamMemberId": "",
      "deviceId": "",
      "shiftId": "",
      "clockInAt": "",
      "clockOutAt": "",
      "note": "",
      "editedBy": "",
      "editedAt": "",
      "approvedBy": "",
      "approvedAt": "",
      "namedShiftId": "",
      "shiftDate": "2026-12-05",
      "shiftRunId": ""
    }
  ]
}

SaveTimecard#

team.writeWrite
POST/holygrail.team.v1.TeamService/SaveTimecard

Request body

timecardTimecard

Empty id adds a missed timecard.

Response

timecardTimecard
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveTimecard \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "timecard": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "shiftDate": "2026-12-05"
  }
}'
Response example
{
  "timecard": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "teamMemberId": "",
    "deviceId": "",
    "shiftId": "",
    "clockInAt": "",
    "clockOutAt": "",
    "note": "",
    "editedBy": "",
    "editedAt": "",
    "approvedBy": "",
    "approvedAt": "",
    "namedShiftId": "",
    "shiftDate": "2026-12-05",
    "shiftRunId": ""
  }
}

GetShiftReport#

team.readRead
POST/holygrail.team.v1.TeamService/GetShiftReport

GetShiftReport adds up hours, pay and sales per team member over local dates [from, to] at a location. Hours over 40 in a week (Monday to Sunday) are overtime.

Request body

locationIdstringlocation_id
fromstring

Local dates, YYYY-MM-DD, inclusive.

tostring

Response

timecardsTimecardRow[]
currencyCodestringcurrency_code
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/GetShiftReport \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "rows": [
    {
      "teamMemberId": "",
      "fullName": "Amina Mushi",
      "roleName": "Amina Mushi",
      "shifts": 0,
      "scheduledMinutes": "0",
      "workedMinutes": "0",
      "breakMinutes": "0",
      "overtimeMinutes": "0",
      "late": 0,
      "laborCost": "150000",
      "orders": 0,
      "sales": "0",
      "refunds": "0",
      "tips": "0",
      "timeOffMinutes": "0"
    }
  ],
  "timecards": [
    {
      "fullName": "Amina Mushi",
      "workedMinutes": "0",
      "breakMinutes": "0",
      "scheduledStart": "",
      "scheduledEnd": "",
      "lateMinutes": 0,
      "orders": 0,
      "sales": "0",
      "tips": "0"
    }
  ],
  "total": {
    "teamMemberId": "",
    "fullName": "Amina Mushi",
    "roleName": "Amina Mushi",
    "shifts": 0,
    "scheduledMinutes": "0",
    "workedMinutes": "0",
    "breakMinutes": "0",
    "overtimeMinutes": "0",
    "late": 0,
    "laborCost": "150000",
    "orders": 0,
    "sales": "0",
    "refunds": "0",
    "tips": "0",
    "timeOffMinutes": "0"
  },
  "currencyCode": "TZS"
}

GetSchedule#

team.readRead
POST/holygrail.team.v1.TeamService/GetSchedule

GetSchedule is everything the schedule needs for a week or two at a location: shifts with their conflicts, time off, availability, pending shift changes, and each day's forecast sales against labor cost.

Request body

locationIdstringlocation_id
fromstring

RFC 3339 instants: shifts that start in [from, to).

tostring

Response

timeOffTimeOffRequest[]time_off

Pending and approved time off overlapping the range.

availabilityAvailability[]

Shift changes waiting for a teammate or a manager.

currencyCodestringcurrency_code
timeZonestringtime_zone
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/GetSchedule \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "shifts": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "teamMemberId": "",
      "startsAt": "",
      "endsAt": "",
      "breakMinutes": 0,
      "note": "",
      "published": false,
      "removed": false,
      "positionId": "",
      "source": ""
    }
  ],
  "warnings": [
    {
      "shiftId": "",
      "code": "",
      "message": ""
    }
  ],
  "timeOff": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "teamMemberId": "",
      "kind": "",
      "startsAt": "",
      "endsAt": "",
      "allDay": false,
      "note": "",
      "status": "",
      "minutes": "0",
      "decidedBy": "",
      "decidedAt": "",
      "decisionNote": "",
      "createdAt": "",
      "shortNotice": false
    }
  ],
  "availability": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "teamMemberId": "",
      "note": "",
      "updatedAt": "2026-12-05"
    }
  ],
  "requests": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "kind": "",
      "shiftId": "",
      "teamMemberId": "",
      "targetMemberId": "",
      "targetShiftId": "",
      "note": "",
      "status": "",
      "peerStatus": "",
      "decidedBy": "",
      "decidedAt": "",
      "decisionNote": "",
      "createdAt": ""
    }
  ],
  "days": [
    {
      "date": "2026-12-05",
      "forecastSales": "0",
      "scheduledMinutes": "0",
      "laborCost": "150000",
      "shifts": 0,
      "openShifts": 0,
      "forecastOrders": "0",
      "forecastBasis": ""
    }
  ],
  "settings": {
    "pickupsNeedApproval": false,
    "swapsNeedApproval": false,
    "minRestMinutes": 0,
    "weeklyOvertimeMinutes": 0,
    "timeOffNoticeDays": 0,
    "lateGraceMinutes": 0,
    "mobileClockIn": false,
    "namedShiftsOverlap": false
  },
  "currencyCode": "TZS",
  "timeZone": ""
}

GetScheduleSettings#

team.readRead
POST/holygrail.team.v1.TeamService/GetScheduleSettings

Request body

No fields: send {}.

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/GetScheduleSettings \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "settings": {
    "pickupsNeedApproval": false,
    "swapsNeedApproval": false,
    "minRestMinutes": 0,
    "weeklyOvertimeMinutes": 0,
    "timeOffNoticeDays": 0,
    "lateGraceMinutes": 0,
    "mobileClockIn": false,
    "namedShiftsOverlap": false
  }
}

SaveScheduleSettings#

team.writeWrite
POST/holygrail.team.v1.TeamService/SaveScheduleSettings

SaveScheduleSettings takes shifts.manage.

Request body

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveScheduleSettings \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "settings": {
    "pickupsNeedApproval": false,
    "swapsNeedApproval": false,
    "minRestMinutes": 0,
    "weeklyOvertimeMinutes": 0,
    "timeOffNoticeDays": 0,
    "lateGraceMinutes": 0,
    "mobileClockIn": false,
    "namedShiftsOverlap": false
  }
}

SavePosition#

team.writeWrite
POST/holygrail.team.v1.TeamService/SavePosition

Positions are the jobs people do on a shift: Barista, Server, Cook. ListTeam returns them. Saving and archiving takes shifts.manage.

Request body

positionPosition

Empty id adds one.

Response

positionPosition
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SavePosition \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "position": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "name": "Amina Mushi"
  }
}'
Response example
{
  "position": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "name": "Amina Mushi",
    "color": "",
    "sort": 0,
    "archived": false
  }
}

ArchivePosition#

team.writeWrite
POST/holygrail.team.v1.TeamService/ArchivePosition

Request body

idstring

Response

No fields: send {}.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ArchivePosition \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{}

ListStaffingRules#

team.readRead
POST/holygrail.team.v1.TeamService/ListStaffingRules

Staffing rules say how many people each position needs at a location, for drafting next week's shifts from the forecast (ADR 56). Listing suggests a rate from past shifts; saving replaces the location's rules and takes shifts.manage.

Request body

locationIdstringlocation_id

Response

Every active position, with its rule or defaults (saved false).

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListStaffingRules \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "rules": [
    {
      "positionId": "",
      "positionName": "Amina Mushi",
      "minStaff": 0,
      "ordersPerHour": 0,
      "leadMinutes": 0,
      "tailMinutes": 0,
      "suggestedOrdersPerHour": 0,
      "saved": false
    }
  ]
}

SaveStaffingRules#

team.writeWrite
POST/holygrail.team.v1.TeamService/SaveStaffingRules

Request body

locationIdstringlocation_id

The rules to keep; positions left out have none.

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveStaffingRules \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
  "rules": [
    {
      "positionName": "Amina Mushi"
    }
  ]
}'
Response example
{
  "rules": [
    {
      "positionId": "",
      "positionName": "Amina Mushi",
      "minStaff": 0,
      "ordersPerHour": 0,
      "leadMinutes": 0,
      "tailMinutes": 0,
      "suggestedOrdersPerHour": 0,
      "saved": false
    }
  ]
}

ListAvailability#

team.readRead
POST/holygrail.team.v1.TeamService/ListAvailability

Availability is when someone can and cannot work, week by week. Anyone sets their own; shifts.manage sets anyone's.

Request body

No fields: send {}.

Response

availabilityAvailability[]
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListAvailability \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "availability": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "teamMemberId": "",
      "note": "",
      "updatedAt": "2026-12-05"
    }
  ]
}

SaveAvailability#

team.writeWrite
POST/holygrail.team.v1.TeamService/SaveAvailability

Request body

availabilityAvailability

team_member_id empty for your own.

maxWeeklyMinutesintegermax_weekly_minutes

When set, also changes the most they want to work in a week (minutes; -1 leaves it as it is).

Response

availabilityAvailability
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveAvailability \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "availability": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "updatedAt": "2026-12-05"
  }
}'
Response example
{
  "availability": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "teamMemberId": "",
    "note": "",
    "updatedAt": "2026-12-05"
  }
}

ListTimeOff#

team.readRead
POST/holygrail.team.v1.TeamService/ListTimeOff

Time off. Anyone on the team asks for their own; shifts.approve decides, and may add time off for someone else, approved at once.

Request body

locationIdstringlocation_id

Empty for all locations; else people who work there.

fromstring

RFC 3339: requests overlapping [from, to). Empty for everything pending and from now on.

tostring
statusstring

Empty for any.

teamMemberIdstringteam_member_id

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListTimeOff \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "requests": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "teamMemberId": "",
      "kind": "",
      "startsAt": "",
      "endsAt": "",
      "allDay": false,
      "note": "",
      "status": "",
      "minutes": "0",
      "decidedBy": "",
      "decidedAt": "",
      "decisionNote": "",
      "createdAt": "",
      "shortNotice": false
    }
  ]
}

RequestTimeOff#

team.writeWrite
POST/holygrail.team.v1.TeamService/RequestTimeOff

Request body

team_member_id empty for your own. Someone with shifts.approve may ask for someone else, and approve it at once.

approveboolean

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/RequestTimeOff \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "request": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
  }
}'
Response example
{
  "request": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "teamMemberId": "",
    "kind": "",
    "startsAt": "",
    "endsAt": "",
    "allDay": false,
    "note": "",
    "status": "",
    "minutes": "0",
    "decidedBy": "",
    "decidedAt": "",
    "decisionNote": "",
    "createdAt": "",
    "shortNotice": false
  }
}

CancelTimeOff#

team.writeWrite
POST/holygrail.team.v1.TeamService/CancelTimeOff

Request body

idstring

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/CancelTimeOff \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "request": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "teamMemberId": "",
    "kind": "",
    "startsAt": "",
    "endsAt": "",
    "allDay": false,
    "note": "",
    "status": "",
    "minutes": "0",
    "decidedBy": "",
    "decidedAt": "",
    "decisionNote": "",
    "createdAt": "",
    "shortNotice": false
  }
}

DecideTimeOff#

team.writeWrite
POST/holygrail.team.v1.TeamService/DecideTimeOff

Request body

idstring
approveboolean
notestring

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/DecideTimeOff \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "request": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "teamMemberId": "",
    "kind": "",
    "startsAt": "",
    "endsAt": "",
    "allDay": false,
    "note": "",
    "status": "",
    "minutes": "0",
    "decidedBy": "",
    "decidedAt": "",
    "decisionNote": "",
    "createdAt": "",
    "shortNotice": false
  }
}

ListShiftRequests#

team.readRead
POST/holygrail.team.v1.TeamService/ListShiftRequests

Shift changes: picking up an open shift, dropping one, giving one to a teammate or swapping with them. A teammate it involves accepts first; then a manager approves, unless the schedule settings say it needs none.

Request body

locationIdstringlocation_id

Empty for all locations.

statusstring

Empty for any.

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListShiftRequests \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "requests": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "kind": "",
      "shiftId": "",
      "teamMemberId": "",
      "targetMemberId": "",
      "targetShiftId": "",
      "note": "",
      "status": "",
      "peerStatus": "",
      "decidedBy": "",
      "decidedAt": "",
      "decisionNote": "",
      "createdAt": ""
    }
  ]
}

RequestShiftChange#

team.writeWrite
POST/holygrail.team.v1.TeamService/RequestShiftChange

Request body

team_member_id empty for your own.

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/RequestShiftChange \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "request": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "shift": {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
    },
    "targetShift": {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
    }
  }
}'
Response example
{
  "request": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "kind": "",
    "shiftId": "",
    "teamMemberId": "",
    "targetMemberId": "",
    "targetShiftId": "",
    "note": "",
    "status": "",
    "peerStatus": "",
    "decidedBy": "",
    "decidedAt": "",
    "decisionNote": "",
    "createdAt": ""
  }
}

RespondShiftChange#

team.writeWrite
POST/holygrail.team.v1.TeamService/RespondShiftChange

Request body

idstring
acceptboolean

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/RespondShiftChange \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "request": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "kind": "",
    "shiftId": "",
    "teamMemberId": "",
    "targetMemberId": "",
    "targetShiftId": "",
    "note": "",
    "status": "",
    "peerStatus": "",
    "decidedBy": "",
    "decidedAt": "",
    "decisionNote": "",
    "createdAt": ""
  }
}

CancelShiftChange#

team.writeWrite
POST/holygrail.team.v1.TeamService/CancelShiftChange

Request body

idstring

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/CancelShiftChange \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "request": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "kind": "",
    "shiftId": "",
    "teamMemberId": "",
    "targetMemberId": "",
    "targetShiftId": "",
    "note": "",
    "status": "",
    "peerStatus": "",
    "decidedBy": "",
    "decidedAt": "",
    "decisionNote": "",
    "createdAt": ""
  }
}

DecideShiftChange#

team.writeWrite
POST/holygrail.team.v1.TeamService/DecideShiftChange

Request body

idstring
approveboolean
notestring

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/DecideShiftChange \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "request": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "kind": "",
    "shiftId": "",
    "teamMemberId": "",
    "targetMemberId": "",
    "targetShiftId": "",
    "note": "",
    "status": "",
    "peerStatus": "",
    "decidedBy": "",
    "decidedAt": "",
    "decisionNote": "",
    "createdAt": ""
  }
}

ListAnnouncements#

team.readRead
POST/holygrail.team.v1.TeamService/ListAnnouncements

Announcements to the team, for some locations or all of them. Posting takes team.announce. Registers show them and record who read them.

Request body

includeArchivedbooleaninclude_archived

Response

announcementsAnnouncement[]
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListAnnouncements \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "announcements": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "title": "",
      "body": "",
      "locationIds": [
        ""
      ],
      "pinned": false,
      "requireAck": false,
      "publishedAt": "",
      "expiresAt": "",
      "authorName": "Amina Mushi",
      "archived": false,
      "acknowledgedMemberIds": [
        ""
      ],
      "audience": 0
    }
  ]
}

SaveAnnouncement#

team.writeWrite
POST/holygrail.team.v1.TeamService/SaveAnnouncement

Request body

announcementAnnouncement

Empty id posts a new one.

Response

announcementAnnouncement
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveAnnouncement \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "announcement": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationIds": [
      ""
    ],
    "authorName": "Amina Mushi",
    "acknowledgedMemberIds": [
      ""
    ]
  }
}'
Response example
{
  "announcement": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "title": "",
    "body": "",
    "locationIds": [
      ""
    ],
    "pinned": false,
    "requireAck": false,
    "publishedAt": "",
    "expiresAt": "",
    "authorName": "Amina Mushi",
    "archived": false,
    "acknowledgedMemberIds": [
      ""
    ],
    "audience": 0
  }
}

ArchiveAnnouncement#

team.writeWrite
POST/holygrail.team.v1.TeamService/ArchiveAnnouncement

Request body

idstring

Response

No fields: send {}.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ArchiveAnnouncement \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{}

AcknowledgeAnnouncement#

team.writeWrite
POST/holygrail.team.v1.TeamService/AcknowledgeAnnouncement

Request body

idstring

Response

No fields: send {}.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/AcknowledgeAnnouncement \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{}

ApproveTimecards#

team.writeWrite
POST/holygrail.team.v1.TeamService/ApproveTimecards

ApproveTimecards approves closed timecards for payroll, or takes the approval back. Approved timecards cannot change. Takes shifts.approve.

Request body

idsstring[]
approveboolean

False takes approval back.

Response

changedinteger
skippedinteger

Timecards still open are skipped.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ApproveTimecards \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "ids": [
    ""
  ]
}'
Response example
{
  "changed": 0,
  "skipped": 0
}

GetMySchedule#

team.readRead
POST/holygrail.team.v1.TeamService/GetMySchedule

GetMySchedule is the signed-in person's own view: their shifts, open shifts they can pick up, their requests, time off, availability, timecards and announcements.

Request body

fromstring

RFC 3339; empty for today to four weeks ahead.

tostring

Response

openShiftsScheduledShift[]open_shifts

Published open shifts at their locations they could take.

teamShiftsScheduledShift[]team_shifts

Shifts of teammates they could swap with or that a request is about.

timeOffTimeOffRequest[]time_off
availabilityAvailability
announcementsAnnouncement[]
timecardsMyTimecard[]
positionsPosition[]
memberNamesmap<string, string>member_names

Names of teammates and locations it mentions.

locationNamesmap<string, string>location_names
namedShiftsNamedShift[]named_shifts

Named shifts they are assigned to, at their locations.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/GetMySchedule \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "member": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "fullName": "Amina Mushi",
    "email": "amina@example.co.tz",
    "phone": "+255712345678",
    "roleId": "",
    "roleName": "Amina Mushi",
    "permissions": [
      ""
    ],
    "locationIds": [
      ""
    ],
    "hourlyRate": "0",
    "color": "",
    "active": false,
    "hasPasscode": false,
    "hasLogin": false,
    "invited": false,
    "passcodeSalt": "",
    "passcodeHash": "",
    "owner": false,
    "updatedAt": "2026-12-05",
    "positionIds": [
      ""
    ],
    "maxWeeklyMinutes": 0
  },
  "shifts": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "teamMemberId": "",
      "startsAt": "",
      "endsAt": "",
      "breakMinutes": 0,
      "note": "",
      "published": false,
      "removed": false,
      "positionId": "",
      "source": ""
    }
  ],
  "openShifts": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "teamMemberId": "",
      "startsAt": "",
      "endsAt": "",
      "breakMinutes": 0,
      "note": "",
      "published": false,
      "removed": false,
      "positionId": "",
      "source": ""
    }
  ],
  "teamShifts": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "teamMemberId": "",
      "startsAt": "",
      "endsAt": "",
      "breakMinutes": 0,
      "note": "",
      "published": false,
      "removed": false,
      "positionId": "",
      "source": ""
    }
  ],
  "requests": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "kind": "",
      "shiftId": "",
      "teamMemberId": "",
      "targetMemberId": "",
      "targetShiftId": "",
      "note": "",
      "status": "",
      "peerStatus": "",
      "decidedBy": "",
      "decidedAt": "",
      "decisionNote": "",
      "createdAt": ""
    }
  ],
  "timeOff": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "teamMemberId": "",
      "kind": "",
      "startsAt": "",
      "endsAt": "",
      "allDay": false,
      "note": "",
      "status": "",
      "minutes": "0",
      "decidedBy": "",
      "decidedAt": "",
      "decisionNote": "",
      "createdAt": "",
      "shortNotice": false
    }
  ],
  "availability": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "teamMemberId": "",
    "note": "",
    "updatedAt": "2026-12-05"
  },
  "announcements": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "title": "",
      "body": "",
      "locationIds": [
        ""
      ],
      "pinned": false,
      "requireAck": false,
      "publishedAt": "",
      "expiresAt": "",
      "authorName": "Amina Mushi",
      "archived": false,
      "acknowledgedMemberIds": [
        ""
      ],
      "audience": 0
    }
  ],
  "timecards": [
    {
      "workedMinutes": "0"
    }
  ],
  "positions": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "name": "Amina Mushi",
      "color": "",
      "sort": 0,
      "archived": false
    }
  ],
  "memberNames": {
    "key": ""
  },
  "locationNames": {
    "key": ""
  },
  "settings": {
    "pickupsNeedApproval": false,
    "swapsNeedApproval": false,
    "minRestMinutes": 0,
    "weeklyOvertimeMinutes": 0,
    "timeOffNoticeDays": 0,
    "lateGraceMinutes": 0,
    "mobileClockIn": false,
    "namedShiftsOverlap": false
  },
  "namedShifts": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "name": "Amina Mushi",
      "code": "",
      "color": "",
      "startMinute": 0,
      "endMinute": 0,
      "days": [
        0
      ],
      "teamMemberIds": [
        ""
      ],
      "earlyClockInMinutes": 0,
      "lateGraceMinutes": 0,
      "sort": 0,
      "archived": false,
      "updatedAt": "2026-12-05"
    }
  ]
}

ClockSelf#

team.writeWrite
POST/holygrail.team.v1.TeamService/ClockSelf

ClockSelf clocks the signed-in person in or out, or starts or ends a break, from the staff app. The business turns it on in its schedule settings (mobile_clock_in); it takes shifts.clock.

Request body

actionstring

"in", "out", "break_start" or "break_end".

locationIdstringlocation_id

Where they clock in; empty for the location of their shift now, or their only location. Ignored for the other actions.

notestring
namedShiftIdstringnamed_shift_id

The named shift they clock in against; empty for the one running now (or about to start) at the location.

Response

timecardMyTimecard

The timecard as it is now; closed after "out".

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ClockSelf \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "timecard": {
    "workedMinutes": "0"
  }
}

GetMyPerformance#

team.readRead
POST/holygrail.team.v1.TeamService/GetMyPerformance

GetMyPerformance is the signed-in person's own figures over a period: what they sold, the hours they worked and how punctual they were, with the period before for comparison.

Request body

fromstring

Local dates, YYYY-MM-DD, both included; empty for the last 7 days.

tostring

Response

fromstring
tostring
currencystring

The same length of time just before, for the arrows.

topItemsPerformanceItem[]top_items
rankinteger

Where their sales put them among teammates at their locations, 1 for the most; 0 when nobody sold.

teamSizeintegerteam_size
teamAverageSaleint64 stringteam_average_sale

The team's average sale over the period, to compare with theirs.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/GetMyPerformance \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "from": "",
  "to": "",
  "currency": "TZS",
  "totals": {
    "salesCount": 1,
    "sales": "0",
    "averageSale": "0",
    "itemsSold": "0",
    "tips": "0",
    "refundsCount": 1,
    "refunds": "0",
    "workedMinutes": "0",
    "scheduledMinutes": "0",
    "overtimeMinutes": "0",
    "shiftsWorked": 0,
    "lateCount": 1,
    "onTimePercent": 0,
    "salesPerHour": "0"
  },
  "previous": {
    "salesCount": 1,
    "sales": "0",
    "averageSale": "0",
    "itemsSold": "0",
    "tips": "0",
    "refundsCount": 1,
    "refunds": "0",
    "workedMinutes": "0",
    "scheduledMinutes": "0",
    "overtimeMinutes": "0",
    "shiftsWorked": 0,
    "lateCount": 1,
    "onTimePercent": 0,
    "salesPerHour": "0"
  },
  "days": [
    {
      "date": "2026-12-05",
      "sales": "0",
      "salesCount": 1,
      "workedMinutes": "0"
    }
  ],
  "topItems": [
    {
      "name": "Amina Mushi",
      "quantity": 1,
      "sales": "0"
    }
  ],
  "rank": 0,
  "teamSize": 0,
  "teamAverageSale": "0"
}

ListNamedShifts#

team.readRead
POST/holygrail.team.v1.TeamService/ListNamedShifts

Named shifts (ADR 116): the parts of a location's trading day, such as "Morning" 06:00-14:00 or "Night" 22:00-06:00, each with its own team. Every sale belongs to one shift occurrence; the sales report adds them up by shift (OrdersService.GetSalesReport, filter.named_shift_ids). Listing takes shifts.manage or shifts.reports; saving and archiving take shifts.manage. Registers get them through the change feed.

Request body

locationIdstringlocation_id

Empty for every location the caller can see.

includeArchivedbooleaninclude_archived

Response

The shift running now at each location that has one, by location id, and the date its occurrence started.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListNamedShifts \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "shifts": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "name": "Amina Mushi",
      "code": "",
      "color": "",
      "startMinute": 0,
      "endMinute": 0,
      "days": [
        0
      ],
      "teamMemberIds": [
        ""
      ],
      "earlyClockInMinutes": 0,
      "lateGraceMinutes": 0,
      "sort": 0,
      "archived": false,
      "updatedAt": "2026-12-05"
    }
  ],
  "current": {
    "key": {
      "namedShiftId": "",
      "shiftDate": "2026-12-05"
    }
  }
}

SaveNamedShift#

team.writeWrite
POST/holygrail.team.v1.TeamService/SaveNamedShift

SaveNamedShift creates or updates a shift. Shifts at a location may not overlap on any day unless the schedule settings allow it. A new shift also files the location's sales of the last 90 days that belong to no shift yet, so its reports start full.

Request body

Response

salesAttributedintegersales_attributed

Past sales filed under it when it was created.

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/SaveNamedShift \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "shift": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "name": "Amina Mushi",
    "days": [
      0
    ],
    "teamMemberIds": [
      ""
    ],
    "updatedAt": "2026-12-05"
  }
}'
Response example
{
  "shift": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "name": "Amina Mushi",
    "code": "",
    "color": "",
    "startMinute": 0,
    "endMinute": 0,
    "days": [
      0
    ],
    "teamMemberIds": [
      ""
    ],
    "earlyClockInMinutes": 0,
    "lateGraceMinutes": 0,
    "sort": 0,
    "archived": false,
    "updatedAt": "2026-12-05"
  },
  "salesAttributed": 0
}

ArchiveNamedShift#

team.writeWrite
POST/holygrail.team.v1.TeamService/ArchiveNamedShift

ArchiveNamedShift stops a shift, or brings it back. Its sales keep it.

Request body

idstring
archivedboolean

False brings it back.

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ArchiveNamedShift \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "shift": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "name": "Amina Mushi",
    "code": "",
    "color": "",
    "startMinute": 0,
    "endMinute": 0,
    "days": [
      0
    ],
    "teamMemberIds": [
      ""
    ],
    "earlyClockInMinutes": 0,
    "lateGraceMinutes": 0,
    "sort": 0,
    "archived": false,
    "updatedAt": "2026-12-05"
  }
}

GetShiftAttendance#

team.readRead
POST/holygrail.team.v1.TeamService/GetShiftAttendance

GetShiftAttendance is each occurrence of named shifts over local dates: who was assigned, who clocked in against it, when, and who was late, absent or worked it without being assigned.

Request body

locationIdstringlocation_id
fromstring

Local dates the occurrences started, YYYY-MM-DD, both included.

tostring
namedShiftIdsstring[]named_shift_ids

Empty for every shift at the location.

Response

currencyCodestringcurrency_code
Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/GetShiftAttendance \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
  "namedShiftIds": [
    ""
  ]
}'
Response example
{
  "occurrences": [
    {
      "namedShiftId": "",
      "name": "Amina Mushi",
      "date": "2026-12-05",
      "startsAt": "",
      "endsAt": "",
      "assigned": 0,
      "present": 0,
      "late": 0,
      "absent": 0,
      "workedMinutes": "0",
      "laborCost": "150000",
      "orders": 0,
      "sales": "0"
    }
  ],
  "currencyCode": "TZS"
}

ListShiftRuns#

team.readRead
POST/holygrail.team.v1.TeamService/ListShiftRuns

Shift runs (ADR 117): a shift someone started on the register stays open across clock-ins and clock-outs until they end it. Registers start and end them through sync. ListShiftRuns takes shifts.manage or shifts.reports; EndShiftRun (for one left open) takes shifts.manage and clocks the person out too.

Request body

locationIdstringlocation_id
fromstring

Shifts started in [from, to) (RFC 3339), plus every one still open.

tostring

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/ListShiftRuns \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'
Response example
{
  "runs": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "teamMemberId": "",
      "deviceId": "",
      "namedShiftId": "",
      "shiftDate": "2026-12-05",
      "startedAt": "",
      "endedAt": "",
      "endedBy": "",
      "fullName": "Amina Mushi"
    }
  ]
}

EndShiftRun#

team.writeWrite
POST/holygrail.team.v1.TeamService/EndShiftRun

Request body

idstring

Response

Request
curl https://api.buziin.tech/holygrail.team.v1.TeamService/EndShiftRun \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "run": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "teamMemberId": "",
    "deviceId": "",
    "namedShiftId": "",
    "shiftDate": "2026-12-05",
    "startedAt": "",
    "endedAt": "",
    "endedBy": "",
    "fullName": "Amina Mushi"
  }
}

Types

The messages and enums these methods use. Field names are lowerCamelCase in JSON; the snake_case names work too. Enum values are sent as their names.

ListTeamRequest

holygrail.team.v1.ListTeamRequest

No fields.

ListTeamResponse

holygrail.team.v1.ListTeamResponse

permissionGroupsPermissionGroup[]permission_groups
positionsPosition[]

Positions not archived.

CreateTeamMemberRequest

holygrail.team.v1.CreateTeamMemberRequest

passcodestring

Empty picks a random one.

inviteboolean

Email them a link to sign in to the dashboard; needs an email.

CreateTeamMemberResponse

holygrail.team.v1.CreateTeamMemberResponse

passcodestring

The passcode to tell them; it is not shown again.

inviteUrlstringinvite_url

When invited: the link that was emailed, to share another way if needed.

UpdateTeamMemberRequest

holygrail.team.v1.UpdateTeamMemberRequest

idstring

UpdateTeamMemberResponse

holygrail.team.v1.UpdateTeamMemberResponse

SetTeamMemberActiveRequest

holygrail.team.v1.SetTeamMemberActiveRequest

idstring
activeboolean

SetTeamMemberActiveResponse

holygrail.team.v1.SetTeamMemberActiveResponse

SetPasscodeRequest

holygrail.team.v1.SetPasscodeRequest

teamMemberIdstringteam_member_id
passcodestring

Four digits; empty for a random one.

SetPasscodeResponse

holygrail.team.v1.SetPasscodeResponse

passcodestring

InviteTeamMemberRequest

holygrail.team.v1.InviteTeamMemberRequest

teamMemberIdstringteam_member_id

InviteTeamMemberResponse

holygrail.team.v1.InviteTeamMemberResponse

inviteUrlstringinvite_url

CreateRoleRequest

holygrail.team.v1.CreateRoleRequest

CreateRoleResponse

holygrail.team.v1.CreateRoleResponse

UpdateRoleRequest

holygrail.team.v1.UpdateRoleRequest

idstring

UpdateRoleResponse

holygrail.team.v1.UpdateRoleResponse

DeleteRoleRequest

holygrail.team.v1.DeleteRoleRequest

idstring

DeleteRoleResponse

holygrail.team.v1.DeleteRoleResponse

No fields.

ExportTeamRequest

holygrail.team.v1.ExportTeamRequest

locationIdstringlocation_id

ExportTeamResponse

holygrail.team.v1.ExportTeamResponse

timecardsTimecard[]

Open timecards at the location.

cursorint64 string
positionsPosition[]
announcementsAnnouncement[]

Announcements still showing.

timeOffTimeOffRequest[]time_off

Time off that is pending or not over yet, for the location's team.

shiftRequestsShiftRequest[]shift_requests

Shift changes still waiting at the location.

availabilityAvailability[]
namedShiftsNamedShift[]named_shifts

The location's named shifts, archived ones too.

shiftRunsShiftRun[]shift_runs

Shift runs at the location still open, and those ended in the last day.

ListShiftsRequest

holygrail.team.v1.ListShiftsRequest

locationIdstringlocation_id
fromstring

RFC 3339 instants: shifts that start in [from, to).

tostring

ListShiftsResponse

holygrail.team.v1.ListShiftsResponse

SaveShiftRequest

holygrail.team.v1.SaveShiftRequest

Empty id makes a new shift. Changing a published shift keeps it published.

SaveShiftResponse

holygrail.team.v1.SaveShiftResponse

DeleteShiftRequest

holygrail.team.v1.DeleteShiftRequest

idstring

DeleteShiftResponse

holygrail.team.v1.DeleteShiftResponse

No fields.

PublishShiftsRequest

holygrail.team.v1.PublishShiftsRequest

locationIdstringlocation_id
fromstring
tostring

PublishShiftsResponse

holygrail.team.v1.PublishShiftsResponse

publishedinteger

CopyShiftsRequest

holygrail.team.v1.CopyShiftsRequest

locationIdstringlocation_id
fromWeekstringfrom_week

RFC 3339: the start of the week to copy, and of the week to copy into.

toWeekstringto_week

CopyShiftsResponse

holygrail.team.v1.CopyShiftsResponse

copiedinteger
skippedinteger

ListTimecardsRequest

holygrail.team.v1.ListTimecardsRequest

locationIdstringlocation_id
fromstring

RFC 3339: timecards clocked in during [from, to).

tostring
teamMemberIdstringteam_member_id

Empty for everyone.

ListTimecardsResponse

holygrail.team.v1.ListTimecardsResponse

timecardsTimecard[]

SaveTimecardRequest

holygrail.team.v1.SaveTimecardRequest

timecardTimecard

Empty id adds a missed timecard.

SaveTimecardResponse

holygrail.team.v1.SaveTimecardResponse

timecardTimecard

GetShiftReportRequest

holygrail.team.v1.GetShiftReportRequest

locationIdstringlocation_id
fromstring

Local dates, YYYY-MM-DD, inclusive.

tostring

GetShiftReportResponse

holygrail.team.v1.GetShiftReportResponse

timecardsTimecardRow[]
currencyCodestringcurrency_code

GetScheduleRequest

holygrail.team.v1.GetScheduleRequest

locationIdstringlocation_id
fromstring

RFC 3339 instants: shifts that start in [from, to).

tostring

GetScheduleResponse

holygrail.team.v1.GetScheduleResponse

timeOffTimeOffRequest[]time_off

Pending and approved time off overlapping the range.

availabilityAvailability[]

Shift changes waiting for a teammate or a manager.

currencyCodestringcurrency_code
timeZonestringtime_zone

GetScheduleSettingsRequest

holygrail.team.v1.GetScheduleSettingsRequest

No fields.

GetScheduleSettingsResponse

holygrail.team.v1.GetScheduleSettingsResponse

SaveScheduleSettingsRequest

holygrail.team.v1.SaveScheduleSettingsRequest

SaveScheduleSettingsResponse

holygrail.team.v1.SaveScheduleSettingsResponse

SavePositionRequest

holygrail.team.v1.SavePositionRequest

positionPosition

Empty id adds one.

SavePositionResponse

holygrail.team.v1.SavePositionResponse

positionPosition

ArchivePositionRequest

holygrail.team.v1.ArchivePositionRequest

idstring

ArchivePositionResponse

holygrail.team.v1.ArchivePositionResponse

No fields.

ListStaffingRulesRequest

holygrail.team.v1.ListStaffingRulesRequest

locationIdstringlocation_id

ListStaffingRulesResponse

holygrail.team.v1.ListStaffingRulesResponse

Every active position, with its rule or defaults (saved false).

SaveStaffingRulesRequest

holygrail.team.v1.SaveStaffingRulesRequest

locationIdstringlocation_id

The rules to keep; positions left out have none.

SaveStaffingRulesResponse

holygrail.team.v1.SaveStaffingRulesResponse

ListAvailabilityRequest

holygrail.team.v1.ListAvailabilityRequest

No fields.

ListAvailabilityResponse

holygrail.team.v1.ListAvailabilityResponse

availabilityAvailability[]

SaveAvailabilityRequest

holygrail.team.v1.SaveAvailabilityRequest

availabilityAvailability

team_member_id empty for your own.

maxWeeklyMinutesintegermax_weekly_minutes

When set, also changes the most they want to work in a week (minutes; -1 leaves it as it is).

SaveAvailabilityResponse

holygrail.team.v1.SaveAvailabilityResponse

availabilityAvailability

ListTimeOffRequest

holygrail.team.v1.ListTimeOffRequest

locationIdstringlocation_id

Empty for all locations; else people who work there.

fromstring

RFC 3339: requests overlapping [from, to). Empty for everything pending and from now on.

tostring
statusstring

Empty for any.

teamMemberIdstringteam_member_id

ListTimeOffResponse

holygrail.team.v1.ListTimeOffResponse

RequestTimeOffRequest

holygrail.team.v1.RequestTimeOffRequest

team_member_id empty for your own. Someone with shifts.approve may ask for someone else, and approve it at once.

approveboolean

RequestTimeOffResponse

holygrail.team.v1.RequestTimeOffResponse

CancelTimeOffRequest

holygrail.team.v1.CancelTimeOffRequest

idstring

CancelTimeOffResponse

holygrail.team.v1.CancelTimeOffResponse

DecideTimeOffRequest

holygrail.team.v1.DecideTimeOffRequest

idstring
approveboolean
notestring

DecideTimeOffResponse

holygrail.team.v1.DecideTimeOffResponse

ListShiftRequestsRequest

holygrail.team.v1.ListShiftRequestsRequest

locationIdstringlocation_id

Empty for all locations.

statusstring

Empty for any.

ListShiftRequestsResponse

holygrail.team.v1.ListShiftRequestsResponse

RequestShiftChangeRequest

holygrail.team.v1.RequestShiftChangeRequest

team_member_id empty for your own.

RequestShiftChangeResponse

holygrail.team.v1.RequestShiftChangeResponse

RespondShiftChangeRequest

holygrail.team.v1.RespondShiftChangeRequest

idstring
acceptboolean

RespondShiftChangeResponse

holygrail.team.v1.RespondShiftChangeResponse

CancelShiftChangeRequest

holygrail.team.v1.CancelShiftChangeRequest

idstring

CancelShiftChangeResponse

holygrail.team.v1.CancelShiftChangeResponse

DecideShiftChangeRequest

holygrail.team.v1.DecideShiftChangeRequest

idstring
approveboolean
notestring

DecideShiftChangeResponse

holygrail.team.v1.DecideShiftChangeResponse

ListAnnouncementsRequest

holygrail.team.v1.ListAnnouncementsRequest

includeArchivedbooleaninclude_archived

ListAnnouncementsResponse

holygrail.team.v1.ListAnnouncementsResponse

announcementsAnnouncement[]

SaveAnnouncementRequest

holygrail.team.v1.SaveAnnouncementRequest

announcementAnnouncement

Empty id posts a new one.

SaveAnnouncementResponse

holygrail.team.v1.SaveAnnouncementResponse

announcementAnnouncement

ArchiveAnnouncementRequest

holygrail.team.v1.ArchiveAnnouncementRequest

idstring

ArchiveAnnouncementResponse

holygrail.team.v1.ArchiveAnnouncementResponse

No fields.

AcknowledgeAnnouncementRequest

holygrail.team.v1.AcknowledgeAnnouncementRequest

idstring

AcknowledgeAnnouncementResponse

holygrail.team.v1.AcknowledgeAnnouncementResponse

No fields.

ApproveTimecardsRequest

holygrail.team.v1.ApproveTimecardsRequest

idsstring[]
approveboolean

False takes approval back.

ApproveTimecardsResponse

holygrail.team.v1.ApproveTimecardsResponse

changedinteger
skippedinteger

Timecards still open are skipped.

GetMyScheduleRequest

holygrail.team.v1.GetMyScheduleRequest

fromstring

RFC 3339; empty for today to four weeks ahead.

tostring

GetMyScheduleResponse

holygrail.team.v1.GetMyScheduleResponse

openShiftsScheduledShift[]open_shifts

Published open shifts at their locations they could take.

teamShiftsScheduledShift[]team_shifts

Shifts of teammates they could swap with or that a request is about.

timeOffTimeOffRequest[]time_off
availabilityAvailability
announcementsAnnouncement[]
timecardsMyTimecard[]
positionsPosition[]
memberNamesmap<string, string>member_names

Names of teammates and locations it mentions.

locationNamesmap<string, string>location_names
namedShiftsNamedShift[]named_shifts

Named shifts they are assigned to, at their locations.

ClockSelfRequest

holygrail.team.v1.ClockSelfRequest

actionstring

"in", "out", "break_start" or "break_end".

locationIdstringlocation_id

Where they clock in; empty for the location of their shift now, or their only location. Ignored for the other actions.

notestring
namedShiftIdstringnamed_shift_id

The named shift they clock in against; empty for the one running now (or about to start) at the location.

ClockSelfResponse

holygrail.team.v1.ClockSelfResponse

timecardMyTimecard

The timecard as it is now; closed after "out".

GetMyPerformanceRequest

holygrail.team.v1.GetMyPerformanceRequest

fromstring

Local dates, YYYY-MM-DD, both included; empty for the last 7 days.

tostring

GetMyPerformanceResponse

holygrail.team.v1.GetMyPerformanceResponse

fromstring
tostring
currencystring

The same length of time just before, for the arrows.

topItemsPerformanceItem[]top_items
rankinteger

Where their sales put them among teammates at their locations, 1 for the most; 0 when nobody sold.

teamSizeintegerteam_size
teamAverageSaleint64 stringteam_average_sale

The team's average sale over the period, to compare with theirs.

ListNamedShiftsRequest

holygrail.team.v1.ListNamedShiftsRequest

locationIdstringlocation_id

Empty for every location the caller can see.

includeArchivedbooleaninclude_archived

ListNamedShiftsResponse

holygrail.team.v1.ListNamedShiftsResponse

The shift running now at each location that has one, by location id, and the date its occurrence started.

SaveNamedShiftRequest

holygrail.team.v1.SaveNamedShiftRequest

SaveNamedShiftResponse

holygrail.team.v1.SaveNamedShiftResponse

salesAttributedintegersales_attributed

Past sales filed under it when it was created.

ArchiveNamedShiftRequest

holygrail.team.v1.ArchiveNamedShiftRequest

idstring
archivedboolean

False brings it back.

ArchiveNamedShiftResponse

holygrail.team.v1.ArchiveNamedShiftResponse

GetShiftAttendanceRequest

holygrail.team.v1.GetShiftAttendanceRequest

locationIdstringlocation_id
fromstring

Local dates the occurrences started, YYYY-MM-DD, both included.

tostring
namedShiftIdsstring[]named_shift_ids

Empty for every shift at the location.

GetShiftAttendanceResponse

holygrail.team.v1.GetShiftAttendanceResponse

currencyCodestringcurrency_code

ListShiftRunsRequest

holygrail.team.v1.ListShiftRunsRequest

locationIdstringlocation_id
fromstring

Shifts started in [from, to) (RFC 3339), plus every one still open.

tostring

ListShiftRunsResponse

holygrail.team.v1.ListShiftRunsResponse

EndShiftRunRequest

holygrail.team.v1.EndShiftRunRequest

idstring

EndShiftRunResponse

holygrail.team.v1.EndShiftRunResponse

TeamMember

holygrail.team.v1.TeamMember

TeamMember is someone who works at the business. Registers receive the team through the change feed, with the passcode check (salt and hash); the dashboard never sees those.

idstring
fullNamestringfull_name
emailstring
phonestring
roleIdstringrole_id
roleNamestringrole_name

The role's name and permissions, so a register can check them offline.

permissionsstring[]
locationIdsstring[]location_ids

Empty means every location.

hourlyRateint64 stringhourly_rate

Pay per hour in minor units.

colorstring

"#rrggbb" for the schedule and the register.

activeboolean
hasPasscodebooleanhas_passcode
hasLoginbooleanhas_login

Whether they can sign in to the dashboard, and whether an invitation is waiting for them.

invitedboolean
passcodeSaltstringpasscode_salt

The register checks a passcode p as hex(sha256(salt + ":" + p)) == hash. Set only in the change feed and ExportTeam.

passcodeHashstringpasscode_hash
ownerboolean

Whether this is an owner; owners can do everything.

updatedAtstringupdated_at
positionIdsstring[]position_ids

The positions they can work, for the schedule.

maxWeeklyMinutesintegermax_weekly_minutes

The most they want to work in a week, in minutes; 0 for no limit.

TeamRole

holygrail.team.v1.TeamRole

idstring
systemKeystringsystem_key

owner, manager, cashier or staff for the roles every business has; empty for the business's own.

namestring
descriptionstring
permissionsstring[]

The Owner role lists every permission there is.

memberCountintegermember_count

PermissionGroup

holygrail.team.v1.PermissionGroup

titlestring
permissionsPermission[]

Position

holygrail.team.v1.Position

idstring
namestring
colorstring

"#rrggbb".

sortinteger
archivedboolean

TeamMemberInput

holygrail.team.v1.TeamMemberInput

fullNamestringfull_name
emailstring
phonestring
roleIdstringrole_id
locationIdsstring[]location_ids

Empty for every location.

hourlyRateint64 stringhourly_rate
colorstring
positionIdsstring[]position_ids
maxWeeklyMinutesintegermax_weekly_minutes

RoleInput

holygrail.team.v1.RoleInput

namestring
descriptionstring
permissionsstring[]

Timecard

holygrail.team.v1.Timecard

Timecard is time someone clocked at a location. A register pushes it when they clock in and again as it changes; it is the register's until a manager edits it on the dashboard.

idstring
locationIdstringlocation_id
teamMemberIdstringteam_member_id
deviceIdstringdevice_id
shiftIdstringshift_id

The scheduled shift it is for, if any.

clockInAtstringclock_in_at
clockOutAtstringclock_out_at

Empty while clocked in.

breaksBreak[]
notestring
editedBystringedited_by

Set by the server: who last edited it on the dashboard, and when.

editedAtstringedited_at
approvedBystringapproved_by

Approved for payroll, by whom and when; it no longer changes.

approvedAtstringapproved_at
namedShiftIdstringnamed_shift_id

The named shift they clocked in against (ADR 116); the server fills it from the clock when the register leaves it empty. Sales they ring up while clocked in belong to it.

shiftDatestringshift_date

Set by the server: the date the shift occurrence started, YYYY-MM-DD.

shiftRunIdstringshift_run_id

The shift run (ADR 117) it belongs to: the shift its owner started and has not ended yet. Its named shift and date come from the run.

ScheduledShift

holygrail.team.v1.ScheduledShift

Shift is a scheduled stretch of work at a location.

idstring
locationIdstringlocation_id
teamMemberIdstringteam_member_id

Empty for an open shift anyone can pick up.

startsAtstringstarts_at

RFC 3339.

endsAtstringends_at
breakMinutesintegerbreak_minutes

Unpaid break time within the shift.

notestring
publishedboolean
removedboolean

Feed only: the shift was deleted or unpublished.

positionIdstringposition_id

The position they work, if any.

sourcestring

manual, or forecast for an unpublished draft made from the demand forecast (ADR 56).

Announcement

holygrail.team.v1.Announcement

idstring
titlestring
bodystring
locationIdsstring[]location_ids

Empty for every location.

pinnedboolean
requireAckbooleanrequire_ack

Team members are asked to confirm they read it.

publishedAtstringpublished_at
expiresAtstringexpires_at

Empty for no end.

authorNamestringauthor_name
archivedboolean
acknowledgedMemberIdsstring[]acknowledged_member_ids

Who confirmed they read it.

audienceinteger

How many people it is for (dashboard only).

TimeOffRequest

holygrail.team.v1.TimeOffRequest

idstring
teamMemberIdstringteam_member_id
kindstring

"vacation", "sick", "personal", "unpaid" or "other".

startsAtstringstarts_at

RFC 3339. A whole-day request runs from the first day's midnight to the midnight after its last day, local time.

endsAtstringends_at
allDaybooleanall_day
notestring
statusstring

"pending", "approved", "denied" or "cancelled".

minutesint64 string

Paid minutes it counts for: eight hours a whole day, else its length; 0 when unpaid.

decidedBystringdecided_by

Set by the server.

decidedAtstringdecided_at
decisionNotestringdecision_note
createdAtstringcreated_at
shortNoticebooleanshort_notice

Asked for later than the schedule settings' notice.

ShiftRequest

holygrail.team.v1.ShiftRequest

idstring
locationIdstringlocation_id
kindstring

"pickup" an open shift, "drop" your own, "give" yours to target_member_id, or "swap" yours for target_shift_id.

shiftIdstringshift_id
teamMemberIdstringteam_member_id

Who asked.

targetMemberIdstringtarget_member_id
targetShiftIdstringtarget_shift_id
notestring
statusstring

"pending" (with the teammate or a manager), "approved", "denied", "declined" (by the teammate) or "cancelled".

peerStatusstringpeer_status

For give and swap: "waiting", "accepted" or "declined".

decidedBystringdecided_by
decidedAtstringdecided_at
decisionNotestringdecision_note
createdAtstringcreated_at

The shifts as they were asked about, for showing.

targetShiftScheduledShifttarget_shift

Availability

holygrail.team.v1.Availability

Availability is one team member's week. Registers push it whole when someone changes their own.

idstring

Same as team_member_id.

teamMemberIdstringteam_member_id
notestring
updatedAtstringupdated_at

NamedShift

holygrail.team.v1.NamedShift

idstring
locationIdstringlocation_id
namestring
codestring

Short label, at most 8 characters ("AM").

colorstring

"#rrggbb".

startMinuteintegerstart_minute

Minutes after local midnight. An end at or before the start runs into the next day; equal start and end is a 24-hour shift.

endMinuteintegerend_minute
daysinteger[]

Weekdays it starts on, 0 Sunday ... 6 Saturday; empty for every day.

teamMemberIdsstring[]team_member_ids

The team members assigned to it.

earlyClockInMinutesintegerearly_clock_in_minutes

How early someone may clock in against it, and after how many minutes past the start a clock-in is late.

lateGraceMinutesintegerlate_grace_minutes
sortinteger
archivedboolean
updatedAtstringupdated_at

ShiftRun

holygrail.team.v1.ShiftRun

ShiftRun is a shift someone works: started on the register, open across clock-ins and clock-outs, and ended by them (or a manager).

idstring
locationIdstringlocation_id
teamMemberIdstringteam_member_id
deviceIdstringdevice_id
namedShiftIdstringnamed_shift_id

The named shift it works, if any; the server fills it from the clock when the register leaves it empty.

shiftDatestringshift_date

Set by the server: the date the named shift occurrence started.

startedAtstringstarted_at
endedAtstringended_at

Empty while the shift is open.

endedBystringended_by

Set by the server when a manager ended it on the dashboard.

fullNamestringfull_name

Set by the server in lists: their name.

ShiftReportRow

holygrail.team.v1.ShiftReportRow

teamMemberIdstringteam_member_id
fullNamestringfull_name
roleNamestringrole_name
shiftsinteger
scheduledMinutesint64 stringscheduled_minutes
workedMinutesint64 stringworked_minutes
breakMinutesint64 stringbreak_minutes
overtimeMinutesint64 stringovertime_minutes
lateinteger

Clock-ins more than 5 minutes after their shift started.

laborCostint64 stringlabor_cost

Pay: worked hours at the hourly rate, overtime at 1.5 times.

ordersinteger

Completed orders they rang up, and what they sold (totals, tax included).

salesint64 string
refundsint64 string
tipsint64 string
timeOffMinutesint64 stringtime_off_minutes

Approved paid time off in the dates, paid at the hourly rate and counted in labor_cost.

TimecardRow

holygrail.team.v1.TimecardRow

TimecardRow is one timecard with what was sold during it.

timecardTimecard
fullNamestringfull_name
workedMinutesint64 stringworked_minutes
breakMinutesint64 stringbreak_minutes
scheduledStartstringscheduled_start

The scheduled shift's times, if it had one.

scheduledEndstringscheduled_end
lateMinutesintegerlate_minutes
ordersinteger
salesint64 string
tipsint64 string

ShiftWarning

holygrail.team.v1.ShiftWarning

shiftIdstringshift_id
codestring

"time_off", "time_off_pending", "unavailable", "overtime", "max_hours", "rest", "location", "inactive".

messagestring

ScheduleDay

holygrail.team.v1.ScheduleDay

datestring

YYYY-MM-DD at the location.

forecastSalesint64 stringforecast_sales

The demand forecast's net sales for the day (ADR 56), or, where there is none, the average on this weekday over the last four weeks.

scheduledMinutesint64 stringscheduled_minutes
laborCostint64 stringlabor_cost
shiftsinteger
openShiftsintegeropen_shifts
forecastOrdersint64 stringforecast_orders

The forecast's orders and why, when the demand forecast covers the day.

forecastBasisstringforecast_basis

ScheduleSettings

holygrail.team.v1.ScheduleSettings

pickupsNeedApprovalbooleanpickups_need_approval

Whether picking up an open shift, and swaps or handing a shift to a teammate, need a manager's approval.

swapsNeedApprovalbooleanswaps_need_approval
minRestMinutesintegermin_rest_minutes

Warn when someone has less rest than this between shifts.

weeklyOvertimeMinutesintegerweekly_overtime_minutes

Hours past this in a week are overtime, in reports and warnings.

timeOffNoticeDaysintegertime_off_notice_days

Days ahead time off should be asked for; later requests are flagged.

lateGraceMinutesintegerlate_grace_minutes

Minutes after a shift's start that a clock-in counts as late.

mobileClockInbooleanmobile_clock_in

Whether team members may clock in and out from the staff app.

namedShiftsOverlapbooleannamed_shifts_overlap

Whether named shifts at a location may overlap (ADR 116). Off, every sale belongs to the one shift running; on, a sale the seller did not clock in for goes to the overlapping shift they are assigned to.

StaffingRule

holygrail.team.v1.StaffingRule

StaffingRule is how many people one position needs at a location: never fewer than min_staff while open, and enough that each handles at most orders_per_hour orders an hour (0 for no such rule). Lead and tail are minutes on before the first and after the last busy hour.

positionIdstringposition_id
positionNamestringposition_name
minStaffintegermin_staff
ordersPerHourintegerorders_per_hour
leadMinutesintegerlead_minutes
tailMinutesintegertail_minutes
suggestedOrdersPerHourintegersuggested_orders_per_hour

Read only: orders per person per hour on this position's shifts over the last four weeks; 0 when there were none.

savedboolean

Read only: false for a position with no saved rule, shown with defaults.

MyTimecard

holygrail.team.v1.MyTimecard

timecardTimecard
workedMinutesint64 stringworked_minutes

PerformanceTotals

holygrail.team.v1.PerformanceTotals

salesCountintegersales_count

Completed sales they rang up: count, total, and the average sale.

salesint64 string
averageSaleint64 stringaverage_sale
itemsSoldint64 stringitems_sold
tipsint64 string
refundsCountintegerrefunds_count
refundsint64 string
workedMinutesint64 stringworked_minutes
scheduledMinutesint64 stringscheduled_minutes
overtimeMinutesint64 stringovertime_minutes
shiftsWorkedintegershifts_worked
lateCountintegerlate_count

Shifts clocked in after the grace period.

onTimePercentintegeron_time_percent

Share of shifts clocked in on time, 0 to 100; -1 with no shifts.

salesPerHourint64 stringsales_per_hour

Sales per hour worked.

PerformanceDay

holygrail.team.v1.PerformanceDay

datestring

YYYY-MM-DD.

salesint64 string
salesCountintegersales_count
workedMinutesint64 stringworked_minutes

PerformanceItem

holygrail.team.v1.PerformanceItem

namestring
quantityint64 string
salesint64 string

CurrentNamedShift

holygrail.team.v1.CurrentNamedShift

namedShiftIdstringnamed_shift_id
shiftDatestringshift_date

ShiftOccurrence

holygrail.team.v1.ShiftOccurrence

namedShiftIdstringnamed_shift_id
namestring
datestring

The date it started, YYYY-MM-DD, and its start and end (RFC 3339).

startsAtstringstarts_at
endsAtstringends_at
assignedinteger
presentinteger
lateinteger
absentinteger
workedMinutesint64 stringworked_minutes
laborCostint64 stringlabor_cost

Pay for the time worked, at each person's hourly rate.

ordersinteger

Completed sales filed under the occurrence (totals, tax included).

salesint64 string

Permission

holygrail.team.v1.Permission

keystring
labelstring
descriptionstring

Break

holygrail.team.v1.Break

startAtstringstart_at
endAtstringend_at

Empty while on break.

AvailabilityWindow

holygrail.team.v1.AvailabilityWindow

AvailabilityWindow is a stretch of a weekday, in the location's local time. Outside any window, someone counts as available.

weekdayinteger

1 Monday to 7 Sunday.

startstring

"HH:MM"; end "24:00" for the rest of the day.

endstring
kindstring

"unavailable" or "preferred".

ShiftAttendee

holygrail.team.v1.ShiftAttendee

teamMemberIdstringteam_member_id
fullNamestringfull_name
assignedboolean
statusstring

"on_time", "late", "absent" (assigned, never clocked in), "unassigned" (clocked in against it without being assigned), or "upcoming".

clockInAtstringclock_in_at

First clock-in and last clock-out against the occurrence (RFC 3339).

clockOutAtstringclock_out_at
workedMinutesint64 stringworked_minutes
lateMinutesintegerlate_minutes

Minutes after the start (past the grace) they clocked in.

ordersinteger

Completed sales they rang up in the occurrence.

salesint64 string

Base URL https://api.buziin.tech. Every method is POST with a JSON body; see Making requests.