Developers
The Bixiibee API
Read hours, attendance, people and projects from your own tools, add projects and manual time, send leave in from your HR system, and get webhooks the moment something changes. The API is part of the Business plan.
Getting started
- An owner or admin opens Organization settings in Bixiibee and chooses New key under API keys.
- Name the key after the tool that will use it, and choose Read only or Read and write.
- Copy the key. Bixiibee shows it once and keeps only a scrambled copy, so store it in your tool's secret settings.
Send the key with every request:
curl https://api.bixiibee.com/v1/api/people \
-H "Authorization: Bearer bxk_your_key_here"
On Windows, use PowerShell's own command, which handles JSON without quoting trouble:
$h = @{ Authorization = "Bearer bxk_your_key_here" }
Invoke-RestMethod -Uri https://api.bixiibee.com/v1/api/people -Headers $h
Invoke-RestMethod -Method Post -Uri https://api.bixiibee.com/v1/api/projects -Headers $h `
-ContentType "application/json" -Body '{"name":"Website redesign"}'
Make one key per tool, so you can revoke one without stopping the others. A key stops working when it is revoked, when the person who made it is no longer an owner or admin, or when the organization leaves the Business plan.
Basics
- Address:
https://api.bixiibee.com/v1/api/. Requests and answers are JSON. - Times are UTC in ISO 8601 (
2026-12-02T09:30:00Z). Days (2026-12-02) are in your organization's time zone. - Each key may make 120 requests a minute. Beyond that the answer is
429; wait a moment and try again. - Writes are recorded in your organization's audit log under the person who made the key.
Errors
Errors have a status code and a body like this:
{ "error": "read_only_key", "error_description": "this key can only read; make a key with write access in Settings" }
| Status | Meaning |
|---|---|
400 | Something in the request is not acceptable; error_description says what. |
401 | No key, an unknown key or a revoked key. |
403 | The key cannot do this: read_only_key, feature_not_in_plan, key_maker_left or suspended. |
404 | No such project in your organization. |
409 | A conflict, such as a project name already in use, a week that is approved and locked, or leave that overlaps leave the person already has (leave_overlaps). |
429 | Too many requests this minute. |
Reading
Your organization
GET /v1/api/organization
Answers id, name, timezone and plan.
People
GET /v1/api/people
Everyone in the organization: id, full_name, email, role (owner, admin, hr, manager or member) and joined_at.
Projects
GET /v1/api/projects
Every project, active ones first: id, name, color, archived and created_at.
Attendance and daily hours
GET /v1/api/attendance?from=2026-12-01&to=2026-12-05
Each person's days in the range, at most 62 days: hours tracked (with approved manual time), scheduled hours, late arrivals, absences, leave and holidays, with totals per person. This is the same report as the Attendance page.
Time blocks
GET /v1/api/time-blocks?from=2026-12-01T00:00:00Z&to=2026-12-02T00:00:00Z&limit=200
The 10-minute blocks from the desktop app, at most 31 days at a time, oldest first: id, user_id, start, tracked_seconds, active_seconds, idle_seconds, activity_percent, keyboard_events, mouse_events and project_id. These are counts only: Bixiibee never records which keys were pressed. Add user_id= for one person.
Answers come in pages of limit blocks (200 unless you ask, at most 1000). When there are more, the answer's next is set: send it back as after with the same range for the next page. On the last page next is null.
{ "blocks": [ ... ], "next": "1764667200000_0193f2c1a6b07d3e8f6a2b1c4d5e6f70" }
Manual time
GET /v1/api/manual-time?from=2026-12-01&to=2026-12-05
Time people added away from the desktop app: id, user_id, day, start_minute and end_minute (minutes after midnight), project_id, note and status (pending, approved or rejected).
Timesheets
GET /v1/api/timesheets?week=2026-12-01
The submitted timesheets for the week holding that day (Monday to Sunday): user_id, week_start, status (submitted, approved or returned), worked_minutes, submitted_at and decided_at.
Leave
GET /v1/api/leave?from=2026-12-01&to=2026-12-31
All leave overlapping the range, at most 366 days: id, external_id, source (bixiibee when asked for in Bixiibee, api when sent from your HR system), user_id, kind, start_day, end_day, note and status (pending, approved, rejected or cancelled).
Writing
These need a key made with Read and write access.
Add a project
POST /v1/api/projects
{ "name": "Website redesign", "color": "#3b82f6" }
Names are unique in your organization and up to 80 characters. color is optional. Answers the new project with status 201.
Rename, recolour or archive a project
PATCH /v1/api/projects/{id}
{ "name": "Website", "archived": true }
Send only what changes. Archived projects keep their history and leave the desktop app's project list.
Add manual time
POST /v1/api/manual-time
{ "user_id": "...", "day": "2026-12-02", "start_minute": 540, "end_minute": 600,
"note": "Client call", "project_id": null }
Adds time for a person, for today or up to two months back, at most 12 hours, not overlapping their other manual time that day. It arrives as pending and counts once a manager approves it, exactly like time a person adds in Bixiibee. Answers { "id": "...", "status": "pending" } with status 201.
Send leave from your HR system
If your company runs leave in its own HR system or ERP, send approved leave to Bixiibee so attendance shows those days as leave instead of absent. Use your system's own id for the leave in the address (letters, digits, dots, underscores, colons or dashes, up to 100):
PUT /v1/api/leave/{your_leave_id}
{ "user_id": "...", "kind": "annual", "start_day": "2026-12-21", "end_day": "2026-12-24",
"note": "Approved in Odoo" }
kind is one of annual, sick, maternity, paternity, compassionate, unpaid or other. The leave is saved as approved, for up to a year back or ahead and at most 181 days at a time. Sending the same id again changes that leave instead of adding another, so it is safe to send everything again after a change. Answers the leave with status 201 when new and 200 when changed. Leave that overlaps other leave the person has answers 409.
DELETE /v1/api/leave/{your_leave_id}
Cancels leave you sent (status 204; cancelling twice is fine). Leave sent from your HR system can only be changed or cancelled through the API, not in Bixiibee. To stop people asking for leave in Bixiibee as well, an owner, admin or HR person ticks We manage leave in our own HR system under Leave settings.
Webhooks
Instead of asking the API again and again, let Bixiibee tell your system when something happens. An owner or admin adds the address under Organization settings > Webhooks and picks the events. Bixiibee shows a signing secret (whsec_...) once; keep it in your system's secret settings.
| Event | When | data holds |
|---|---|---|
time_blocks.added | New tracked time arrived from the desktop app (one event per person per upload) | user_id, blocks, first_block_start, last_block_start |
timesheet.submitted | Someone submitted their week | user_id, week_start, worked_minutes |
timesheet.approved, timesheet.returned | A week was approved, or returned with a note | user_id, week_start, decided_by |
timesheet.reopened | An approved week was opened again | user_id, week_start, reopened_by |
manual_time.approved, manual_time.rejected | Manual time was decided | id, user_id, day, decided_by |
leave.approved, leave.declined | Leave asked for in Bixiibee was decided | id, user_id, kind, start_day, end_day, decided_by |
member.joined, member.removed | Someone joined or was removed | user_id, role |
project.created, project.updated | A project was added or changed (including archived) | The project, as GET /v1/api/projects shows it |
Each event is a POST with a JSON body:
{ "id": "01a23b31-...", "type": "timesheet.approved", "created_at": "2026-12-03T09:17:19Z",
"organization_id": "...", "data": { "user_id": "...", "week_start": "2026-11-30", "decided_by": "..." } }
Events carry ids and a short summary; read the details through the API. Use id to skip an event you already handled: a retry sends the same id again. The headers Bixiibee-Event and Bixiibee-Delivery name the event type and this delivery.
Check the signature
Every request has Bixiibee-Signature: t=1764754639,v1=5257a8.... v1 is the hex HMAC-SHA256 of t, a full stop and the raw request body, keyed with your secret. Compute it over the body exactly as received (before parsing JSON), compare in constant time, and refuse requests whose t is more than 5 minutes old.
// Node.js (Express: use express.raw({ type: 'application/json' }) for this route)
const crypto = require('crypto');
function fromBixiibee(rawBody, header, secret) {
const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')));
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
return v1.length === expected.length && crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}
# Python
import hashlib, hmac, time
def from_bixiibee(raw_body: bytes, header: str, secret: str) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
if abs(time.time() - int(parts["t"])) > 300:
return False
expected = hmac.new(secret.encode(), parts["t"].encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(parts["v1"], expected)
// PHP (Laravel: $request->getContent() is the raw body)
function fromBixiibee(string $rawBody, string $header, string $secret): bool {
parse_str(str_replace(',', '&', $header), $parts);
if (abs(time() - (int) $parts['t']) > 300) return false;
$expected = hash_hmac('sha256', $parts['t'] . '.' . $rawBody, $secret);
return hash_equals($expected, $parts['v1']);
}
Answering and retries
- Answer with any
2xxstatus within 10 seconds. Do slow work after answering. - Anything else is tried again after 1 minute, 5 minutes, 30 minutes, then 2, 6, 12 and 24 hours. After that the delivery is given up; you can send it again from Deliveries in Settings.
- If every delivery to an address fails for 3 days, the address is switched off and your owners and admins get an email. Switch it back on in Settings.
- Addresses must be public HTTPS on port 443. Bixiibee does not follow redirects and never sends to private or internal networks.
- Use Test in Settings to send a
webhook.testevent. An organization can have 5 webhook addresses. Events are kept for 30 days.
Help
Questions, or an endpoint you need? Email support@bixiibee.com.