API reference
Base URL: https://staging.officechief.app/api/partner/v1. Send Authorization: Bearer <access_token>. Responses are JSON. The limit is 600 requests a minute per installation; above it you get 429.
Each permission (scope) returns only the fields listed here. No scope reaches salaries, ID or bank details, personal fields, Kann chats or files.
GET /people — people:read
Active people, primary job. Paginate with ?after=<last id>&limit= (max 500).
| Field | |
|---|---|
id | stable person id |
name | preferred name, or given + family |
email | work email |
title, team, office, company | job title, team, office, company short code |
GET /leave — leave:read
Approved leave overlapping ?from=YYYY-MM-DD&to=YYYY-MM-DD (default: today to +30 days).
person_id, name, type, start, end, start_half, end_half. Never the reason.
GET /bookings — bookings:read
Room bookings overlapping ?from&to (default: today to +7 days).
id, room, office, title, start_at, end_at, status, organizer.
GET /events — events:read
Upcoming company events: id, title, place, starts_at, ends_at, timezone.
GET /requests — requests:read
Facility and IT requests, newest first, optional ?status=OPEN|IN_PROGRESS|RESOLVED|CLOSED.
id, number, type, title, place, priority, status, office, created_at, updated_at.
POST /requests — requests:write
{ "title": "Sensor offline in Orchid", "description": "…", "type": "FACILITY", "priority": "NORMAL", "place": "20F · Orchid" }type: FACILITY, SUPPLIES, IT, CLEANING, OTHER. priority: LOW, NORMAL, HIGH, URGENT. The title is shown as [Your app] … and the request is raised under the admin who installed your app.
Errors
{ "error": { "code": "FORBIDDEN", "message": "This app wasn't given \"leave:read\"" } }| Status | Code | Meaning |
|---|---|---|
| 400 | VALIDATION | Bad input; see message |
| 401 | UNAUTHORIZED | Token missing, expired or revoked |
| 403 | FORBIDDEN | Your app doesn't have that permission |
| 404 | NOT_FOUND | No such resource |
| 429 | RATE_LIMITED | Slow down |
Asking for more
Need a field or endpoint we don't have? Write to support@officechief.app with the use case. New scopes are added for everyone, with plain-language consent text.