Тела запросов и ответов, которые используют операции. Обязательные поля отмечены.
AbsenceDto
An absence.
| Поле | Тип | Описание |
createdAtобязательный | string (date-time) | |
createdByобязательный | CalendarUserRefDto | |
daysобязательный | number (double) | Σ deductionByYear; for types that do not deduct, the planned workdays (information only). |
decidedAt | string (date-time) | null | |
decidedBy | CalendarUserRefDto | null | |
decisionNote | string | null | |
deductionByYearобязательный | object | The balance deduction per year, e.g. {"2026": 3.5}; empty for types that do not deduct. |
endобязательный | string (date-time) | |
endDateобязательный | string (date) | |
endTime | string | null | |
half | string | null | |
idобязательный | string (uuid) | |
note | string | null | |
permissionsобязательный | AbsencePermissionsDto | |
startобязательный | string (date-time) | UTC coverage start. |
startDateобязательный | string (date) | |
startTime | string | null | |
statusобязательный | string | |
timeZoneобязательный | string | |
typeобязательный | AbsenceTypeRefDto | |
unitобязательный | string | |
updatedAtобязательный | string (date-time) | |
userобязательный | CalendarPersonDto | |
userIdобязательный | string (uuid) | |
AbsencePage
GET /v1/absences.
| Поле | Тип | Описание |
itemsобязательный | AbsenceDto[] | |
nextCursor | string | null | |
AbsencePermissionsDto
| Поле | Тип | Описание |
canApproveобязательный | boolean | |
canCancelобязательный | boolean | |
canEditобязательный | boolean | |
AbsenceRequest
POST /v1/absences, PUT /v1/absences/{id} (the user never changes).
| Поле | Тип | Описание |
endDate | string (date) | null | |
endTime | string | null | |
half | string | null | am or pm for a half day. |
note | string | null | |
startDate | string (date) | null | |
startTime | string | null | Local HH:mm for hours. |
typeId | string (uuid) | null | |
unit | string | null | days, half_day or hours. |
userId | string (uuid) | null | null = the caller. |
AbsenceTypeRefDto
The absence's type as the absence shows it; name translated for a built-in type that was not renamed.
| Поле | Тип | Описание |
colorобязательный | string | |
countsAsWorkedобязательный | boolean | |
deductsFromBalanceобязательный | boolean | |
idобязательный | string (uuid) | |
key | string | null | |
nameобязательный | string | |
paidобязательный | boolean | |
timeEffectобязательный | string | |
AcceptedDto
202 Accepted of a queued job.
| Поле | Тип | Описание |
acceptedобязательный | boolean | Always true. |
AccessDto
What the person may see and manage (FAZ1 AccessDto; focus_contracts::access::policy).
| Поле | Тип | Описание |
assignableRolesобязательный | string[] | |
canManageCompanySettingsобязательный | boolean | |
canManageTeamsобязательный | boolean | |
canManageUsersобязательный | boolean | |
manageTeamIdsобязательный | string[] | |
scopeобязательный | string | company, teams or self. |
unassignedFallbackобязательный | boolean | |
viewTeamIdsобязательный | string[] | |
ActivityDayDto
One user's local day. A day without activity is a 200 with zero totals, null arrival/leave and empty lists.
| Поле | Тип | Описание |
absenceCreditMsобязательный | integer (int64) | A worked absence tops the worked time up to the expected work. |
activeMsобязательный | integer (int64) | Window time ∩ not AFK (computer time only). |
afkCoverageобязательный | boolean | False when no device reported AFK data (idle unknown). |
appsобязательный | AppUsageDto[] | Daily totals, largest first. |
arrivalAt | string (date-time) | null | |
atWorkMsобязательный | integer (int64) | |
attendance | DayAttendanceDto | null | |
categoriesобязательный | CategoryUsageDto[] | Active time per category (null key = uncategorized); offline time is in no category. |
classifiedобязательный | boolean | False for a day written before the Phase 2 classification (all neutral). |
dateобязательный | string (date) | |
dayEndобязательный | string (date-time) | |
dayStartобязательный | string (date-time) | The day's window: local midnight, or the end of the previous day's night shift window. |
deletedMsобязательный | integer (int64) | Tracked time removed by approved deletions (part of idle). |
domainsобязательный | DomainUsageDto[] | |
hostsобязательный | HostUsageDto[] | Hosts with a URL, at most 50, largest first. |
idleMsобязательный | integer (int64) | |
leftAt | string (date-time) | null | |
meetingMsобязательный | integer (int64) | Active time the meeting apps exception turned from idle into active. |
offlineMsобязательный | integer (int64) | Approved offline time outside the tracked active time. |
pendingOfflineMsобязательный | integer (int64) | Pending offline entries of the day (information only). |
plan | DayPlanDto | null | |
privateIntervalsобязательный | TimeIntervalDto[] | Private intervals of the day, merged and clipped, without detail. |
privateMsобязательный | integer (int64) | Private time outside active and offline time. |
productivityобязательный | DayProductivityDto | |
recomputingобязательный | boolean | The day waits in the recompute queue (the UI refetches every 15 s). |
slotsобязательный | ActivitySlotDto[] | One entry per 5-minute UTC slot with activity, by time. |
teamId | string (uuid) | null | The user's current primary team (its rules classify the day). |
timeEntriesобязательный | TimeEntryDto[] | Offline and deletion entries of every status overlapping the day's window, by start; the caller's permissions. |
timeZoneобязательный | string | The zone the day was computed in; the UI draws slots at their wall-clock time in it. |
userIdобязательный | string (uuid) | |
workedMsобязательный | integer (int64) | activeMs + offlineMs: the denominator of productivity.productivityPct. |
ActivitySlotDto
Time in one 5-minute slot; activeMs includes approved offline time (offlineMs).
| Поле | Тип | Описание |
activeMsобязательный | integer (int64) | |
appsобязательный | AppUsageDto[] | |
neutralMsобязательный | integer (int64) | |
offlineMsобязательный | integer (int64) | |
productiveMsобязательный | integer (int64) | |
slotStartобязательный | string (date-time) | |
unproductiveMsобязательный | integer (int64) | |
AffectedAllocationDto
An allocation replace changed.
| Поле | Тип | Описание |
changeобязательный | string | trimmed, split or deleted. |
idобязательный | string (uuid) | |
AllocationCreateRequest
POST /v1/allocations (Idempotency-Key).
| Поле | Тип | Описание |
endedAt | string (date-time) | null | At most 24 hours after startedAt, at most 5 minutes in the future. |
isBillable | boolean | null | |
note | string | null | |
projectId | string (uuid) | null | |
replace | boolean | null | Trim, split or delete the person's (unbilled) allocations it overlaps; otherwise an overlap is 409
allocation_overlaps. |
source | string | null | manual or assignment (timer only through the timer). |
startedAt | string (date-time) | null | |
taskId | string (uuid) | null | |
userId | string (uuid) | null | null = the caller; another person needs allocations.write and to be managed by the caller. |
AllocationCreatedDto
POST /v1/allocations → 201.
AllocationDto
Time on a project.
| Поле | Тип | Описание |
createdAtобязательный | string (date-time) | |
createdByобязательный | NamedRefDto | |
durationMsобязательный | integer (int64) | |
effectiveBillableобязательный | boolean | |
endedAtобязательный | string (date-time) | |
idобязательный | string (uuid) | |
invoiceId | string (uuid) | null | Set once the time is on an invoice. |
isBillable | boolean | null | null takes the task's, then the project's value. |
localDateобязательный | string (date) | The start's day in the person's zone (rates, reports). |
note | string | null | |
permissionsобязательный | AllocationPermissionsDto | |
projectобязательный | ProjectRefDto | |
sourceобязательный | string | timer, manual or assignment. |
startedAtобязательный | string (date-time) | |
task | NamedRefDto | null | |
timeZoneобязательный | string | |
updatedAtобязательный | string (date-time) | |
userIdобязательный | string (uuid) | |
versionобязательный | integer (int64) | The row version: If-Match: "v<version>" of a change (the same value as the resource's ETag). |
AllocationPage
GET /v1/allocations.
| Поле | Тип | Описание |
itemsобязательный | AllocationDto[] | |
nextCursor | string | null | |
AllocationPermissionsDto
What the caller may do with an allocation (a billed one is locked).
| Поле | Тип | Описание |
deleteобязательный | boolean | |
editобязательный | boolean | |
AppTotalDto
| Поле | Тип | Описание |
activeMsобязательный | integer (int64) | |
appKeyобязательный | string | |
categoryKey | string | null | |
level | string | null | Level in the response's levelContext. |
nameобязательный | string | |
percentageобязательный | number (double) | Share of the range's worked time (0–100, one decimal). |
AppUsageDto
An app's time; offline rows use the reserved keys _offline_<level> with name: "Offline time" and
levelSource: "offline".
| Поле | Тип | Описание |
activeMsобязательный | integer (int64) | |
appKeyобязательный | string | |
categoryKey | string | null | |
level | string | null | The app's own rule (productive, unproductive, neutral). |
levelSource | string | null | team, company, default or offline. |
nameобязательный | string | |
BudgetDto
A project's budget: hours (minutes) or an amount in the project's currency (amountMinor).
| Поле | Тип | Описание |
amountMinor | integer (int64) | null | |
kind | string | null | hours or amount. |
minutes | integer (int64) | null | |
BudgetRequest
The budget of a project request (kind hours with minutes, or amount with amountMinor).
| Поле | Тип | Описание |
amountMinor | integer (int64) | null | |
kind | string | null | |
minutes | integer (int64) | null | |
CalendarDecisionRequest
{decision, note?} of the decision endpoints (approve or reject; the note at most 500 characters).
| Поле | Тип | Описание |
decision | string | null | |
note | string | null | |
CalendarPersonDto
A user with the current team.
| Поле | Тип | Описание |
fullName | string | null | |
idобязательный | string (uuid) | |
teamId | string (uuid) | null | |
teamName | string | null | |
CalendarUserRefDto
A user reference (names from the directory; null when unknown).
| Поле | Тип | Описание |
fullName | string | null | |
idобязательный | string (uuid) | |
CapabilitiesDto
Subscription capabilities.
| Поле | Тип | Описание |
featuresобязательный | string[] | |
readOnlyобязательный | boolean | |
CategoryUsageDto
| Поле | Тип | Описание |
activeMsобязательный | integer (int64) | |
categoryKey | string | null | null = uncategorized. |
CreateExportRequest
POST /v1/exports: definition is the full definition the dialog shows; without it the saved template
(templateId) or the built-in one (templateKey) gives it.
| Поле | Тип | Описание |
definition | ExportDefinitionDto | null | |
from | string (date) | null | |
locale | string | null | tr or en. |
templateId | string (uuid) | null | |
templateKey | string | null | |
to | string (date) | null | |
CreateInvitation
POST /v1/invitations.
| Поле | Тип | Описание |
emailобязательный | string | |
fullNameобязательный | string | |
locale | string | null | Language of the e-mail and the acceptance page (tr, en); the organization's default otherwise. |
roleобязательный | string | admin, team_admin, manager or employee. |
teamId | string (uuid) | null | |
timeZone | string | null | |
viewerTeamIds | string (uuid)[] | |
CreateTeam
POST /v1/teams.
| Поле | Тип | Описание |
description | string | null | At most 500 characters. |
nameобязательный | string | 1–100 characters, unique among active teams (Turkish case folding). |
CreateTimeEntryRequest
POST /v1/time-entries (the .NET CreateTimeEntryRequest).
| Поле | Тип | Описание |
description | string | null | Offline: 1–500 characters; deletion: optional reason (at most 500). |
end | string (date-time) | null | |
kind | string | null | offline or deletion. |
level | string | null | Offline only (default productive). |
projectId | string (uuid) | null | Must be null (400 project_not_supported). |
start | string (date-time) | null | |
userId | string (uuid) | null | null = the caller; a manager may add time for a user it manages. |
CreateWebhookEndpointRequest
POST /v1/webhook-endpoints.
| Поле | Тип | Описание |
description | string | null | ≤ 200 characters. |
eventTypesобязательный | string[] | 1–50 catalog event types of the tenant's plan. |
urlобязательный | string | https://… (≤ 2048; no user info, no fragment; every resolved address public). |
CreatedWebhookEndpointDto
CreatedWebhookEndpointDto: the endpoint and its signing secret, shown once.
| Поле | Тип | Описание |
endpointобязательный | WebhookEndpointDto | |
secretобязательный | string | whsec_<base64>: shown once, never again. |
DailyHolidayDto
A holiday of a daily report day.
| Поле | Тип | Описание |
half | string | null | |
keyобязательный | string | |
nameобязательный | string | English name; nameTr is the Turkish one. |
nameTrобязательный | string | |
DayAbsenceDto
The dominant absence of a day (/v1/reports/users/{userId}/daily days[].absence).
| Поле | Тип | Описание |
colorобязательный | string | |
fractionобязательный | number (double) | The day's approved absence coverage (0–1). |
half | string | null | |
typeKey | string | null | |
typeName | string | null | |
unitобязательный | string | |
DayAttendanceDto
Attendance of the day on the day plan.
| Поле | Тип | Описание |
expectedEnd | string (date-time) | null | |
expectedStart | string (date-time) | null | |
flexibleобязательный | boolean | |
lateByMsобязательный | integer (int64) | |
lateToleranceMinutesобязательный | integer (int32) | |
leftEarlyобязательный | boolean | |
leftEarlyByMsобязательный | integer (int64) | |
statusобязательный | string | onTime, late, absent, notStarted, dayOff, onLeave, holiday. |
targetMsобязательный | integer (int64) | The plan's target (the Effectiveness % denominator). |
workdayобязательный | boolean | |
DayPlanDto
The day plan of one user's day.
| Поле | Тип | Описание |
absencesобязательный | PlanAbsenceDto[] | Approved and pending absences covering the day (only approved ones change the numbers). |
expectedEnd | string (date-time) | null | |
expectedStart | string (date-time) | null | |
expectedWorkMsобязательный | integer (int64) | Overtime target (base × (1 − fLeave)). |
holiday | HolidayRefDto | null | |
kindобязательный | string | schedule, shift, dayOff or holiday. |
leaveFractionобязательный | number (double) | The approved absence coverage f (0–1). |
shiftsобязательный | PlanShiftDto[] | Shifts starting on the day, by start. |
targetMsобязательный | integer (int64) | Effectiveness % denominator (base × (1 − f)). |
workdayобязательный | boolean | |
DayProductivityDto
A day's time by productivity level (productive + unproductive + neutral = workedMs).
| Поле | Тип | Описание |
effectivenessPct | number (double) | null | productive ÷ target × 100 (not capped); null without a target. |
neutralMsобязательный | integer (int64) | |
productiveMsобязательный | integer (int64) | |
productivityPct | number (double) | null | productive ÷ worked × 100, one decimal; null without worked time. |
targetMsобязательный | integer (int64) | |
unproductiveMsобязательный | integer (int64) | |
DayTotalDto
One local day of a summary.
| Поле | Тип | Описание |
activeMsобязательный | integer (int64) | |
activeUserCountобязательный | integer (int32) | |
atWorkMsобязательный | integer (int64) | |
dateобязательный | string (date) | |
idleMsобязательный | integer (int64) | |
neutralMsобязательный | integer (int64) | |
offlineMsобязательный | integer (int64) | |
privateMsобязательный | integer (int64) | |
productiveMsобязательный | integer (int64) | |
productivityPct | number (double) | null | |
unproductiveMsобязательный | integer (int64) | |
DomainTotalDto
| Поле | Тип | Описание |
activeMsобязательный | integer (int64) | |
categoryKey | string | null | |
domainобязательный | string | |
level | string | null | |
percentageобязательный | number (double) | |
DomainUsageDto
| Поле | Тип | Описание |
activeMsобязательный | integer (int64) | |
categoryKey | string | null | |
domainобязательный | string | |
level | string | null | |
levelSource | string | null | |
EmailVerificationDto
Where the person stands with the e-mail verification (owner decision 3 Oct 2026, focus_auth::email_gate).
| Поле | Тип | Описание |
dueAt | string (date-time) | null | The deadline of an unverified account (Identity__EmailVerificationGraceHours after its creation). |
stateобязательный | string | verified, not_required (an account that never has to verify: invited, imported, SCIM, IdP-verified),
pending (unverified, before dueAt) or overdue (after dueAt: every request but a few answers 403
email_verification_required). |
ExportDefinitionDto
What an export contains (FAZ4 §6.1; focus_contracts::reports::export::ExportDefinition on the wire); a saved
template stores it without the date range. Every field is optional so that the validator reports what is wrong
(422 validation_failed with errors[{field, code}]).
| Поле | Тип | Описание |
columns | string[] | null | Column keys of the dataset in file order (1–40; a PDF at most 12). |
csvDialect | string | null | standard (default) or excel-tr (csv only). |
dataset | string | null | |
durationFormat | string | null | hms (default), hours or minutes. |
filters | ExportFiltersDto | null | |
format | string | null | xlsx, csv or pdf. |
groupBy | string | null | day, week, month, range or none (the dataset decides). |
options | ExportOptionsDto | null | |
ExportFiltersDto
Who is exported: a team, some users, or (neither) everyone the requester can see.
| Поле | Тип | Описание |
includeInactiveUsers | boolean | |
teamId | string | null | |
userIds | string | null[] | null | |
ExportJobDto
An export job as the panel lists and polls it.
| Поле | Тип | Описание |
createdAtобязательный | string (date-time) | |
datasetобязательный | string | |
errorCode | string | null | too_many_rows, too_many_rows_for_pdf, access_lost, feature_not_in_plan, canceled, internal_error. |
expiresAt | string (date-time) | null | |
fileName | string | null | |
fileSize | integer (int64) | null | |
finishedAt | string (date-time) | null | |
formatобязательный | string | |
fromобязательный | string (date) | |
groupBy | string | null | |
idобязательный | string (uuid) | |
localeобязательный | string | |
progressобязательный | integer (int32) | 0–100. |
rowCount | integer (int32) | null | |
startedAt | string (date-time) | null | |
statusобязательный | string | queued, running, succeeded, failed, canceled, expired. |
templateId | string (uuid) | null | |
templateKey | string | null | |
templateName | string | null | The saved template's name, while it still exists. |
toобязательный | string (date) | |
ExportOptionsDto
Dataset options; each applies to one dataset and is ignored by the others.
| Поле | Тип | Описание |
include | string | null | titles: titles, urls or both (default). |
includeCosts | boolean | null | projects (Faz 6): fill the rate, amount and currency columns (needs projects.costs.read, else 403). |
includeOpen | boolean | null | shifts: also open shifts. |
splitByUser | boolean | null | applications: one row per user and target. |
statuses | string | null[] | null | offline_time / absence: status filter (default approved). |
targetType | string | null | applications: app (default), domain or host. |
FieldError
One field error of a 400/422 body.
| Поле | Тип | Описание |
codeобязательный | string | Stable snake_case code (required, too_long, invalid, ...). |
fieldобязательный | string | JSON path of the field in camelCase (name, items[2].start), or the parameter/header name. |
message | string | null | |
HolidayRefDto
A holiday of a day (both names; name is the English one).
| Поле | Тип | Описание |
half | string | null | |
keyобязательный | string | Built-in key (republic_day, …) or custom. |
nameобязательный | string | |
nameEnобязательный | string | |
nameTrобязательный | string | |
source | string | null | builtin or tenant. |
HostUsageDto
| Поле | Тип | Описание |
activeMsобязательный | integer (int64) | |
domain | string | null | |
hostобязательный | string | |
levelобязательный | string | |
levelSourceобязательный | string | |
matchedKey | string | null | Key of the matching domain rule; null for the default. |
InvitationEmail
What happened to the invitation e-mail.
| Поле | Тип | Описание |
acceptUrl | string | null | The acceptance link, only when no e-mail is sent (not_configured, suppressed_reserved) and only in the
fresh answer (share it by hand). |
statusобязательный | string | queued; not_configured when no e-mail provider is set up; suppressed_reserved when the address is an
RFC 2606 / RFC 6761 reserved name (example.com, *.test, …) that is never e-mailed. Clients treat
suppressed_reserved like not_configured: nothing arrives, share acceptUrl by hand. |
InvitationRef
{"id","expiresAt"} of a created or re-sent invitation.
| Поле | Тип | Описание |
expiresAtобязательный | string | |
idобязательный | string (uuid) | |
InvitationResult
The answer of POST /v1/invitations and POST /v1/invitations/{id}/resend.
LevelContextDto
Which rules the single level of an aggregate list follows (FAZ2 §5 "Listelerde hangi kural").
| Поле | Тип | Описание |
kindобязательный | string | user (a userId filter: that user's current team), team (a teamId filter) or company. |
teamId | string (uuid) | null | |
MeMembership
The membership in the current organization.
| Поле | Тип | Описание |
idобязательный | string (uuid) | |
isTrackedобязательный | boolean | |
joinedAt | string | null | |
roleобязательный | string | |
statusобязательный | string | |
teamId | string (uuid) | null | |
teamName | string | null | |
timeZone | string | null | |
viewerTeamIdsобязательный | string (uuid)[] | |
MeOrganization
The current organization.
| Поле | Тип | Описание |
defaultLocaleобязательный | string | |
idобязательный | string (uuid) | |
nameобязательный | string | |
slugобязательный | string | |
statusобязательный | string | |
timeZoneобязательный | string | |
MeSession
The current session.
| Поле | Тип | Описание |
absoluteExpiresAtобязательный | string | |
amrобязательный | string[] | |
authTimeобязательный | string | |
clientIdобязательный | string | |
idобязательный | string (uuid) | |
idleExpiresAtобязательный | string | |
MeUser
The person (GET /v1/me → user).
| Поле | Тип | Описание |
emailобязательный | string | |
emailVerificationобязательный | EmailVerificationDto | The e-mail verification gate (owner decision 3 Oct 2026). |
emailVerifiedобязательный | boolean | |
fullName | string | null | |
idобязательный | string (uuid) | |
localeобязательный | string | |
MemberDto
A membership with its person (MemberDto).
| Поле | Тип | Описание |
createdAtобязательный | string | |
emailобязательный | string | |
emailVerifiedобязательный | boolean | |
fullName | string | null | |
idобязательный | string (uuid) | |
invitation | MemberInvitationDto | null | |
isTrackedобязательный | boolean | |
joinedAt | string | null | |
localeобязательный | string | |
roleобязательный | string | owner, admin, team_admin, manager, employee. |
statusобязательный | string | invited, active, suspended, left. |
teamId | string (uuid) | null | |
teamName | string | null | |
timeZone | string | null | |
unassignedManagerобязательный | boolean | A Manager with neither a team nor viewer teams (sees the whole company until assigned). |
userIdобязательный | string (uuid) | |
viewerTeamIdsобязательный | string (uuid)[] | |
MemberInvitationDto
The invitation of an invited member.
| Поле | Тип | Описание |
emailStatus | string | null | queued, sending, sent, failed, suppressed, not_configured, suppressed_reserved (an RFC 2606 /
RFC 6761 reserved domain, never e-mailed), or null before the first e-mail. |
expiresAtобязательный | string | |
idобязательный | string (uuid) | |
lastSentAtобязательный | string | |
sentCountобязательный | integer (int32) | |
MemberPage
A page of members (OpenAPI).
| Поле | Тип | Описание |
itemsобязательный | MemberDto[] | |
nextCursor | string | null | |
MemberRefDto
A member as a reference (current row): the connecting Admin of a connection, the owner of a webhook endpoint.
| Поле | Тип | Описание |
activeобязательный | boolean | The membership is active and (for an endpoint or a tenant connection) still an Owner or Admin. |
name | string | null | |
userIdобязательный | string (uuid) | |
NamedRefDto
A reference by id and display name (a client, a person, a task).
| Поле | Тип | Описание |
idобязательный | string (uuid) | |
nameобязательный | string | |
OrganizationChoice
One organization of the person (sec.user_memberships).
| Поле | Тип | Описание |
currentобязательный | boolean | |
idобязательный | string (uuid) | |
nameобязательный | string | |
roleобязательный | string | |
selectableобязательный | boolean | Can this session's sign-in method open it (design §4.5.3)? |
PatchMember
PATCH /v1/members/{id}.
| Поле | Тип | Описание |
isTracked | boolean | null | |
role | string | null | admin, team_admin, manager or employee (the Owner is only transferred). |
teamId | string (uuid) | null | Primary team; null removes it. |
timeZone | string | null | IANA zone of the membership; null follows the organization. |
viewerTeamIds | string (uuid)[] | null | Extra read-only teams (Manager and TeamAdmin only). |
PatchTeam
PATCH /v1/teams/{id}.
| Поле | Тип | Описание |
description | string | null | |
name | string | null | |
PeriodReportDto
GET /v1/reports/productivity.
PlanAbsenceDto
| Поле | Тип | Описание |
colorобязательный | string | |
countsAsWorkedобязательный | boolean | timeEffect == worked. |
endTime | string | null | |
half | string | null | |
idобязательный | string (uuid) | |
startTime | string | null | Local start and end of an hours absence. |
statusобязательный | string | approved or pending. |
timeEffectобязательный | string | leave, worked or none. |
typeKey | string | null | |
typeName | string | null | null for a built-in type that was not renamed (the UI translates typeKey). |
unitобязательный | string | days, half_day or hours. |
PlanShiftDto
| Поле | Тип | Описание |
color | string | null | |
endобязательный | string (date-time) | |
endTimeобязательный | string | Local end; before the start for a night shift. |
idобязательный | string (uuid) | |
locationобязательный | string | |
minMinutesобязательный | integer (int32) | |
startобязательный | string (date-time) | |
startTimeобязательный | string | Local start (HH:mm, the shift's zone). |
Problem
RFC 9457 problem details (application/problem+json).
| Поле | Тип | Описание |
action | string | null | Permission key of a 403 (teams.create). |
codeобязательный | string | Stable snake_case error code (catalog error-codes.json). |
detail | string | null | |
errors | FieldError[] | null | |
requiredPlan | string | null | Lowest plan that includes the feature (402 feature_not_in_plan). |
retryAfterSeconds | integer (int32) | null | Seconds to wait (429, 503; also the Retry-After header). |
statusобязательный | integer (int32) | |
titleобязательный | string | English title of the code (clients translate code). |
traceId | string | null | W3C trace id of the request. |
typeобязательный | string | Help page of the error code: https://workify360.com/help/errors/<code>/. |
ProjectAmountDto
The amounts of one currency (rates are applied per allocation day and layer).
| Поле | Тип | Описание |
billableMinorобязательный | integer (int64) | The billable hours at their rate. |
costMinorобязательный | integer (int64) | Every allocated hour at its rate. |
currencyобязательный | string | |
ProjectBudgetUsageDto
The use of a project's budget, all time.
| Поле | Тип | Описание |
budgetMinor | integer (int64) | null | null unless costsIncluded. |
budgetMinutes | integer (int64) | null | |
kindобязательный | string | hours or amount. |
projectIdобязательный | string (uuid) | |
usedMinor | integer (int64) | null | The cost in the project's currency; null unless costsIncluded. |
usedMsобязательный | integer (int64) | |
usedRatio | string | null | Used / budget, 4 decimals (null for an amount budget without costsIncluded). |
ProjectDto
A project.
| Поле | Тип | Описание |
accessобязательный | string | everyone or members. |
archivedобязательный | boolean | |
budget | BudgetDto | null | |
client | NamedRefDto | null | |
code | string | null | |
color | string | null | |
createdAtобязательный | string (date-time) | |
currencyобязательный | string | The currency of the project's rates and amount budget. |
description | string | null | |
endDate | string (date) | null | |
idобязательный | string (uuid) | |
isBillableобязательный | boolean | |
memberCountобязательный | integer (int64) | |
myRole | string | null | The caller's role in the project team (member, manager), null outside it. |
nameобязательный | string | |
permissionsобязательный | ProjectPermissionsDto | |
spentMsобязательный | integer (int64) | Every allocation of the project, all time. |
startDate | string (date) | null | |
statusобязательный | string | active, on_hold or completed. |
taskCountобязательный | integer (int64) | |
updatedAtобязательный | string (date-time) | |
ProjectPage
GET /v1/projects.
| Поле | Тип | Описание |
itemsобязательный | ProjectDto[] | |
nextCursor | string | null | |
ProjectPermissionsDto
What the caller may do with a project (decided from the current rows, §5.3).
| Поле | Тип | Описание |
archiveобязательный | boolean | |
deleteобязательный | boolean | Only a project without time. |
editобязательный | boolean | The project's fields (Owners and Admins). |
manageMembersобязательный | boolean | The team (an Admin or the project's manager; only an Admin changes managers). |
manageTasksобязательный | boolean | Tasks (an Admin or the project's manager). |
trackобязательный | boolean | The caller may track time on it now. |
ProjectRefDto
A project reference of an allocation.
| Поле | Тип | Описание |
color | string | null | #RRGGBB. |
idобязательный | string (uuid) | |
nameобязательный | string | |
ProjectReportDto
GET /v1/reports/projects.
| Поле | Тип | Описание |
budgetsобязательный | ProjectBudgetUsageDto[] | |
costsIncludedобязательный | boolean | The caller sees rates and amounts (projects.costs.read). |
fromобязательный | string (date) | |
groupByобязательный | string[] | |
rowsобязательный | ProjectReportRowDto[] | |
toобязательный | string (date) | |
totalsобязательный | ProjectReportTotalsDto | |
ProjectReportKeysDto
The dimensions of a row (the ones not grouped by are null).
| Поле | Тип | Описание |
clientId | string (uuid) | null | |
clientName | string | null | |
date | string (date) | null | The allocation's local day (groupBy day). |
projectId | string (uuid) | null | |
projectName | string | null | |
taskId | string (uuid) | null | |
taskName | string | null | |
userId | string (uuid) | null | |
userName | string | null | |
ProjectReportRowDto
One row of the project report.
| Поле | Тип | Описание |
allocatedMsобязательный | integer (int64) | |
amounts | ProjectAmountDto[] | null | null unless costsIncluded. |
billableMsобязательный | integer (int64) | |
keysобязательный | ProjectReportKeysDto | |
nonBillableMsобязательный | integer (int64) | |
productiveMs | integer (int64) | null | With includeProductive only. |
unratedMsобязательный | integer (int64) | Time without any rate (it is left out of the amounts). |
ProjectReportTotalsDto
The totals of the report.
| Поле | Тип | Описание |
allocatedMsобязательный | integer (int64) | |
amounts | ProjectAmountDto[] | null | |
billableMsобязательный | integer (int64) | |
nonBillableMsобязательный | integer (int64) | |
productiveMs | integer (int64) | null | |
unratedMsобязательный | integer (int64) | |
ProjectRequest
POST /v1/projects; PUT /v1/projects/{id} sends the whole body.
| Поле | Тип | Описание |
access | string | null | everyone (default) or members. |
budget | BudgetRequest | null | |
clientId | string (uuid) | null | |
code | string | null | [A-Za-z0-9._-]{1,32}, unique among active projects. |
color | string | null | #RRGGBB. |
currency | string | null | TRY, USD or EUR; locked once the project has rates or invoice lines (409 project_currency_locked). |
description | string | null | |
endDate | string (date) | null | |
isBillable | boolean | null | Default true. |
name | string | null | |
startDate | string (date) | null | |
status | string | null | active (default), on_hold or completed. |
ReportPeriodDto
One period of a grouped report: its key and bounds, then the figures.
ReportScopeDto
What the caller can see (FAZ1 AccessPolicy.ScopeOf).
| Поле | Тип | Описание |
kindобязательный | string | company, teams or self. |
teamIdsобязательный | string (uuid)[] | The visible teams of a teams scope, sorted; empty otherwise (company = all). |
unassignedFallbackобязательный | boolean | A Manager without teams who sees the whole company until assigned. |
ReportSubjectDto
Whom a report is about.
| Поле | Тип | Описание |
id | string (uuid) | null | |
kindобязательный | string | company, team or user. |
name | string | null | |
RotatedWebhookSecretDto
RotatedWebhookSecretDto: the new signing secret, shown once.
| Поле | Тип | Описание |
previousSecretExpiresAtобязательный | string | Until then deliveries carry both signatures. |
secretобязательный | string | whsec_<base64>: shown once, never again. |
ShiftBody
ShiftBody of POST /v1/shifts, the bulk items and PUT /v1/shifts/{id} (the whole body). Fields left null are
filled from templateId.
| Поле | Тип | Описание |
breakMinutes | integer (int32) | null | |
color | string | null | |
date | string (date) | null | |
endTime | string | null | |
location | string | null | |
minMinutes | integer (int32) | null | null = the template's, else duration − break. |
note | string | null | |
startTime | string | null | |
teamId | string (uuid) | null | Required for an open shift; ignored for an assigned one (the user's current team is written). |
templateId | string (uuid) | null | |
userId | string (uuid) | null | null = an open shift. |
ShiftDto
A shift: local fields, UTC instants, the caller's permissions.
| Поле | Тип | Описание |
breakMinutesобязательный | integer (int32) | |
color | string | null | |
createdAtобязательный | string (date-time) | |
createdByобязательный | CalendarUserRefDto | |
crossesMidnightобязательный | boolean | |
dateобязательный | string (date) | |
durationMinutesобязательный | integer (int32) | |
endобязательный | string (date-time) | |
endTimeобязательный | string | |
idобязательный | string (uuid) | |
locationобязательный | string | |
minMinutesобязательный | integer (int32) | |
note | string | null | |
openобязательный | boolean | No user assigned. |
permissionsобязательный | ShiftPermissionsDto | |
sourceобязательный | string | manual, template, copy or request. |
startобязательный | string (date-time) | |
startTimeобязательный | string | |
teamId | string (uuid) | null | Open shift: its team; assigned: the user's team when it was written. |
teamName | string | null | |
templateId | string (uuid) | null | |
templateName | string | null | |
timeZoneобязательный | string | |
updatedAtобязательный | string (date-time) | |
user | CalendarUserRefDto | null | |
userId | string (uuid) | null | null for an open shift. |
ShiftListDto
GET /v1/shifts (the shifts **starting** in the range).
| Поле | Тип | Описание |
itemsобязательный | ShiftDto[] | |
ShiftPermissionsDto
| Поле | Тип | Описание |
canDeleteобязательный | boolean | |
canEditобязательный | boolean | |
canPickUpобязательный | boolean | |
canRequestSwapобязательный | boolean | |
SummaryDto
The summary of the visible users over a range.
| Поле | Тип | Описание |
absenceCreditMsобязательный | integer (int64) | |
absentDaysобязательный | integer (int32) | |
activeMsобязательный | integer (int64) | |
activeUserCountобязательный | integer (int32) | |
atWorkMsобязательный | integer (int64) | |
daysобязательный | DayTotalDto[] | |
deletedMsобязательный | integer (int64) | |
domainsобязательный | DomainTotalDto[] | Top 10. |
effectivenessPct | number (double) | null | Average of the users' range Effectiveness % (inactive tracked users included). |
fromобязательный | string (date) | |
holidayDaysобязательный | number (double) | |
idleMsобязательный | integer (int64) | |
inactiveUsersобязательный | UserTotalDto[] | Tracked users without activity in the range (zero totals, attendance fields), by user id. |
lateDaysобязательный | integer (int32) | |
leaveDaysобязательный | number (double) | |
leftEarlyDaysобязательный | integer (int32) | |
levelContextобязательный | LevelContextDto | |
meetingMsобязательный | integer (int64) | |
neutralMsобязательный | integer (int64) | |
offlineMsобязательный | integer (int64) | |
overtimeMsобязательный | integer (int64) | |
privateMsобязательный | integer (int64) | |
productiveMsобязательный | integer (int64) | |
productivityPct | number (double) | null | Average of the users' range Productivity %. |
scopeобязательный | ReportScopeDto | |
shiftDaysобязательный | integer (int32) | |
teamsобязательный | TeamTotalDto[] | By current team: named teams by name, the teamId: null row last. |
toобязательный | string (date) | |
topAppsобязательный | AppTotalDto[] | Top 10; name is "Offline time" for the reserved offline keys. |
unproductiveMsобязательный | integer (int64) | |
usersобязательный | UserTotalDto[] | One row per user with a computed day in the range, by activeMs. |
workedMsобязательный | integer (int64) | |
TargetItemDto
| Поле | Тип | Описание |
activeMsобязательный | integer (int64) | |
categoryKey | string | null | |
categorySourceобязательный | string | tenant, builtin or none. |
domain | string | null | |
levelобязательный | string | |
levelSourceобязательный | string | team, company or default. |
matchedKey | string | null | |
nameобязательный | string | |
percentageобязательный | number (double) | |
targetKeyобязательный | string | |
targetTypeобязательный | string | app for apps, domain for domains and hosts. |
userCountобязательный | integer (int32) | |
TargetListDto
The "Apps & URLs" list.
| Поле | Тип | Описание |
fromобязательный | string (date) | |
itemsобязательный | TargetItemDto[] | By active time descending, then key. |
levelContextобязательный | LevelContextDto | |
nextCursor | string | null | |
toобязательный | string (date) | |
totalобязательный | integer (int32) | Targets matching the filters (before paging). |
totalActiveMsобязательный | integer (int64) | Active time over every target of the type before the filters (the percentage base). |
typeобязательный | string | app, domain or host. |
TaskDto
A task.
| Поле | Тип | Описание |
archivedобязательный | boolean | |
assignee | NamedRefDto | null | |
createdAtобязательный | string (date-time) | |
description | string | null | |
dueDate | string (date) | null | |
effectiveBillableобязательный | boolean | |
estimateMinutes | integer (int64) | null | |
idобязательный | string (uuid) | |
isBillable | boolean | null | null takes the project's value. |
nameобязательный | string | |
permissionsобязательный | TaskPermissionsDto | |
projectIdобязательный | string (uuid) | |
sortOrderобязательный | integer (int64) | |
spentMsобязательный | integer (int64) | |
statusобязательный | string | open, in_progress or done. |
updatedAtобязательный | string (date-time) | |
TaskPage
GET /v1/projects/{id}/tasks.
| Поле | Тип | Описание |
itemsобязательный | TaskDto[] | |
nextCursor | string | null | |
TaskPermissionsDto
What the caller may do with a task.
| Поле | Тип | Описание |
deleteобязательный | boolean | Only a task without time. |
editобязательный | boolean | |
TaskRequest
POST /v1/projects/{id}/tasks; PUT /v1/tasks/{id} sends the whole body.
| Поле | Тип | Описание |
assigneeUserId | string (uuid) | null | Must be able to track time on the project (422 project_not_trackable). |
description | string | null | |
dueDate | string (date) | null | |
estimateMinutes | integer (int64) | null | 1–1 000 000. |
isBillable | boolean | null | null takes the project's value. |
name | string | null | |
sortOrder | integer (int64) | null | |
status | string | null | open (default), in_progress or done. |
TeamDto
A team with its size and leads (TeamDto).
| Поле | Тип | Описание |
archivedAt | string | null | |
createdAtобязательный | string | |
description | string | null | |
idобязательный | string (uuid) | |
leadsобязательный | object[] | TeamAdmins and Managers of the team: [{membershipId, userId, fullName, role}]. |
memberCountобязательный | integer (int64) | Members whose primary team this is (left members excluded). |
nameобязательный | string | |
updatedAtобязательный | string | |
TeamPage
A page of teams (OpenAPI).
| Поле | Тип | Описание |
itemsобязательный | TeamDto[] | |
nextCursor | string | null | |
TeamTotalDto
One team row of a summary (current teams; percentages the members' average).
| Поле | Тип | Описание |
absenceCreditMsобязательный | integer (int64) | |
absentDaysобязательный | integer (int32) | |
activeMsобязательный | integer (int64) | |
activeUserCountобязательный | integer (int32) | |
effectivenessPct | number (double) | null | |
holidayDaysобязательный | number (double) | |
idleMsобязательный | integer (int64) | |
lateDaysобязательный | integer (int32) | |
leaveDaysобязательный | number (double) | |
leftEarlyDaysобязательный | integer (int32) | |
memberCountобязательный | integer (int32) | |
neutralMsобязательный | integer (int64) | |
offlineMsобязательный | integer (int64) | |
overtimeMsобязательный | integer (int64) | |
productiveMsобязательный | integer (int64) | |
productivityPct | number (double) | null | |
shiftDaysобязательный | integer (int32) | |
teamId | string (uuid) | null | null for the users without a team. |
teamName | string | null | |
unproductiveMsобязательный | integer (int64) | |
workedMsобязательный | integer (int64) | |
TimeEntryDecisionRequest
POST /v1/time-entries/{id}/decision.
| Поле | Тип | Описание |
decision | string | null | approve or reject. |
note | string | null | At most 500 characters. |
TimeEntryDto
An offline entry or a deletion (design §8.2).
| Поле | Тип | Описание |
createdAtобязательный | string (date-time) | |
createdByобязательный | TimeEntryUserRefDto | |
dateобязательный | string (date) | The user's local day of the entry, in the zone effective when it was written. |
decidedAt | string (date-time) | null | |
decidedBy | TimeEntryUserRefDto | null | |
decisionNote | string | null | |
description | string | null | |
durationMsобязательный | integer (int64) | |
endобязательный | string (date-time) | |
idобязательный | string (uuid) | |
kindобязательный | string | offline or deletion. |
level | string | null | Offline: productive, neutral or unproductive; deletion: null. |
permissionsобязательный | TimeEntryPermissionsDto | |
projectId | string (uuid) | null | Always null until projects (Phase 6). |
sourceобязательный | string | manual (Phase 8 adds calendar). |
startобязательный | string (date-time) | |
statusобязательный | string | pending, approved or rejected. |
timeZoneобязательный | string | |
updatedAtобязательный | string (date-time) | |
userIdобязательный | string (uuid) | |
TimeEntryPage
GET /v1/time-entries: by start.
| Поле | Тип | Описание |
itemsобязательный | TimeEntryDto[] | |
nextCursor | string | null | |
TimeEntryPermissionsDto
What the caller may do with the entry (TimeEntryPolicy.PermissionsFor), the same on every endpoint.
| Поле | Тип | Описание |
canApproveобязательный | boolean | |
canDeleteобязательный | boolean | |
canEditобязательный | boolean | |
TimeEntryUserRefDto
A user reference of an entry (fullName from the directory; null when unknown).
| Поле | Тип | Описание |
fullName | string | null | |
idобязательный | string (uuid) | |
TimeIntervalDto
A UTC interval without any detail (e.g. a private interval).
| Поле | Тип | Описание |
endобязательный | string (date-time) | |
startобязательный | string (date-time) | |
TimerAtRequest
POST /v1/me/timer/stop and /discard.
| Поле | Тип | Описание |
at | string (date-time) | null | |
TimerCommandResultDto
The result of a command (200 also when it did not apply).
| Поле | Тип | Описание |
appliedобязательный | boolean | |
closedобязательный | AllocationDto[] | The allocations written from the segment this command closed (may be empty). |
reason | string | null | stale, not_running or unchanged; null when applied. |
timerобязательный | TimerDto | |
TimerDto
GET /v1/me/timer (ETag: "v<rowVersion>", "v0" before the first command).
| Поле | Тип | Описание |
autoStopAt | string (date-time) | null | startedAt + 24 hours. |
effectiveBillable | boolean | null | |
isBillable | boolean | null | |
last | TimerLastDto | null | |
note | string | null | |
project | TimerProjectDto | null | |
segmentId | string (uuid) | null | |
serverTimeобязательный | string (date-time) | The server's clock (clients compute the elapsed time against it). |
source | string | null | web, desktop or api. |
startedAt | string (date-time) | null | |
stateобязательный | string | running or stopped. |
task | NamedRefDto | null | |
TimerLastDto
The segment that ended last.
| Поле | Тип | Описание |
endReasonобязательный | string | stop, switch, autostop or discard. |
endedAtобязательный | string (date-time) | |
segmentIdобязательный | string (uuid) | |
startedAtобязательный | string (date-time) | |
TimerProjectDto
The project of the running segment.
| Поле | Тип | Описание |
clientName | string | null | |
color | string | null | |
idобязательный | string (uuid) | |
nameобязательный | string | |
TimerStartRequest
POST /v1/me/timer/start (Idempotency-Key: the client's command id): start, or switch while running.
| Поле | Тип | Описание |
at | string (date-time) | null | The client's clock when the command was given (default: the server's now; at most 5 minutes ahead, at most 7
days back). |
isBillable | boolean | null | |
note | string | null | |
projectId | string (uuid) | null | |
source | string | null | web (default), desktop or api. |
taskId | string (uuid) | null | |
UpdateTimeEntryRequest
PUT /v1/time-entries/{id}: the whole editable body (kind and user never change; If-Match instead of version).
| Поле | Тип | Описание |
description | string | null | |
end | string (date-time) | null | |
level | string | null | |
projectId | string (uuid) | null | |
start | string (date-time) | null | |
UpdateWebhookEndpointRequest
PATCH /v1/webhook-endpoints/{id} (If-Match).
| Поле | Тип | Описание |
description | string | null | null clears it. |
eventTypes | string[] | null | |
status | string | null | active (also opens a disabled endpoint and resets its failure counters) or paused. |
takeOver | boolean | null | true: the caller becomes the endpoint's owner (lifts an owner_inactive pause). |
url | string | null | |
UserDailyDto
A user's days: computed days plus the workdays without activity up to the user's today.
| Поле | Тип | Описание |
daysобязательный | UserDayDto[] | |
fromобязательный | string (date) | |
teamId | string (uuid) | null | The user's current primary team (its rules classify every day). |
timeZoneобязательный | string | |
toобязательный | string (date) | |
userIdобязательный | string (uuid) | |
UserDayDto
| Поле | Тип | Описание |
absence | DayAbsenceDto | null | |
absenceCreditMsобязательный | integer (int64) | |
activeMsобязательный | integer (int64) | |
afkCoverageобязательный | boolean | |
arrivalAt | string (date-time) | null | |
atWorkMsобязательный | integer (int64) | |
attendanceStatus | string | null | onTime, late, absent, notStarted, dayOff, onLeave, holiday; null outside the directory. |
classifiedобязательный | boolean | |
dateобязательный | string (date) | |
dayOffWorkedMsобязательный | integer (int64) | |
deletedMsобязательный | integer (int64) | |
effectivenessPct | number (double) | null | |
eventCountобязательный | integer (int64) | |
expectedWorkMsобязательный | integer (int64) | |
holiday | DailyHolidayDto | null | |
idleMsобязательный | integer (int64) | |
lateByMsобязательный | integer (int64) | |
leftAt | string (date-time) | null | |
leftEarlyобязательный | boolean | |
leftEarlyByMsобязательный | integer (int64) | |
meetingMsобязательный | integer (int64) | |
neutralMsобязательный | integer (int64) | |
offlineMsобязательный | integer (int64) | |
overtimeMsобязательный | integer (int64) | |
planKind | string | null | schedule, shift, dayOff or holiday. |
privateMsобязательный | integer (int64) | |
productiveMsобязательный | integer (int64) | |
productivityPct | number (double) | null | |
shiftCountобязательный | integer (int32) | |
targetMsобязательный | integer (int64) | |
topApp | string | null | Display name of the app with the most active time. |
unproductiveMsобязательный | integer (int64) | |
workday | boolean | null | |
workedMsобязательный | integer (int64) | |
UserTotalDto
One user of a summary.
| Поле | Тип | Описание |
absenceCreditMsобязательный | integer (int64) | |
absentDays | integer (int32) | null | Only for tracked users. |
activeDaysобязательный | integer (int32) | Local days with active time. |
activeMsобязательный | integer (int64) | |
arrivalAt | string (date-time) | null | Earliest arrival and latest leave in the range. |
atWorkMsобязательный | integer (int64) | |
classifiedDaysобязательный | integer (int32) | |
dayOffWorkedMsобязательный | integer (int64) | |
deletedMsобязательный | integer (int64) | |
effectivenessPct | number (double) | null | null without a target and for users missing from the directory. |
email | string | null | |
eventCountобязательный | integer (int64) | |
fullName | string | null | |
holidayDaysобязательный | number (double) | |
idleMsобязательный | integer (int64) | |
lateDays | integer (int32) | null | |
leaveDaysобязательный | number (double) | |
leftAt | string (date-time) | null | |
leftEarlyDays | integer (int32) | null | |
meetingMsобязательный | integer (int64) | |
neutralMsобязательный | integer (int64) | |
offlineMsобязательный | integer (int64) | |
overtimeDaysобязательный | integer (int32) | |
overtimeMsобязательный | integer (int64) | |
privateMsобязательный | integer (int64) | |
productiveMsобязательный | integer (int64) | |
productivityPct | number (double) | null | |
shiftDaysобязательный | integer (int32) | |
targetMs | integer (int64) | null | |
teamId | string (uuid) | null | |
teamName | string | null | |
timeZoneобязательный | string | |
unproductiveMsобязательный | integer (int64) | |
userIdобязательный | string (uuid) | |
workdays | integer (int32) | null | |
workedMsобязательный | integer (int64) | |
WebhookDeliveryDetailDto
GET /v1/webhook-endpoints/{id}/deliveries/{deliveryId}: the delivery and the body that was (or is) sent.
WebhookDeliveryDto
WebhookDeliveryDto.
| Поле | Тип | Описание |
attemptsобязательный | integer (int32) | |
createdAtобязательный | string | |
deliveredAt | string | null | |
eventIdобязательный | string (uuid) | The webhook-id header. |
eventTypeобязательный | string | |
idобязательный | string | A 64-bit integer as a string. |
lastDurationMs | integer (int32) | null | |
lastError | string | null | timeout, connect, tls, not_allowed, http_<code>, not_in_plan, owner_inactive. |
lastStatusCode | integer (int32) | null | |
nextAttemptAt | string | null | |
statusобязательный | string | pending, succeeded, failed, dead. |
WebhookDeliveryPage
GET /v1/webhook-endpoints/{id}/deliveries (newest first).
WebhookEndpointDto
WebhookEndpointDto.
| Поле | Тип | Описание |
createdAtобязательный | string | |
description | string | null | |
eventTypesобязательный | string[] | |
idобязательный | string (uuid) | |
ownerобязательный | MemberRefDto | The member who owns the endpoint (G1: a delivery needs an active Owner or Admin owner). |
previousSecretExpiresAt | string | null | After a rotation the previous secret still signs until then (24 hours). |
secretPrefixобязательный | string | The first 8 characters of the signing secret (whsec_Kx); never the secret. |
statsобязательный | WebhookEndpointStatsDto | |
statusобязательный | string | active, paused, disabled. |
statusReason | string | null | manual, owner_inactive, failing, gone; null while active. |
updatedAtобязательный | string | |
urlобязательный | string | |
versionобязательный | integer (int64) | row_version (ETag: "v<n>", If-Match of PATCH). |
WebhookEndpointPage
GET /v1/webhook-endpoints.
WebhookEndpointStatsDto
The delivery statistics of an endpoint.
| Поле | Тип | Описание |
consecutiveFailuresобязательный | integer (int32) | |
lastFailureAt | string | null | |
lastSuccessAt | string | null | |
WebhookEventDto
One event type of GET /v1/webhook-events.
| Поле | Тип | Описание |
availableобязательный | boolean | The tenant's plan has the feature: an endpoint may subscribe. |
descriptionобязательный | string | One English sentence (the panel translates by type). |
feature | string | null | The plan feature the event needs (null: every plan with api_access). |
objectобязательный | string | The data.object of the delivery body. |
typeобязательный | string | <object>.<verb>, e.g. time_entry.approved. |
WebhookEventsDto
GET /v1/webhook-events.
WebhookTestDto
202 of POST /v1/webhook-endpoints/{id}/test.
| Поле | Тип | Описание |
deliveryIdобязательный | string | The delivery of the test event (a string: the deliveries' id is a 64-bit integer). |