{"components":{"schemas":{"ApprovedHoursDto":{"properties":{"approved_minutes":{"description":"Approved time in the range, in whole minutes (1770 = 29h 30m).","example":1770,"type":"number"},"end_date":{"example":"2026-11-23","format":"date","type":"string"},"entries":{"example":4,"type":"number"},"person_id":{"format":"uuid","type":"string"},"start_date":{"example":"2026-11-23","format":"date","type":"string"}},"required":["person_id","start_date","end_date","approved_minutes","entries"],"type":"object"},"ApprovedHoursPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ApprovedHoursDto"},"type":"array"},"next_cursor":{"description":"Pass as `cursor` to get the next page. Null on the last page.","example":null,"nullable":true,"type":"string"}},"required":["data","next_cursor"],"type":"object"},"AttendanceDayDto":{"properties":{"clock_in_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","type":"string"},"clock_out_at":{"description":"Null while the timer is still running.","example":"2026-11-23T09:02:00.000Z","format":"date-time","nullable":true,"type":"string"},"date":{"example":"2026-11-23","format":"date","type":"string"},"late":{"description":"After the person's start time plus the organisation's grace period.","type":"boolean"},"late_minutes":{"description":"Minutes after the start time; 0 when on time.","example":0,"type":"number"},"person_id":{"format":"uuid","type":"string"},"worked_minutes":{"description":"Whole minutes.","example":482,"type":"number"}},"required":["person_id","date","clock_in_at","clock_out_at","worked_minutes","late","late_minutes"],"type":"object"},"AttendancePage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AttendanceDayDto"},"type":"array"},"next_cursor":{"description":"Pass as `cursor` to get the next page. Null on the last page.","example":null,"nullable":true,"type":"string"}},"required":["data","next_cursor"],"type":"object"},"ErrorBody":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBodyDetail"}},"required":["error"],"type":"object"},"ErrorBodyDetail":{"properties":{"code":{"example":"insufficient_scope","type":"string"},"message":{"example":"This API key doesn't have the read:leave scope.","type":"string"}},"required":["code","message"],"type":"object"},"LeaveBalanceDto":{"properties":{"allowance_days":{"example":25,"nullable":true,"type":"number"},"available_days":{"example":17,"nullable":true,"type":"number"},"leave_type":{"example":"annual","type":"string"},"leave_type_name":{"example":"Annual leave","type":"string"},"pending_days":{"example":2,"type":"number"},"unlimited":{"type":"boolean"},"used_days":{"example":6,"type":"number"}},"required":["leave_type","leave_type_name","unlimited","allowance_days","used_days","pending_days","available_days"],"type":"object"},"LeaveBalancesPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PersonLeaveBalancesDto"},"type":"array"},"next_cursor":{"description":"Pass as `cursor` to get the next page. Null on the last page.","example":null,"nullable":true,"type":"string"}},"required":["data","next_cursor"],"type":"object"},"LeaveRequestDto":{"properties":{"days":{"example":3,"type":"number"},"end_date":{"example":"2026-11-23","format":"date","type":"string"},"half_day":{"type":"boolean"},"half_day_part":{"enum":["morning","afternoon"],"nullable":true,"type":"string"},"id":{"format":"uuid","type":"string"},"leave_type":{"example":"annual","type":"string"},"leave_type_name":{"example":"Annual leave","type":"string"},"person_id":{"format":"uuid","type":"string"},"requested_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","type":"string"},"reviewed_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","nullable":true,"type":"string"},"start_date":{"example":"2026-11-23","format":"date","type":"string"},"status":{"enum":["pending","approved","rejected"],"type":"string"}},"required":["id","person_id","leave_type","leave_type_name","start_date","end_date","days","half_day","half_day_part","status","requested_at","reviewed_at"],"type":"object"},"LeaveRequestsPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/LeaveRequestDto"},"type":"array"},"next_cursor":{"description":"Pass as `cursor` to get the next page. Null on the last page.","example":null,"nullable":true,"type":"string"}},"required":["data","next_cursor"],"type":"object"},"LeaveYearDto":{"properties":{"end_date":{"example":"2026-11-23","format":"date","type":"string"},"start_date":{"example":"2026-11-23","format":"date","type":"string"}},"required":["start_date","end_date"],"type":"object"},"OrganisationDto":{"properties":{"id":{"format":"uuid","type":"string"},"name":{"example":"Northwind Studio","type":"string"},"time_zone":{"description":"The organisation's time zone. Every `date` in the API is a day in this zone.","example":"Europe/London","type":"string"}},"required":["id","name","time_zone"],"type":"object"},"OrganisationResponse":{"properties":{"data":{"$ref":"#/components/schemas/OrganisationDto"}},"required":["data"],"type":"object"},"PeoplePage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PersonDto"},"type":"array"},"next_cursor":{"description":"Pass as `cursor` to get the next page. Null on the last page.","example":null,"nullable":true,"type":"string"}},"required":["data","next_cursor"],"type":"object"},"PersonDto":{"properties":{"email":{"example":"amara@example.com","type":"string"},"first_name":{"example":"Amara","type":"string"},"id":{"format":"uuid","type":"string"},"job_title":{"example":"Designer","nullable":true,"type":"string"},"joined_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","nullable":true,"type":"string"},"last_name":{"example":"Okafor","type":"string"},"role":{"enum":["manager","member"],"type":"string"},"status":{"enum":["active","invited","suspended","deactivated"],"type":"string"},"team_id":{"format":"uuid","nullable":true,"type":"string"}},"required":["id","first_name","last_name","email","job_title","role","status","team_id","joined_at"],"type":"object"},"PersonLeaveBalancesDto":{"properties":{"balances":{"items":{"$ref":"#/components/schemas/LeaveBalanceDto"},"type":"array"},"leave_year":{"$ref":"#/components/schemas/LeaveYearDto"},"person_id":{"format":"uuid","type":"string"}},"required":["person_id","leave_year","balances"],"type":"object"},"PersonResponse":{"properties":{"data":{"$ref":"#/components/schemas/PersonDto"}},"required":["data"],"type":"object"},"ProjectDto":{"properties":{"active":{"description":"False for archived projects.","type":"boolean"},"created_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"name":{"example":"Website refresh","type":"string"}},"required":["id","name","active","created_at"],"type":"object"},"ProjectsPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ProjectDto"},"type":"array"},"next_cursor":{"description":"Pass as `cursor` to get the next page. Null on the last page.","example":null,"nullable":true,"type":"string"}},"required":["data","next_cursor"],"type":"object"},"ScopesAndEventsDto":{"properties":{"events":{"items":{"enum":["leave.requested","leave.approved","leave.rejected","leave.cancelled","timesheet.submitted","timesheet.approved","timesheet.rejected","attendance.clock_in","attendance.clock_out","attendance.late","member.added","member.removed","member.team_changed"],"type":"string"},"type":"array"},"scopes":{"items":{"enum":["read:people","read:teams","read:projects","read:time","read:timesheets","read:attendance","read:leave"],"type":"string"},"type":"array"}},"type":"object"},"TeamDto":{"properties":{"created_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"manager_id":{"description":"The team's manager. Null when it has none, or when the Owner manages it (the Owner isn't in the API).","format":"uuid","nullable":true,"type":"string"},"member_count":{"example":6,"type":"number"},"name":{"example":"Design","type":"string"}},"required":["id","name","manager_id","member_count","created_at"],"type":"object"},"TeamsPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TeamDto"},"type":"array"},"next_cursor":{"description":"Pass as `cursor` to get the next page. Null on the last page.","example":null,"nullable":true,"type":"string"}},"required":["data","next_cursor"],"type":"object"},"TimeEntriesPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TimeEntryDto"},"type":"array"},"next_cursor":{"description":"Pass as `cursor` to get the next page. Null on the last page.","example":null,"nullable":true,"type":"string"}},"required":["data","next_cursor"],"type":"object"},"TimeEntryDto":{"properties":{"date":{"example":"2026-11-23","format":"date","type":"string"},"entry_type":{"enum":["timer","focus_block"],"type":"string"},"id":{"format":"uuid","type":"string"},"minutes":{"description":"Approved time, in whole minutes.","example":465,"type":"number"},"person_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","nullable":true,"type":"string"},"started_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","type":"string"},"stopped_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","nullable":true,"type":"string"}},"required":["id","person_id","project_id","date","started_at","stopped_at","minutes","entry_type"],"type":"object"},"TimesheetDto":{"properties":{"approved_minutes":{"description":"Approved minutes; null until approved.","example":465,"nullable":true,"type":"number"},"auto_approved":{"type":"boolean"},"date":{"example":"2026-11-23","format":"date","type":"string"},"id":{"format":"uuid","type":"string"},"minutes":{"description":"Time recorded, in whole minutes.","example":480,"type":"number"},"person_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","nullable":true,"type":"string"},"reviewed_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","nullable":true,"type":"string"},"started_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","type":"string"},"status":{"enum":["submitted","approved","rejected"],"type":"string"},"stopped_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","nullable":true,"type":"string"},"submitted_at":{"example":"2026-11-23T09:02:00.000Z","format":"date-time","type":"string"}},"required":["id","person_id","project_id","date","started_at","stopped_at","minutes","approved_minutes","status","auto_approved","submitted_at","reviewed_at"],"type":"object"},"TimesheetsPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TimesheetDto"},"type":"array"},"next_cursor":{"description":"Pass as `cursor` to get the next page. Null on the last page.","example":null,"nullable":true,"type":"string"}},"required":["data","next_cursor"],"type":"object"}},"securitySchemes":{"apiKey":{"bearerFormat":"xtk_<prefix>_<secret>","description":"An API key from Settings → Integrations → API & webhooks.","scheme":"bearer","type":"http"}}},"info":{"contact":{},"description":"Read-only access to your organisation's people, teams, projects, approved time, timesheets, attendance and leave.\n\nAuthenticate with an API key made by your organisation's Owner (Settings → Integrations → API & webhooks): `Authorization: Bearer xtk_…`.\n\nLists use cursor pagination (`limit` up to 100, `next_cursor`). Dates are YYYY-MM-DD in the organisation's time zone; date ranges cover at most 93 days. Durations are whole minutes.\n\nLimits per organisation: Business 1,000 requests an hour, Enterprise 10,000. Every answer carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; over the limit you get 429 with Retry-After.\n\nNever returned: screenshots, app and website details, activity or productivity scores, pay, bank or any other Finance data. The Owner is never included.\n\nBreaking changes come as a new version with 12 months' notice.","title":"xTracker API","version":"v1"},"openapi":"3.0.0","paths":{"/api/public/v1/approved-hours":{"get":{"description":"Needs the `read:time` scope.","operationId":"approvedHours","parameters":[{"description":"The `next_cursor` of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Rows per page, 1–100 (default 50).","in":"query","name":"limit","required":false,"schema":{"type":"number"}},{"description":"Last day, YYYY-MM-DD, inclusive. At most 93 days after start_date.","in":"query","name":"end_date","required":true,"schema":{"example":"2026-11-30","type":"string"}},{"description":"First day, YYYY-MM-DD (organisation time zone).","in":"query","name":"start_date","required":true,"schema":{"example":"2026-11-01","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovedHoursPage"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"Approved minutes per person for the date range.","tags":["xTracker API v1"],"x-required-scope":"read:time"}},"/api/public/v1/attendance":{"get":{"description":"Needs the `read:attendance` scope.","operationId":"attendance","parameters":[{"description":"The `next_cursor` of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Rows per page, 1–100 (default 50).","in":"query","name":"limit","required":false,"schema":{"type":"number"}},{"description":"Only this person.","in":"query","name":"person_id","required":false,"schema":{"type":"string"}},{"description":"Last day, YYYY-MM-DD, inclusive. At most 93 days after start_date.","in":"query","name":"end_date","required":true,"schema":{"example":"2026-11-30","type":"string"}},{"description":"First day, YYYY-MM-DD (organisation time zone).","in":"query","name":"start_date","required":true,"schema":{"example":"2026-11-01","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttendancePage"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"One row per person per day they clocked in: first clock-in, last clock-out, minutes worked, lateness.","tags":["xTracker API v1"],"x-required-scope":"read:attendance"}},"/api/public/v1/leave-balances":{"get":{"description":"Needs the `read:leave` scope.","operationId":"leaveBalances","parameters":[{"description":"The `next_cursor` of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"People per page, 1–25 (default 25).","in":"query","name":"limit","required":false,"schema":{"type":"number"}},{"description":"Only this person.","in":"query","name":"person_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaveBalancesPage"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"Each person's leave balances for the current leave year. Up to 25 people per page.","tags":["xTracker API v1"],"x-required-scope":"read:leave"}},"/api/public/v1/leave-requests":{"get":{"description":"Needs the `read:leave` scope.","operationId":"leaveRequests","parameters":[{"description":"The `next_cursor` of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Rows per page, 1–100 (default 50).","in":"query","name":"limit","required":false,"schema":{"type":"number"}},{"in":"query","name":"status","required":false,"schema":{"enum":["pending","approved","rejected"],"type":"string"}},{"description":"Only this person.","in":"query","name":"person_id","required":false,"schema":{"type":"string"}},{"description":"Last day, YYYY-MM-DD, inclusive. At most 93 days after start_date.","in":"query","name":"end_date","required":true,"schema":{"example":"2026-11-30","type":"string"}},{"description":"First day, YYYY-MM-DD (organisation time zone).","in":"query","name":"start_date","required":true,"schema":{"example":"2026-11-01","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaveRequestsPage"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"Leave requests (pending, approved, rejected) that overlap the date range.","tags":["xTracker API v1"],"x-required-scope":"read:leave"}},"/api/public/v1/organisation":{"get":{"operationId":"organisation","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationResponse"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"The organisation the key belongs to, and its time zone. Needs no scope.","tags":["xTracker API v1"],"x-required-scope":null}},"/api/public/v1/people":{"get":{"description":"Needs the `read:people` scope.","operationId":"people","parameters":[{"in":"query","name":"status","required":false,"schema":{"enum":["active","invited","suspended","deactivated"],"type":"string"}},{"in":"query","name":"team_id","required":false,"schema":{"type":"string"}},{"description":"The `next_cursor` of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Rows per page, 1–100 (default 50).","in":"query","name":"limit","required":false,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeoplePage"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"People in the organisation (managers and members), by first name then last name.","tags":["xTracker API v1"],"x-required-scope":"read:people"}},"/api/public/v1/people/{id}":{"get":{"description":"Needs the `read:people` scope.","operationId":"person","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonResponse"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"One person.","tags":["xTracker API v1"],"x-required-scope":"read:people"}},"/api/public/v1/projects":{"get":{"description":"Needs the `read:projects` scope.","operationId":"projects","parameters":[{"in":"query","name":"include_archived","required":false,"schema":{"enum":["true","false"],"type":"string"}},{"description":"The `next_cursor` of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Rows per page, 1–100 (default 50).","in":"query","name":"limit","required":false,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectsPage"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"Projects, by name. Archived projects only with include_archived=true.","tags":["xTracker API v1"],"x-required-scope":"read:projects"}},"/api/public/v1/teams":{"get":{"description":"Needs the `read:teams` scope.","operationId":"teams","parameters":[{"description":"The `next_cursor` of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Rows per page, 1–100 (default 50).","in":"query","name":"limit","required":false,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamsPage"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"Teams, by name.","tags":["xTracker API v1"],"x-required-scope":"read:teams"}},"/api/public/v1/time-entries":{"get":{"description":"Needs the `read:time` scope.","operationId":"timeEntries","parameters":[{"description":"The `next_cursor` of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Rows per page, 1–100 (default 50).","in":"query","name":"limit","required":false,"schema":{"type":"number"}},{"description":"Only this person.","in":"query","name":"person_id","required":false,"schema":{"type":"string"}},{"description":"Last day, YYYY-MM-DD, inclusive. At most 93 days after start_date.","in":"query","name":"end_date","required":true,"schema":{"example":"2026-11-30","type":"string"}},{"description":"First day, YYYY-MM-DD (organisation time zone).","in":"query","name":"start_date","required":true,"schema":{"example":"2026-11-01","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntriesPage"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"Approved time entries that started in the date range, oldest first, with approved minutes.","tags":["xTracker API v1"],"x-required-scope":"read:time"}},"/api/public/v1/timesheets":{"get":{"description":"Needs the `read:timesheets` scope.","operationId":"timesheets","parameters":[{"description":"The `next_cursor` of the previous page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Rows per page, 1–100 (default 50).","in":"query","name":"limit","required":false,"schema":{"type":"number"}},{"in":"query","name":"status","required":false,"schema":{"enum":["submitted","approved","rejected"],"type":"string"}},{"description":"Only this person.","in":"query","name":"person_id","required":false,"schema":{"type":"string"}},{"description":"Last day, YYYY-MM-DD, inclusive. At most 93 days after start_date.","in":"query","name":"end_date","required":true,"schema":{"example":"2026-11-30","type":"string"}},{"description":"First day, YYYY-MM-DD (organisation time zone).","in":"query","name":"start_date","required":true,"schema":{"example":"2026-11-01","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimesheetsPage"}}},"description":""},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Missing, invalid, revoked or expired key."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"The key lacks the route's scope, or the plan doesn't include the API."},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Hourly limit reached. See Retry-After."}},"security":[{"apiKey":[]}],"summary":"Submitted time entries in the date range and where each is in review.","tags":["xTracker API v1"],"x-required-scope":"read:timesheets"}}},"servers":[{"url":"https://api.xtracker.enroutex.co.uk"}],"tags":[],"x-scopes":[{"description":"Read people","scope":"read:people"},{"description":"Read teams","scope":"read:teams"},{"description":"Read projects","scope":"read:projects"},{"description":"Read approved time","scope":"read:time"},{"description":"Read timesheets","scope":"read:timesheets"},{"description":"Read attendance","scope":"read:attendance"},{"description":"Read leave requests and balances","scope":"read:leave"}],"x-webhooks":{"events":[{"description":"Leave requested","event":"leave.requested"},{"description":"Leave approved","event":"leave.approved"},{"description":"Leave rejected","event":"leave.rejected"},{"description":"Leave cancelled","event":"leave.cancelled"},{"description":"Timesheet submitted","event":"timesheet.submitted"},{"description":"Timesheet approved","event":"timesheet.approved"},{"description":"Timesheet rejected","event":"timesheet.rejected"},{"description":"Clock-in","event":"attendance.clock_in"},{"description":"Clock-out","event":"attendance.clock_out"},{"description":"Late arrival","event":"attendance.late"},{"description":"Member added","event":"member.added"},{"description":"Member removed","event":"member.removed"},{"description":"Member moved team","event":"member.team_changed"}],"headers":{"delivery":"X-Xtracker-Delivery","event":"X-Xtracker-Event","signature":"X-Xtracker-Signature"},"retries":"Up to 8 attempts over 24 hours (1m, 5m, 15m, 1h, 3h, 6h, 12h). Any 2xx answer within 10 seconds counts as delivered; redirects aren't followed.","signature":"HMAC-SHA256 of \"<t>.<raw body>\" with the endpoint's signing secret, hex; header \"t=<unix seconds>,v1=<hex>\". Reject timestamps more than 300 seconds away."}}