{"openapi":"3.0.0","paths":{"/v1/issues/query":{"post":{"description":"Returns a paginated list of Issues. Supports filtering by team, interval, and search text.","operationId":"PublicIssueController_queryIssues","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetIssuesQueryDTO"}}}},"responses":{"200":{"description":"Issues queried successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedIssuesResponseDTO"}}}}},"summary":"Query Issues","tags":["Issues"]}},"/v1/issues/company":{"get":{"description":"Returns every non-archived, non-deleted Issue across the whole company, paginated by cursor. Restricted to company Owners and Admins; other roles receive a 403. Pass `pagination.nextToken` from the previous response to fetch the next page.","operationId":"PublicIssueController_findByCompany","parameters":[{"name":"limit","required":false,"in":"query","description":"Maximum number of items to return","schema":{"minimum":1,"maximum":100,"default":20,"type":"number"}},{"name":"nextToken","required":false,"in":"query","description":"Opaque cursor from a previous response's `pagination.nextToken`. Omit to fetch the first page.","schema":{"type":"string"}},{"name":"completed","required":false,"in":"query","description":"Filter by completed status","schema":{"example":false,"type":"boolean"}},{"name":"archived","required":false,"in":"query","description":"Include archived Issues (excluded by default)","schema":{"default":false,"type":"boolean"}},{"name":"deleted","required":false,"in":"query","description":"Include deleted Issues (excluded by default)","schema":{"default":false,"type":"boolean"}},{"name":"searchText","required":false,"in":"query","description":"Search text to match against title, description, and comments","schema":{"example":"follow up","type":"string"}},{"name":"title","required":false,"in":"query","description":"Filter by title match","schema":{"example":"Cash flow projections are off","type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort results by. `id` sorts by creation order and is the default when omitted. `_id` is a deprecated alias for `id`, still accepted for existing callers.","schema":{"type":"string","enum":["createdDate","completedDate","title","id"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort direction","schema":{"default":"desc","type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Issues retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedIssueSummaryResponseDTO"}}}}},"summary":"List company Issues","tags":["Issues"]}},"/v1/issues/{issueId}":{"get":{"description":"Returns a single Issue by its Id.","operationId":"PublicIssueController_getIssue","parameters":[{"name":"issueId","required":true,"in":"path","description":"The Issue Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"responses":{"200":{"description":"Issue retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueResponseDTO"}}}}},"summary":"Get an Issue by Id","tags":["Issues"]},"patch":{"description":"Partially updates an Issue. Only fields included in the request body are changed.","operationId":"PublicIssueController_updateIssue","parameters":[{"name":"issueId","required":true,"in":"path","description":"The Issue Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIssueDTO"}}}},"responses":{"200":{"description":"Issue updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueResponseDTO"}}}},"400":{"description":"Only one of linkedItemId/linkedItemType was provided"},"403":{"description":"linkedItemId was provided, and the authenticated user's role cannot create links. Any other fields in the request were still updated, and the message says so."},"404":{"description":"linkedItemId was provided, and no such item exists in the caller's company"},"409":{"description":"linkedItemId was provided, and the Issue is already linked to that item"},"502":{"description":"linkedItemId was provided, and the link could not be created at this time. The message says whether the other fields in the request were updated."}},"summary":"Update an Issue","tags":["Issues"]},"delete":{"description":"Permanently deletes an Issue.","operationId":"PublicIssueController_deleteIssue","parameters":[{"name":"issueId","required":true,"in":"path","description":"The Issue Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"responses":{"204":{"description":"Issue deleted successfully"}},"summary":"Delete an Issue","tags":["Issues"]}},"/v1/issues":{"post":{"description":"Creates a new Issue for the specified team.","operationId":"PublicIssueController_createIssue","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicIssueDTO"}}}},"responses":{"201":{"description":"Issue created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueResponseDTO"}}}},"400":{"description":"Only one of linkedItemId/linkedItemType was provided"},"404":{"description":"linkedItemId was provided, and no such item exists in the caller's company"},"502":{"description":"linkedItemId was provided, and the Issue was created but could not be linked. The message names the new Issue, so the link can be retried with POST /issues/:issueId/links."}},"summary":"Create an Issue","tags":["Issues"]}},"/v1/issues/{issueId}/comments":{"post":{"description":"Appends one comment to the Issue, attributed to the authenticated user, and returns the full comment list including the new one. Send just the comment - the existing ones are preserved for you. Callers who cannot edit the Issue in Ninety receive a 403.","operationId":"PublicIssueController_addComment","parameters":[{"name":"issueId","required":true,"in":"path","description":"The Issue Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommentDTO"}}}},"responses":{"201":{"description":"Comment added successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommentResponseDTO"}}}}}},"summary":"Add a comment to an Issue","tags":["Issues"]}},"/v1/issues/{issueId}/links":{"post":{"description":"Creates a link between an existing Issue and an existing To-Do, Rock, or Milestone, without changing any of the Issue's own fields. The Issue and the linked item must both belong to the same company as the authenticated caller.\n\nRequires a role that can create items (Managee or higher), the same as editing the Issue in the app. The caller must be on the Issue's Team, or be an Admin or Owner; otherwise the Issue is reported as not found.","operationId":"PublicIssueController_linkIssue","parameters":[{"name":"issueId","required":true,"in":"path","description":"The Issue Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkIssueDTO"}}}},"responses":{"201":{"description":"Link created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueLinkedItemResponseDTO"}}}},"403":{"description":"The authenticated user's role cannot create links"},"404":{"description":"Issue not found, or linked item not found in the caller's company"},"409":{"description":"The Issue is already linked to that item"}},"summary":"Link an Issue to a To-Do, Rock, or Milestone","tags":["Issues"]}},"/v1/issues/{issueId}/links/{linkedItemId}":{"delete":{"description":"Removes an existing link, whichever side it was created from. Does not change any of the Issue's own fields.\n\nRequires a role that can edit items, the same as editing the Issue in the app. The caller must be on the Issue's Team, or be an Admin or Owner; otherwise the Issue is reported as not found.","operationId":"PublicIssueController_unlinkIssue","parameters":[{"name":"issueId","required":true,"in":"path","description":"The Issue Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}},{"name":"linkedItemId","required":true,"in":"path","description":"The Id of the linked To-Do, Rock, or Milestone","schema":{"example":"507f1f77bcf86cd799439015","type":"string"}}],"responses":{"204":{"description":"Link removed successfully"},"403":{"description":"The authenticated user's role cannot remove links"},"404":{"description":"Issue not found, or no link exists between this Issue and the specified item"}},"summary":"Remove a link between an Issue and a To-Do, Rock, or Milestone","tags":["Issues"]}},"/v1/todos":{"post":{"description":"Creates a new To-Do. Omit `teamId` (or pass an empty string) to create a personal To-Do, and pass `userId` to assign it to someone other than yourself. Which assignments you may make depends on your role: a company Owner can assign onto any Team in the company, while other roles are held to the Teams they belong to and receive a 403 otherwise.","operationId":"PublicTodoController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTodoDTO"}}}},"responses":{"201":{"description":"To-Do created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoResponseDTO"}}}},"403":{"description":"The authenticated User may not create this To-Do - typically the Team named by `teamId` is one they are not a member of. The `message` names the reason, so pick a different Team or assignee rather than retrying the same request."}},"summary":"Create a To-Do","tags":["To-Dos"]}},"/v1/todos/query":{"post":{"description":"Returns a list of To-Dos matching the provided filters","operationId":"PublicTodoController_queryTodos","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTodosQueryDTO"}}}},"responses":{"200":{"description":"To-Dos queried successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TodoResponseDTO"}}}}}},"summary":"Query To-Dos","tags":["To-Dos"]}},"/v1/todos/query/paged":{"post":{"description":"Returns one page of To-Dos matching the provided filters, plus the total number of matches. Page through the results with `page` (1-based) and `pageSize` (max 100); pass `sort` whenever you intend to read more than one page, so the ordering stays stable between calls.","operationId":"PublicTodoController_queryTodosPaged","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTodosQueryDTO"}}}},"responses":{"200":{"description":"To-Dos queried successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedTodosResponseDTO"}}}}},"summary":"Query To-Dos with pagination metadata","tags":["To-Dos"]}},"/v1/todos/company":{"get":{"description":"Returns every non-personal To-Do across the whole company, regardless of userId or teamId, paginated by cursor. Restricted to company Owners and Admins; other roles receive a 403. Pass `pagination.nextToken` from the previous response to fetch the next page. Status, date, team and series fields are rolling out per company and may be absent.","operationId":"PublicTodoController_findByCompany","parameters":[{"name":"limit","required":false,"in":"query","description":"Maximum number of items to return","schema":{"minimum":1,"maximum":100,"default":20,"type":"number"}},{"name":"nextToken","required":false,"in":"query","description":"Opaque cursor from a previous response's `pagination.nextToken`. Omit to fetch the first page.","schema":{"type":"string"}},{"name":"completed","required":false,"in":"query","description":"Filter by completed status","schema":{"example":false,"type":"boolean"}},{"name":"archived","required":false,"in":"query","description":"Include archived To-Dos (excluded by default)","schema":{"default":false,"type":"boolean"}},{"name":"deleted","required":false,"in":"query","description":"Include deleted To-Dos (excluded by default)","schema":{"default":false,"type":"boolean"}},{"name":"searchText","required":false,"in":"query","description":"Search text to match against title, description, and comments","schema":{"example":"follow up","type":"string"}},{"name":"title","required":false,"in":"query","description":"Filter by title match","schema":{"example":"Follow up with client","type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort results by. Defaults to insertion order when omitted.","schema":{"type":"string","enum":["createdDate","completedDate","title"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort direction","schema":{"default":"desc","type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"To-Dos retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedTodoSummaryResponseDTO"}}}}},"summary":"List company To-Dos","tags":["To-Dos"]}},"/v1/todos/{id}":{"get":{"description":"Returns a single To-Do by its Id.","operationId":"PublicTodoController_findOne","parameters":[{"name":"id","required":true,"in":"path","description":"The To-Do Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"responses":{"200":{"description":"To-Do retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoResponseDTO"}}}}},"summary":"Get a To-Do by Id","tags":["To-Dos"]},"patch":{"description":"Partially updates a To-Do. Only fields included in the request body are changed.","operationId":"PublicTodoController_update","parameters":[{"name":"id","required":true,"in":"path","description":"The To-Do Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTodoDTO"}}}},"responses":{"200":{"description":"To-Do updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TodoResponseDTO"}}}},"403":{"description":"linkedItemId was provided, and the authenticated user's role cannot create links. If the request also changed other fields, those were applied and the message says so; a link-only request changes nothing."},"404":{"description":"linkedItemId was provided, and no such item exists in the caller's company"},"409":{"description":"linkedItemId was provided, and the To-Do is already linked to that item"},"502":{"description":"linkedItemId was provided, and the link could not be created at this time. The message says whether the other fields in the request were updated."}},"summary":"Update a To-Do","tags":["To-Dos"]},"delete":{"description":"Permanently deletes a To-Do.","operationId":"PublicTodoController_delete","parameters":[{"name":"id","required":true,"in":"path","description":"The To-Do Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"responses":{"204":{"description":"To-Do deleted successfully"}},"summary":"Delete a To-Do","tags":["To-Dos"]}},"/v1/todos/{id}/comments":{"post":{"description":"Appends one comment to the To-Do, attributed to the authenticated user, and returns the full comment list including the new one. Send just the comment - the existing ones are read and preserved for you.","operationId":"PublicTodoController_addComment","parameters":[{"name":"id","required":true,"in":"path","description":"The To-Do Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommentDTO"}}}},"responses":{"201":{"description":"Comment added successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommentResponseDTO"}}}}}},"summary":"Add a comment to a To-Do","tags":["To-Dos"]}},"/v1/todos/{todoId}/links":{"post":{"description":"Creates a link between an existing To-Do and an existing Rock, Issue, or Milestone, without changing any of the To-Do's own fields. The linked item must belong to the same company as the authenticated caller.","operationId":"PublicTodoController_link","parameters":[{"name":"todoId","required":true,"in":"path","description":"The To-Do Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkTodoDTO"}}}},"responses":{"201":{"description":"Link created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedItemResponseDTO"}}}},"404":{"description":"To-Do not found, or linked item not found in the caller's company"},"409":{"description":"The To-Do is already linked to that item"}},"summary":"Link a To-Do to a Rock, Issue, or Milestone","tags":["To-Dos"]}},"/v1/todos/{todoId}/links/{linkedItemId}":{"delete":{"description":"Removes an existing link. Does not change any of the To-Do's own fields.","operationId":"PublicTodoController_unlink","parameters":[{"name":"todoId","required":true,"in":"path","description":"The To-Do Id","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}},{"name":"linkedItemId","required":true,"in":"path","description":"The Id of the linked Rock, Issue, or Milestone","schema":{"example":"507f1f77bcf86cd799439015","type":"string"}}],"responses":{"204":{"description":"Link removed successfully"},"404":{"description":"To-Do not found, or no link exists between this To-Do and the specified item"}},"summary":"Remove a link between a To-Do and a Rock, Issue, or Milestone","tags":["To-Dos"]}},"/v1/teams":{"get":{"description":"Returns all Teams the authenticated user belongs to.","operationId":"PublicTeamController_findAll","parameters":[],"responses":{"200":{"description":"Teams retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TeamResponseDTO"}}}}}},"summary":"Get Teams","tags":["Teams"]}},"/v1/teams/available":{"get":{"description":"Returns the Teams the authenticated user may pick when creating or querying work. Always includes the Teams they belong to; for an Owner, Admin or Implementer it also includes every non-private Team in the company, mirroring the team picker in the app. Each Team is flagged with `isMember`. Prefer this over `GET /teams`, which only ever returns the caller's own Teams.","operationId":"PublicTeamController_findAvailable","parameters":[],"responses":{"200":{"description":"Teams retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailableTeamResponseDTO"}}}}}},"summary":"Get Teams you can create or query work for","tags":["Teams"]}},"/v1/scorecard/team-scorecard":{"get":{"description":"Returns a Team's Scorecard - its Measurables and their scores - for a window of periods. Every score is labelled with the period it belongs to as Ninety displays it (\"Q4\", \"Jan 06 - Jan 12\"); select a period by matching that label rather than by computing date boundaries, which depend on the company's fiscal calendar and weekly start day. Supply `date` to read the single period containing a specific calendar date.","operationId":"PublicScorecardController_getTeamScorecard","parameters":[{"name":"teamId","required":true,"in":"query","description":"The Id of the Team whose Scorecard should be read","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}},{"name":"periodInterval","required":false,"in":"query","description":"Which of the Team's Scorecards to read. Every Team has one Scorecard per interval. Defaults to `weekly`.","schema":{"example":"weekly","type":"string","enum":["weekly","monthly","quarterly","annual"]}},{"name":"window","required":false,"in":"query","description":"The window of periods to return. Ignored when `date` is supplied. Defaults to `default` (the most recent 13 periods). Not every window is valid for every interval - `quarterly` supports only `default`, `ytd` and `currentYear`, and `annual` supports only `default`.","schema":{"example":"currentYear","type":"string","enum":["default","qtd","ytd","currentQuarter","currentYear"]}},{"name":"date","required":false,"in":"query","description":"Return only the single period containing this calendar date. Any date inside the period works - the Scorecard service snaps it to the period boundary using the company's weekly start day and fiscal calendar. Mutually exclusive with `window`.","schema":{"example":"2024-07-06","type":"string"}}],"responses":{"200":{"description":"Scorecard retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamScorecardResponseDTO"}}}}},"summary":"Read a Team's Scorecard","tags":["Scorecard"]}},"/v1/scorecard/kpis/{kpiId}/score":{"get":{"description":"Returns a single Measurable's score for the period containing `date`, with the period it resolved to. Prefer this over `team-scorecard` when only one number is needed - a Team's whole Scorecard can be large. `value` is `null` when no score has been recorded for that period, which is not an error.","operationId":"PublicScorecardController_getKpiScore","parameters":[{"name":"kpiId","required":true,"in":"path","description":"The Id of the Measurable","schema":{"example":"64d6a32564d6a32564d6a325","type":"string"}},{"name":"date","required":true,"in":"query","description":"The score returned is the one for the period containing this calendar date. Any date inside the period works - the Scorecard service snaps it to the period boundary using the company's weekly start day and fiscal calendar, so for a weekly Measurable every day of the same week returns that week's score. The period actually resolved is reported back as `periodStartDate` and `label`.","schema":{"example":"2024-07-06","type":"string"}}],"responses":{"200":{"description":"Score retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KpiScoreResponseDTO"}}}},"404":{"description":"No Measurable with that Id is visible to the caller. A Measurable that exists but has no score for the period is NOT a 404 - that returns 200 with a null `value`."}},"summary":"Read one Measurable's score","tags":["Scorecard"]}},"/v1/scorecard/kpi-groups/company":{"get":{"description":"Returns every non-deleted KPI group across the whole company - every Team and Scorecard - paginated by cursor, newest first. Restricted to company Owners and Admins; other roles receive a 403. Pass `pagination.nextToken` from the previous response to fetch the next page. `kpiIds` lists each group's Measurables in display order, including confidential ones, which Owners and Admins can read. `ordinal` is the group's position on its Scorecard, null when no live Scorecard lists it. Measurable details and scores are not included; read them from the Measurable endpoints.","operationId":"PublicScorecardController_getKpiGroupsByCompany","parameters":[{"name":"limit","required":false,"in":"query","description":"Maximum number of items to return","schema":{"minimum":1,"maximum":100,"default":20,"type":"number"}},{"name":"nextToken","required":false,"in":"query","description":"Opaque cursor from a previous response's `pagination.nextToken`. Omit to fetch the first page.","schema":{"type":"string"}}],"responses":{"200":{"description":"KPI groups retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedKpiGroupSummaryResponseDTO"}}}}},"summary":"List company KPI groups","tags":["Scorecard"]}},"/v1/scorecard/kpis/company":{"get":{"description":"Returns every active Measurable across the whole company - every Team and Scorecard - paginated by cursor, newest first. Archived and deleted Measurables are not included; confidential ones are, since Owners and Admins can read them. Restricted to company Owners and Admins; other roles receive a 403. Pass `pagination.nextToken` from the previous response to fetch the next page. `teams` and `scorecards` are the Teams and Scorecards whose Measurable groups include the Measurable. `scores` holds the stored scores whose `periodDisplayDate` falls between `scoresFrom` and `scoresTo`, both inclusive: the last 365 days by default, at most 366 days per request. Read older history by requesting earlier windows. Smart Measurables are calculated, so their scores carry a `value` only when it was entered as a manual override; their notes and goals come back either way.","operationId":"PublicScorecardController_getKpisByCompany","parameters":[{"name":"limit","required":false,"in":"query","description":"Maximum number of items to return","schema":{"minimum":1,"maximum":100,"default":20,"type":"number"}},{"name":"nextToken","required":false,"in":"query","description":"Opaque cursor from a previous response's `pagination.nextToken`. Omit to fetch the first page.","schema":{"type":"string"}},{"name":"scoresFrom","required":false,"in":"query","description":"The earliest `periodDisplayDate` of the scores returned with each Measurable. Inclusive. Defaults to 365 days before `scoresTo`, and may be at most 366 days before it.","schema":{"example":"2025-10-06","type":"string"}},{"name":"scoresTo","required":false,"in":"query","description":"The latest `periodDisplayDate` of the scores returned with each Measurable. Inclusive. Defaults to today in UTC.","schema":{"example":"2026-10-05","type":"string"}}],"responses":{"200":{"description":"Measurables retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedCompanyKpiResponseDTO"}}}},"400":{"description":"Invalid `limit`, `nextToken`, `scoresFrom` or `scoresTo`, `scoresFrom` after `scoresTo`, or a score window longer than 366 days"},"403":{"description":"The caller is not a company Owner or Admin"}},"summary":"List company Measurables","tags":["Scorecard"]}},"/v1/scorecard/kpis/query":{"post":{"description":"Returns a paginated list of Measurables matching the provided filters - their names, targets, owners and cadence, without score values. Pass `teamId` to limit results to a single Team's Scorecards; results are always limited to Measurables the caller can see.","operationId":"PublicScorecardController_queryKpis","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetKpisQueryDTO"}}}},"responses":{"200":{"description":"Measurables queried successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedKpiResponseDTO"}}}}},"summary":"Query Measurables","tags":["Scorecard"]}},"/v1/scorecard/kpis/{kpiId}/scores/{periodStartDate}":{"patch":{"description":"Supply at least one of value, note or goal. Omitted fields are unchanged; null clears a field. The goal is an override for this period only. The period containing periodStartDate is resolved using the company weekly start day and fiscal calendar, as with the existing score/note writes.","operationId":"PublicScorecardController_patchPeriodScore","parameters":[{"name":"kpiId","required":true,"in":"path","description":"The Id of the Measurable","schema":{"example":"64d6a32564d6a32564d6a325","type":"string"}},{"name":"periodStartDate","required":true,"in":"path","description":"A calendar date within the target period, as YYYY-MM-DD or an ISO datetime. The time and timezone are ignored. Uses the company weekly start day and fiscal calendar.","schema":{"example":"2024-07-06","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchPeriodScoreDTO"}}}},"responses":{"200":{"description":"Updated stored score, including the period override","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeriodScoreResponseDTO"}}}},"400":{"description":"Invalid input or no mutable fields supplied"}},"summary":"Update a Measurable score, note or custom goal for one period","tags":["Scorecard"]},"delete":{"description":"Deletes the score for a Measurable for the given period start date.","operationId":"PublicScorecardController_deleteScore","parameters":[{"name":"kpiId","required":true,"in":"path","description":"The Id of the Measurable","schema":{"example":"64d6a32564d6a32564d6a325","type":"string"}},{"name":"periodStartDate","required":true,"in":"path","description":"The ISO 8601 start date of the period","schema":{"example":"2024-01-01T00:00:00.000Z","type":"string"}}],"responses":{"204":{"description":"Score deleted successfully"}},"summary":"Delete a Measurable score","tags":["Scorecard"]}},"/v1/scorecard/scores/batch":{"post":{"description":"Creates or updates up to 100 Measurable scores, each for the period containing its `periodStartDate` - any calendar date inside the period, as with the single-score write. A score overwrites any score already recorded for that period; a `note` replaces the period note, and omitting it leaves the note unchanged. Items succeed or fail independently: the call answers 200 even when some or all of them fail, so read `summary` and each `results[].status` rather than the status code. A failed item is not written and carries an `error.message` saying what to change; retry only the failed items. Scores for a calculated (formula) Measurable, a period that has not started, or a Measurable and period named twice in one request fail per item. A malformed item - an invalid Id, an impossible date, a missing value - rejects the whole request with 400 and nothing is written.","operationId":"PublicScorecardController_batchPutScores","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchPutScoresDTO"}}}},"responses":{"200":{"description":"Every item was attempted; `results` reports each one, in request order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchPutScoresResponseDTO"}}}},"400":{"description":"The request was malformed - no items, more than 100, or an item with an invalid Id, date, value or note. The message names the offending item by its position, as `items.<index>.<field>`. Nothing was written."}},"summary":"Write many Measurable scores in one call","tags":["Scorecard"]}},"/v1/scorecard/kpis/{kpiId}/scores":{"post":{"description":"Creates or updates the score for a Measurable for the given period. If a score already exists for that period, it is overwritten.","operationId":"PublicScorecardController_putScore","parameters":[{"name":"kpiId","required":true,"in":"path","description":"The Id of the Measurable","schema":{"example":"64d6a32564d6a32564d6a325","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutScoreDTO"}}}},"responses":{"200":{"description":"Score created/updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreResponseDTO"}}}}},"summary":"Create or update a Measurable score","tags":["Scorecard"]}},"/v1/scorecard/kpis/{kpiId}/notes":{"post":{"description":"Creates or updates the note for a Measurable for the given period. If a note already exists for that period, it is overwritten.","operationId":"PublicScorecardController_putNote","parameters":[{"name":"kpiId","required":true,"in":"path","description":"The Id of the Measurable","schema":{"example":"64d6a32564d6a32564d6a325","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutNoteDTO"}}}},"responses":{"200":{"description":"Note created/updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteResponseDTO"}}}}},"summary":"Create or update a Measurable note","tags":["Scorecard"]}},"/v1/scorecard/kpis/{kpiId}/notes/{periodStartDate}":{"delete":{"description":"Deletes the note for a Measurable for the given period start date.","operationId":"PublicScorecardController_deleteNote","parameters":[{"name":"kpiId","required":true,"in":"path","description":"The Id of the Measurable","schema":{"example":"64d6a32564d6a32564d6a325","type":"string"}},{"name":"periodStartDate","required":true,"in":"path","description":"The ISO 8601 start date of the period","schema":{"example":"2024-01-01T00:00:00.000Z","type":"string"}}],"responses":{"204":{"description":"Note deleted successfully"}},"summary":"Delete a Measurable note","tags":["Scorecard"]}},"/v1/rocks/query":{"post":{"description":"Returns Rocks grouped by teamId. Supports filtering by status, level, future scope, and more.\n\nReturns every Rock matching the filters, and the response carries no total. A Rock that belongs to several teams is also repeated under each of their keys. Please use POST /rocks/query/paged instead, which pages for real and returns a flat, de-duplicated list with a total if you need to.","operationId":"PublicRockController_queryRocks","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRocksQueryDTO"}}}},"responses":{"200":{"description":"Rocks grouped by teamId. Each key in the response object is a teamId.","content":{"application/json":{"example":{"507f1f77bcf86cd799439011":[{"_id":"507f1f77bcf86cd799439013","userId":"507f1f77bcf86cd799439012","teamId":"507f1f77bcf86cd799439011","companyId":"507f1f77bcf86cd799439015","title":"Launch new customer onboarding flow","description":"Redesign the onboarding wizard to reduce drop-off by 20%","archived":false,"deleted":false,"completed":false,"dueDate":"2026-06-30T23:59:59.000Z","statusCode":"ON_TRACK","levelCode":"USER","quarter":"Q2","futureScope":"Current","createdBy":"jane.doe@example.com","createdDate":"2026-01-15T09:00:00.000Z","updatedAt":"2026-03-01T14:30:00.000Z","followers":["507f1f77bcf86cd799439012"],"additionalTeamIds":[],"dueDateQuarter":"2026 Q2"}]}}}}},"summary":"Query Rocks","tags":["Rocks"]}},"/v1/rocks/query/paged":{"post":{"description":"Returns one page of Rocks as a flat list, plus the total number of distinct matches. Supports the same filters as POST /rocks/query - team, owner, status, level, future scope and text search.\n\nPage through the results with `pageIndex` (0-based, max 1000) and `pageSize` (max 200); both are optional and default to 0 and 10. Ordering carries a tiebreaker, so a Rock will not repeat across pages or be skipped. Prefer filtering by `teamId` to keep the result set small.","operationId":"PublicRockController_queryRocksPaged","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRocksPageQueryDTO"}}}},"responses":{"200":{"description":"One page of Rocks, with the total number of distinct matches.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedRocksResponseDTO"}}}}},"summary":"Query Rocks with pagination metadata","tags":["Rocks"]}},"/v1/rocks/company":{"get":{"description":"Returns every non-archived, non-deleted Rock across the whole company, paginated by cursor. Restricted to company Owners and Admins; other roles receive a 403. Pass `pagination.nextToken` from the previous response to fetch the next page.","operationId":"PublicRockController_findByCompany","parameters":[{"name":"limit","required":false,"in":"query","description":"Maximum number of items to return","schema":{"minimum":1,"maximum":100,"default":20,"type":"number"}},{"name":"nextToken","required":false,"in":"query","description":"Opaque cursor from a previous response's `pagination.nextToken`. Omit to fetch the first page.","schema":{"type":"string"}},{"name":"completed","required":false,"in":"query","description":"Filter by completed status","schema":{"example":false,"type":"boolean"}},{"name":"archived","required":false,"in":"query","description":"Include archived Rocks (excluded by default)","schema":{"default":false,"type":"boolean"}},{"name":"deleted","required":false,"in":"query","description":"Include deleted Rocks (excluded by default)","schema":{"default":false,"type":"boolean"}},{"name":"searchText","required":false,"in":"query","description":"Search text to match against title and description","schema":{"example":"onboarding","type":"string"}},{"name":"title","required":false,"in":"query","description":"Filter by title match","schema":{"example":"Launch new customer onboarding flow","type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort results by. Defaults to `dueDate`.","schema":{"type":"string","enum":["createdDate","completedDate","title","dueDate","id"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort direction","schema":{"default":"desc","type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Rocks retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedRockSummaryResponseDTO"}}}}},"summary":"List company Rocks","tags":["Rocks"]}},"/v1/rocks/{id}":{"get":{"description":"Returns a single Rock by its Id.","operationId":"PublicRockController_findOne","parameters":[{"name":"id","required":true,"in":"path","description":"The Rock Id","schema":{"example":"507f1f77bcf86cd799439013","type":"string"}}],"responses":{"200":{"description":"Rock retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RockResponseDTO"}}}}},"summary":"Get a Rock by Id","tags":["Rocks"]},"patch":{"description":"Partially updates a Rock. Only the fields provided in the request body will be changed, and the response is the complete Rock as it now stands.\n\nCompletion is tracked from `statusCode`, exactly as it is in the app: setting `DONE` marks the Rock `completed` and stamps `completedDate`, and moving off `DONE` clears both. Send `statusCode` to complete a Rock - `completed` and `completedDate` are not writable.\n\n`userId` reassigns the owner and must name an active user in the authenticated user's company (`GET /users`). `teamId` and `additionalTeamIds` must name Teams available to them (`GET /teams/available`). Both mirror what the app allows; either one outside those bounds is rejected rather than applied.","operationId":"PublicRockController_update","parameters":[{"name":"id","required":true,"in":"path","description":"The Rock Id","schema":{"example":"507f1f77bcf86cd799439013","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRockDTO"}}}},"responses":{"200":{"description":"Rock updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RockResponseDTO"}}}},"400":{"description":"A field failed validation - an unknown `statusCode`/`levelCode`/`quarter`/`futureScope`, a `dueDate` that is not a real ISO 8601 date, or a `userId`/`teamId`/`additionalTeamIds` entry that is not a 24-character hex Id. The response names the field and the rule it broke."},"403":{"description":"The update names an owner outside the company (or a deactivated user), a Team the authenticated user cannot use, or a Rock they may not edit. Also returned when linkedItemId was provided and the authenticated user's role cannot create links: if the request also changed other fields, those were applied and the message says so; a link-only request changes nothing."},"404":{"description":"linkedItemId was provided, and no such item exists in the caller's company"},"409":{"description":"linkedItemId was provided, and the Rock is already linked to that item"},"502":{"description":"linkedItemId was provided, and the link could not be created at this time. The message says whether the other fields in the request were updated."}},"summary":"Update a Rock","tags":["Rocks"]},"delete":{"description":"Soft-deletes a Rock, the same way the app does: the Rock is flagged deleted and stamped with who deleted it and when, its linked items are cleared, and it stops appearing in reads. Returns the deleted Rock.","operationId":"PublicRockController_delete","parameters":[{"name":"id","required":true,"in":"path","description":"The Rock Id","schema":{"example":"507f1f77bcf86cd799439013","type":"string"}}],"responses":{"200":{"description":"Rock deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RockResponseDTO"}}}}},"summary":"Delete a Rock","tags":["Rocks"]}},"/v1/rocks/{id}/milestones":{"get":{"description":"Returns all Milestones for a Rock by its Id.","operationId":"PublicRockController_findMilestones","parameters":[{"name":"id","required":true,"in":"path","description":"The Rock Id","schema":{"example":"507f1f77bcf86cd799439013","type":"string"}}],"responses":{"200":{"description":"Milestones retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneResponseDTO"}}}}},"summary":"Get all Milestones for a Rock by Id","tags":["Rocks"]}},"/v1/rocks":{"post":{"description":"Creates a Rock assigned to the authenticated user. The owner and companyId are automatically derived from the authenticated user's JWT - a Rock cannot be created on behalf of someone else, and any `userId` in the body is ignored.\n\n`teamId` and every entry in `additionalTeamIds` must be a Team available to the authenticated user - the same Teams `GET /teams/available` returns, which is what the app offers in its Team picker. Anything else is rejected rather than filed somewhere the company cannot see it.\n\nReturns an array because the underlying create takes a list of owners; this endpoint always sends exactly one, so the array holds exactly one Rock.","operationId":"PublicRockController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRockDTO"}}}},"responses":{"201":{"description":"Rock created successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RockResponseDTO"}}}}},"400":{"description":"A field failed validation - an unknown `statusCode`/`levelCode`/`quarter`/`futureScope`, a `dueDate` that is not a real ISO 8601 date, or a `teamId`/`additionalTeamIds` entry that is not a 24-character hex Id. The response names the field and the rule it broke."},"403":{"description":"The Rock names a Team the authenticated user cannot create work on."},"404":{"description":"linkedItemId was provided, and no such item exists in the caller's company"},"502":{"description":"linkedItemId was provided, and the Rock was created but could not be linked. The message names the new Rock, so the link can be retried with POST /rocks/:rockId/links."}},"summary":"Create a Rock","tags":["Rocks"]}},"/v1/rocks/{rockId}/links":{"post":{"description":"Creates a link between an existing Rock and an existing To-Do, Issue, or Milestone, without changing any of the Rock's own fields. The Rock and the linked item must both belong to the same company as the authenticated caller.\n\nAny user in the company whose role can create items can link any of its Rocks, the same as in the app - being on the Rock's Team is not required.","operationId":"PublicRockController_link","parameters":[{"name":"rockId","required":true,"in":"path","description":"The Rock Id","schema":{"example":"507f1f77bcf86cd799439013","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkRockDTO"}}}},"responses":{"201":{"description":"Link created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RockLinkedItemResponseDTO"}}}},"404":{"description":"Rock not found, or linked item not found in the caller's company"},"409":{"description":"The Rock is already linked to that item"}},"summary":"Link a Rock to a To-Do, Issue, or Milestone","tags":["Rocks"]}},"/v1/rocks/{rockId}/links/{linkedItemId}":{"delete":{"description":"Removes an existing link. Does not change any of the Rock's own fields.\n\nAny user in the company whose role can edit items can remove a link from any of its Rocks, the same as in the app - being on the Rock's Team is not required.","operationId":"PublicRockController_unlink","parameters":[{"name":"rockId","required":true,"in":"path","description":"The Rock Id","schema":{"example":"507f1f77bcf86cd799439013","type":"string"}},{"name":"linkedItemId","required":true,"in":"path","description":"The Id of the linked To-Do, Issue, or Milestone","schema":{"example":"507f1f77bcf86cd799439015","type":"string"}}],"responses":{"204":{"description":"Link removed successfully"},"404":{"description":"Rock not found, or no link exists between this Rock and the specified item"}},"summary":"Remove a link between a Rock and a To-Do, Issue, or Milestone","tags":["Rocks"]}},"/v1/milestones/company":{"get":{"description":"Returns every Milestone on a non-archived, non-deleted Rock across the whole company, paginated by cursor. Restricted to company Owners and Admins; other roles receive a 403. Pass `pagination.nextToken` from the previous response to fetch the next page.","operationId":"PublicMilestoneController_findByCompany","parameters":[{"name":"limit","required":false,"in":"query","description":"Maximum number of items to return","schema":{"minimum":1,"maximum":100,"default":20,"type":"number"}},{"name":"nextToken","required":false,"in":"query","description":"Opaque cursor from a previous response's `pagination.nextToken`. Omit to fetch the first page.","schema":{"type":"string"}},{"name":"completed","required":false,"in":"query","description":"Filter by completed status","schema":{"example":false,"type":"boolean"}},{"name":"archived","required":false,"in":"query","description":"Include Milestones whose parent Rock is archived (excluded by default)","schema":{"default":false,"type":"boolean"}},{"name":"deleted","required":false,"in":"query","description":"Include deleted Milestones, or Milestones whose parent Rock is deleted (excluded by default)","schema":{"default":false,"type":"boolean"}},{"name":"searchText","required":false,"in":"query","description":"Search text to match against title and description","schema":{"example":"wireframes","type":"string"}},{"name":"title","required":false,"in":"query","description":"Filter by title match","schema":{"example":"Complete UX wireframes","type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort results by. Defaults to `dueDate`.","schema":{"type":"string","enum":["createdDate","completedDate","title","dueDate","id"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort direction","schema":{"default":"desc","type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Milestones retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedMilestoneSummaryResponseDTO"}}}}},"summary":"List company Milestones","tags":["Milestones"]}},"/v1/milestones/{id}":{"get":{"description":"Returns a single Milestone by its Id.","operationId":"PublicMilestoneController_findOne","parameters":[{"name":"id","required":true,"in":"path","description":"The Milestone Id","schema":{"example":"507f1f77bcf86cd799439014","type":"string"}}],"responses":{"200":{"description":"Milestone retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneResponseDTO"}}}}},"summary":"Get a Milestone by Id","tags":["Milestones"]},"patch":{"description":"Partially updates a Milestone. Only the fields provided in the request body will be changed.","operationId":"PublicMilestoneController_update","parameters":[{"name":"id","required":true,"in":"path","description":"The Milestone Id","schema":{"example":"507f1f77bcf86cd799439014","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMilestoneDTO"}}}},"responses":{"200":{"description":"Milestone updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneResponseDTO"}}}}},"summary":"Update a Milestone","tags":["Milestones"]}},"/v1/milestones":{"post":{"description":"Creates a Milestone linked to a Rock assigned to the authenticated user. The owner and companyId are automatically derived from the authenticated user's JWT.","operationId":"PublicMilestoneController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMilestoneDTO"}}}},"responses":{"201":{"description":"Milestone created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestoneResponseDTO"}}}}},"summary":"Create a Milestone","tags":["Milestones"]}},"/v1/users":{"get":{"description":"Returns every active User in the authenticated user's company, with their role and the Teams they are on. Useful for resolving a person's name to the Id that the To-Do and Issue create endpoints accept as `userId`. The authenticated user must have Read-level permissions. Set `includeInactive` to also return deactivated Users, which carry `active: false`. Pass `email` to look one person up by address; an address nobody in the company uses returns an empty array rather than an error.","operationId":"PublicUserController_findAllForCompany","parameters":[{"name":"includeInactive","required":false,"in":"query","description":"Include deactivated Users in the response. Defaults to `false`, so only active Users are returned.","schema":{"example":false,"type":"boolean"}},{"name":"email","required":false,"in":"query","description":"Return only the User at this email address, matched case-insensitively against the `primaryEmail` in the response. An address nobody in the company uses returns an empty array, not an error.","schema":{"example":"jane.doe@example.com","type":"string"}}],"responses":{"200":{"description":"Users retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyUserResponseDTO"}}}}}},"summary":"List Users in your company","tags":["Users"]}},"/v1/users/team/{teamId}":{"get":{"description":"Returns the Users assigned to the Team given by `teamId`, ordered by name, with their role and every Team they are on. The authenticated User must belong to that Team, or be an admin of the company that owns it. Set `includeInactive` to also return deactivated Users.","operationId":"PublicUserController_findAllForTeam","parameters":[{"name":"includeInactive","required":false,"in":"query","description":"Include deactivated Users in the response. Defaults to `false`, so only active Users are returned.","schema":{"example":false,"type":"boolean"}},{"name":"teamId","required":true,"in":"path","description":"The Team Id","schema":{"example":"507f1f77bcf86cd799439011"}}],"responses":{"200":{"description":"Users retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyUserResponseDTO"}}}}},"400":{"description":"teamId is not a 24-character hex Id"},"403":{"description":"The authenticated User may not view the requested Team. The `message` carries the reason the request was refused - for example that the User is not on that Team - so it can be shown or acted on directly rather than retried."}},"summary":"Get the Users on a Team","tags":["Users"]}},"/v1/users/{id}":{"get":{"description":"Returns a single User by their Id. The authenticated user must have Read-level permissions.","operationId":"PublicUserController_findOne","parameters":[{"name":"id","required":true,"in":"path","description":"The User Id","schema":{"example":"507f1f77bcf86cd799439012","type":"string"}}],"responses":{"200":{"description":"User retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponseDTO"}}}}},"summary":"Get a User by Id","tags":["Users"]}},"/v1/meetings/next":{"get":{"description":"Returns the soonest upcoming Meeting for the given Team, together with its agenda sections and the Team roster, so a caller has everything needed to prepare. Only the near term is considered - roughly the next month for most companies, longer for some - so a 404 means nothing is scheduled soon, not that the Team never meets.","operationId":"PublicMeetingController_findNext","parameters":[{"name":"teamId","required":true,"in":"query","description":"The Id of the Team whose next Meeting to return. Discoverable via `GET /teams`.","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"responses":{"200":{"description":"Next Meeting retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NextMeetingResponseDTO"}}}},"404":{"description":"No upcoming Meeting is scheduled for this Team"}},"summary":"Get the next Meeting for a Team","tags":["Meetings"]}},"/v1/meetings":{"get":{"description":"Returns a page of the Team's concluded Meetings, most recent first, each with the ratings its attendees gave, how long it ran and how many of its Issues it worked. The collection is past Meetings only - the upcoming one has its own route at `/meetings/next`. `meetingType` selects one kind of Meeting per call and defaults to `level10`, the Weekly Meeting. Notes and the items a Meeting worked are not included here - read one Meeting by its Id for those. A Team that has never met returns an empty page, not a 404. Callers who are neither an Owner nor an Admin can only read Teams they belong to; the core API answers 403 for the rest.","operationId":"PublicMeetingController_findHistory","parameters":[{"name":"teamId","required":true,"in":"query","description":"The Id of the Team whose past Meetings to return. Discoverable via `GET /teams`.","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}},{"name":"meetingType","required":false,"in":"query","description":"Which kind of Meeting to return. The core API filters to exactly one kind per call, so reading a Team's Weekly Meetings and its Quarterlies takes two calls. `level10` is the Weekly Meeting. An annual session is stored as two chained documents, and a past read only ever returns the second: `annualDayOne` and `annualDayTwo` both select the same day-two rows, because the core API rewrites the former to the latter for past Meetings. `other` is the one exception to one-kind-per-call: it is a catch-all for everything that is not a Weekly, Quarterly or Annual Meeting, so it returns Focus Days, Vision Building days, One-on-Ones and custom Meetings together.","schema":{"default":"level10","type":"string","enum":["level10","quarterly","annualDayOne","annualDayTwo","focusDay","visionBuildingDayOne","visionBuildingDayTwo","weeklyOneOnOne","custom","other"]}},{"name":"pageIndex","required":false,"in":"query","description":"Which page to return, counting from 0","schema":{"minimum":0,"default":0,"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"How many Meetings to return per page","schema":{"minimum":10,"maximum":100,"default":25,"type":"number"}}],"responses":{"200":{"description":"Past Meetings retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedMeetingHistoryResponseDTO"}}}}},"summary":"List a Team's past Meetings","tags":["Meetings"]}},"/v1/meetings/company":{"get":{"description":"Returns a page of the company's concluded Meetings across every Team, most recent first, in the same shape as `GET /meetings`: each row carries the `teamId` of the Team that met. Restricted to company Owners and Admins; anyone else receives a 403. `meetingType` selects one kind of Meeting per call and defaults to `level10`, the Weekly Meeting. Paged with `pageIndex` and `pageSize`; `totalCount` is the number of matching Meetings in the company. Notes and the items a Meeting worked are not included - read one Meeting by its Id for those.","operationId":"PublicMeetingController_findHistoryByCompany","parameters":[{"name":"meetingType","required":false,"in":"query","description":"Which kind of Meeting to return, across every Team. One kind per call, so reading the company's Weekly Meetings and its Quarterlies takes two calls. `level10` is the Weekly Meeting. Same rules as `GET /meetings`: `annualDayOne` and `annualDayTwo` both return the second day of each annual session, and `other` returns every Meeting that is not a Weekly, Quarterly or Annual Meeting.","schema":{"default":"level10","type":"string","enum":["level10","quarterly","annualDayOne","annualDayTwo","focusDay","visionBuildingDayOne","visionBuildingDayTwo","weeklyOneOnOne","custom","other"]}},{"name":"pageIndex","required":false,"in":"query","description":"Which page to return, counting from 0","schema":{"minimum":0,"maximum":100000,"default":0,"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"How many Meetings to return per page","schema":{"minimum":10,"maximum":100,"default":25,"type":"number"}}],"responses":{"200":{"description":"Past Meetings retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedMeetingHistoryResponseDTO"}}}},"400":{"description":"A query parameter is invalid"},"403":{"description":"The authenticated User is not a company Owner or Admin, or the token expired. The message says which."}},"summary":"List the company's past Meetings","tags":["Meetings"]}},"/v1/meetings/{meetingId}":{"get":{"description":"Returns one concluded Meeting with the notes taken during it and the Headlines, cascading messages, Issues, To-Dos and Rocks it worked. Notes are the only free-text record of what was decided - Ninety has no separate decisions field. Same visibility rules as the history list.","operationId":"PublicMeetingController_findOne","parameters":[{"name":"meetingId","required":true,"in":"path","description":"The Id of the Meeting to return","schema":{"example":"507f1f77bcf86cd799439015","type":"string"}}],"responses":{"200":{"description":"Meeting retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingDetailResponseDTO"}}}},"400":{"description":"The Meeting Id is not a 24-character hex Id"},"404":{"description":"No Meeting exists with this Id"}},"summary":"Get one Meeting","tags":["Meetings"]}},"/v1/teams/{teamId}/vto":{"get":{"description":"Returns the Team's Vision/Traction Organizer alongside the leadership Team's, each trimmed to the Core Values, the Core Focus, and the 1-Year Plan and 3-Year Picture goals. Only what the caller can see in the app is returned - leadership sections that have not been shared come back empty. A Team that has never filled its V/TO in returns empty sections rather than an error.","operationId":"PublicVtoController_findByTeam","parameters":[{"name":"teamId","required":true,"in":"path","description":"The Id of the Team whose V/TO to return. Discoverable via `GET /teams`.","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}}],"responses":{"200":{"description":"V/TO retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VtoResponseDTO"}}}}},"summary":"Get a Team's V/TO","tags":["V/TO"]}},"/v1/accountability-chart":{"get":{"description":"Returns the company's Accountability Chart: every Seat, what that Seat is accountable for, and the people sitting in it. Use it to answer who owns a given area of the business and who to route work to. `seats` is flat and ordered top-down - a Seat always precedes the Seats reporting to it, and siblings keep the order the app draws them in - so rebuild the hierarchy from `parentSeatId`, which is absent on the top Seat. An assistant Seat (`isAssistant`) follows the Seat it supports but is not a report of it. Each holder carries the `userId` that the To-Do and Issue create endpoints accept, so a Seat ties straight through to `/users`. A Seat with no holders is a real state: the Seat exists and nobody fills it. A company that has never set its chart up returns an empty `seats` array rather than a 404. Only the primary company chart is returned; personal and shared charts are not exposed. Every Seat carries `name` and `responsibilities[].name`; pass `seatIds` to also get `id` and `description` on those Seats' responsibilities - omit it and every Seat keeps the trimmed summary shape.","operationId":"PublicAccountabilityChartController_find","parameters":[{"name":"seatIds","required":false,"in":"query","description":"Scopes the chart to these Seats plus each one's ancestor chain, instead of every Seat on the chart. Each named Seat's `responsibilities` carry full detail (`id` and `description`); an ancestor pulled in only for tree structure keeps the trimmed summary shape. Omit to list every Seat with the summary shape. An Id not on the chart fails the call rather than being silently dropped.","schema":{"example":["507f1f77bcf86cd799439011"],"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Accountability Chart retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountabilityChartResponseDTO"}}}}},"summary":"Get the Accountability Chart","tags":["Accountability Chart"]}},"/v1/seats/company":{"get":{"description":"Returns a page of the Seats on every Accountability Chart in the company - the primary chart and any personal or shared ones - each with its responsibilities. Pass `chartId` to read one chart. A flat export, not a tree: rebuild each chart from `chartId` and `parentSeatId`, and use `isPrimaryChart` to tell the company chart apart. Rows come primary chart first, then chart by chart; within a chart they are not in hierarchy order, so collect every page of a chart before rebuilding its tree from `parentSeatId`. An assistant Seat (`isAssistant`) hangs off the Seat it supports but is not a report of it. Offset-paged with `pageIndex` and `pageSize`. Restricted to company Owners and Admins; anyone else receives a 403. Seat holders are not included - read them from `GET /seats/company/holders`, or `GET /accountability-chart` for the primary chart.","operationId":"PublicSeatController_findByCompany","parameters":[{"name":"chartId","required":false,"in":"query","description":"Only the Seats on this chart. Omit for the Seats on every chart in the company. A chartId that is not a live chart in your company returns an empty page.","schema":{"example":"507f1f77bcf86cd799439001","type":"string"}},{"name":"pageIndex","required":false,"in":"query","description":"Which page to return, counting from 0","schema":{"minimum":0,"maximum":10000,"default":0,"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"How many Seats to return per page","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}}],"responses":{"200":{"description":"Seats retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedCompanySeatResponseDTO"}}}},"400":{"description":"A query parameter is invalid"},"403":{"description":"The authenticated User is not a company Owner or Admin"}},"summary":"List company Seats","tags":["Seats"]}},"/v1/seats/company/holders":{"get":{"description":"Returns a page of who holds which Seat, on every Accountability Chart in the company - one row per holder of a Seat, naming the Seat, its chart and the User. Join on `seatId` with the `id` of `GET /seats/company` for the Seats themselves. A Seat can have several holders, exactly one of them marked `isPrimaryHolder`; a Seat with no rows is vacant. Pass `chartId` to read one chart. Rows come primary chart first, then chart by chart, with the holders of each Seat together in the order the app lists them. Offset-paged with `pageIndex` and `pageSize`. Restricted to company Owners and Admins; anyone else receives a 403.","operationId":"PublicSeatController_findHoldersByCompany","parameters":[{"name":"chartId","required":false,"in":"query","description":"Only the holders of Seats on this chart. Omit for every chart in the company. A chartId that is not a live chart in your company returns an empty page.","schema":{"example":"507f1f77bcf86cd799439001","type":"string"}},{"name":"pageIndex","required":false,"in":"query","description":"Which page to return, counting from 0","schema":{"minimum":0,"maximum":10000,"default":0,"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"How many Seat holders to return per page","schema":{"minimum":1,"maximum":100,"default":100,"type":"number"}}],"responses":{"200":{"description":"Seat holders retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedCompanySeatHolderResponseDTO"}}}},"400":{"description":"A query parameter is invalid"},"403":{"description":"The authenticated User is not a company Owner or Admin"}},"summary":"List company Seat holders","tags":["Seats"]}},"/v1/headlines":{"get":{"description":"Returns a page of the Headlines on one Team's list - the short good-news and bad-news notes a Team raises in its Meetings. `teamId` is required: Headlines belong to exactly one Team. For every Team at once, use `GET /headlines/company`. Headlines already discussed are left out unless `includeDiscussed` is set, and archived ones are a separate list reached with `archived`. Cascading Messages live in the same collection and are returned only when `isCascadedMessage` is set - the two kinds are never mixed in one response. A Team with nothing on its list returns an empty page, not a 404. Callers who are neither an Owner nor an Admin can only read Teams they belong to; the core API answers 403 for the rest.","operationId":"PublicHeadlineController_findAll","parameters":[{"name":"teamId","required":true,"in":"query","description":"The Id of the Team whose Headlines to return. Discoverable via `GET /teams/available`.","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}},{"name":"isCascadedMessage","required":false,"in":"query","description":"Return Cascading Messages instead of Headlines. The two share one collection and are never mixed in a response: this selects which kind you get.","schema":{"default":false,"type":"boolean"}},{"name":"includeDiscussed","required":false,"in":"query","description":"Also return Headlines that have already been discussed. Discussed Headlines are left out by default, which is what the app shows.","schema":{"default":false,"type":"boolean"}},{"name":"archived","required":false,"in":"query","description":"Return archived Headlines instead of active ones. Archiving is separate from being discussed, so this is a different list rather than a wider one.","schema":{"default":false,"type":"boolean"}},{"name":"searchText","required":false,"in":"query","description":"Free-text search across the title and body","schema":{"example":"renewal","type":"string"}},{"name":"pageIndex","required":false,"in":"query","description":"Which page to return, counting from 0","schema":{"minimum":0,"default":0,"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"How many Headlines to return per page","schema":{"minimum":5,"maximum":200,"default":25,"type":"number"}}],"responses":{"200":{"description":"Headlines retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedHeadlinesResponseDTO"}}}},"400":{"description":"teamId is missing or is not a 24-character hex Id"},"403":{"description":"The authenticated User may not read the requested Team"}},"summary":"List a Team's Headlines","tags":["Headlines"]},"post":{"description":"Creates a Headline on one Team, where it appears on that Team's list exactly as one created in the app does, and notifies its followers. `title` is the Headline itself and `description` an optional HTML body. Owned by the authenticated User unless `userId` names someone else in the same company - a User outside it is rejected with a 403. Either way the authenticated User is recorded as the creator. Set `isCascadedMessage` to create a Cascading Message instead.","operationId":"PublicHeadlineController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateHeadlineDTO"}}}},"responses":{"201":{"description":"Headline created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadlineResponseDTO"}}}},"400":{"description":"The request body is invalid"},"403":{"description":"The authenticated User may not create Headlines for this Team, or named an owner outside their company"}},"summary":"Create a Headline","tags":["Headlines"]}},"/v1/headlines/company":{"get":{"description":"Returns a page of the Headlines across every Team in the company. Pass `teamId` to narrow it to one Team. As on `GET /headlines`, discussed Headlines are left out unless `includeDiscussed` is set, archived ones are a separate list reached with `archived`, and Cascading Messages are returned only when `isCascadedMessage` is set. Headlines on deleted or archived Teams are never included; private Teams are. A Headline created for several Teams appears once per Team. Offset-paged with `pageIndex` and `pageSize`. Restricted to company Owners and Admins; anyone else receives a 403.","operationId":"PublicHeadlineController_findByCompany","parameters":[{"name":"teamId","required":false,"in":"query","description":"Only Headlines on this Team. Narrows the company-wide list; it never widens it.","schema":{"example":"507f1f77bcf86cd799439011","type":"string"}},{"name":"isCascadedMessage","required":false,"in":"query","description":"Return Cascading Messages instead of Headlines. The two share one collection and are never mixed in a response: this selects which kind you get.","schema":{"default":false,"type":"boolean"}},{"name":"includeDiscussed","required":false,"in":"query","description":"Also return Headlines that have already been discussed. Discussed Headlines are left out by default, which is what the app shows.","schema":{"default":false,"type":"boolean"}},{"name":"archived","required":false,"in":"query","description":"Return archived Headlines instead of active ones. Archiving is separate from being discussed, so this is a different list rather than a wider one.","schema":{"default":false,"type":"boolean"}},{"name":"searchText","required":false,"in":"query","description":"Free-text search across the title and body","schema":{"example":"renewal","type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort by. Defaults to `createdDate`. `owner` sorts by the owner’s name.","schema":{"type":"string","enum":["createdDate","title","owner"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort direction","schema":{"default":"desc","type":"string","enum":["asc","desc"]}},{"name":"pageIndex","required":false,"in":"query","description":"Which page to return, counting from 0","schema":{"minimum":0,"default":0,"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"How many Headlines to return per page","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}}],"responses":{"200":{"description":"Headlines retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedHeadlineSummaryResponseDTO"}}}},"400":{"description":"A query parameter is invalid"},"403":{"description":"The authenticated User is not a company Owner or Admin"}},"summary":"List company Headlines","tags":["Headlines"]}},"/v1/conversations/company":{"get":{"description":"Returns a page of the quarterly or annual Conversations (1:1s between a manager and a direct report) across the whole company. `type` is required and selects one list, as in the app. Restricted to company Owners and Admins in a company whose plan includes Conversations (the `quarterly-discussions` entitlement); anyone else receives a 403. Answers, discussion forms and questions are never included.","operationId":"PublicConversationController_findByCompany","parameters":[{"name":"type","required":true,"in":"query","description":"Which kind of Conversation to list. Each type is its own list, as in the app - read both with two calls.","schema":{"$ref":"#/components/schemas/ConversationType"}},{"name":"userId","required":false,"in":"query","description":"Only Conversations with this User as the manager or the managee","schema":{"example":"507f1f77bcf86cd799439012","type":"string"}},{"name":"completed","required":false,"in":"query","description":"Filter by completion. Omit for both completed and open Conversations.","schema":{"example":false,"type":"boolean"}},{"name":"archived","required":false,"in":"query","description":"Return archived Conversations instead of active ones","schema":{"default":false,"type":"boolean"}},{"name":"searchText","required":false,"in":"query","description":"Case-insensitive match against the title","schema":{"example":"Q3","type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Field to sort by. Defaults to `dueDate` ascending, or `completedDate` descending when `completed` is true.","schema":{"type":"string","enum":["dueDate","completedDate"]}},{"name":"sortOrder","required":false,"in":"query","description":"Sort direction for `sortBy`, `desc` when omitted. Ignored without `sortBy`, whose own default carries its direction.","schema":{"type":"string","enum":["asc","desc"]}},{"name":"pageIndex","required":false,"in":"query","description":"Which page to return, counting from 0","schema":{"minimum":0,"default":0,"type":"number"}},{"name":"pageSize","required":false,"in":"query","description":"How many Conversations to return per page","schema":{"minimum":1,"maximum":100,"default":25,"type":"number"}}],"responses":{"200":{"description":"Conversations retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedConversationSummaryResponseDTO"}}}},"400":{"description":"A query parameter is missing or invalid"},"403":{"description":"The authenticated User is not a company Owner or Admin, or the company's plan does not include Conversations (the `quarterly-discussions` entitlement). The message says which."}},"summary":"List company Conversations","tags":["Conversations"]}}},"info":{"title":"Ninety Public API","description":"Public API endpoints for Ninety users\n\n[https://api.public.ninety.io/v1/swagger.json](/v1/swagger-json)","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"JWT":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Personal Access Token — generate one at https://app.ninety.io/settings/user/developer-settings"}},"schemas":{"GetIssuesQueryDTO":{"type":"object","properties":{"sortField":{"type":"string","description":"The field to sort results by. One of `title`, `priority`, `intervalCode`, `numOfLikes`, `createdDate`, `completedDate`, `archivedDate`, `dueDate`, `team` or `user`. An unrecognised field is rejected by the core API as a 400.","default":"createdDate","example":"createdDate"},"sortDirection":{"type":"string","description":"The sort direction","default":"DESC","enum":["ASC","DESC"],"example":"DESC"},"pageSize":{"type":"number","description":"Number of items per page","default":10,"minimum":1,"example":25},"pageIndex":{"type":"number","description":"Zero-based page index","default":0,"minimum":0,"example":0},"teamId":{"type":"string","description":"A single team Id or a comma-separated list of team Ids to filter by. Omit to query all Teams.","example":"507f1f77bcf86cd799439011"},"intervalCode":{"type":"string","description":"Filter by Issue classification","enum":["SHORT_TERM","LONG_TERM"],"example":"SHORT_TERM"},"searchText":{"type":"string","description":"Search text to match against Issue title, description, and comments","example":"supply chain"}}},"CommentResponseDTO":{"type":"object","properties":{"userId":{"type":"string","description":"Id of the user who wrote the comment","example":"507f1f77bcf86cd799439011"},"text":{"type":"string","description":"The comment text","example":"Agreed - lets revisit this next week."},"createdDate":{"type":"string","description":"ISO 8601 timestamp when the comment was written","example":"2024-02-01T14:30:00.000Z"},"editedDate":{"type":"string","description":"ISO 8601 timestamp when the comment was last edited. Absent if it never was.","example":"2024-02-02T09:15:00.000Z"},"mentionedUserIds":{"description":"Ids of users @-mentioned in the comment, as recorded when it was written","example":["507f1f77bcf86cd799439012"],"type":"array","items":{"type":"string"}}},"required":["userId","text","createdDate"]},"IssueResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the Issue","example":"507f1f77bcf86cd799439011"},"userId":{"type":"string","description":"Id of the user who owns the Issue","example":"507f1f77bcf86cd799439012"},"teamId":{"type":"string","description":"Id of the team that owns the Issue","example":"507f1f77bcf86cd799439013"},"companyId":{"type":"string","description":"Id of the company","example":"507f1f77bcf86cd799439014"},"archived":{"type":"boolean","description":"Whether the Issue has been archived","example":false},"archivedDate":{"format":"date-time","type":"string","description":"Date and time when the Issue was archived","example":null},"completed":{"type":"boolean","description":"Whether the Issue has been resolved","example":false},"completedDate":{"format":"date-time","type":"string","description":"Date and time when the Issue was resolved","example":null},"createdBy":{"type":"string","description":"Name of the user who created the Issue","example":"Jane Smith"},"deleted":{"type":"boolean","description":"Whether the Issue has been deleted","example":false},"description":{"type":"string","description":"HTML description of the Issue","example":"<p>Revenue projections are inconsistent with actuals.</p>"},"intervalCode":{"type":"string","description":"Issue classification: `SHORT_TERM` for weekly/session Issues, `LONG_TERM` for ongoing Issues","enum":["SHORT_TERM","LONG_TERM"],"example":"SHORT_TERM"},"rating":{"type":"object","description":"Alias for `priority`, carrying the upstream value verbatim. `null` for an unrated Issue, where `priority` reports `0`. Use `priority` instead.","deprecated":true,"nullable":true,"minimum":0,"maximum":5,"example":3},"priority":{"type":"number","description":"Priority of the Issue on a 0-5 scale where **5 is the highest** priority and 1 the lowest. `0` means no priority has been set. Do not infer the direction from the order Issues are returned in.","minimum":0,"maximum":5,"example":3},"title":{"type":"string","description":"Title of the Issue","example":"Cash flow projections are off"},"createdDate":{"format":"date-time","type":"string","description":"Date and time when the Issue was created","example":"2024-01-15T09:00:00.000Z"},"comments":{"description":"Comments on the Issue, oldest first. Add one with `POST /issues/{issueId}/comments` - the array is read-only here.","type":"array","items":{"$ref":"#/components/schemas/CommentResponseDTO"}}}},"IssuesQueryParamsResponseDTO":{"type":"object","properties":{"sortField":{"type":"string","description":"Sort field used in the query"},"sortDirection":{"type":"string","description":"Sort direction used in the query"},"pageSize":{"type":"number","description":"Page size used in the query"},"pageIndex":{"type":"number","description":"Page index used in the query"},"intervalCode":{"type":"string","description":"Interval code filter used in the query"}}},"PaginatedIssuesResponseDTO":{"type":"object","properties":{"items":{"description":"Array of Issues","type":"array","items":{"$ref":"#/components/schemas/IssueResponseDTO"}},"totalCount":{"type":"number","description":"Total number of Issues matching the query"},"params":{"description":"Query parameters used","allOf":[{"$ref":"#/components/schemas/IssuesQueryParamsResponseDTO"}]}},"required":["items","totalCount"]},"IssueSummaryResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Issue Id","example":"507f1f77bcf86cd799439011"},"companyId":{"type":"string","description":"The Id of the company","example":"507f1f77bcf86cd799439014"},"teamId":{"type":"string","description":"The Id of the team this Issue belongs to","example":"507f1f77bcf86cd799439012"},"userId":{"type":"string","description":"The Id of the user who owns the Issue","example":"507f1f77bcf86cd799439013"},"title":{"type":"string","description":"The title of the Issue","example":"Cash flow projections are off"},"description":{"type":"string","description":"The description of the Issue","example":"Revenue projections are inconsistent with actuals."},"ownerFirstName":{"type":"string","description":"The owning user's first name. Null if that user has been deleted.","example":"Jamie"},"ownerLastName":{"type":"string","description":"The owning user's last name. Null if that user has been deleted.","example":"Rivera"},"teamName":{"type":"object","description":"The name of the team this Issue belongs to","nullable":true},"intervalCode":{"type":"string","description":"Short or long term","enum":["SHORT_TERM","LONG_TERM"]},"priority":{"type":"number","description":"Priority on a 0-5 scale where 5 is highest; `0` means unset. Same as the single-Issue read.","minimum":0,"maximum":5,"example":3},"completed":{"type":"boolean","description":"Whether the Issue is solved"},"archived":{"type":"boolean","description":"Whether the Issue is archived"},"deleted":{"type":"boolean","description":"True only for a deleted Issue (requires `deleted=true`)"},"createdDate":{"type":"object","description":"When the Issue was created, ISO 8601","nullable":true,"example":"2024-03-15T00:00:00.000Z"},"updatedDate":{"type":"object","description":"When the Issue was last updated, ISO 8601","nullable":true},"completedDate":{"type":"object","description":"When the Issue was solved, ISO 8601","nullable":true},"archivedDate":{"type":"object","description":"When the Issue was archived, ISO 8601","nullable":true},"createdByUserId":{"type":"object","description":"The Id of the user who created the Issue","nullable":true},"completedByUserId":{"type":"object","description":"The Id of the user who solved the Issue","nullable":true},"archivedByUserId":{"type":"object","description":"The Id of the user who archived the Issue","nullable":true},"deletedDate":{"type":"object","description":"When the Issue was deleted, ISO 8601","nullable":true},"deletedByUserId":{"type":"object","description":"The Id of the user who deleted the Issue","nullable":true},"updatedByUserId":{"type":"object","description":"The Id of the user who last updated the Issue","nullable":true},"who":{"type":"object","description":"Who raised the Issue, as free text","nullable":true},"isPublic":{"type":"boolean","description":"Whether the Issue is public"},"imported":{"type":"boolean","description":"Whether the Issue was imported"}},"required":["id","companyId","teamId","userId","title"]},"IssueSummaryPaginationDTO":{"type":"object","properties":{"nextToken":{"type":"object","description":"Cursor for the next page, or null if there are no more results","nullable":true}},"required":["nextToken"]},"PaginatedIssueSummaryResponseDTO":{"type":"object","properties":{"data":{"description":"Array of Issues","type":"array","items":{"$ref":"#/components/schemas/IssueSummaryResponseDTO"}},"pagination":{"description":"Pagination cursor","allOf":[{"$ref":"#/components/schemas/IssueSummaryPaginationDTO"}]}},"required":["data","pagination"]},"IssueLinkedItemType":{"type":"string","enum":["todo","rock","milestone"],"description":"The type of item `linkedItemId` refers to."},"CreateIssueDTO":{"type":"object","properties":{"title":{"type":"string","description":"Title of the Issue","example":"Cash flow projections are off"},"teamId":{"type":"string","description":"Id of the team that owns the Issue","example":"507f1f77bcf86cd799439011"},"interval":{"type":"string","description":"Issue classification. Defaults to `SHORT_TERM` if not provided.","enum":["SHORT_TERM","LONG_TERM"],"default":"SHORT_TERM","example":"SHORT_TERM"},"description":{"type":"string","description":"HTML description of the Issue","example":"<p>Revenue projections are inconsistent with actuals.</p>"},"priority":{"type":"number","description":"Priority of the Issue on a 0-5 scale where **5 is the highest** priority and 1 the lowest. Omit or pass `0` for no priority.","minimum":0,"maximum":5,"example":3},"linkedItemId":{"type":"string","description":"The Id of a To-Do, Rock, or Milestone to link the new Issue to. Must be provided together with `linkedItemType`. The linked item must belong to the same company as the authenticated caller.","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"description":"The type of item `linkedItemId` refers to.","example":"rock","allOf":[{"$ref":"#/components/schemas/IssueLinkedItemType"}]}},"required":["title","teamId"]},"UpdateIssueDTO":{"type":"object","properties":{"title":{"type":"string","description":"Title of the Issue"},"teamId":{"type":"string","description":"Id of the team that owns the Issue"},"interval":{"type":"string","description":"Interval classification for the Issue","enum":["SHORT_TERM","LONG_TERM"]},"description":{"type":"string","description":"HTML description of the Issue"},"priority":{"type":"number","description":"Priority of the Issue on a 0-5 scale where **5 is the highest** priority and 1 the lowest. Pass `0` to clear the priority.","minimum":0,"maximum":5},"completed":{"type":"boolean","description":"Whether the Issue is completed"},"linkedItemId":{"type":"string","description":"The Id of a To-Do, Rock, or Milestone to link this existing Issue to. Must be provided together with `linkedItemType`. The linked item must belong to the same company as the authenticated caller.","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"description":"The type of item `linkedItemId` refers to.","example":"rock","allOf":[{"$ref":"#/components/schemas/IssueLinkedItemType"}]}}},"CreateCommentDTO":{"type":"object","properties":{"text":{"type":"string","description":"The comment text. HTML is sanitized upstream, so send plain text unless you specifically need formatting.","example":"Agreed - lets revisit this next week."}},"required":["text"]},"LinkIssueDTO":{"type":"object","properties":{"linkedItemId":{"type":"string","description":"The Id of the existing To-Do, Rock, or Milestone to link this Issue to. Must belong to the same company as the authenticated caller.","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"description":"The type of item `linkedItemId` refers to.","example":"rock","allOf":[{"$ref":"#/components/schemas/IssueLinkedItemType"}]}},"required":["linkedItemId","linkedItemType"]},"IssueLinkedItemResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the created link record","example":"507f1f77bcf86cd799439020"},"issueId":{"type":"string","description":"The Id of the Issue that was linked","example":"507f1f77bcf86cd799439011"},"linkedItemId":{"type":"string","description":"The Id of the To-Do, Rock, or Milestone it was linked to","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"description":"The type of the linked item","example":"rock","allOf":[{"$ref":"#/components/schemas/IssueLinkedItemType"}]},"createdDate":{"type":"string","description":"The date the link was created","example":"2024-01-01T00:00:00.000Z"}},"required":["id","issueId","linkedItemId","linkedItemType","createdDate"]},"CreatePublicIssueDTO":{"type":"object","properties":{"title":{"type":"string","description":"Title of the Issue","example":"Cash flow projections are off"},"teamId":{"type":"string","description":"Id of the team that owns the Issue","example":"507f1f77bcf86cd799439011"},"interval":{"type":"string","description":"Issue classification. Defaults to `SHORT_TERM` if not provided.","enum":["SHORT_TERM","LONG_TERM"],"default":"SHORT_TERM","example":"SHORT_TERM"},"description":{"type":"string","description":"HTML description of the Issue","example":"<p>Revenue projections are inconsistent with actuals.</p>"},"priority":{"type":"number","description":"Priority of the Issue on a 0-5 scale where **5 is the highest** priority and 1 the lowest. Omit or pass `0` for no priority.","minimum":0,"maximum":5,"example":3},"linkedItemId":{"type":"string","description":"The Id of a To-Do, Rock, or Milestone to link the new Issue to. Must be provided together with `linkedItemType`. The linked item must belong to the same company as the authenticated caller.","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"description":"The type of item `linkedItemId` refers to.","example":"rock","allOf":[{"$ref":"#/components/schemas/IssueLinkedItemType"}]},"userId":{"type":"string","description":"Id of the user to assign the Issue to. Defaults to the authenticated user. Must be a user in the authenticated user's company - assigning outside it is rejected.","example":"507f1f77bcf86cd799439013"}},"required":["title","teamId"]},"CreateTodoDTO":{"type":"object","properties":{"title":{"type":"string","description":"The title of the To-Do","example":"Follow up with client"},"description":{"type":"string","description":"The description of the To-Do","example":"Send the Q2 proposal"},"dueDate":{"type":"string","description":"Due date in YYYY-MM-DD format","example":"2024-03-15"},"teamId":{"type":"string","description":"The Id of the team to assign this To-Do to. Omit or pass an empty string for a personal To-Do.","example":"507f1f77bcf86cd799439011"},"repeat":{"type":"string","description":"Recurrence pattern for the To-Do (e.g., `weekly`, `monthly`)","example":"weekly"},"userId":{"type":"string","description":"Id of the user to assign the To-Do to. Defaults to the authenticated user.","example":"507f1f77bcf86cd799439013"},"linkedItemId":{"type":"string","description":"The Id of a Rock, Issue, or Milestone to link this To-Do to. Must be provided together with `linkedItemType`. The linked item must belong to the same company as the authenticated caller.","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"type":"string","description":"The type of item `linkedItemId` refers to.","enum":["rock","issue","milestone"],"example":"rock"}},"required":["title"]},"TodoResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The To-Do Id","example":"507f1f77bcf86cd799439011"},"title":{"type":"string","description":"The title of the To-Do","example":"Follow up with client"},"description":{"type":"string","description":"The description of the To-Do","example":"Send the Q2 proposal"},"dueDate":{"type":"string","description":"Due date in ISO 8601 format","example":"2024-03-15T00:00:00.000Z"},"isPersonal":{"type":"boolean","description":"Whether this is a personal To-Do (not associated with a team)","example":false},"completed":{"type":"boolean","description":"Whether the To-Do has been completed","example":false},"archived":{"type":"boolean","description":"Whether the To-Do has been archived","example":false},"teamId":{"type":"string","description":"The Id of the team this To-Do belongs to","example":"507f1f77bcf86cd799439012"},"teamName":{"type":"string","description":"The name of the team this To-Do belongs to","example":"Leadership"},"userId":{"type":"string","description":"The Id of the user who owns the To-Do","example":"507f1f77bcf86cd799439013"},"companyId":{"type":"string","description":"The Id of the company","example":"507f1f77bcf86cd799439014"},"createdDate":{"type":"string","description":"ISO 8601 timestamp when the To-Do was created","example":"2024-01-15T09:00:00.000Z"},"updatedDate":{"type":"string","description":"ISO 8601 timestamp when the To-Do was last updated","example":"2024-02-01T14:30:00.000Z"},"comments":{"description":"Comments on the To-Do, oldest first. Add one with `POST /todos/{id}/comments` - the array is read-only here.","type":"array","items":{"$ref":"#/components/schemas/CommentResponseDTO"}}},"required":["id","title","isPersonal","completed","archived","userId","companyId","createdDate","updatedDate"]},"GetTodosQueryDTO":{"type":"object","properties":{"teamId":{"type":"string","description":"Filter results to a specific team Id. Returns the To-Dos of every assignee on that team, not only your own - add `userIds` to narrow it to specific people. Cannot be combined with `isPersonal`.","example":"507f1f77bcf86cd799439011"},"sort":{"type":"string","description":"The field to sort results by","example":"dueDate"},"order":{"type":"string","description":"Sort direction","enum":["asc","desc"],"example":"asc"},"page":{"type":"number","description":"Page number (1-based)","example":1},"pageSize":{"type":"number","description":"Number of results per page (max 100)","example":25},"isPersonal":{"type":"boolean","description":"Selects which kind of To-Do to return. Personal and team To-Dos cannot be returned by the same call: pass true for personal To-Dos (no team), and omit or pass false for team To-Dos. Omitting it returns team To-Dos ONLY. Cannot be combined with teamId.","example":false},"completed":{"type":"boolean","description":"Filter by completed status","example":false},"archived":{"type":"boolean","description":"Filter by archived status","example":false},"searchText":{"type":"string","description":"Search text to match against To-Do title and description","example":"follow up"},"title":{"type":"string","description":"Filter by exact title match","example":"Follow up with client"},"userIds":{"description":"An array of user Ids to filter To-Dos by assignee. Omit it alongside `teamId` to return the whole team; omit it with no `teamId` to return only the caller's own To-Dos. Personal To-Dos belonging to other people are never returned.","example":["507f1f77bcf86cd799439011","507f1f77bcf86cd799439012"],"type":"array","items":{"type":"string"}},"dueDateFrom":{"type":"string","description":"Earliest due date to return, as YYYY-MM-DD (UTC). Inclusive.","example":"2026-03-01"},"dueDateTo":{"type":"string","description":"Latest due date to return, as YYYY-MM-DD (UTC). Inclusive of the whole day, so a To-Do due at 17:00 on this date is returned.","example":"2026-03-31"}}},"PaginatedTodosResponseDTO":{"type":"object","properties":{"items":{"description":"The To-Dos on the current page","type":"array","items":{"$ref":"#/components/schemas/TodoResponseDTO"}},"totalCount":{"type":"number","description":"Total number of To-Dos matching the query, across all pages"}},"required":["items","totalCount"]},"TodoSummaryResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The To-Do Id","example":"507f1f77bcf86cd799439011"},"companyId":{"type":"string","description":"The Id of the company","example":"507f1f77bcf86cd799439014"},"teamId":{"type":"string","description":"The Id of the team this To-Do belongs to","example":"507f1f77bcf86cd799439012"},"userId":{"type":"string","description":"The Id of the user who owns the To-Do","example":"507f1f77bcf86cd799439013"},"title":{"type":"string","description":"The title of the To-Do","example":"Follow up with client"},"description":{"type":"string","description":"The description of the To-Do","example":"Send the Q2 proposal"},"dueDate":{"type":"string","description":"Due date in ISO 8601 format","example":"2024-03-15T00:00:00.000Z"},"ownerFirstName":{"type":"string","description":"The owning user's first name. Null if that user has been deleted.","example":"Jamie"},"ownerLastName":{"type":"string","description":"The owning user's last name. Null if that user has been deleted.","example":"Rivera"},"teamName":{"type":"object","description":"The name of the team this To-Do belongs to","nullable":true},"originalDueDate":{"type":"object","description":"The due date before any change, ISO 8601","nullable":true},"dueDateChanged":{"type":"boolean","description":"Whether the due date has been changed"},"completed":{"type":"boolean","description":"Whether the To-Do is complete"},"archived":{"type":"boolean","description":"Whether the To-Do is archived"},"deleted":{"type":"boolean","description":"True only for a deleted To-Do (requires `deleted=true`)"},"createdDate":{"type":"object","description":"When the To-Do was created, ISO 8601","nullable":true,"example":"2024-03-15T00:00:00.000Z"},"completedDate":{"type":"object","description":"When the To-Do was completed, ISO 8601","nullable":true},"archivedDate":{"type":"object","description":"When the To-Do was archived, ISO 8601","nullable":true},"deletedDate":{"type":"object","description":"When the To-Do was deleted, ISO 8601","nullable":true},"repeat":{"type":"string","description":"How often the To-Do repeats","nullable":true,"enum":["Don't repeat","Daily","Weekly","Monthly","Quarterly","Annual"]},"seriesId":{"type":"object","description":"The Id of the first To-Do in a repeating series","nullable":true},"milestoneId":{"type":"object","description":"The Id of the Milestone this To-Do came from","nullable":true}},"required":["id","companyId","userId","title"]},"TodoSummaryPaginationDTO":{"type":"object","properties":{"nextToken":{"type":"object","description":"Cursor for the next page, or null if there are no more results","nullable":true}},"required":["nextToken"]},"PaginatedTodoSummaryResponseDTO":{"type":"object","properties":{"data":{"description":"Array of To-Dos","type":"array","items":{"$ref":"#/components/schemas/TodoSummaryResponseDTO"}},"pagination":{"description":"Pagination cursor","allOf":[{"$ref":"#/components/schemas/TodoSummaryPaginationDTO"}]}},"required":["data","pagination"]},"UpdateTodoDTO":{"type":"object","properties":{"completed":{"type":"boolean","description":"Whether the todo is completed"},"archived":{"type":"boolean","description":"Whether the todo is archived"},"dueDate":{"type":"string","description":"Due date in ISO format"},"teamId":{"type":"string","description":"The team Id"},"title":{"type":"string","description":"The title of the todo"},"description":{"type":"string","description":"The description of the todo"},"repeat":{"type":"string","description":"Repeat pattern"},"userId":{"type":"string","description":"User Id to assign the To-Do to"},"linkedItemId":{"type":"string","description":"The Id of a Rock, Issue, or Milestone to link this existing To-Do to. Must be provided together with `linkedItemType`. The linked item must belong to the same company as the authenticated caller.","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"type":"string","description":"The type of item `linkedItemId` refers to.","enum":["rock","issue","milestone"],"example":"rock"}}},"LinkTodoDTO":{"type":"object","properties":{"linkedItemId":{"type":"string","description":"The Id of the existing Rock, Issue, or Milestone to link this To-Do to. Must belong to the same company as the authenticated caller.","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"type":"string","description":"The type of item `linkedItemId` refers to.","enum":["rock","issue","milestone"],"example":"issue"}},"required":["linkedItemId","linkedItemType"]},"LinkedItemResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the created link record","example":"507f1f77bcf86cd799439020"},"todoId":{"type":"string","description":"The Id of the To-Do that was linked","example":"507f1f77bcf86cd799439011"},"linkedItemId":{"type":"string","description":"The Id of the Rock, Issue, or Milestone it was linked to","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"type":"string","description":"The type of the linked item","enum":["rock","issue","milestone"],"example":"issue"},"createdDate":{"type":"string","description":"The date the link was created","example":"2024-01-01T00:00:00.000Z"}},"required":["id","todoId","linkedItemId","linkedItemType","createdDate"]},"TeamResponseDTO":{"type":"object","properties":{"_id":{"type":"string","description":"The Team Id"},"name":{"type":"string","description":"The Team name"}},"required":["_id","name"]},"AvailableTeamResponseDTO":{"type":"object","properties":{"_id":{"type":"string","description":"The Team Id"},"name":{"type":"string","description":"The Team name"},"isMember":{"type":"boolean","description":"Whether the authenticated user is a member of this Team. False means the Team is visible only because the user is an Owner, Admin or Implementer - work can still be created on it, but the user has no membership relationship with it.","example":true}},"required":["_id","name","isMember"]},"ScorecardPeriodDTO":{"type":"object","properties":{"label":{"type":"string","description":"The human label for the period, as displayed in Ninety","example":"Q4"},"periodStartDate":{"type":"string","description":"The canonical period start date in ISO 8601 format","example":"2024-10-01T00:00:00.000Z"},"isFuture":{"type":"boolean","description":"Whether the period is still in the future","example":false},"partialInterval":{"type":"boolean","description":"Whether the period is only partially elapsed","example":false}},"required":["label","periodStartDate","isFuture"]},"ScorecardScoreDTO":{"type":"object","properties":{"label":{"type":"string","description":"The human label for the period, as displayed in Ninety","example":"Q4"},"periodStartDate":{"type":"string","description":"The canonical period start date in ISO 8601 format","example":"2024-10-01T00:00:00.000Z"},"isFuture":{"type":"boolean","description":"Whether the period is still in the future","example":false},"partialInterval":{"type":"boolean","description":"Whether the period is only partially elapsed","example":false},"value":{"type":"object","description":"The recorded value. `null` when no score has been entered for the period.","example":42000},"goal":{"type":"object","description":"The goal in effect for this period, if any"},"note":{"type":"object","description":"The note attached to this score, if any"}},"required":["label","periodStartDate","isFuture"]},"ScorecardKpiDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the Measurable","example":"64d6a32564d6a32564d6a325"},"title":{"type":"string","description":"The title of the Measurable","example":"Weekly Revenue"},"unit":{"type":"string","description":"The unit of measurement","enum":["number","percentage","yesno","time","dollar","euro","pound"],"example":"dollar"},"currency":{"type":"string","description":"The currency. Only applicable when unit is `dollar`, `euro`, or `pound`.","enum":["USD","AUD","CAD","EUR","GBP"],"example":"USD"},"ownerName":{"type":"string","description":"The full name of the Measurable's owner. Absent when the Measurable is unowned - the same way the Measurables list reports it.","example":"Jane Smith"},"defaultGoal":{"type":"object","description":"The default goal for the Measurable"},"average":{"type":"object","description":"The average of the returned scores, as computed by Ninety","example":41000},"total":{"type":"object","description":"The total of the returned scores, as computed by Ninety","example":533000},"scores":{"description":"One entry per period in the window, in the same order as the top-level `periods`","type":"array","items":{"$ref":"#/components/schemas/ScorecardScoreDTO"}}},"required":["id","title","unit","scores"]},"ScorecardGroupDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the Measurable group","example":"68517b5b5cc92af0f2e31f51"},"name":{"type":"string","description":"The name of the Measurable group","example":"Revenue"},"kpis":{"description":"The Measurables in this group","type":"array","items":{"$ref":"#/components/schemas/ScorecardKpiDTO"}}},"required":["id","name","kpis"]},"TeamScorecardResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the Scorecard","example":"507f1f77bcf86cd799439012"},"name":{"type":"string","description":"The name of the Scorecard","example":"Weekly Leadership Scorecard"},"periodInterval":{"type":"string","description":"The period interval of the Scorecard","enum":["weekly","monthly","quarterly","annual"],"example":"weekly"},"teamId":{"type":"string","description":"The Id of the Team the Scorecard belongs to","example":"507f1f77bcf86cd799439011"},"periods":{"description":"The periods covered by this response, oldest first. Match on `label` to pick a period (for example `Q4`, or `Jan 06 - Jan 12`).","type":"array","items":{"$ref":"#/components/schemas/ScorecardPeriodDTO"}},"groups":{"description":"The Measurable groups on the Scorecard","type":"array","items":{"$ref":"#/components/schemas/ScorecardGroupDTO"}}},"required":["id","name","periodInterval","teamId","periods","groups"]},"KpiScoreResponseDTO":{"type":"object","properties":{"kpiId":{"type":"string","description":"The Id of the Measurable","example":"64d6a32564d6a32564d6a325"},"title":{"type":"string","description":"The title of the Measurable","example":"Weekly Revenue"},"unit":{"type":"string","description":"The unit of measurement","enum":["number","percentage","yesno","time","dollar","euro","pound"],"example":"dollar"},"currency":{"type":"string","description":"The currency. Only applicable when unit is `dollar`, `euro`, or `pound`.","enum":["USD","AUD","CAD","EUR","GBP"],"example":"USD"},"periodStartDate":{"type":"string","description":"The stored key for the period the requested date resolved to, in ISO 8601 format. This is the value to send back when writing a score for the same period.","example":"2024-07-01T00:00:00.000Z"},"periodDisplayDate":{"type":"string","description":"The first day of that period as Ninety displays it. Differs from `periodStartDate` when the company's week does not start on Monday, and, for quarterly and annual Measurables, when the fiscal year does not start in January.","example":"2024-07-01T00:00:00.000Z"},"label":{"type":"string","description":"The human label for that period, as displayed in Ninety","example":"Jul 01 - Jul 07"},"isFuture":{"type":"boolean","description":"Whether the period is still in the future","example":false},"value":{"description":"The recorded value. Always present, and `null` when no score has been entered.","nullable":true,"oneOf":[{"type":"number"},{"type":"string"}],"example":42000},"goal":{"type":"object","description":"The goal in effect for this period. Always present, and `null` when there is none.","nullable":true},"note":{"type":"string","description":"The note attached to this score. Always present, and `null` when there is none.","nullable":true}},"required":["kpiId","title","unit","periodStartDate","periodDisplayDate","label","isFuture","value","goal","note"]},"KpiGroupSummaryResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The KPI group Id","example":"507f1f77bcf86cd799439013"},"companyId":{"type":"string","description":"The Id of the company","example":"507f1f77bcf86cd799439015"},"teamId":{"type":"string","description":"The Id of the team this KPI group belongs to","example":"507f1f77bcf86cd799439011"},"scorecardId":{"type":"string","description":"The Id of the Scorecard this KPI group is on","example":"507f1f77bcf86cd799439014"},"name":{"type":"string","description":"The name of the KPI group","example":"Financial Performance"},"description":{"type":"string","description":"The description of the KPI group","example":"Revenue and margin Measurables reviewed every week"},"kpiIds":{"description":"The Ids of the Measurables in this KPI group, in display order","example":["64d6a32564d6a32564d6a325","64d6a32564d6a32564d6a326"],"type":"array","items":{"type":"string"}},"updatedBy":{"type":"string","description":"The Id of the user who last updated the KPI group","example":"507f1f77bcf86cd799439012"},"ordinal":{"type":"number","description":"The group's position on its Scorecard, for ordering the groups of one Scorecard. Null when no live Scorecard lists the group","nullable":true,"example":0}},"required":["id","companyId","teamId","scorecardId","name","kpiIds","ordinal"]},"KpiGroupSummaryPaginationDTO":{"type":"object","properties":{"nextToken":{"type":"object","description":"Cursor for the next page, or null if there are no more results","nullable":true}},"required":["nextToken"]},"PaginatedKpiGroupSummaryResponseDTO":{"type":"object","properties":{"data":{"description":"Array of KPI groups","type":"array","items":{"$ref":"#/components/schemas/KpiGroupSummaryResponseDTO"}},"pagination":{"description":"Pagination cursor","allOf":[{"$ref":"#/components/schemas/KpiGroupSummaryPaginationDTO"}]}},"required":["data","pagination"]},"PeriodValueGoalDTO":{"type":"object","properties":{"orientation":{"type":"string","enum":["gt","gte","lt","lte","equal"],"example":"gte"},"value":{"type":"number","example":100}},"required":["orientation","value"]},"PeriodRangeGoalDTO":{"type":"object","properties":{"orientation":{"type":"string","enum":["inside","outside"],"example":"inside"},"min":{"type":"number","example":50},"max":{"type":"number","example":100}},"required":["orientation","min","max"]},"TeamDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the team","example":"507f1f77bcf86cd799439011"},"name":{"type":"string","description":"The name of the team","example":"Leadership"}},"required":["id","name"]},"ScorecardDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the Scorecard","example":"507f1f77bcf86cd799439012"},"name":{"type":"string","description":"The name of the Scorecard","example":"Weekly Leadership Scorecard"},"periodInterval":{"type":"string","description":"The period interval of the Scorecard","enum":["weekly","monthly","quarterly","annual"],"example":"weekly"}},"required":["id","name","periodInterval"]},"CompanyKpiScoreDTO":{"type":"object","properties":{"periodStartDate":{"type":"string","description":"The stored key for the period, in ISO 8601 format. This is the value to send back when writing a score for the same period. It is the Monday of the week, the 1st of the month, and for quarterly and annual Measurables the quarter or year in fiscal-year numbering, so it differs from `periodDisplayDate` when the company's week does not start on Monday or its fiscal year does not start in January.","example":"2026-01-05T00:00:00.000Z"},"periodDisplayDate":{"type":"string","description":"The first day of the period as Ninety displays it, from the company's weekly start day and fiscal calendar, in ISO 8601 format. `scoresFrom` and `scoresTo` filter on this date.","example":"2026-01-04T00:00:00.000Z"},"value":{"type":"number","description":"The recorded value. `null` when none was entered. For smart Measurables only a manual override is recorded, so it is `null` unless the Measurable uses manual overrides.","nullable":true,"example":42000},"goal":{"description":"The goal recorded for this period. `null` when the Measurable's current default goal applies.","oneOf":[{"$ref":"#/components/schemas/PeriodValueGoalDTO"},{"$ref":"#/components/schemas/PeriodRangeGoalDTO"},{"type":"object","nullable":true,"enum":[null]}]},"note":{"type":"string","description":"The note attached to the score","nullable":true}},"required":["periodStartDate","periodDisplayDate","value","goal","note"]},"CompanyKpiResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the Measurable","example":"64d6a32564d6a32564d6a325"},"title":{"type":"string","description":"The title of the Measurable","example":"Weekly Revenue"},"description":{"type":"string","description":"The description of the Measurable","example":"Booked revenue for the week"},"unit":{"type":"string","description":"The unit of measurement","enum":["number","percentage","yesno","time","dollar","euro","pound"],"example":"dollar"},"currency":{"type":"string","description":"The currency. Only applicable when unit is `dollar`, `euro`, or `pound`.","enum":["USD","AUD","CAD","EUR","GBP"],"example":"USD"},"periodInterval":{"type":"string","description":"The period interval of the Measurable","enum":["weekly","monthly","quarterly","annual"],"example":"weekly"},"defaultGoal":{"description":"The default goal for the Measurable","oneOf":[{"$ref":"#/components/schemas/PeriodValueGoalDTO"},{"$ref":"#/components/schemas/PeriodRangeGoalDTO"}]},"isSmart":{"type":"boolean","description":"Whether the Measurable is calculated from a formula. Its scores carry a `value` only when it was entered as a manual override.","example":false},"userId":{"type":"string","description":"The Id of the Measurable's owner. `null` if unassigned.","nullable":true,"example":"507f1f77bcf86cd799439013"},"userFullName":{"type":"string","description":"The full name of the Measurable's owner. `null` if unassigned.","nullable":true,"example":"Jane Smith"},"lastScoreUpdatedAt":{"type":"string","description":"ISO 8601 timestamp of the most recent score update. `null` if never scored.","nullable":true,"example":"2026-10-05T14:30:00.000Z"},"teams":{"description":"The Teams whose Scorecards include the Measurable","type":"array","items":{"$ref":"#/components/schemas/TeamDTO"}},"scorecards":{"description":"The Scorecards that include the Measurable","type":"array","items":{"$ref":"#/components/schemas/ScorecardDTO"}},"scores":{"description":"The stored scores whose `periodDisplayDate` is between `scoresFrom` and `scoresTo`, oldest first.","type":"array","items":{"$ref":"#/components/schemas/CompanyKpiScoreDTO"}}},"required":["id","title","unit","periodInterval","isSmart","userId","userFullName","lastScoreUpdatedAt","teams","scorecards","scores"]},"CompanyKpiPaginationDTO":{"type":"object","properties":{"nextToken":{"type":"string","description":"Cursor for the next page, or null if there are no more results","nullable":true}},"required":["nextToken"]},"PaginatedCompanyKpiResponseDTO":{"type":"object","properties":{"data":{"description":"Array of Measurables","type":"array","items":{"$ref":"#/components/schemas/CompanyKpiResponseDTO"}},"pagination":{"description":"Pagination cursor","allOf":[{"$ref":"#/components/schemas/CompanyKpiPaginationDTO"}]}},"required":["data","pagination"]},"GetKpisQueryDTO":{"type":"object","properties":{"excludeKpiIds":{"description":"Array of Measurable Ids to exclude from the response","example":["64d6a32564d6a32564d6a325"],"type":"array","items":{"type":"string"}},"pageIndex":{"type":"number","description":"The page number to retrieve","example":0},"pageSize":{"type":"number","description":"The number of items to retrieve per page","example":25},"periodInterval":{"type":"string","description":"Limits results to Measurables with the specified period interval","enum":["weekly","monthly","quarterly","annual"],"example":"weekly"},"searchOwner":{"type":"string","description":"The name, or part of the name, of the owner of the Measurables to retrieve","example":"Jim"},"searchText":{"type":"string","description":"Text to search for in the Measurable title or description","example":"Finance"},"searchTitle":{"type":"string","description":"Text to search for in the Measurable title only","example":"Indicator"},"teamId":{"type":"string","description":"Limits results to Measurables on the given Team's Scorecards. Omit to search every Measurable the caller can see.","example":"64d6a32564d6a32564d6a325"},"sortField":{"type":"string","description":"The field to sort Measurables by","enum":["id","owner","title"],"example":"title"},"sortDirection":{"type":"string","description":"The sort direction for the selected sort field","enum":["ASC","DESC"],"example":"ASC"},"unassignedOnly":{"type":"boolean","description":"Only include Measurables that have no owner assigned","example":false},"userIds":{"description":"An array of user Ids to filter Measurables by owner","example":["64d6a32564d6a32564d6a325","64d6a32564d6a32564d6a326"],"type":"array","items":{"type":"string"}}}},"KpiQueryItemResponseDTO":{"type":"object","properties":{"_id":{"type":"string","description":"The Id of the Measurable","example":"64d6a32564d6a32564d6a325"},"currency":{"type":"string","description":"The currency for the Measurable. Only applicable when unit is `dollar`, `euro`, or `pound`.","enum":["USD","AUD","CAD","EUR","GBP"],"example":"USD"},"defaultGoal":{"type":"object","description":"The default goal for the Measurable"},"periodInterval":{"type":"string","description":"The period interval of the Measurable","enum":["weekly","monthly","quarterly","annual"],"example":"weekly"},"title":{"type":"string","description":"The title of the Measurable","example":"Weekly Revenue"},"unit":{"type":"string","description":"The unit of measurement for the Measurable","enum":["number","percentage","yesno","time","dollar","euro","pound"],"example":"number"},"userId":{"type":"object","description":"The Id of the Measurable's owner. `null` if unassigned.","example":"507f1f77bcf86cd799439013"},"userFullName":{"type":"string","description":"The full name of the Measurable's owner","example":"Jane Smith"},"type":{"type":"string","description":"Whether the Measurable is active or archived","enum":["active","archived"],"example":"active"},"attachmentCount":{"type":"number","description":"The number of attachments on the Measurable","example":0},"isSmart":{"type":"boolean","description":"Whether the Measurable is formula-based (calculated from other Measurables)","example":false},"isUsedInFormula":{"type":"boolean","description":"Whether this Measurable is referenced in another Measurable's formula","example":false},"lastScoreUpdatedAt":{"type":"object","description":"ISO 8601 timestamp of the most recent score update. `null` if never scored.","example":"2024-03-15T10:30:00.000Z"},"teams":{"description":"The Teams this Measurable belongs to","type":"array","items":{"$ref":"#/components/schemas/TeamDTO"}},"scorecards":{"description":"The Scorecards this Measurable belongs to","type":"array","items":{"$ref":"#/components/schemas/ScorecardDTO"}}},"required":["_id","defaultGoal","periodInterval","title","unit","userFullName","type","attachmentCount","isSmart","isUsedInFormula","teams","scorecards"]},"PaginatedKpiResponseDTO":{"type":"object","properties":{"currentPage":{"type":"number","description":"The current page number (1-based index)"},"items":{"description":"The Measurables on the current page","type":"array","items":{"$ref":"#/components/schemas/KpiQueryItemResponseDTO"}},"itemsCount":{"type":"number","description":"The number of items returned on the current page"},"totalCount":{"type":"number","description":"The total number of items across all pages"},"totalPages":{"type":"number","description":"The total number of pages available"}},"required":["currentPage","items","itemsCount","totalCount","totalPages"]},"BatchScoreItemDTO":{"type":"object","properties":{"kpiId":{"type":"string","description":"The Id of the Measurable","example":"64d6a32564d6a32564d6a325"},"periodStartDate":{"type":"string","description":"Any calendar date inside the target period, as YYYY-MM-DD or an ISO datetime - it does not have to be the first day of the period. The time and timezone are ignored. The period is resolved from the Measurable's own cadence using the company weekly start day and fiscal calendar.","example":"2024-07-06"},"value":{"type":"number","description":"The score value. Overwrites any score already recorded for that period.","example":42},"note":{"type":"string","description":"The note for that period. Replaces the period's existing note; omit it to leave the existing note as it is.","example":"Two deals slipped to next week."}},"required":["kpiId","periodStartDate","value"]},"BatchPutScoresDTO":{"type":"object","properties":{"items":{"description":"Between 1 and 100 scores to write. Each one names a Measurable and a period; a Measurable may appear more than once as long as each appearance targets a different period.","minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/BatchScoreItemDTO"}}},"required":["items"]},"BatchWrittenScoreDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the stored score","example":"64d6a32564d6a32564d6a326"},"periodStartDate":{"type":"string","description":"The start of the period the score was stored under, in ISO 8601 format","example":"2024-07-01T00:00:00.000Z"},"value":{"type":"number","description":"The stored score value","nullable":true,"example":42},"note":{"type":"string","description":"The stored note for that period","nullable":true}},"required":["id","periodStartDate","value","note"]},"BatchScoreErrorDTO":{"type":"object","properties":{"code":{"type":"string","description":"Why this score was not written. Known codes: `not_found` (no Measurable with that Id is visible to the caller), `forbidden` (the caller can see the Measurable but may not enter its scores), `calculated_measurable` (the Measurable is calculated from a formula), `invalid_period` (the date does not resolve to a period of that Measurable), `future_period` (the period has not started) and `duplicate` (the request names the same Measurable and period more than once). Treat any other value as a failure described by `message`.","example":"calculated_measurable"},"message":{"type":"string","description":"What went wrong and what to do about it, in a sentence fit to show a user.","example":"This Measurable is calculated from a formula, so a score written to it would be replaced; write scores to the Measurables its formula uses instead."}},"required":["code","message"]},"BatchScoreResultDTO":{"type":"object","properties":{"index":{"type":"number","description":"The item's position in the request's `items`, starting at 0","example":0},"kpiId":{"type":"string","description":"The Id of the Measurable the item named","example":"64d6a32564d6a32564d6a325"},"status":{"type":"string","description":"Whether this score was written","enum":["written","failed"]},"periodStartDate":{"type":"string","description":"The start of the period the date resolved to, in ISO 8601 format. Absent on a failure that happened before the period could be resolved.","example":"2024-07-01T00:00:00.000Z"},"score":{"description":"The stored score. Present only when `status` is `written`.","allOf":[{"$ref":"#/components/schemas/BatchWrittenScoreDTO"}]},"error":{"description":"Why the score was not written. Present only when `status` is `failed`.","allOf":[{"$ref":"#/components/schemas/BatchScoreErrorDTO"}]}},"required":["index","kpiId","status"]},"BatchScoreSummaryDTO":{"type":"object","properties":{"written":{"type":"number","description":"How many scores were written","example":1},"failed":{"type":"number","description":"How many scores were not written","example":1}},"required":["written","failed"]},"BatchPutScoresResponseDTO":{"type":"object","properties":{"results":{"description":"One result per request item, in request order.","type":"array","items":{"$ref":"#/components/schemas/BatchScoreResultDTO"}},"summary":{"description":"Counts of written and failed scores across `results`.","allOf":[{"$ref":"#/components/schemas/BatchScoreSummaryDTO"}]}},"required":["results","summary"]},"PutScoreDTO":{"type":"object","properties":{"value":{"type":"number","description":"The score value","example":100},"periodStartDate":{"type":"string","description":"The period start date in ISO 8601 format","example":"2024-01-01T00:00:00.000Z"}},"required":["value","periodStartDate"]},"ScoreResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the score","example":"64d6a32564d6a32564d6a325"},"value":{"type":"number","description":"The score value","example":95},"periodStartDate":{"type":"string","description":"The period start date in ISO 8601 format","example":"2024-01-01T00:00:00.000Z"}},"required":["id","periodStartDate"]},"PutNoteDTO":{"type":"object","properties":{"note":{"type":"string","description":"The note text","example":"Great progress this week!"},"periodStartDate":{"type":"string","description":"The period start date in ISO 8601 format","example":"2024-01-01T00:00:00.000Z"}},"required":["note","periodStartDate"]},"NoteResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the note","example":"64d6a32564d6a32564d6a325"},"note":{"type":"string","description":"The note text","example":"Good progress this week"},"periodStartDate":{"type":"string","description":"The period start date in ISO 8601 format","example":"2024-01-01T00:00:00.000Z"}},"required":["id","periodStartDate"]},"PatchPeriodScoreDTO":{"type":"object","properties":{"value":{"type":"number","description":"The score value. Omit to leave unchanged; null clears it.","nullable":true,"example":0},"note":{"type":"string","description":"The note. Omit to leave unchanged; null clears it.","nullable":true},"goal":{"description":"The custom goal for this period only. Omit to leave unchanged; null removes the override. Does not change the KPI default goal.","oneOf":[{"$ref":"#/components/schemas/PeriodValueGoalDTO"},{"$ref":"#/components/schemas/PeriodRangeGoalDTO"},{"type":"object","nullable":true,"enum":[null]}]}}},"PeriodScoreResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the stored score"},"periodStartDate":{"type":"string","description":"The resolved period storage key in ISO 8601 format"},"value":{"type":"number","description":"The stored score value","nullable":true},"note":{"type":"string","description":"The stored note","nullable":true},"goal":{"description":"The stored period override. Null means no override; this is not the KPI default goal.","oneOf":[{"$ref":"#/components/schemas/PeriodValueGoalDTO"},{"$ref":"#/components/schemas/PeriodRangeGoalDTO"},{"type":"object","nullable":true,"enum":[null]}]}},"required":["id","periodStartDate","value","note","goal"]},"RockSortField":{"type":"string","enum":["title","statusCode","dueDate","completedDate","owner","team","dueDateQuarter"],"description":"Field to sort Rocks by"},"RockStatusCode":{"type":"string","enum":["OFF_TRACK","ON_TRACK","DONE","CANCELED","DRAFT"],"description":"Filter Rocks by status — `OFF_TRACK` · `ON_TRACK` · `DONE` · `CANCELED` · `DRAFT`"},"RockLevelCode":{"type":"string","enum":["USER","COMPANY_AND_DEPARTMENT","COMPANY","DEPARTMENT"],"description":"Filter Rocks by level — `USER` · `COMPANY_AND_DEPARTMENT` · `COMPANY` · `DEPARTMENT`"},"GetRocksQueryDTO":{"type":"object","properties":{"sortField":{"description":"Field to sort Rocks by","default":"dueDate","example":"dueDate","allOf":[{"$ref":"#/components/schemas/RockSortField"}]},"sortDirection":{"type":"string","description":"Sort direction","enum":["ASC","DESC"],"default":"DESC","example":"DESC"},"pageSize":{"type":"number","description":"Number of items per page (max 200)","minimum":0,"maximum":200,"default":10,"example":10},"pageIndex":{"type":"number","description":"Page index (0-based)","minimum":0,"default":0,"example":0},"teamId":{"type":"string","description":"Filter Rocks by team Id","example":"507f1f77bcf86cd799439011"},"userId":{"type":"string","description":"Filter Rocks by owner user Id","example":"507f1f77bcf86cd799439012"},"statusCode":{"description":"Filter Rocks by status — `OFF_TRACK` · `ON_TRACK` · `DONE` · `CANCELED` · `DRAFT`","example":"ON_TRACK","allOf":[{"$ref":"#/components/schemas/RockStatusCode"}]},"levelCode":{"description":"Filter Rocks by level — `USER` · `COMPANY_AND_DEPARTMENT` · `COMPANY` · `DEPARTMENT`","example":"USER","allOf":[{"$ref":"#/components/schemas/RockLevelCode"}]},"futureScope":{"type":"string","description":"Filter by future scope — `Current` · `Next` · `Later` · `Future` · `all` (returns Rocks across all future scopes)","enum":["Current","Next","Later","Future","all"],"example":"Current"},"archived":{"type":"boolean","description":"True for archived Rocks only, false (default) for active Rocks only","example":false},"searchText":{"type":"string","description":"Filter Rocks by title or description text","example":"onboarding"},"includeRockGoals":{"type":"boolean","description":"When true, linked goals are included in the response","example":false},"userIds":{"type":"string","description":"Comma-separated list of user Ids to filter Rocks by (alternative to userId for multiple users)","example":"507f1f77bcf86cd799439012,507f1f77bcf86cd799439016"}},"required":["sortField","sortDirection","pageSize","pageIndex"]},"GetRocksPageQueryDTO":{"type":"object","properties":{"sortField":{"description":"Field to sort Rocks by. Defaults to dueDate.","example":"dueDate","allOf":[{"$ref":"#/components/schemas/RockSortField"}]},"sortDirection":{"type":"string","description":"Sort direction. Defaults to DESC.","enum":["ASC","DESC"],"example":"DESC"},"pageSize":{"type":"number","description":"Number of items per page (max 200). Defaults to 10.","minimum":1,"maximum":200,"example":10},"pageIndex":{"type":"number","description":"Page index (0-based, max 1000). Defaults to 0.","minimum":0,"maximum":1000,"example":0},"teamId":{"type":"string","description":"Filter Rocks by team Id","example":"507f1f77bcf86cd799439011"},"userId":{"type":"string","description":"Filter Rocks by owner user Id","example":"507f1f77bcf86cd799439012"},"statusCode":{"description":"Filter Rocks by status — `OFF_TRACK` · `ON_TRACK` · `DONE` · `CANCELED` · `DRAFT`","example":"ON_TRACK","allOf":[{"$ref":"#/components/schemas/RockStatusCode"}]},"levelCode":{"description":"Filter Rocks by level — `USER` · `COMPANY_AND_DEPARTMENT` · `COMPANY` · `DEPARTMENT`","example":"USER","allOf":[{"$ref":"#/components/schemas/RockLevelCode"}]},"futureScope":{"type":"string","description":"Filter by future scope — `Current` · `Next` · `Later` · `Future` · `all` (returns Rocks across all future scopes)","enum":["Current","Next","Later","Future","all"],"example":"Current"},"archived":{"type":"boolean","description":"True for archived Rocks only, false (default) for active Rocks only","example":false},"searchText":{"type":"string","description":"Filter Rocks by title or description text","example":"onboarding"},"includeRockGoals":{"type":"boolean","description":"When true, linked goals are included in the response","example":false},"userIds":{"type":"string","description":"Comma-separated list of user Ids to filter Rocks by (alternative to userId for multiple users)","example":"507f1f77bcf86cd799439012,507f1f77bcf86cd799439016"}}},"RockQuarter":{"type":"string","enum":["Q1","Q2","Q3","Q4","None"],"description":"The quarter associated with the Rock — `Q1` · `Q2` · `Q3` · `Q4` · `None`"},"RockFutureScope":{"type":"string","enum":["Current","Next","Later","Future"],"description":"The future scope of the Rock — `Current` · `Next` · `Later` · `Future`"},"MilestoneResponseDTO":{"type":"object","properties":{"_id":{"type":"string","description":"The Id of the Milestone","example":"507f1f77bcf86cd799439014"},"companyId":{"type":"string","description":"The Id of the company the Milestone belongs to","example":"507f1f77bcf86cd799439015"},"rockId":{"type":"string","description":"The Id of the Rock this Milestone belongs to","example":"507f1f77bcf86cd799439013"},"teamId":{"type":"string","description":"The Id of the team the Milestone belongs to","example":"507f1f77bcf86cd799439011"},"ownedByUserId":{"type":"string","description":"The Id of the user who owns this Milestone","example":"507f1f77bcf86cd799439012"},"title":{"type":"string","description":"The title of the Milestone","example":"Complete UX wireframes"},"description":{"type":"string","description":"The description of the Milestone","example":"Deliver final wireframes for review in Figma"},"dueDate":{"type":"string","description":"The due date of the Milestone (ISO 8601)","example":"2026-05-15T23:59:59.000Z"},"isDone":{"type":"boolean","description":"True if the Milestone is done","example":false},"isDeleted":{"type":"boolean","description":"True if the Milestone has been deleted","example":false},"completedDate":{"type":"string","description":"The date the Milestone was completed (ISO 8601)","example":"2026-05-10T16:00:00.000Z"},"userOrdinal":{"type":"number","description":"The ordinal position of this Milestone for the user (0-based)","example":0},"followers":{"description":"Array of user Ids who are following this Milestone","example":["507f1f77bcf86cd799439012","507f1f77bcf86cd799439016"],"type":"array","items":{"type":"string"}},"createdBy":{"type":"string","description":"The Id of the user who created the Milestone","example":"507f1f77bcf86cd799439012"},"createdDate":{"type":"string","description":"The date the Milestone was created (ISO 8601)","example":"2026-01-15T09:00:00.000Z"},"updatedAt":{"type":"string","description":"The date the Milestone was last updated (ISO 8601)","example":"2026-03-01T14:30:00.000Z"},"toDoId":{"type":"string","description":"The Id of a related To-Do item, if any","example":"507f1f77bcf86cd799439099"}},"required":["_id","companyId","rockId","teamId","ownedByUserId","title","dueDate","isDone","isDeleted","createdBy","createdDate"]},"RockResponseDTO":{"type":"object","properties":{"_id":{"type":"string","description":"The Id of the Rock","example":"507f1f77bcf86cd799439013"},"userId":{"type":"string","description":"The Id of the user who owns the Rock","example":"507f1f77bcf86cd799439012"},"teamId":{"type":"string","description":"The Id of the team the Rock belongs to","example":"507f1f77bcf86cd799439011"},"companyId":{"type":"string","description":"The Id of the company the Rock belongs to","example":"507f1f77bcf86cd799439015"},"title":{"type":"string","description":"The title of the Rock","example":"Launch new customer onboarding flow"},"description":{"type":"string","description":"The description of the Rock","example":"Redesign the onboarding wizard to reduce drop-off by 20%"},"archived":{"type":"boolean","description":"True if the Rock is archived","example":false},"deleted":{"type":"boolean","description":"True if the Rock is deleted","example":false},"completed":{"type":"boolean","description":"True if the Rock is completed","example":false},"dueDate":{"type":"string","description":"The due date of the Rock (ISO 8601)","example":"2026-06-30T23:59:59.000Z"},"originalDueDate":{"type":"string","description":"The original due date before any changes (ISO 8601)","example":"2026-03-31T23:59:59.000Z"},"statusCode":{"description":"The status of the Rock — `OFF_TRACK` · `ON_TRACK` · `DONE` · `CANCELED` · `DRAFT`","example":"ON_TRACK","allOf":[{"$ref":"#/components/schemas/RockStatusCode"}]},"levelCode":{"description":"The level of the Rock — `USER` · `COMPANY_AND_DEPARTMENT` · `COMPANY` · `DEPARTMENT`","example":"USER","allOf":[{"$ref":"#/components/schemas/RockLevelCode"}]},"quarter":{"description":"The quarter associated with the Rock — `Q1` · `Q2` · `Q3` · `Q4` · `None`","example":"Q2","allOf":[{"$ref":"#/components/schemas/RockQuarter"}]},"futureScope":{"description":"The future scope of the Rock — `Current` · `Next` · `Later` · `Future`","example":"Current","allOf":[{"$ref":"#/components/schemas/RockFutureScope"}]},"createdBy":{"type":"string","description":"The username of the user who created the Rock","example":"jane.doe@example.com"},"createdDate":{"type":"string","description":"The date the Rock was created (ISO 8601)","example":"2026-01-15T09:00:00.000Z"},"updatedAt":{"type":"string","description":"The date the Rock was last updated (ISO 8601)","example":"2026-03-01T14:30:00.000Z"},"updatedBy":{"type":"string","description":"The Id of the user who last updated the Rock","example":"507f1f77bcf86cd799439012"},"archivedDate":{"type":"string","description":"The date the Rock was archived (ISO 8601)","example":"2026-03-01T14:30:00.000Z"},"completedDate":{"type":"string","description":"The date the Rock was completed (ISO 8601)","example":"2026-06-30T23:59:59.000Z"},"createdByUserId":{"type":"string","description":"The Id of the user who created the Rock","example":"507f1f77bcf86cd799439012"},"ordinal":{"type":"number","description":"Sort ordinal for the Rock within its team","example":2},"userOrdinal":{"type":"number","description":"Sort ordinal for the Rock within the owning user's list","example":0},"planningBoardOrdinal":{"type":"number","description":"Sort ordinal for the Rock on the planning board","example":2},"comments":{"type":"array","description":"Comments on the Rock","items":{"type":"object"}},"attachments":{"type":"array","description":"Attachments on the Rock","items":{"type":"object"}},"followers":{"description":"Array of user Ids following the Rock","example":["507f1f77bcf86cd799439012","507f1f77bcf86cd799439016"],"type":"array","items":{"type":"string"}},"additionalTeamIds":{"description":"Array of additional team Ids associated with the Rock","example":["507f1f77bcf86cd799439022"],"type":"array","items":{"type":"string"}},"rockQuarterYearDueDate":{"type":"string","description":"The quarter-aligned year due date of the Rock (ISO 8601)","example":"2026-06-30T23:59:59.999Z"},"dueDateQuarter":{"type":"string","description":"Human-readable label for the due date quarter (e.g. \"2026 Q2\")","example":"2026 Q2"},"milestones":{"description":"Milestones associated with this Rock","type":"array","items":{"$ref":"#/components/schemas/MilestoneResponseDTO"}}},"required":["_id","userId","teamId","companyId","title","archived","deleted","completed","dueDate","statusCode","levelCode","quarter"]},"PaginatedRocksResponseDTO":{"type":"object","properties":{"items":{"description":"The Rocks on the current page","type":"array","items":{"$ref":"#/components/schemas/RockResponseDTO"}},"totalCount":{"type":"number","description":"Total number of distinct Rocks matching the query, across all pages"}},"required":["items","totalCount"]},"RockSummaryResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Rock Id","example":"507f1f77bcf86cd799439013"},"companyId":{"type":"string","description":"The Id of the company","example":"507f1f77bcf86cd799439015"},"teamId":{"type":"string","description":"The Id of the team this Rock belongs to","example":"507f1f77bcf86cd799439011"},"userId":{"type":"string","description":"The Id of the user who owns the Rock","example":"507f1f77bcf86cd799439012"},"title":{"type":"string","description":"The title of the Rock","example":"Launch new customer onboarding flow"},"description":{"type":"string","description":"The description of the Rock","example":"Redesign the onboarding wizard to reduce drop-off by 20%"},"statusCode":{"description":"The status of the Rock — `OFF_TRACK` · `ON_TRACK` · `DONE` · `CANCELED` · `DRAFT`","example":"ON_TRACK","allOf":[{"$ref":"#/components/schemas/RockStatusCode"}]},"dueDate":{"type":"string","description":"The due date of the Rock (ISO 8601)","example":"2026-06-30T23:59:59.000Z"},"quarter":{"description":"The quarter associated with the Rock — `Q1` · `Q2` · `Q3` · `Q4` · `None`","example":"Q2","allOf":[{"$ref":"#/components/schemas/RockQuarter"}]},"ownerFirstName":{"type":"string","description":"The owning user's first name. Null if that user has been deleted or no longer exists.","example":"Jamie"},"ownerLastName":{"type":"string","description":"The owning user's last name. Null if that user has been deleted or no longer exists.","example":"Rivera"}},"required":["id","companyId","teamId","userId","title","statusCode","dueDate","quarter"]},"RockSummaryPaginationDTO":{"type":"object","properties":{"nextToken":{"type":"object","description":"Cursor for the next page, or null if there are no more results","nullable":true}},"required":["nextToken"]},"PaginatedRockSummaryResponseDTO":{"type":"object","properties":{"data":{"description":"Array of Rocks","type":"array","items":{"$ref":"#/components/schemas/RockSummaryResponseDTO"}},"pagination":{"description":"Pagination cursor","allOf":[{"$ref":"#/components/schemas/RockSummaryPaginationDTO"}]}},"required":["data","pagination"]},"CreateRockDataDTO":{"type":"object","properties":{"teamId":{"type":"string","description":"The Id of the team the Rock belongs to","example":"507f1f77bcf86cd799439011"},"title":{"type":"string","description":"The title of the Rock","example":"Launch new customer onboarding flow"},"dueDate":{"type":"string","description":"The due date of the Rock (ISO 8601)","example":"2026-06-30T23:59:59.000Z"},"statusCode":{"description":"The status of the Rock — `OFF_TRACK` · `ON_TRACK` · `DONE` · `CANCELED` · `DRAFT`","example":"ON_TRACK","allOf":[{"$ref":"#/components/schemas/RockStatusCode"}]},"levelCode":{"description":"The level of the Rock — `USER` · `COMPANY_AND_DEPARTMENT` · `COMPANY` · `DEPARTMENT`","example":"USER","allOf":[{"$ref":"#/components/schemas/RockLevelCode"}]},"quarter":{"description":"The quarter associated with the Rock — `Q1` · `Q2` · `Q3` · `Q4` · `None`","example":"Q2","allOf":[{"$ref":"#/components/schemas/RockQuarter"}]},"description":{"type":"string","description":"The description of the Rock","example":"Redesign the onboarding wizard to reduce drop-off by 20%"},"additionalTeamIds":{"description":"Array of additional team Ids that can also view this Rock","example":["507f1f77bcf86cd799439022","507f1f77bcf86cd799439033"],"type":"array","items":{"type":"string"}},"futureScope":{"description":"The future scope of the Rock — `Current` · `Next` · `Later` · `Future`","example":"Current","allOf":[{"$ref":"#/components/schemas/RockFutureScope"}]},"rockQuarterYearDueDate":{"type":"string","description":"The quarter-aligned year due date of the Rock (ISO 8601)","example":"2026-06-30T23:59:59.999Z"}},"required":["teamId","title","dueDate","statusCode","levelCode","quarter"]},"RockLinkedItemType":{"type":"string","enum":["todo","issue","milestone"],"description":"The type of item `linkedItemId` refers to."},"CreateRockDTO":{"type":"object","properties":{"rock":{"description":"The Rock data","allOf":[{"$ref":"#/components/schemas/CreateRockDataDTO"}]},"addCreatorToFollowersList":{"type":"boolean","description":"When true, the authenticated user is added to the Rock's followers list","default":false,"example":false},"linkedItemId":{"type":"string","description":"The Id of a To-Do, Issue, or Milestone to link the new Rock to. Must be provided together with `linkedItemType`. The linked item must belong to the same company as the authenticated caller.","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"description":"The type of item `linkedItemId` refers to.","example":"issue","allOf":[{"$ref":"#/components/schemas/RockLinkedItemType"}]}},"required":["rock"]},"UpdateRockDTO":{"type":"object","properties":{"userId":{"type":"string","description":"The Id of the user who owns the Rock","example":"507f1f77bcf86cd799439012"},"teamId":{"type":"string","description":"The Id of the team the Rock belongs to","example":"507f1f77bcf86cd799439011"},"title":{"type":"string","description":"The title of the Rock","example":"Launch new customer onboarding flow"},"description":{"type":"string","description":"The description of the Rock","example":"Redesign the onboarding wizard to reduce drop-off by 20%"},"statusCode":{"description":"The status of the Rock — `OFF_TRACK` · `ON_TRACK` · `DONE` · `CANCELED` · `DRAFT`","example":"ON_TRACK","allOf":[{"$ref":"#/components/schemas/RockStatusCode"}]},"levelCode":{"description":"The level of the Rock — `USER` · `COMPANY_AND_DEPARTMENT` · `COMPANY` · `DEPARTMENT`","example":"USER","allOf":[{"$ref":"#/components/schemas/RockLevelCode"}]},"quarter":{"description":"The quarter associated with the Rock — `Q1` · `Q2` · `Q3` · `Q4` · `None`","example":"Q2","allOf":[{"$ref":"#/components/schemas/RockQuarter"}]},"dueDate":{"type":"string","description":"The due date of the Rock (ISO 8601)","example":"2026-06-30T23:59:59.000Z"},"rockQuarterYearDueDate":{"type":"string","description":"The quarter-aligned year due date of the Rock (ISO 8601)","example":"2026-06-30T23:59:59.999Z"},"archived":{"type":"boolean","description":"Set to true to archive the Rock, false to unarchive it","example":false},"futureScope":{"description":"The future scope of the Rock — `Current` · `Next` · `Later` · `Future`","example":"Current","allOf":[{"$ref":"#/components/schemas/RockFutureScope"}]},"additionalTeamIds":{"description":"Array of additional team Ids that can also view this Rock","example":["507f1f77bcf86cd799439022"],"type":"array","items":{"type":"string"}},"linkedItemId":{"type":"string","description":"The Id of a To-Do, Issue, or Milestone to link this existing Rock to. Must be provided together with `linkedItemType`. The linked item must belong to the same company as the authenticated caller.","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"description":"The type of item `linkedItemId` refers to.","example":"issue","allOf":[{"$ref":"#/components/schemas/RockLinkedItemType"}]}}},"LinkRockDTO":{"type":"object","properties":{"linkedItemId":{"type":"string","description":"The Id of the existing To-Do, Issue, or Milestone to link this Rock to. Must belong to the same company as the authenticated caller.","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"description":"The type of item `linkedItemId` refers to.","example":"issue","allOf":[{"$ref":"#/components/schemas/RockLinkedItemType"}]}},"required":["linkedItemId","linkedItemType"]},"RockLinkedItemResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the created link record","example":"507f1f77bcf86cd799439020"},"rockId":{"type":"string","description":"The Id of the Rock that was linked","example":"507f1f77bcf86cd799439013"},"linkedItemId":{"type":"string","description":"The Id of the To-Do, Issue, or Milestone it was linked to","example":"507f1f77bcf86cd799439015"},"linkedItemType":{"description":"The type of the linked item","example":"issue","allOf":[{"$ref":"#/components/schemas/RockLinkedItemType"}]},"createdDate":{"type":"string","description":"The date the link was created","example":"2024-01-01T00:00:00.000Z"}},"required":["id","rockId","linkedItemId","linkedItemType","createdDate"]},"MilestoneSummaryResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Milestone Id","example":"507f1f77bcf86cd799439014"},"companyId":{"type":"string","description":"The Id of the company","example":"507f1f77bcf86cd799439015"},"rockId":{"type":"string","description":"The Id of the Rock this Milestone belongs to","example":"507f1f77bcf86cd799439013"},"teamId":{"type":"string","description":"The Id of the parent Rock's primary team","example":"507f1f77bcf86cd799439011"},"userId":{"type":"string","description":"The Id of the user who owns the Milestone","example":"507f1f77bcf86cd799439012"},"title":{"type":"string","description":"The title of the Milestone","example":"Complete UX wireframes"},"description":{"type":"object","description":"The description of the Milestone","example":"Deliver final wireframes for review in Figma","nullable":true},"isDone":{"type":"boolean","description":"True if the Milestone is done","example":false},"dueDate":{"type":"string","description":"The due date of the Milestone (ISO 8601)","example":"2026-05-15T23:59:59.000Z"},"completedDate":{"type":"object","description":"The date the Milestone was completed (ISO 8601). Null if not yet complete.","example":"2026-05-10T16:00:00.000Z","nullable":true},"rockTitle":{"type":"string","description":"The parent Rock's title","example":"Launch new customer onboarding flow"},"ownerFirstName":{"type":"object","description":"The owning user's first name. Null if that user has been deleted or no longer exists.","example":"Jamie","nullable":true},"ownerLastName":{"type":"object","description":"The owning user's last name. Null if that user has been deleted or no longer exists.","example":"Rivera","nullable":true}},"required":["id","companyId","rockId","teamId","userId","title","isDone","dueDate","rockTitle"]},"MilestoneSummaryPaginationDTO":{"type":"object","properties":{"nextToken":{"type":"object","description":"Cursor for the next page, or null if there are no more results","nullable":true}},"required":["nextToken"]},"PaginatedMilestoneSummaryResponseDTO":{"type":"object","properties":{"data":{"description":"Array of Milestones","type":"array","items":{"$ref":"#/components/schemas/MilestoneSummaryResponseDTO"}},"pagination":{"description":"Pagination cursor","allOf":[{"$ref":"#/components/schemas/MilestoneSummaryPaginationDTO"}]}},"required":["data","pagination"]},"CreateMilestoneDTO":{"type":"object","properties":{"rockId":{"type":"string","description":"The Id of the Rock this Milestone belongs to","example":"507f1f77bcf86cd799439013"},"title":{"type":"string","description":"The title of the Milestone","example":"Complete UX wireframes"},"dueDate":{"type":"string","description":"The due date of the Milestone (ISO 8601)","example":"2026-05-15T23:59:59.000Z"},"teamId":{"type":"string","description":"The Id of the team the Milestone belongs to","example":"507f1f77bcf86cd799439011"},"description":{"type":"string","description":"The description of the Milestone","example":"Deliver final wireframes for review in Figma"},"userOrdinal":{"type":"number","description":"The ordinal position of this Milestone for the user (0-based)","example":0},"toDoId":{"type":"string","description":"The Id of a related To-Do item, if any","example":"507f1f77bcf86cd799439099"},"isDone":{"type":"boolean","description":"True if the Milestone is already done at creation time","example":false},"completedDate":{"type":"string","description":"The date the Milestone was completed (ISO 8601). Required when isDone is true.","example":"2026-05-10T16:00:00.000Z"}},"required":["rockId","title","dueDate","teamId"]},"UpdateMilestoneDTO":{"type":"object","properties":{"title":{"type":"string","description":"The title of the Milestone","example":"Complete UX wireframes"},"description":{"type":"string","description":"The description of the Milestone","example":"Deliver final wireframes for review in Figma"},"dueDate":{"type":"string","description":"The due date of the Milestone (ISO 8601)","example":"2026-05-15T23:59:59.000Z"},"isDone":{"type":"boolean","description":"Set to true to mark the Milestone as done","example":true},"ownedByUserId":{"type":"string","description":"The Id of the user who owns this Milestone","example":"507f1f77bcf86cd799439012"},"completedDate":{"type":"string","description":"The date the Milestone was completed (ISO 8601). Provide when setting isDone to true.","example":"2026-05-10T16:00:00.000Z"},"followers":{"description":"Array of user Ids who are following this Milestone","example":["507f1f77bcf86cd799439012","507f1f77bcf86cd799439016"],"type":"array","items":{"type":"string"}}}},"CompanyUserResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the User","example":"507f1f77bcf86cd799439012"},"primaryEmail":{"type":"string","description":"The primary email address of the User","example":"jane.doe@example.com"},"firstName":{"type":"string","description":"The first name of the User","example":"Jane"},"lastName":{"type":"string","description":"The last name of the User","example":"Doe"},"role":{"type":"string","description":"The User's role in the company, which is what governs what they may do in Ninety. Absent when no recognised role is on record - which is not the same as being an Observer.","enum":["owner","admin","manager","managee","observer","lite"],"example":"manager"},"teamIds":{"description":"Every Team the User is assigned to. Always present; an empty array means they are on no Teams. Ids only - resolve the ones you can see to names with `GET /public/v1/teams`, and expect some ids not to be there, because a Team you cannot see is one you cannot name.","example":["507f1f77bcf86cd799439011"],"type":"array","items":{"type":"string"}},"active":{"type":"boolean","description":"Whether the User is active. Deactivated Users are only returned when asked for.","example":true}},"required":["id","teamIds","active"]},"UserResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the User","example":"507f1f77bcf86cd799439012"},"primaryEmail":{"type":"string","description":"The primary email address of the User","example":"jane.doe@example.com"},"firstName":{"type":"string","description":"The first name of the User","example":"Jane"},"lastName":{"type":"string","description":"The last name of the User","example":"Doe"},"role":{"type":"string","description":"The User's role in the company, which is what governs what they may do in Ninety. Absent when no recognised role is on record - which is not the same as being an Observer.","enum":["owner","admin","manager","managee","observer","lite"],"example":"manager"},"teamIds":{"description":"Every Team the User is assigned to. Always present; an empty array means they are on no Teams. Ids only - resolve the ones you can see to names with `GET /public/v1/teams`, and expect some ids not to be there, because a Team you cannot see is one you cannot name.","example":["507f1f77bcf86cd799439011"],"type":"array","items":{"type":"string"}}},"required":["id","teamIds"]},"MeetingPersonDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the User","example":"507f1f77bcf86cd799439012"},"primaryEmail":{"type":"string","description":"The primary email address of the User","example":"jane.doe@example.com"},"firstName":{"type":"string","description":"The first name of the User","example":"Jane"},"lastName":{"type":"string","description":"The last name of the User","example":"Doe"}},"required":["id"]},"MeetingAgendaItemDTO":{"type":"object","properties":{"name":{"type":"string","description":"The name of the agenda section","example":"Scorecard"},"durationSeconds":{"type":"number","description":"Seconds allotted to the section","example":300},"ordinal":{"type":"number","description":"Position of the section within the agenda, ascending","example":2}},"required":["name","durationSeconds","ordinal"]},"NextMeetingResponseDTO":{"type":"object","properties":{"scheduleId":{"type":"string","description":"The Id of the Meeting schedule","example":"507f1f77bcf86cd799439013"},"teamId":{"type":"string","description":"The Id of the Team the Meeting belongs to","example":"507f1f77bcf86cd799439011"},"teamName":{"type":"string","description":"The name of the Team","example":"Leadership Team"},"meetingType":{"type":"string","description":"The type of Meeting. `level10` is the Weekly Meeting.","example":"level10","enum":["level10","quarterly","annualDayOne","annualDayTwo","focusDay","visionBuildingDayOne","visionBuildingDayTwo","weeklyOneOnOne","custom","other"]},"cadence":{"type":"string","description":"How often the Meeting repeats.","example":"weekly","enum":["none","weekly","biWeekly","monthly"]},"scheduledDate":{"type":"string","description":"When the Meeting is scheduled. ISO 8601, UTC.","example":"2026-08-10T14:00:00.000Z"},"agendaId":{"type":"string","description":"The Id of the custom agenda in use, absent when the Meeting uses its default agenda.","example":"507f1f77bcf86cd799439014"},"agendaName":{"type":"string","description":"The name of the agenda in use","example":"Weekly Meeting"},"presenter":{"description":"The User presenting the Meeting. Absent when none is assigned. Only `id` is guaranteed - the name and email are filled in from the Team roster, which may not have resolved.","allOf":[{"$ref":"#/components/schemas/MeetingPersonDTO"}]},"scribe":{"description":"The User scribing the Meeting. Absent when none is assigned; see `presenter`.","allOf":[{"$ref":"#/components/schemas/MeetingPersonDTO"}]},"agenda":{"description":"The agenda sections, ascending by `ordinal`, with hidden sections removed. Empty if the agenda could not be resolved - that says nothing about whether the Meeting has one.","type":"array","items":{"$ref":"#/components/schemas/MeetingAgendaItemDTO"}},"attendees":{"description":"The active members of the Team. Empty if the roster could not be resolved - that says nothing about whether the Team has members.","type":"array","items":{"$ref":"#/components/schemas/MeetingPersonDTO"}}},"required":["scheduleId","teamId","meetingType","cadence","scheduledDate","agenda","attendees"]},"MeetingRatingDTO":{"type":"object","properties":{"userId":{"type":"string","description":"The Id of the User who rated the Meeting","example":"507f1f77bcf86cd799439012"},"rating":{"type":"number","description":"The rating this User gave, 1 to 10","example":8,"minimum":1,"maximum":10}},"required":["userId","rating"]},"MeetingHistoryItemDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the Meeting","example":"507f1f77bcf86cd799439015"},"teamId":{"type":"string","description":"The Id of the Team the Meeting belongs to","example":"507f1f77bcf86cd799439011"},"date":{"type":"string","description":"When the Meeting took place. ISO 8601, UTC.","example":"2026-08-10T14:00:00.000Z"},"endDate":{"type":"string","description":"When the Meeting was concluded. ISO 8601, UTC. Absent on a Meeting that was never concluded through the app, or concluded before this was recorded.","example":"2026-08-10T15:30:00.000Z"},"meetingType":{"type":"string","description":"The type of Meeting. `level10` is the Weekly Meeting.","example":"level10","enum":["level10","quarterly","annualDayOne","annualDayTwo","focusDay","visionBuildingDayOne","visionBuildingDayTwo","weeklyOneOnOne","custom","other"]},"name":{"type":"string","description":"The name of the custom agenda used, when the Meeting used one","example":"Ops Sync"},"durationSeconds":{"type":"number","description":"How long the Meeting ran, in seconds. Absent when the core API recorded no elapsed time - reporting that as 0 would claim the Meeting took no time rather than that nobody timed it.","example":5400},"averageRating":{"type":"number","description":"The mean of the ratings that were submitted, to two decimal places. Absent when nobody rated the Meeting - which is not the same as a low rating.","example":8.33},"ratings":{"description":"The ratings that were submitted, one per User. Attendees who never rated are omitted, so this is shorter than `attendeeCount` whenever someone skipped it.","type":"array","items":{"$ref":"#/components/schemas/MeetingRatingDTO"}},"attendeeCount":{"type":"number","description":"How many Users were on the Meeting roster, rated or not","example":6},"issuesTracked":{"type":"number","description":"How many short-term Issues were on the board when the Meeting started. Absent on Meetings that do not track the Issue solve-rate - Weekly Meetings record it, other kinds generally do not.","example":12},"issuesSolved":{"type":"number","description":"How many Issues the Meeting solved. Ninety treats an Issue worked during a Meeting as solved. This counts the Issues the Meeting recorded, so it can exceed the length of the single-Meeting read's `workedIssues` array, which omits any that have since been hard-deleted. Absent alongside `issuesTracked`.","example":9},"issueSolveRatePercent":{"type":"number","description":"Percentage of the tracked Issues the Meeting solved, rounded to a whole number - the same calculation the app and the recap email use. Absent when the Meeting tracked no Issues, rather than reported as 0: nothing tracked is not the same as nothing solved. Can exceed 100, because `issuesTracked` counts only short-term Issues while `issuesSolved` counts every Issue worked.","example":75},"issueSolveRateTargetPercent":{"type":"number","description":"The Team's target solve rate, for comparison against `issueSolveRatePercent`. Absent when the Team has not enabled a target or when the Meeting tracked no Issues.","example":80},"presenterId":{"type":"string","description":"The Id of the User who presented","example":"507f1f77bcf86cd799439012"},"agendaId":{"type":"string","description":"The Id of the custom agenda in use, absent when the Meeting used its default agenda.","example":"507f1f77bcf86cd799439014"}},"required":["id","teamId","date","meetingType","ratings","attendeeCount"]},"PaginatedMeetingHistoryResponseDTO":{"type":"object","properties":{"items":{"description":"Array of past Meetings, most recent first","type":"array","items":{"$ref":"#/components/schemas/MeetingHistoryItemDTO"}},"totalCount":{"type":"number","description":"Total number of past Meetings matching the query","example":42}},"required":["items","totalCount"]},"MeetingItemRefDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the item","example":"507f1f77bcf86cd799439016"},"title":{"type":"string","description":"The title of the item","example":"Renew the vendor contract"},"ownerId":{"type":"string","description":"The Id of the User who owns the item","example":"507f1f77bcf86cd799439012"}},"required":["id","title"]},"MeetingDetailResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the Meeting","example":"507f1f77bcf86cd799439015"},"teamId":{"type":"string","description":"The Id of the Team the Meeting belongs to","example":"507f1f77bcf86cd799439011"},"date":{"type":"string","description":"When the Meeting took place. ISO 8601, UTC.","example":"2026-08-10T14:00:00.000Z"},"endDate":{"type":"string","description":"When the Meeting was concluded. ISO 8601, UTC. Absent on a Meeting that was never concluded through the app, or concluded before this was recorded.","example":"2026-08-10T15:30:00.000Z"},"meetingType":{"type":"string","description":"The type of Meeting. `level10` is the Weekly Meeting.","example":"level10","enum":["level10","quarterly","annualDayOne","annualDayTwo","focusDay","visionBuildingDayOne","visionBuildingDayTwo","weeklyOneOnOne","custom","other"]},"name":{"type":"string","description":"The name of the custom agenda used, when the Meeting used one","example":"Ops Sync"},"durationSeconds":{"type":"number","description":"How long the Meeting ran, in seconds. Absent when the core API recorded no elapsed time - reporting that as 0 would claim the Meeting took no time rather than that nobody timed it.","example":5400},"averageRating":{"type":"number","description":"The mean of the ratings that were submitted, to two decimal places. Absent when nobody rated the Meeting - which is not the same as a low rating.","example":8.33},"ratings":{"description":"The ratings that were submitted, one per User. Attendees who never rated are omitted, so this is shorter than `attendeeCount` whenever someone skipped it.","type":"array","items":{"$ref":"#/components/schemas/MeetingRatingDTO"}},"attendeeCount":{"type":"number","description":"How many Users were on the Meeting roster, rated or not","example":6},"issuesTracked":{"type":"number","description":"How many short-term Issues were on the board when the Meeting started. Absent on Meetings that do not track the Issue solve-rate - Weekly Meetings record it, other kinds generally do not.","example":12},"issuesSolved":{"type":"number","description":"How many Issues the Meeting solved. Ninety treats an Issue worked during a Meeting as solved. This counts the Issues the Meeting recorded, so it can exceed the length of the single-Meeting read's `workedIssues` array, which omits any that have since been hard-deleted. Absent alongside `issuesTracked`.","example":9},"issueSolveRatePercent":{"type":"number","description":"Percentage of the tracked Issues the Meeting solved, rounded to a whole number - the same calculation the app and the recap email use. Absent when the Meeting tracked no Issues, rather than reported as 0: nothing tracked is not the same as nothing solved. Can exceed 100, because `issuesTracked` counts only short-term Issues while `issuesSolved` counts every Issue worked.","example":75},"issueSolveRateTargetPercent":{"type":"number","description":"The Team's target solve rate, for comparison against `issueSolveRatePercent`. Absent when the Team has not enabled a target or when the Meeting tracked no Issues.","example":80},"presenterId":{"type":"string","description":"The Id of the User who presented","example":"507f1f77bcf86cd799439012"},"agendaId":{"type":"string","description":"The Id of the custom agenda in use, absent when the Meeting used its default agenda.","example":"507f1f77bcf86cd799439014"},"notes":{"type":"string","description":"The notes captured during the Meeting, as rich text (HTML) exactly as the app stored them. Empty string when nobody took notes. This is the only free-text record of what was discussed and decided - Ninety has no separate \"decisions\" field.","example":"<p>Agreed to move the launch to Q3.</p>"},"presenter":{"description":"The User who presented, named from the Team roster. Absent when the Meeting recorded no presenter; only `id` is guaranteed, for the same reason as `attendees`.","allOf":[{"$ref":"#/components/schemas/MeetingPersonDTO"}]},"attendees":{"description":"The Users on the Meeting roster - one entry per person, always the same length as `attendeeCount`. Only `id` is guaranteed: names and emails are filled in from the Team roster, and an entry keeps its `id` with no name when that lookup could not resolve it. That is a missing name, not a missing person. This is the roster the Meeting opened with, not confirmed attendance - Ninety records who actually showed separately, and this endpoint does not expose it.","type":"array","items":{"$ref":"#/components/schemas/MeetingPersonDTO"}},"doneHeadlines":{"description":"Headlines marked done during the Meeting","type":"array","items":{"$ref":"#/components/schemas/MeetingItemRefDTO"}},"cascadingMessages":{"description":"Cascading messages sent from the Meeting to other Teams","type":"array","items":{"$ref":"#/components/schemas/MeetingItemRefDTO"}},"workedIssues":{"description":"Issues discussed during the Meeting","type":"array","items":{"$ref":"#/components/schemas/MeetingItemRefDTO"}},"newTodos":{"description":"To-Dos created during the Meeting","type":"array","items":{"$ref":"#/components/schemas/MeetingItemRefDTO"}},"newRocks":{"description":"Rocks created during the Meeting","type":"array","items":{"$ref":"#/components/schemas/MeetingItemRefDTO"}}},"required":["id","teamId","date","meetingType","ratings","attendeeCount","notes","attendees","doneHeadlines","cascadingMessages","workedIssues","newTodos","newRocks"]},"VtoCoreValueDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the Core Value","example":"507f1f77bcf86cd799439021"},"name":{"type":"string","description":"The name of the Core Value","example":"Do the right thing"},"description":{"type":"string","description":"The longer explanation of the Core Value","example":"We choose the honest answer even when it costs us the deal."},"ordinal":{"type":"number","description":"Position within the Core Values list, ascending","example":0}},"required":["id"]},"VtoCoreFocusDTO":{"type":"object","properties":{"niche":{"type":"string","description":"The Niche - what the company does best.","example":"Helping mid-market teams run on a single operating system"},"purpose":{"type":"string","description":"The Purpose, Cause or Passion - why the company exists.","example":"Make work make sense"}}},"VtoGoalDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the goal","example":"507f1f77bcf86cd799439031"},"description":{"type":"string","description":"The goal itself","example":"Reach $10M ARR"},"longDescription":{"type":"string","description":"Additional detail on the goal, entered as rich text and returned as HTML","example":"<p>Weighted toward enterprise renewals.</p>"},"completed":{"type":"boolean","description":"Whether the goal has been marked complete","example":false},"completedDate":{"type":"string","description":"When the goal was completed. ISO 8601, UTC."},"ordinal":{"type":"number","description":"Position within the goal list, ascending","example":0}},"required":["id","completed"]},"VtoFutureYearDTO":{"type":"object","properties":{"futureDate":{"type":"string","description":"The date the goals are aimed at. ISO 8601, UTC.","example":"2027-12-31T00:00:00.000Z"},"goals":{"description":"The goals for the period, ascending by `ordinal`.","type":"array","items":{"$ref":"#/components/schemas/VtoGoalDTO"}}},"required":["goals"]},"VtoSectionDTO":{"type":"object","properties":{"teamId":{"type":"string","description":"The Id of the Team this section belongs to"},"coreValues":{"description":"The Core Values, ascending by `ordinal`.","type":"array","items":{"$ref":"#/components/schemas/VtoCoreValueDTO"}},"coreFocus":{"description":"The Core Focus.","allOf":[{"$ref":"#/components/schemas/VtoCoreFocusDTO"}]},"oneYear":{"description":"The 1-Year Plan.","allOf":[{"$ref":"#/components/schemas/VtoFutureYearDTO"}]},"threeYear":{"description":"The 3-Year Picture.","allOf":[{"$ref":"#/components/schemas/VtoFutureYearDTO"}]}},"required":["coreValues","coreFocus","oneYear","threeYear"]},"VtoResponseDTO":{"type":"object","properties":{"teamVto":{"description":"The requested Team's V/TO.","allOf":[{"$ref":"#/components/schemas/VtoSectionDTO"}]},"sltVto":{"description":"The leadership Team's V/TO, as much of it as the caller may see. Sections the leadership Team has not shared come back empty. Identical to `teamVto` when the requested Team *is* the leadership Team.","allOf":[{"$ref":"#/components/schemas/VtoSectionDTO"}]}},"required":["teamVto","sltVto"]},"SeatResponsibilityDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the responsibility. Present only when its Seat was named in `seatIds` - a Seat returned only as an ancestor carries the summary shape instead.","example":"507f1f77bcf86cd799439021"},"name":{"type":"string","description":"What the Seat is accountable for","example":"Own the quarterly revenue plan"},"description":{"type":"string","description":"Further detail on the responsibility, when one was written. Present only when its Seat was named in `seatIds`.","example":"Includes pricing approvals and the annual forecast."}},"required":["name"]},"SeatHolderDTO":{"type":"object","properties":{"userId":{"type":"string","description":"The Id of the User sitting in the Seat","example":"507f1f77bcf86cd799439012"},"firstName":{"type":"string","description":"The first name of the User","example":"Jane"},"lastName":{"type":"string","description":"The last name of the User","example":"Doe"},"primaryEmail":{"type":"string","description":"The primary email address of the User","example":"jane.doe@example.com"},"active":{"type":"boolean","description":"False when the User has been deactivated. They still hold the Seat, but cannot be given work.","example":true}},"required":["userId"]},"SeatDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the Seat","example":"507f1f77bcf86cd799439011"},"name":{"type":"string","description":"The name of the Seat - its role in the company","example":"Marketing Manager"},"parentSeatId":{"type":"string","description":"The Id of the Seat this one reports to. On an assistant Seat (`isAssistant`), the Seat it supports, not a manager. Absent on the top Seat, and on a Seat whose parent has been deleted.","example":"507f1f77bcf86cd799439010"},"visionary":{"type":"boolean","description":"True on the Visionary Seat, which a company can turn off entirely.","example":false},"integrator":{"type":"boolean","description":"True on the Integrator Seat.","example":false},"isAssistant":{"type":"boolean","description":"True on an assistant Seat. It sits beside the Seat named by `parentSeatId` and supports it. It is not a direct report of that Seat, and no Seat sits under it.","example":false},"responsibilities":{"description":"The Seat's responsibilities, in the order the app lists them.","type":"array","items":{"$ref":"#/components/schemas/SeatResponsibilityDTO"}},"holders":{"description":"The people sitting in the Seat. Empty on a Seat nobody fills - which is a real state in Ninety, not missing data. A Seat can be shared by more than one person.","type":"array","items":{"$ref":"#/components/schemas/SeatHolderDTO"}}},"required":["id","name","visionary","integrator","isAssistant","responsibilities","holders"]},"AccountabilityChartResponseDTO":{"type":"object","properties":{"chartId":{"type":"string","description":"The Id of the chart the Seats belong to. Absent when the company has no chart yet.","example":"507f1f77bcf86cd799439001"},"seats":{"description":"The Seats, ordered top-down. Empty when the company has never set its chart up, which is a successful answer rather than an error.","type":"array","items":{"$ref":"#/components/schemas/SeatDTO"}}},"required":["seats"]},"CompanySeatResponsibilityDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the responsibility","example":"507f1f77bcf86cd799439021"},"name":{"type":"string","description":"What the Seat is accountable for","example":"Own the quarterly revenue plan"},"description":{"type":"string","description":"Further detail on the responsibility. Absent when none was written.","example":"Includes pricing approvals and the annual forecast."}},"required":["id","name"]},"CompanySeatResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Id of the Seat","example":"507f1f77bcf86cd799439011"},"chartId":{"type":"string","description":"The Id of the chart the Seat belongs to","example":"507f1f77bcf86cd799439001"},"chartTitle":{"type":"string","description":"The title of that chart. Absent when the chart has no title.","example":"Leadership Chart"},"isPrimaryChart":{"type":"boolean","description":"True when the Seat is on the company's primary Accountability Chart","example":true},"name":{"type":"string","description":"The name of the Seat - its role in the company","example":"Marketing Manager"},"parentSeatId":{"type":"string","description":"The Id of the Seat this one reports to, on the same chart. On an assistant Seat (`isAssistant`), the Seat it supports, not a manager. Absent on the top Seat of each chart. An Id that never appears on any page of that chart means the parent was deleted - treat the Seat as a root.","example":"507f1f77bcf86cd799439010"},"ordinal":{"type":"number","description":"Position among the Seats sharing its parent, in the order the app draws them - not a position across the chart","example":0},"visionary":{"type":"boolean","description":"True on the Visionary Seat","example":false},"integrator":{"type":"boolean","description":"True on the Integrator Seat","example":false},"isAssistant":{"type":"boolean","description":"True on an assistant Seat. It sits beside the Seat named by `parentSeatId` and supports it. It is not a direct report of that Seat, and no Seat sits under it.","example":false},"responsibilities":{"description":"The Seat's responsibilities, in the order the app lists them","type":"array","items":{"$ref":"#/components/schemas/CompanySeatResponsibilityDTO"}}},"required":["id","chartId","isPrimaryChart","name","visionary","integrator","isAssistant","responsibilities"]},"PaginatedCompanySeatResponseDTO":{"type":"object","properties":{"items":{"description":"The Seats on this page","type":"array","items":{"$ref":"#/components/schemas/CompanySeatResponseDTO"}},"totalCount":{"type":"number","description":"Total number of Seats matching the filters","example":42}},"required":["items","totalCount"]},"CompanySeatHolderResponseDTO":{"type":"object","properties":{"seatId":{"type":"string","description":"The Id of the Seat held - the `id` of a row from `GET /seats/company`","example":"507f1f77bcf86cd799439011"},"chartId":{"type":"string","description":"The Id of the chart the Seat belongs to","example":"507f1f77bcf86cd799439001"},"userId":{"type":"string","description":"The Id of the User holding the Seat","example":"507f1f77bcf86cd799439031"},"firstName":{"type":"string","description":"The holder's first name. Absent when the User could not be resolved.","example":"Jane"},"lastName":{"type":"string","description":"The holder's last name. Absent when the User could not be resolved.","example":"Doe"},"isPrimaryHolder":{"type":"boolean","description":"True on the Seat's primary holder - the first one listed on it in the app. Exactly one holder of each Seat is primary.","example":true}},"required":["seatId","chartId","userId","isPrimaryHolder"]},"PaginatedCompanySeatHolderResponseDTO":{"type":"object","properties":{"items":{"description":"The Seat holders on this page","type":"array","items":{"$ref":"#/components/schemas/CompanySeatHolderResponseDTO"}},"totalCount":{"type":"number","description":"Total number of Seat holders matching the filters","example":42}},"required":["items","totalCount"]},"HeadlineResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the Headline","example":"507f1f77bcf86cd799439011"},"teamId":{"type":"string","description":"Id of the Team the Headline belongs to","example":"507f1f77bcf86cd799439013"},"companyId":{"type":"string","description":"Id of the company. Returned on create; the core API omits it from list rows, so it is absent from `GET /headlines`.","example":"507f1f77bcf86cd799439014"},"title":{"type":"string","description":"The Headline itself","example":"Acme renewed for another year"},"description":{"type":"string","description":"HTML body of the Headline. Absent when the Headline is a title alone.","example":"<p>Three-year term, up 20% on the last contract.</p>"},"userId":{"type":"string","description":"Id of the User the Headline is about or owned by. Absent on a Headline created without one.","example":"507f1f77bcf86cd799439012"},"createdByUserId":{"type":"string","description":"Id of the User who created the Headline","example":"507f1f77bcf86cd799439012"},"createdDate":{"type":"string","description":"When the Headline was created. ISO 8601, UTC.","example":"2026-08-10T14:00:00.000Z"},"completed":{"type":"boolean","description":"Whether the Headline has been discussed","example":false},"completedDate":{"type":"string","description":"When the Headline was discussed. ISO 8601, UTC. Absent until it is.","example":"2026-08-12T09:15:00.000Z"},"archived":{"type":"boolean","description":"Whether the Headline has been archived","example":false},"isCascadedMessage":{"type":"boolean","description":"Whether this is a Cascading Message rather than a Headline. The two share a collection and are told apart by this flag.","example":false},"cascadedFromTeamId":{"type":"string","description":"Id of the Team a Cascading Message was cascaded from","example":"507f1f77bcf86cd799439013"}},"required":["id","teamId","title","completed","archived","isCascadedMessage"]},"PaginatedHeadlinesResponseDTO":{"type":"object","properties":{"items":{"description":"Array of Headlines","type":"array","items":{"$ref":"#/components/schemas/HeadlineResponseDTO"}},"totalCount":{"type":"number","description":"Total number of Headlines matching the query","example":42}},"required":["items","totalCount"]},"HeadlineSummaryResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Headline Id","example":"507f1f77bcf86cd799439015"},"companyId":{"type":"string","description":"The Id of the company","example":"507f1f77bcf86cd799439014"},"teamId":{"type":"string","description":"The Id of the Team the Headline is on","example":"507f1f77bcf86cd799439011"},"teamName":{"type":"string","description":"The name of the Team the Headline is on. Absent only if that Team has no name.","example":"Leadership"},"title":{"type":"string","description":"The Headline itself","example":"Acme renewed for another year"},"description":{"type":"string","description":"HTML body of the Headline. Absent when the Headline is a title alone.","example":"<p>Three-year term, up 20% on the last contract.</p>"},"userId":{"type":"string","description":"Id of the User the Headline is owned by. Absent on a Headline created without one.","example":"507f1f77bcf86cd799439012"},"ownerFirstName":{"type":"string","description":"The owner's first name. Absent when the owner has been deleted or no longer exists.","example":"Jamie"},"ownerLastName":{"type":"string","description":"The owner's last name. Absent when the owner has been deleted or no longer exists.","example":"Rivera"},"createdByUserId":{"type":"string","description":"Id of the User who created the Headline","example":"507f1f77bcf86cd799439012"},"createdDate":{"type":"string","description":"When the Headline was created. ISO 8601, UTC.","example":"2026-08-10T14:00:00.000Z"},"completed":{"type":"boolean","description":"Whether the Headline has been discussed","example":false},"completedDate":{"type":"string","description":"When the Headline was discussed. ISO 8601, UTC. Absent until it is.","example":"2026-08-12T09:15:00.000Z"},"archived":{"type":"boolean","description":"Whether the Headline has been archived","example":false},"isCascadedMessage":{"type":"boolean","description":"Whether this is a Cascading Message rather than a Headline. The two share a collection and are told apart by this flag.","example":false},"cascadedFromTeamId":{"type":"string","description":"Id of the Team a Cascading Message was cascaded from. Absent on a Headline.","example":"507f1f77bcf86cd799439013"}},"required":["id","companyId","teamId","title","createdDate","completed","archived","isCascadedMessage"]},"PaginatedHeadlineSummaryResponseDTO":{"type":"object","properties":{"items":{"description":"Array of Headlines","type":"array","items":{"$ref":"#/components/schemas/HeadlineSummaryResponseDTO"}},"totalCount":{"type":"number","description":"Total number of Headlines matching the filters","example":42}},"required":["items","totalCount"]},"CreateHeadlineDTO":{"type":"object","properties":{"title":{"type":"string","description":"The Headline itself, as one line of plain text","example":"Acme renewed for another year"},"teamId":{"type":"string","description":"Id of the Team the Headline is for. Discoverable via `GET /teams/available`.","example":"507f1f77bcf86cd799439011"},"description":{"type":"string","description":"HTML body of the Headline","example":"<p>Three-year term, up 20% on the last contract.</p>"},"userId":{"type":"string","description":"Id of the User the Headline is about or owned by. Defaults to the authenticated User, who is recorded as the creator either way. Must be in the same company - anyone else is rejected with a 403.","example":"507f1f77bcf86cd799439012"},"isCascadedMessage":{"type":"boolean","description":"Create a Cascading Message rather than a Headline","default":false}},"required":["title","teamId"]},"ConversationType":{"type":"string","enum":["quarterly","annual"]},"ConversationSummaryResponseDTO":{"type":"object","properties":{"id":{"type":"string","description":"The Conversation Id","example":"507f1f77bcf86cd799439013"},"type":{"description":"Whether this is a quarterly or an annual Conversation","example":"quarterly","allOf":[{"$ref":"#/components/schemas/ConversationType"}]},"title":{"type":"string","description":"The title of the Conversation","example":"Q3 Quarterly Conversation"},"managerUserId":{"type":"string","description":"The Id of the manager","example":"507f1f77bcf86cd799439012"},"managerFullName":{"type":"string","description":"The manager's full name. Absent when that user no longer exists.","example":"Jamie Rivera"},"manageeUserId":{"type":"string","description":"The Id of the managee (the direct report)","example":"507f1f77bcf86cd799439014"},"manageeFullName":{"type":"string","description":"The managee's full name. Absent when that user no longer exists.","example":"Alex Kim"},"dueDate":{"type":"string","description":"When the Conversation is due (ISO 8601)","example":"2026-09-30T00:00:00.000Z"},"completedDate":{"type":"string","description":"When the Conversation was completed (ISO 8601). Absent while it is open.","example":"2026-10-02T15:30:00.000Z"},"completed":{"type":"boolean","description":"Whether the Conversation has been completed","example":false},"meetingCompleted":{"type":"boolean","description":"Whether the meeting between the two participants has been held","example":false},"managerStarted":{"type":"boolean","description":"Whether the manager has started their side","example":true},"managerDone":{"type":"boolean","description":"Whether the manager has finished their side","example":false},"manageeStarted":{"type":"boolean","description":"Whether the managee has started their side","example":true},"manageeDone":{"type":"boolean","description":"Whether the managee has finished their side","example":false}},"required":["id","type","title","managerUserId","manageeUserId","completed","meetingCompleted","managerStarted","managerDone","manageeStarted","manageeDone"]},"PaginatedConversationSummaryResponseDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ConversationSummaryResponseDTO"}},"totalCount":{"type":"number","description":"Total number of Conversations matching the filters","example":42}},"required":["items","totalCount"]}}},"security":[{"JWT":[]}]}