{"openapi":"3.0.3","info":{"title":"Kalaaf Public API","version":"1.0.0","description":"Kalaaf public REST API, derived from the AI native tools pool. See docs/kalaaf-public-api-roadmap.md."},"servers":[{"url":"https://api.kalaaf.online/api/v1"}],"paths":{"/projects":{"get":{"operationId":"project_list","summary":"List all projects visible to this user in the active workspace; use for questions asking which projects exist. Supports bounded pagination w","description":"List all projects visible to this user in the active workspace; use for questions asking which projects exist. Supports bounded pagination without requiring a search term.","tags":["project"],"security":[{"ApiKeyAuth":["projects:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"project_create","summary":"Create a project","description":"Create a project","tags":["project"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":4000},"code":{"type":"string","maxLength":4000},"description":{"type":"string","maxLength":4000},"ownerId":{"type":"string","maxLength":240},"status":{"type":"string","maxLength":240,"enum":["planning","active","on_hold","completed","cancelled","archived"]},"startDate":{"type":"string","description":"ISO-8601 date or date-time"},"dueDate":{"type":"string","description":"ISO-8601 date or date-time"},"riskLevel":{"type":"string","maxLength":240,"enum":["low","medium","high","critical"]},"priority":{"type":"string","maxLength":240,"enum":["low","medium","high","critical"]}},"required":["name","code"]}}}}}},"/projects/search":{"get":{"operationId":"project_search","summary":"Find visible projects by name or code.","description":"Find visible projects by name or code.","tags":["project"],"security":[{"ApiKeyAuth":["projects:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}}]}},"/projects/{id}":{"get":{"operationId":"project_get","summary":"Read one currently visible project.","description":"Read one currently visible project.","tags":["project"],"security":[{"ApiKeyAuth":["projects:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"operationId":"project_update","summary":"Update a project","description":"Update a project","tags":["project"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":4000},"description":{"type":"string","maxLength":4000},"status":{"type":"string","maxLength":240,"enum":["planning","active","on_hold","completed","cancelled","archived"]},"dueDate":{"type":"string","description":"ISO-8601 date or date-time"},"riskLevel":{"type":"string","maxLength":240,"enum":["low","medium","high","critical"]},"priority":{"type":"string","maxLength":240,"enum":["low","medium","high","critical"]}},"required":[]}}}}}},"/projects/{id}/snapshot":{"get":{"operationId":"project_snapshot","summary":"Read actual authorized operational counts, attention indicators, and closeout blockers for one project.","description":"Read actual authorized operational counts, attention indicators, and closeout blockers for one project.","tags":["project"],"security":[{"ApiKeyAuth":["projects:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/projects/{id}/progress":{"get":{"operationId":"project_progress","summary":"Read canonical Project Phase completion and Tracker progress.","description":"Read canonical Project Phase completion and Tracker progress.","tags":["project"],"security":[{"ApiKeyAuth":["projects:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/projects/{id}/activity":{"get":{"operationId":"project_activity","summary":"Read bounded visible Project Activity and authorized audit-event summaries, excluding raw before/after payloads.","description":"Read bounded visible Project Activity and authorized audit-event summaries, excluding raw before/after payloads.","tags":["project"],"security":[{"ApiKeyAuth":["projects:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"activityOffset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}},{"name":"auditOffset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/projects/{id}/completion-gaps":{"get":{"operationId":"project_completion_gaps","summary":"Identify unfulfilled completion criteria, missing forms, and blocker conditions preventing phase completion in a project.","description":"Identify unfulfilled completion criteria, missing forms, and blocker conditions preventing phase completion in a project.","tags":["project"],"security":[{"ApiKeyAuth":["projects:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"Target project ID"}},{"name":"phaseId","in":"query","required":false,"schema":{"type":"string","description":"Optional specific phase ID"}}]}},"/projects/{id}/shares":{"get":{"operationId":"project_shares_list","summary":"List external guest sharing grants for whole projects or specific project planning phases, including permissions and expiration dates.","description":"List external guest sharing grants for whole projects or specific project planning phases, including permissions and expiration dates.","tags":["project"],"security":[{"ApiKeyAuth":["projects:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"Optional project filter"}},{"name":"scopeType","in":"query","required":false,"schema":{"type":"string","enum":["project","project_phase"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}}]}},"/projects/{id}/archive":{"post":{"operationId":"project_archive","summary":"Archive a project. Proposal only: a human confirms in Kartable. Blocked while the project has active tasks, pending finance records, or acti","description":"Archive a project. Proposal only: a human confirms in Kartable. Blocked while the project has active tasks, pending finance records, or active contracts. Idempotent if already archived.","tags":["project"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/projects/{id}/restore":{"post":{"operationId":"project_restore","summary":"Restore an archived project to its pre-archive status (archivedFromStatus, default active). Proposal only: a human confirms in Kartable. Ide","description":"Restore an archived project to its pre-archive status (archivedFromStatus, default active). Proposal only: a human confirms in Kartable. Idempotent if not archived.","tags":["project"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/projects/{id}/soft-delete":{"post":{"operationId":"project_soft_delete","summary":"Move an eligible uncommitted project to the workspace Recycle Bin","description":"Move an eligible uncommitted project to the workspace Recycle Bin","tags":["project"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/projects/{id}/restore-deleted":{"post":{"operationId":"project_restore_deleted","summary":"Restore a trashed project from the workspace Recycle Bin","description":"Restore a trashed project from the workspace Recycle Bin","tags":["project"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/projects/{id}/phases":{"post":{"operationId":"project_phase_create","summary":"Create a Project Phase","description":"Create a Project Phase","tags":["project_phase"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"description":{"type":"string","maxLength":4000},"targetStartDate":{"type":"string","description":"ISO-8601 date or date-time"},"targetEndDate":{"type":"string","description":"ISO-8601 date or date-time"}},"required":["title"]}}}}}},"/projects/{projectId}/phases/{phaseId}":{"patch":{"operationId":"project_phase_update","summary":"Update a Project Phase","description":"Update a Project Phase","tags":["project_phase"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"phaseId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"description":{"type":"string","maxLength":4000},"targetStartDate":{"type":"string","description":"ISO-8601 date or date-time"},"targetEndDate":{"type":"string","description":"ISO-8601 date or date-time"}},"required":[]}}}}},"get":{"operationId":"project_phase_get","summary":"Read one project phase by id, reusing the canonical phase list. Never returns status/progress truth fields — phase completion comes from pro","description":"Read one project phase by id, reusing the canonical phase list. Never returns status/progress truth fields — phase completion comes from project progress, not the phase row.","tags":["project_phase"],"security":[{"ApiKeyAuth":["projects:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"phaseId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}]}},"/projects/{id}/phases/reorder":{"post":{"operationId":"project_phase_reorder","summary":"Reorder Project Phases","description":"Reorder Project Phases","tags":["project_phase"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phaseIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30}},"required":["phaseIds"]}}}}}},"/projects/{projectId}/phases/{phaseId}/items":{"post":{"operationId":"project_phase_item_assign","summary":"Assign or reassign a canonical Project item to a Phase","description":"Assign or reassign a canonical Project item to a Phase","tags":["project_phase_item"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"phaseId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entityType":{"type":"string","maxLength":240,"enum":["task","contract","contract_payment_milestone","finance_record","supply_request","inventory_item","risk","deliverable","calendar_event","workflow_case"]},"entityId":{"type":"string","maxLength":240},"label":{"type":"string","maxLength":4000}},"required":["entityType","entityId"]}}}}}},"/projects/{projectId}/phases/items/unassign":{"post":{"operationId":"project_phase_item_unassign","summary":"Unassign a canonical Project item from Planning without mutating the source","description":"Unassign a canonical Project item from Planning without mutating the source","tags":["project_phase_item"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entityType":{"type":"string","maxLength":240,"enum":["task","contract","contract_payment_milestone","finance_record","supply_request","inventory_item","risk","deliverable","calendar_event","workflow_case"]},"entityId":{"type":"string","maxLength":240}},"required":["entityType","entityId"]}}}}}},"/projects/{projectId}/phases/{phaseId}/completion":{"post":{"operationId":"project_phase_item_update_completion","summary":"Update the managed Completion condition for a Phase Item","description":"Update the managed Completion condition for a Phase Item","tags":["project_phase_item"],"security":[{"ApiKeyAuth":["projects:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"phaseId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"criterionId":{"type":"string","maxLength":240},"predicateKey":{"type":"string","maxLength":4000},"parameters":{"type":"object","additionalProperties":true,"description":"Structured parameters validated by the canonical Domain executor"},"title":{"type":"string","maxLength":4000}},"required":["criterionId"]}}}}}},"/projects/{projectId}/phases":{"get":{"operationId":"project_phase_list","summary":"List phases of one project, ordered by phase order, with bounded pagination; follow nextOffset when present. Never returns status/progress t","description":"List phases of one project, ordered by phase order, with bounded pagination; follow nextOffset when present. Never returns status/progress truth fields.","tags":["project_phase"],"security":[{"ApiKeyAuth":["projects:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/tasks":{"get":{"operationId":"task_list","summary":"List currently visible tasks across authorized projects and independent workspace tasks, or filter by one authorized project. Supports bound","description":"List currently visible tasks across authorized projects and independent workspace tasks, or filter by one authorized project. Supports bounded pagination without a search term.","tags":["task"],"security":[{"ApiKeyAuth":["tasks:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"task_create","summary":"Create a task","description":"Create a task","tags":["task"],"security":[{"ApiKeyAuth":["tasks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"description":{"type":"string","maxLength":4000},"assigneeId":{"type":"string","maxLength":240},"dueDate":{"type":"string","description":"ISO-8601 date or date-time"},"priority":{"type":"string","maxLength":240,"enum":["low","medium","high","urgent"]},"status":{"type":"string","maxLength":240,"enum":["todo","in_progress","blocked","done","cancelled"]},"taskType":{"type":"string","maxLength":240,"enum":["standard"]},"planningAnchorType":{"type":"string","maxLength":240,"enum":["project_phase","task","contract","finance_record","financial_document","financial_security","deliverable","calendar_event","supply_request","risk"]},"planningAnchorId":{"type":"string","maxLength":240}},"required":["title"]}}}}}},"/tasks/search":{"get":{"operationId":"task_search","summary":"Search visible tasks across authorized projects.","description":"Search visible tasks across authorized projects.","tags":["task"],"security":[{"ApiKeyAuth":["tasks:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}}]}},"/tasks/{id}":{"get":{"operationId":"task_get","summary":"Read one visible task by ID.","description":"Read one visible task by ID.","tags":["task"],"security":[{"ApiKeyAuth":["tasks:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"operationId":"task_update","summary":"Update a task","description":"Update a task","tags":["task"],"security":[{"ApiKeyAuth":["tasks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"description":{"type":"string","maxLength":4000},"assigneeId":{"type":"string","maxLength":240},"dueDate":{"type":"string","description":"ISO-8601 date or date-time"},"priority":{"type":"string","maxLength":240,"enum":["low","medium","high","urgent"]},"status":{"type":"string","maxLength":240,"enum":["todo","in_progress","blocked","done","cancelled"]}},"required":[]}}}}}},"/tasks/{id}/reports":{"get":{"operationId":"task_reports","summary":"Read actual report updates under a task, with bounded pagination.","description":"Read actual report updates under a task, with bounded pagination.","tags":["task"],"security":[{"ApiKeyAuth":["tasks:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"task_report_create","summary":"Create a task report","description":"Create a task report","tags":["task_report"],"security":[{"ApiKeyAuth":["tasks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":4000},"attachmentIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"mentionUserIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"projectId":{"type":"string","maxLength":240},"reviewRequested":{"type":"boolean"},"reviewerUserId":{"type":"string","maxLength":240}},"required":[]}}}}}},"/tasks/change-requests":{"post":{"operationId":"task_create_change_request","summary":"Create a change-request task","description":"Create a change-request task","tags":["task"],"security":[{"ApiKeyAuth":["tasks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"description":{"type":"string","maxLength":4000},"assigneeId":{"type":"string","maxLength":240},"priority":{"type":"string","maxLength":240,"enum":["low","medium","high","urgent"]},"category":{"type":"string","maxLength":240,"enum":["scope","design","cost","schedule","quality","safety","contract","procurement","other"]},"reason":{"type":"string","maxLength":4000},"relatedContractId":{"type":"string","maxLength":240},"planningAnchorType":{"type":"string","maxLength":240,"enum":["project_phase","task","contract","finance_record","financial_document","financial_security","deliverable","calendar_event","supply_request","risk"]},"planningAnchorId":{"type":"string","maxLength":240}},"required":["title","projectId","reason"]}}}}}},"/tasks/{id}/archive":{"post":{"operationId":"task_archive","summary":"Archive an accessible task without deleting history or attachments","description":"Archive an accessible task without deleting history or attachments","tags":["task"],"security":[{"ApiKeyAuth":["tasks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/tasks/{id}/restore":{"post":{"operationId":"task_restore","summary":"Restore an accessible task without deleting history or attachments","description":"Restore an accessible task without deleting history or attachments","tags":["task"],"security":[{"ApiKeyAuth":["tasks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/tasks/{id}/soft-delete":{"post":{"operationId":"task_soft_delete","summary":"Move an eligible uncommitted task to the workspace Recycle Bin","description":"Move an eligible uncommitted task to the workspace Recycle Bin","tags":["task"],"security":[{"ApiKeyAuth":["tasks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/tasks/{id}/restore-deleted":{"post":{"operationId":"task_restore_deleted","summary":"Restore a trashed task from the workspace Recycle Bin","description":"Restore a trashed task from the workspace Recycle Bin","tags":["task"],"security":[{"ApiKeyAuth":["tasks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/correspondence":{"get":{"operationId":"correspondence_list","summary":"List canonical correspondence records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical correspondence records in the active Workspace or an accessible Project, with bounded pagination.","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/correspondence/search":{"get":{"operationId":"correspondence_search","summary":"Search visible correspondence records with bounded pagination; follow nextOffset when present","description":"Search visible correspondence records with bounded pagination; follow nextOffset when present","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/correspondence/{id}":{"get":{"operationId":"correspondence_get","summary":"Read one visible correspondence record","description":"Read one visible correspondence record","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/correspondence/archived":{"get":{"operationId":"correspondence_archived","summary":"Find visible archived, unregistered correspondence drafts and their exact current revision before proposing restoration.","description":"Find visible archived, unregistered correspondence drafts and their exact current revision before proposing restoration.","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"correspondenceId","in":"query","required":false,"schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/correspondence/{id}/export.docx":{"get":{"operationId":"correspondence_docx_export","summary":"Prepare an authorized Word download for a registered incoming or issued letter. Returns a download descriptor; never registers, sends or edi","description":"Prepare an authorized Word download for a registered incoming or issued letter. Returns a download descriptor; never registers, sends or edits correspondence.","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":128}},{"name":"locale","in":"query","required":false,"schema":{"type":"string","enum":["fa","en"]}}]}},"/correspondence/drafts":{"post":{"operationId":"correspondence_draft_create","summary":"Prepare a human-confirmed outgoing letter Draft (never issue, send or attach a file)","description":"Prepare a human-confirmed outgoing letter Draft (never issue, send or attach a file)","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","maxLength":4000},"body":{"type":"string","maxLength":4000},"counterpartyContactId":{"type":"string","maxLength":240},"recipientIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"projectId":{"type":"string","maxLength":240},"relatedCorrespondenceId":{"type":"string","maxLength":240},"responseDueAt":{"type":"string","description":"ISO-8601 date or date-time"},"responsibleUserId":{"type":"string","maxLength":240}},"required":["subject","counterpartyContactId","recipientIds"]}}}}}},"/correspondence/incoming":{"post":{"operationId":"correspondence_incoming_create","summary":"Prepare an incoming letter as an unregistered draft; never register its official receipt","description":"Prepare an incoming letter as an unregistered draft; never register its official receipt","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","maxLength":4000},"body":{"type":"string","maxLength":4000},"counterpartyContactId":{"type":"string","maxLength":240},"projectId":{"type":"string","maxLength":240},"documentDate":{"type":"string","description":"ISO-8601 date or date-time"},"externalReferenceNo":{"type":"string","maxLength":4000},"responsibleUserId":{"type":"string","maxLength":240}},"required":["subject","counterpartyContactId"]}}}}}},"/correspondence/{id}/soft-delete":{"post":{"operationId":"correspondence_soft_delete","summary":"Move an eligible uncommitted correspondence to the workspace Recycle Bin","description":"Move an eligible uncommitted correspondence to the workspace Recycle Bin","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/correspondence/{id}/restore-deleted":{"post":{"operationId":"correspondence_restore_deleted","summary":"Restore a trashed correspondence from the workspace Recycle Bin","description":"Restore a trashed correspondence from the workspace Recycle Bin","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/correspondence/{id}/dispatches":{"get":{"operationId":"correspondence_dispatch_list","summary":"List dispatch records of one correspondence (manual records and email sends), newest first. Returns the dispatch rows only — never the lette","description":"List dispatch records of one correspondence (manual records and email sends), newest first. Returns the dispatch rows only — never the letter body or file content.","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}}]}},"/correspondence/registry/settings":{"get":{"operationId":"correspondence_numbering_get","summary":"Read the correspondence numbering settings (prefix, middle mode/text, separator, width, revision) for one direction, or both directions when","description":"Read the correspondence numbering settings (prefix, middle mode/text, separator, width, revision) for one direction, or both directions when direction is omitted. Read-only: numbering settings are changed by a manager through the settings route, never by this tool.","tags":["correspondence"],"security":[{"ApiKeyAuth":["correspondence:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"direction","in":"query","required":false,"schema":{"type":"string","enum":["inbound","outbound"]}}]}},"/calendar/events":{"get":{"operationId":"calendar_events","summary":"Read permitted scheduled events by date or exact ID.","description":"Read permitted scheduled events by date or exact ID.","tags":["calendar"],"security":[{"ApiKeyAuth":["calendar:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"eventId","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}}]},"post":{"operationId":"calendar_event_create","summary":"Create a calendar event","description":"Create a calendar event","tags":["calendar_event"],"security":[{"ApiKeyAuth":["calendar:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"startDate":{"type":"string","description":"ISO-8601 date or date-time"},"endDate":{"type":"string","description":"ISO-8601 date or date-time"},"type":{"type":"string","maxLength":240,"enum":["meeting","custom"]},"priority":{"type":"string","maxLength":240,"enum":["low","medium","high","urgent"]},"location":{"type":"string","maxLength":4000},"description":{"type":"string","maxLength":4000},"participantIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"projectId":{"type":"string","maxLength":240},"assigneeId":{"type":"string","maxLength":240},"allDay":{"type":"boolean"},"timezone":{"type":"string","maxLength":4000},"planningAnchorType":{"type":"string","maxLength":240,"enum":["project_phase","task","contract","finance_record","financial_document","financial_security","deliverable","calendar_event","supply_request","risk"]},"planningAnchorId":{"type":"string","maxLength":240}},"required":["title","startDate"]}}}}}},"/calendar/meetings/{id}":{"get":{"operationId":"calendar_meeting","summary":"Read an authorized Calendar meeting agenda, notes, recorded decisions and action items, without changing it.","description":"Read an authorized Calendar meeting agenda, notes, recorded decisions and action items, without changing it.","tags":["calendar"],"security":[{"ApiKeyAuth":["calendar:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/calendar/events/{id}/archive":{"post":{"operationId":"calendar_event_archive","summary":"Archive an accessible calendar_event without deleting history or attachments","description":"Archive an accessible calendar_event without deleting history or attachments","tags":["calendar_event"],"security":[{"ApiKeyAuth":["calendar:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/calendar/events/{id}/restore":{"post":{"operationId":"calendar_event_restore","summary":"Restore an accessible calendar_event without deleting history or attachments","description":"Restore an accessible calendar_event without deleting history or attachments","tags":["calendar_event"],"security":[{"ApiKeyAuth":["calendar:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/calendar/events/{id}/soft-delete":{"post":{"operationId":"calendar_event_soft_delete","summary":"Move an eligible uncommitted calendar_event to the workspace Recycle Bin","description":"Move an eligible uncommitted calendar_event to the workspace Recycle Bin","tags":["calendar_event"],"security":[{"ApiKeyAuth":["calendar:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/calendar/events/{id}/restore-deleted":{"post":{"operationId":"calendar_event_restore_deleted","summary":"Restore a trashed calendar_event from the workspace Recycle Bin","description":"Restore a trashed calendar_event from the workspace Recycle Bin","tags":["calendar_event"],"security":[{"ApiKeyAuth":["calendar:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/financial-documents":{"get":{"operationId":"financial_document_list","summary":"List canonical financial_document records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical financial_document records in the active Workspace or an accessible Project, with bounded pagination.","tags":["financial_document"],"security":[{"ApiKeyAuth":["finance:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/financial-documents/search":{"get":{"operationId":"financial_document_search","summary":"Search visible financial_document records with bounded pagination; follow nextOffset when present","description":"Search visible financial_document records with bounded pagination; follow nextOffset when present","tags":["financial_document"],"security":[{"ApiKeyAuth":["finance:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/financial-documents/{id}":{"get":{"operationId":"financial_document_get","summary":"Read one visible financial_document record","description":"Read one visible financial_document record","tags":["financial_document"],"security":[{"ApiKeyAuth":["finance:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"operationId":"financial_document_update","summary":"Update a draft financial document. Proposal only: a human confirms in Kartable. Only draft documents can be edited; kind, adjustsDocumentId ","description":"Update a draft financial document. Proposal only: a human confirms in Kartable. Only draft documents can be edited; kind, adjustsDocumentId and projectId are immutable; status is never changed by this tool. At least one change is required. documentNo is server-generated and cannot be changed.","tags":["financial_document"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"number"},"direction":{"type":"string","maxLength":240,"enum":["receivable","payable"]},"title":{"type":"string","maxLength":4000},"counterpartyContactId":{"type":"string","maxLength":240},"contractId":{"type":"string","maxLength":240},"opportunityId":{"type":"string","maxLength":240},"sourceCorrespondenceId":{"type":"string","maxLength":240},"contractPaymentMilestoneId":{"type":"string","maxLength":4000},"externalReferenceNo":{"type":"string","maxLength":4000},"documentDate":{"type":"string","description":"ISO-8601 date or date-time"},"dueDate":{"type":"string","description":"ISO-8601 date or date-time"},"originalAmount":{"type":"object","additionalProperties":true,"description":"Structured parameters validated by the canonical Domain executor"},"baseAmount":{"type":"object","additionalProperties":true,"description":"Structured parameters validated by the canonical Domain executor"},"exchangeRate":{"type":"object","additionalProperties":true,"description":"Structured parameters validated by the canonical Domain executor"},"retentionAmount":{"type":"object","additionalProperties":true,"description":"Structured parameters validated by the canonical Domain executor"},"adjustmentEffect":{"type":"string","maxLength":240,"enum":["increase","decrease"]},"description":{"type":"string","maxLength":4000}},"required":["revision"]}}}}}},"/financial-documents/{id}/soft-delete":{"post":{"operationId":"financial_document_soft_delete","summary":"Move an eligible uncommitted financial_document to the workspace Recycle Bin","description":"Move an eligible uncommitted financial_document to the workspace Recycle Bin","tags":["financial_document"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/financial-documents/{id}/restore-deleted":{"post":{"operationId":"financial_document_restore_deleted","summary":"Restore a trashed financial_document from the workspace Recycle Bin","description":"Restore a trashed financial_document from the workspace Recycle Bin","tags":["financial_document"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/financial-securities":{"get":{"operationId":"financial_security_list","summary":"List canonical financial_security records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical financial_security records in the active Workspace or an accessible Project, with bounded pagination.","tags":["financial_security"],"security":[{"ApiKeyAuth":["finance:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/financial-securities/search":{"get":{"operationId":"financial_security_search","summary":"Search visible financial_security records with bounded pagination; follow nextOffset when present","description":"Search visible financial_security records with bounded pagination; follow nextOffset when present","tags":["financial_security"],"security":[{"ApiKeyAuth":["finance:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/financial-securities/{id}":{"get":{"operationId":"financial_security_get","summary":"Read one visible financial_security record","description":"Read one visible financial_security record","tags":["financial_security"],"security":[{"ApiKeyAuth":["finance:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/financial-securities/{id}/soft-delete":{"post":{"operationId":"financial_security_soft_delete","summary":"Move an eligible uncommitted financial_security to the workspace Recycle Bin","description":"Move an eligible uncommitted financial_security to the workspace Recycle Bin","tags":["financial_security"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/financial-securities/{id}/restore-deleted":{"post":{"operationId":"financial_security_restore_deleted","summary":"Restore a trashed financial_security from the workspace Recycle Bin","description":"Restore a trashed financial_security from the workspace Recycle Bin","tags":["financial_security"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/finance-records":{"get":{"operationId":"finance_list","summary":"List canonical finance records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical finance records in the active Workspace or an accessible Project, with bounded pagination.","tags":["finance"],"security":[{"ApiKeyAuth":["finance:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"finance_record_create","summary":"Create a finance record","description":"Create a finance record","tags":["finance_record"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"amount":{"type":"number"},"projectId":{"type":"string","maxLength":240},"contactId":{"type":"string","maxLength":240},"contractId":{"type":"string","maxLength":240},"contractPaymentMilestoneId":{"type":"string","maxLength":240},"checkNumber":{"type":"string","maxLength":4000},"bankName":{"type":"string","maxLength":4000},"currency":{"type":"string","maxLength":240,"enum":["IRR","IRT","USD","EUR","AED","CNY","GBP","TRY"]},"exchangeRate":{"type":"number"},"transactionDate":{"type":"string","description":"ISO-8601 date or date-time"},"dueDate":{"type":"string","description":"ISO-8601 date or date-time"},"status":{"type":"string","maxLength":240,"enum":["pending","due_soon","cleared","bounced","cancelled"]},"type":{"type":"string","maxLength":240,"enum":["income","expense","check_issued","check_received","transfer"]},"description":{"type":"string","maxLength":4000},"planningAnchorType":{"type":"string","maxLength":240,"enum":["project_phase","task","contract","finance_record","financial_document","financial_security","deliverable","calendar_event","supply_request","risk"]},"planningAnchorId":{"type":"string","maxLength":240}},"required":["amount"]}}}}}},"/finance-records/search":{"get":{"operationId":"finance_search","summary":"Search visible finance records with bounded pagination; follow nextOffset when present","description":"Search visible finance records with bounded pagination; follow nextOffset when present","tags":["finance"],"security":[{"ApiKeyAuth":["finance:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/finance-records/{id}":{"get":{"operationId":"finance_get","summary":"Read one visible finance record","description":"Read one visible finance record","tags":["finance"],"security":[{"ApiKeyAuth":["finance:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/finance-records/{id}/archive":{"post":{"operationId":"finance_record_archive","summary":"Archive an accessible finance_record without deleting history or attachments","description":"Archive an accessible finance_record without deleting history or attachments","tags":["finance_record"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/finance-records/{id}/restore":{"post":{"operationId":"finance_record_restore","summary":"Restore an accessible finance_record without deleting history or attachments","description":"Restore an accessible finance_record without deleting history or attachments","tags":["finance_record"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/finance-records/{id}/soft-delete":{"post":{"operationId":"finance_record_soft_delete","summary":"Move an eligible uncommitted finance_record to the workspace Recycle Bin","description":"Move an eligible uncommitted finance_record to the workspace Recycle Bin","tags":["finance_record"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/finance-records/{id}/restore-deleted":{"post":{"operationId":"finance_record_restore_deleted","summary":"Restore a trashed finance_record from the workspace Recycle Bin","description":"Restore a trashed finance_record from the workspace Recycle Bin","tags":["finance_record"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/finance-records/{id}/reports":{"post":{"operationId":"finance_record_report_create","summary":"Record a canonical Finance report","description":"Record a canonical Finance report","tags":["finance_record_report"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"attachmentIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"mentionUserIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"reviewRequested":{"type":"boolean"},"reviewerUserId":{"type":"string","maxLength":240}},"required":[]}}}}}},"/finance-allocations":{"post":{"operationId":"finance_allocation_create","summary":"Allocate a cleared finance record across open financial documents in one atomic batch. Proposal only: a human confirms in Kartable. Directio","description":"Allocate a cleared finance record across open financial documents in one atomic batch. Proposal only: a human confirms in Kartable. Direction, counterparty and currency must match; per-document amounts are capped by the outstanding amount after retention, and the batch total by the record unallocated amount. Replaying the same idempotency key returns the existing batch.","tags":["finance_allocation"],"security":[{"ApiKeyAuth":["finance:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"financeRecordId":{"type":"string","maxLength":240},"idempotencyKey":{"type":"string","maxLength":4000},"items":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30}},"required":["financeRecordId","idempotencyKey","items"]}}}}}},"/contracts":{"get":{"operationId":"contract_list","summary":"List canonical contract records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical contract records in the active Workspace or an accessible Project, with bounded pagination.","tags":["contract"],"security":[{"ApiKeyAuth":["contracts:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"contract_create","summary":"Create a contract","description":"Create a contract","tags":["contract"],"security":[{"ApiKeyAuth":["contracts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"contractType":{"type":"string","maxLength":240,"enum":["customer","subcontractor","supplier","service"]},"contactId":{"type":"string","maxLength":240},"startDate":{"type":"string","description":"ISO-8601 date or date-time"},"endDate":{"type":"string","description":"ISO-8601 date or date-time"},"status":{"type":"string","maxLength":240,"enum":["draft","pending","active","completed","terminated"]},"notes":{"type":"string","maxLength":4000},"planningAnchorType":{"type":"string","maxLength":240,"enum":["project_phase","task","contract","finance_record","financial_document","financial_security","deliverable","calendar_event","supply_request","risk"]},"planningAnchorId":{"type":"string","maxLength":240}},"required":["title","startDate","endDate"]}}}}}},"/contracts/search":{"get":{"operationId":"contract_search","summary":"Search visible contract records with bounded pagination; follow nextOffset when present","description":"Search visible contract records with bounded pagination; follow nextOffset when present","tags":["contract"],"security":[{"ApiKeyAuth":["contracts:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/contracts/{id}":{"get":{"operationId":"contract_get","summary":"Read one visible contract record","description":"Read one visible contract record","tags":["contract"],"security":[{"ApiKeyAuth":["contracts:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/contracts/{id}/archive":{"post":{"operationId":"contract_archive","summary":"Archive an accessible contract without deleting history or attachments","description":"Archive an accessible contract without deleting history or attachments","tags":["contract"],"security":[{"ApiKeyAuth":["contracts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/contracts/{id}/restore":{"post":{"operationId":"contract_restore","summary":"Restore an accessible contract without deleting history or attachments","description":"Restore an accessible contract without deleting history or attachments","tags":["contract"],"security":[{"ApiKeyAuth":["contracts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/contracts/{id}/soft-delete":{"post":{"operationId":"contract_soft_delete","summary":"Move an eligible uncommitted contract to the workspace Recycle Bin","description":"Move an eligible uncommitted contract to the workspace Recycle Bin","tags":["contract"],"security":[{"ApiKeyAuth":["contracts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/contracts/{id}/restore-deleted":{"post":{"operationId":"contract_restore_deleted","summary":"Restore a trashed contract from the workspace Recycle Bin","description":"Restore a trashed contract from the workspace Recycle Bin","tags":["contract"],"security":[{"ApiKeyAuth":["contracts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/contracts/{id}/reports":{"post":{"operationId":"contract_report_create","summary":"Record a canonical Contract report","description":"Record a canonical Contract report","tags":["contract_report"],"security":[{"ApiKeyAuth":["contracts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"attachmentIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"mentionUserIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"reviewRequested":{"type":"boolean"},"reviewerUserId":{"type":"string","maxLength":240}},"required":[]}}}}}},"/opportunities":{"get":{"operationId":"commercial_opportunity_list","summary":"List canonical commercial_opportunity records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical commercial_opportunity records in the active Workspace or an accessible Project, with bounded pagination.","tags":["commercial_opportunity"],"security":[{"ApiKeyAuth":["commercial:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/opportunities/search":{"get":{"operationId":"commercial_opportunity_search","summary":"Search visible commercial_opportunity records with bounded pagination; follow nextOffset when present","description":"Search visible commercial_opportunity records with bounded pagination; follow nextOffset when present","tags":["commercial_opportunity"],"security":[{"ApiKeyAuth":["commercial:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/opportunities/{id}":{"get":{"operationId":"commercial_opportunity_get","summary":"Read one visible commercial_opportunity record","description":"Read one visible commercial_opportunity record","tags":["commercial_opportunity"],"security":[{"ApiKeyAuth":["commercial:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"operationId":"commercial_opportunity_update","summary":"Update an open commercial opportunity (partial: only supplied fields change). Proposal only: a human confirms in Kartable. Closed opportunit","description":"Update an open commercial opportunity (partial: only supplied fields change). Proposal only: a human confirms in Kartable. Closed opportunities cannot be edited. responseDueAt can only be set, not cleared, through this tool.","tags":["commercial_opportunity"],"security":[{"ApiKeyAuth":["commercial:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"requestSummary":{"type":"string","maxLength":4000},"responseDueAt":{"type":"string","description":"ISO-8601 date or date-time"},"ownerUserId":{"type":"string","maxLength":240}},"required":[]}}}}}},"/proposals":{"get":{"operationId":"commercial_proposal_list","summary":"List canonical commercial_proposal records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical commercial_proposal records in the active Workspace or an accessible Project, with bounded pagination.","tags":["commercial_proposal"],"security":[{"ApiKeyAuth":["commercial:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/proposals/search":{"get":{"operationId":"commercial_proposal_search","summary":"Search visible commercial_proposal records with bounded pagination; follow nextOffset when present","description":"Search visible commercial_proposal records with bounded pagination; follow nextOffset when present","tags":["commercial_proposal"],"security":[{"ApiKeyAuth":["commercial:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/proposals/{id}":{"get":{"operationId":"commercial_proposal_get","summary":"Read one visible commercial_proposal record","description":"Read one visible commercial_proposal record","tags":["commercial_proposal"],"security":[{"ApiKeyAuth":["commercial:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/proposal-revisions/{id}":{"get":{"operationId":"commercial_proposal_revision_get","summary":"Read one visible commercial_proposal_revision record","description":"Read one visible commercial_proposal_revision record","tags":["commercial_proposal_revision"],"security":[{"ApiKeyAuth":["commercial:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/opportunities/{id}/close":{"post":{"operationId":"commercial_opportunity_archive","summary":"Close an open commercial opportunity as lost or cancelled. Proposal only: a human confirms in Kartable. Blocked while an accepted proposal e","description":"Close an open commercial opportunity as lost or cancelled. Proposal only: a human confirms in Kartable. Blocked while an accepted proposal exists for the opportunity. Won is not a close status — it comes from proposal-to-contract conversion.","tags":["commercial_opportunity"],"security":[{"ApiKeyAuth":["commercial:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","maxLength":240,"enum":["lost","cancelled"]},"reason":{"type":"string","maxLength":4000}},"required":["status","reason"]}}}}}},"/opportunities/{id}/soft-delete":{"post":{"operationId":"commercial_opportunity_soft_delete","summary":"Move an eligible uncommitted commercial_opportunity to the workspace Recycle Bin","description":"Move an eligible uncommitted commercial_opportunity to the workspace Recycle Bin","tags":["commercial_opportunity"],"security":[{"ApiKeyAuth":["commercial:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/opportunities/{id}/restore-deleted":{"post":{"operationId":"commercial_opportunity_restore_deleted","summary":"Restore a trashed commercial_opportunity from the workspace Recycle Bin","description":"Restore a trashed commercial_opportunity from the workspace Recycle Bin","tags":["commercial_opportunity"],"security":[{"ApiKeyAuth":["commercial:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/proposals/{proposalId}/revisions/{revisionId}":{"patch":{"operationId":"commercial_proposal_update","summary":"Update a draft revision of an open commercial proposal (never the proposal itself). Proposal only: a human confirms in Kartable. expectedUpd","description":"Update a draft revision of an open commercial proposal (never the proposal itself). Proposal only: a human confirms in Kartable. expectedUpdatedAt is required (concurrency check). Price lines are not editable through this tool — they are preserved as-is; editing them stays a human-form action.","tags":["commercial_proposal"],"security":[{"ApiKeyAuth":["commercial:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"proposalId","in":"path","required":true,"schema":{"type":"string"}},{"name":"revisionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"category":{"type":"string","maxLength":240,"enum":["technical","financial","technical_and_financial"]},"scopeOfWork":{"type":"string","maxLength":4000},"technicalDescription":{"type":"string","maxLength":4000},"commercialTerms":{"type":"string","maxLength":4000},"validityUntil":{"type":"string","description":"ISO-8601 date or date-time"},"totalAmount":{"type":"number"},"currency":{"type":"string","maxLength":4000},"fileAssetIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"sourceCorrespondenceId":{"type":"string","maxLength":240}},"required":["expectedUpdatedAt"]}}}}}},"/proposals/{id}/close":{"post":{"operationId":"commercial_proposal_archive","summary":"Close an open commercial proposal as declined or withdrawn. Proposal only: a human confirms in Kartable.","description":"Close an open commercial proposal as declined or withdrawn. Proposal only: a human confirms in Kartable.","tags":["commercial_proposal"],"security":[{"ApiKeyAuth":["commercial:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","maxLength":240,"enum":["declined","withdrawn"]}},"required":["status"]}}}}}},"/proposals/{id}/soft-delete":{"post":{"operationId":"commercial_proposal_soft_delete","summary":"Move an eligible uncommitted commercial_proposal to the workspace Recycle Bin","description":"Move an eligible uncommitted commercial_proposal to the workspace Recycle Bin","tags":["commercial_proposal"],"security":[{"ApiKeyAuth":["commercial:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/proposals/{id}/restore-deleted":{"post":{"operationId":"commercial_proposal_restore_deleted","summary":"Restore a trashed commercial_proposal from the workspace Recycle Bin","description":"Restore a trashed commercial_proposal from the workspace Recycle Bin","tags":["commercial_proposal"],"security":[{"ApiKeyAuth":["commercial:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/supply-requests":{"get":{"operationId":"supply_list","summary":"List canonical supply records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical supply records in the active Workspace or an accessible Project, with bounded pagination.","tags":["supply"],"security":[{"ApiKeyAuth":["inventory:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"supply_request_create","summary":"Create a supply request","description":"Create a supply request","tags":["supply_request"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"kind":{"type":"string","maxLength":240,"enum":["material","service","equipment","other"]},"priority":{"type":"string","maxLength":240,"enum":["low","medium","high","urgent"]},"status":{"type":"string","maxLength":240,"enum":["draft","open","sourcing","ordered","fulfilled","rejected","cancelled"]},"description":{"type":"string","maxLength":4000},"quantity":{"type":"number"},"unit":{"type":"string","maxLength":4000},"requiredBy":{"type":"string","description":"ISO-8601 date or date-time"},"ownerId":{"type":"string","maxLength":240},"supplierId":{"type":"string","maxLength":240},"estimatedCost":{"type":"object","additionalProperties":true,"description":"Structured parameters validated by the canonical Domain executor"},"agreedCost":{"type":"object","additionalProperties":true,"description":"Structured parameters validated by the canonical Domain executor"},"relatedContractId":{"type":"string","maxLength":240},"relatedInventoryItemId":{"type":"string","maxLength":240},"relatedFinanceRecordId":{"type":"string","maxLength":240},"planningAnchorType":{"type":"string","maxLength":240,"enum":["project_phase","task","contract","finance_record","financial_document","financial_security","deliverable","calendar_event","supply_request","risk"]},"planningAnchorId":{"type":"string","maxLength":240}},"required":["title"]}}}}}},"/supply-requests/search":{"get":{"operationId":"supply_search","summary":"Search visible supply records with bounded pagination; follow nextOffset when present","description":"Search visible supply records with bounded pagination; follow nextOffset when present","tags":["supply"],"security":[{"ApiKeyAuth":["inventory:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/supply-requests/{id}":{"get":{"operationId":"supply_get","summary":"Read one visible supply record","description":"Read one visible supply record","tags":["supply"],"security":[{"ApiKeyAuth":["inventory:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/supply-requests/{id}/reports":{"get":{"operationId":"supply_reports","summary":"Read operational reports of one currently visible supply, with bounded pagination.","description":"Read operational reports of one currently visible supply, with bounded pagination.","tags":["supply"],"security":[{"ApiKeyAuth":["inventory:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"supply_request_report_create","summary":"Record an operational supply report","description":"Record an operational supply report","tags":["supply_request_report"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"attachmentIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"mentionUserIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"reviewRequested":{"type":"boolean"},"reviewerUserId":{"type":"string","maxLength":240}},"required":[]}}}}}},"/supply-requests/{id}/archive":{"post":{"operationId":"supply_request_archive","summary":"Archive an accessible supply_request without deleting history or attachments","description":"Archive an accessible supply_request without deleting history or attachments","tags":["supply_request"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/supply-requests/{id}/restore":{"post":{"operationId":"supply_request_restore","summary":"Restore an accessible supply_request without deleting history or attachments","description":"Restore an accessible supply_request without deleting history or attachments","tags":["supply_request"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/supply-requests/{id}/soft-delete":{"post":{"operationId":"supply_request_soft_delete","summary":"Move an eligible uncommitted supply_request to the workspace Recycle Bin","description":"Move an eligible uncommitted supply_request to the workspace Recycle Bin","tags":["supply_request"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/supply-requests/{id}/restore-deleted":{"post":{"operationId":"supply_request_restore_deleted","summary":"Restore a trashed supply_request from the workspace Recycle Bin","description":"Restore a trashed supply_request from the workspace Recycle Bin","tags":["supply_request"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/inventory-items":{"get":{"operationId":"inventory_list","summary":"List canonical inventory records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical inventory records in the active Workspace or an accessible Project, with bounded pagination.","tags":["inventory"],"security":[{"ApiKeyAuth":["inventory:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"inventory_item_create","summary":"Create an inventory item","description":"Create an inventory item","tags":["inventory_item"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"sku":{"type":"string","maxLength":4000},"category":{"type":"string","maxLength":4000},"quantity":{"type":"number"},"unit":{"type":"string","maxLength":4000},"minThreshold":{"type":"number"},"supplierId":{"type":"string","maxLength":240},"location":{"type":"string","maxLength":4000},"shipmentStatus":{"type":"string","maxLength":240,"enum":["in_stock","ordered","in_transit","delivered","returned","depleted"]},"expectedDelivery":{"type":"string","description":"ISO-8601 date or date-time"},"description":{"type":"string","maxLength":4000}},"required":["name","quantity","unit"]}}}}}},"/inventory-items/search":{"get":{"operationId":"inventory_search","summary":"Search visible inventory records with bounded pagination; follow nextOffset when present","description":"Search visible inventory records with bounded pagination; follow nextOffset when present","tags":["inventory"],"security":[{"ApiKeyAuth":["inventory:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/inventory-items/{id}":{"get":{"operationId":"inventory_get","summary":"Read one visible inventory record","description":"Read one visible inventory record","tags":["inventory"],"security":[{"ApiKeyAuth":["inventory:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/inventory-items/{inventoryItemId}/movements":{"get":{"operationId":"inventory_movement_list","summary":"List movements of one inventory item, newest first, with bounded pagination; follow nextOffset when present. Movements of a project the call","description":"List movements of one inventory item, newest first, with bounded pagination; follow nextOffset when present. Movements of a project the caller cannot see are omitted. No kind filter — the human route has none.","tags":["inventory_movement"],"security":[{"ApiKeyAuth":["inventory:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"inventoryItemId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100000}}]}},"/inventory-items/{id}/archive":{"post":{"operationId":"inventory_item_archive","summary":"Archive an accessible inventory_item without deleting history or attachments","description":"Archive an accessible inventory_item without deleting history or attachments","tags":["inventory_item"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/inventory-items/{id}/restore":{"post":{"operationId":"inventory_item_restore","summary":"Restore an accessible inventory_item without deleting history or attachments","description":"Restore an accessible inventory_item without deleting history or attachments","tags":["inventory_item"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/inventory-items/{id}/soft-delete":{"post":{"operationId":"inventory_item_soft_delete","summary":"Move an eligible uncommitted inventory_item to the workspace Recycle Bin","description":"Move an eligible uncommitted inventory_item to the workspace Recycle Bin","tags":["inventory_item"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/inventory-items/{id}/restore-deleted":{"post":{"operationId":"inventory_item_restore_deleted","summary":"Restore a trashed inventory_item from the workspace Recycle Bin","description":"Restore a trashed inventory_item from the workspace Recycle Bin","tags":["inventory_item"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/inventory-items/{id}/reports":{"post":{"operationId":"inventory_item_report_create","summary":"Record a canonical Inventory report","description":"Record a canonical Inventory report","tags":["inventory_item_report"],"security":[{"ApiKeyAuth":["inventory:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"attachmentIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"mentionUserIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"reviewRequested":{"type":"boolean"},"reviewerUserId":{"type":"string","maxLength":240}},"required":[]}}}}}},"/risks":{"get":{"operationId":"risk_list","summary":"List canonical risk records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical risk records in the active Workspace or an accessible Project, with bounded pagination.","tags":["risk"],"security":[{"ApiKeyAuth":["risks:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"risk_create","summary":"Create a risk record","description":"Create a risk record","tags":["risk"],"security":[{"ApiKeyAuth":["risks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"description":{"type":"string","maxLength":4000},"level":{"type":"string","maxLength":240,"enum":["low","medium","high","critical"]},"mitigationPlan":{"type":"string","maxLength":4000},"status":{"type":"string","maxLength":240,"enum":["open","mitigating","resolved","accepted"]},"ownerId":{"type":"string","maxLength":240},"dueDate":{"type":"string","description":"ISO-8601 date or date-time"},"planningAnchorType":{"type":"string","maxLength":240,"enum":["project_phase","task","contract","finance_record","financial_document","financial_security","deliverable","calendar_event","supply_request","risk"]},"planningAnchorId":{"type":"string","maxLength":240}},"required":["title"]}}}}}},"/risks/search":{"get":{"operationId":"risk_search","summary":"Search visible risk records with bounded pagination; follow nextOffset when present","description":"Search visible risk records with bounded pagination; follow nextOffset when present","tags":["risk"],"security":[{"ApiKeyAuth":["risks:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/risks/{id}":{"get":{"operationId":"risk_get","summary":"Read one visible risk record","description":"Read one visible risk record","tags":["risk"],"security":[{"ApiKeyAuth":["risks:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/risks/{id}/reports":{"get":{"operationId":"risk_reports","summary":"Read operational reports of one currently visible risk, with bounded pagination.","description":"Read operational reports of one currently visible risk, with bounded pagination.","tags":["risk"],"security":[{"ApiKeyAuth":["risks:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"risk_report_create","summary":"Record an operational risk report","description":"Record an operational risk report","tags":["risk_report"],"security":[{"ApiKeyAuth":["risks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"attachmentIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"mentionUserIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"reviewRequested":{"type":"boolean"},"reviewerUserId":{"type":"string","maxLength":240}},"required":[]}}}}}},"/risks/{id}/archive":{"post":{"operationId":"risk_archive","summary":"Archive an accessible risk without deleting history or attachments","description":"Archive an accessible risk without deleting history or attachments","tags":["risk"],"security":[{"ApiKeyAuth":["risks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/risks/{id}/restore":{"post":{"operationId":"risk_restore","summary":"Restore an accessible risk without deleting history or attachments","description":"Restore an accessible risk without deleting history or attachments","tags":["risk"],"security":[{"ApiKeyAuth":["risks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/risks/{id}/soft-delete":{"post":{"operationId":"risk_soft_delete","summary":"Move an eligible uncommitted risk to the workspace Recycle Bin","description":"Move an eligible uncommitted risk to the workspace Recycle Bin","tags":["risk"],"security":[{"ApiKeyAuth":["risks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/risks/{id}/restore-deleted":{"post":{"operationId":"risk_restore_deleted","summary":"Restore a trashed risk from the workspace Recycle Bin","description":"Restore a trashed risk from the workspace Recycle Bin","tags":["risk"],"security":[{"ApiKeyAuth":["risks:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/deliverables":{"get":{"operationId":"deliverable_list","summary":"List canonical deliverable records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical deliverable records in the active Workspace or an accessible Project, with bounded pagination.","tags":["deliverable"],"security":[{"ApiKeyAuth":["deliverables:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"deliverable_create","summary":"Create a project deliverable","description":"Create a project deliverable","tags":["deliverable"],"security":[{"ApiKeyAuth":["deliverables:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"category":{"type":"string","maxLength":4000},"kind":{"type":"string","maxLength":240,"enum":["document","goods","product","service","work"]},"expectedQuantity":{"type":"number"},"unit":{"type":"string","maxLength":4000},"acceptanceCriteria":{"type":"string","maxLength":4000},"inventoryItemId":{"type":"string","maxLength":240},"ownerId":{"type":"string","maxLength":240},"ownerBusinessRoleId":{"type":"string","maxLength":240},"requiredBy":{"type":"string","description":"ISO-8601 date or date-time"},"clientContactId":{"type":"string","maxLength":240},"externalReviewerLabel":{"type":"string","maxLength":4000},"planningAnchorType":{"type":"string","maxLength":240,"enum":["project_phase","task","contract","finance_record","financial_document","financial_security","deliverable","calendar_event","supply_request","risk"]},"planningAnchorId":{"type":"string","maxLength":240}},"required":["title","projectId"]}}}}}},"/deliverables/search":{"get":{"operationId":"deliverable_search","summary":"Search visible deliverable records with bounded pagination; follow nextOffset when present","description":"Search visible deliverable records with bounded pagination; follow nextOffset when present","tags":["deliverable"],"security":[{"ApiKeyAuth":["deliverables:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/deliverables/{id}":{"get":{"operationId":"deliverable_get","summary":"Read one visible deliverable record","description":"Read one visible deliverable record","tags":["deliverable"],"security":[{"ApiKeyAuth":["deliverables:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/deliverables/{deliverableId}/submissions":{"post":{"operationId":"deliverable_submission_create","summary":"Submit a document deliverable for review. Proposal only: a human confirms in Kartable. Requires an approved QC review and at least one linke","description":"Submit a document deliverable for review. Proposal only: a human confirms in Kartable. Requires an approved QC review and at least one linked evidence file on the deliverable; the deliverable must be ready to submit. The submission starts in pending review.","tags":["deliverable"],"security":[{"ApiKeyAuth":["deliverables:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"deliverableId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedRevisionCounter":{"type":"number"},"idempotencyKey":{"type":"string","maxLength":4000}},"required":["expectedRevisionCounter","idempotencyKey"]}}}}}},"/deliverables/{deliverableId}/review":{"post":{"operationId":"deliverable_review","summary":"Review a pending document deliverable submission (approve or request changes). Proposal only: a human confirms in Kartable. Requires externa","description":"Review a pending document deliverable submission (approve or request changes). Proposal only: a human confirms in Kartable. Requires external evidence (a source item response) and a reviewer (contact or label).","tags":["deliverable"],"security":[{"ApiKeyAuth":["deliverables:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"deliverableId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","maxLength":240,"enum":["approved","changes_requested"]},"reviewNote":{"type":"string","maxLength":4000},"sourceItemResponseId":{"type":"string","maxLength":240},"reviewedByContactId":{"type":"string","maxLength":240},"reviewerLabel":{"type":"string","maxLength":4000}},"required":["decision","sourceItemResponseId"]}}}}}},"/deliverables/{deliverableId}/handovers":{"post":{"operationId":"deliverable_handover_create","summary":"Record a handover of a goods, product, service or work deliverable (never a document deliverable). Proposal only: a human confirms in Kartab","description":"Record a handover of a goods, product, service or work deliverable (never a document deliverable). Proposal only: a human confirms in Kartable. Creates an inventory issue movement; stock is checked atomically.","tags":["deliverable"],"security":[{"ApiKeyAuth":["deliverables:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"deliverableId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quantity":{"type":"number"},"description":{"type":"string","maxLength":4000},"recipientContactId":{"type":"string","maxLength":240},"evidenceFileAssetId":{"type":"string","maxLength":240},"handedOverAt":{"type":"string","description":"ISO-8601 date or date-time"},"idempotencyKey":{"type":"string","maxLength":4000}},"required":["quantity","description","idempotencyKey"]}}}}}},"/deliverables/{id}/soft-delete":{"post":{"operationId":"deliverable_soft_delete","summary":"Move an eligible uncommitted deliverable to the workspace Recycle Bin","description":"Move an eligible uncommitted deliverable to the workspace Recycle Bin","tags":["deliverable"],"security":[{"ApiKeyAuth":["deliverables:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/deliverables/{id}/restore-deleted":{"post":{"operationId":"deliverable_restore_deleted","summary":"Restore a trashed deliverable from the workspace Recycle Bin","description":"Restore a trashed deliverable from the workspace Recycle Bin","tags":["deliverable"],"security":[{"ApiKeyAuth":["deliverables:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/contacts":{"get":{"operationId":"contact_list","summary":"List visible contacts in the active Workspace with bounded pagination; contacts do not require a Project.","description":"List visible contacts in the active Workspace with bounded pagination; contacts do not require a Project.","tags":["contact"],"security":[{"ApiKeyAuth":["contacts:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]},"post":{"operationId":"contact_create","summary":"Create a contact","description":"Create a contact","tags":["contact"],"security":[{"ApiKeyAuth":["contacts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":4000},"type":{"type":"string","maxLength":240,"enum":["customer","supplier","subcontractor","consultant","partner","other"]},"phone":{"type":"string","maxLength":4000},"phones":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"email":{"type":"string","maxLength":4000},"emails":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"address":{"type":"string","maxLength":4000},"addresses":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"nationalId":{"type":"string","maxLength":4000},"bankAccount":{"type":"string","maxLength":4000},"companyRegistrationNumber":{"type":"string","maxLength":4000},"affiliations":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"notes":{"type":"string","maxLength":4000},"tags":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"projectIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"rating":{"type":"number"}},"required":["name"]}}}}}},"/contacts/search":{"get":{"operationId":"contact_search","summary":"Search visible contact records with bounded pagination; follow nextOffset when present","description":"Search visible contact records with bounded pagination; follow nextOffset when present","tags":["contact"],"security":[{"ApiKeyAuth":["contacts:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/contacts/{id}":{"get":{"operationId":"contact_get","summary":"Read one visible contact record","description":"Read one visible contact record","tags":["contact"],"security":[{"ApiKeyAuth":["contacts:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]},"patch":{"operationId":"contact_update","summary":"Update a contact","description":"Update a contact","tags":["contact"],"security":[{"ApiKeyAuth":["contacts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":4000},"type":{"type":"string","maxLength":240,"enum":["customer","supplier","subcontractor","consultant","partner","other"]},"phone":{"type":"string","maxLength":4000},"phones":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"email":{"type":"string","maxLength":4000},"emails":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"address":{"type":"string","maxLength":4000},"addresses":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"nationalId":{"type":"string","maxLength":4000},"bankAccount":{"type":"string","maxLength":4000},"companyRegistrationNumber":{"type":"string","maxLength":4000},"affiliations":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"notes":{"type":"string","maxLength":4000},"tags":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"projectIds":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30},"rating":{"type":"number"}},"required":[]}}}}}},"/contacts/{id}/archive":{"post":{"operationId":"contact_archive","summary":"Archive an accessible contact without deleting history or attachments","description":"Archive an accessible contact without deleting history or attachments","tags":["contact"],"security":[{"ApiKeyAuth":["contacts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/contacts/{id}/restore":{"post":{"operationId":"contact_restore","summary":"Restore an accessible contact without deleting history or attachments","description":"Restore an accessible contact without deleting history or attachments","tags":["contact"],"security":[{"ApiKeyAuth":["contacts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/contacts/{id}/soft-delete":{"post":{"operationId":"contact_soft_delete","summary":"Move an eligible uncommitted contact to the workspace Recycle Bin","description":"Move an eligible uncommitted contact to the workspace Recycle Bin","tags":["contact"],"security":[{"ApiKeyAuth":["contacts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/contacts/{id}/restore-deleted":{"post":{"operationId":"contact_restore_deleted","summary":"Restore a trashed contact from the workspace Recycle Bin","description":"Restore a trashed contact from the workspace Recycle Bin","tags":["contact"],"security":[{"ApiKeyAuth":["contacts:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/notes":{"get":{"operationId":"note_list","summary":"List canonical note records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical note records in the active Workspace or an accessible Project, with bounded pagination.","tags":["note"],"security":[{"ApiKeyAuth":["notes:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/notes/search":{"get":{"operationId":"note_search","summary":"Search visible note records with bounded pagination; follow nextOffset when present","description":"Search visible note records with bounded pagination; follow nextOffset when present","tags":["note"],"security":[{"ApiKeyAuth":["notes:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/notes/{id}":{"get":{"operationId":"note_get","summary":"Read one visible note record","description":"Read one visible note record","tags":["note"],"security":[{"ApiKeyAuth":["notes:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/notes/{id}/archive":{"post":{"operationId":"project_note_archive","summary":"Archive an accessible project_note without deleting history or attachments","description":"Archive an accessible project_note without deleting history or attachments","tags":["project_note"],"security":[{"ApiKeyAuth":["notes:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/notes/{id}/restore":{"post":{"operationId":"project_note_restore","summary":"Restore an accessible project_note without deleting history or attachments","description":"Restore an accessible project_note without deleting history or attachments","tags":["project_note"],"security":[{"ApiKeyAuth":["notes:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/notes/{id}/soft-delete":{"post":{"operationId":"project_note_soft_delete","summary":"Move an eligible uncommitted project_note to the workspace Recycle Bin","description":"Move an eligible uncommitted project_note to the workspace Recycle Bin","tags":["project_note"],"security":[{"ApiKeyAuth":["notes:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/notes/{id}/restore-deleted":{"post":{"operationId":"project_note_restore_deleted","summary":"Restore a trashed project_note from the workspace Recycle Bin","description":"Restore a trashed project_note from the workspace Recycle Bin","tags":["project_note"],"security":[{"ApiKeyAuth":["notes:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/wiki-pages":{"get":{"operationId":"wiki_page_list","summary":"List canonical wiki_page records in the active Workspace or an accessible Project, with bounded pagination.","description":"List canonical wiki_page records in the active Workspace or an accessible Project, with bounded pagination.","tags":["wiki_page"],"security":[{"ApiKeyAuth":["knowledge:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/wiki-pages/search":{"get":{"operationId":"wiki_page_search","summary":"Search visible wiki_page records with bounded pagination; follow nextOffset when present","description":"Search visible wiki_page records with bounded pagination; follow nextOffset when present","tags":["wiki_page"],"security":[{"ApiKeyAuth":["knowledge:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/wiki-pages/{id}":{"get":{"operationId":"wiki_page_get","summary":"Read one visible wiki_page record","description":"Read one visible wiki_page record","tags":["wiki_page"],"security":[{"ApiKeyAuth":["knowledge:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/wiki-pages/{id}/archive":{"post":{"operationId":"wiki_page_archive","summary":"Archive an accessible wiki_page without deleting history or attachments","description":"Archive an accessible wiki_page without deleting history or attachments","tags":["wiki_page"],"security":[{"ApiKeyAuth":["knowledge:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/wiki-pages/{id}/restore":{"post":{"operationId":"wiki_page_restore","summary":"Restore an accessible wiki_page without deleting history or attachments","description":"Restore an accessible wiki_page without deleting history or attachments","tags":["wiki_page"],"security":[{"ApiKeyAuth":["knowledge:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/wiki-pages/{id}/soft-delete":{"post":{"operationId":"wiki_page_soft_delete","summary":"Move an eligible uncommitted wiki_page to the workspace Recycle Bin","description":"Move an eligible uncommitted wiki_page to the workspace Recycle Bin","tags":["wiki_page"],"security":[{"ApiKeyAuth":["knowledge:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/wiki-pages/{id}/restore-deleted":{"post":{"operationId":"wiki_page_restore_deleted","summary":"Restore a trashed wiki_page from the workspace Recycle Bin","description":"Restore a trashed wiki_page from the workspace Recycle Bin","tags":["wiki_page"],"security":[{"ApiKeyAuth":["knowledge:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","maxLength":4000},"reason":{"type":"string","maxLength":4000}},"required":["expectedUpdatedAt"]}}}}}},"/knowledge/search":{"get":{"operationId":"knowledge_search","summary":"Find current authorized company Knowledge passages and citations.","description":"Find current authorized company Knowledge passages and citations.","tags":["knowledge"],"security":[{"ApiKeyAuth":["knowledge:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":5}}]}},"/knowledge-sources/{id}":{"get":{"operationId":"knowledge_get","summary":"Read one KnowledgeSource by id in the active Workspace. Backend document locations are never returned.","description":"Read one KnowledgeSource by id in the active Workspace. Backend document locations are never returned.","tags":["knowledge"],"security":[{"ApiKeyAuth":["knowledge:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}]}},"/knowledge-sources":{"get":{"operationId":"knowledge_list","summary":"List KnowledgeSources in the active Workspace with bounded pagination; follow nextOffset when present. No full-text search — use knowledge.s","description":"List KnowledgeSources in the active Workspace with bounded pagination; follow nextOffset when present. No full-text search — use knowledge.search for content search.","tags":["knowledge"],"security":[{"ApiKeyAuth":["knowledge:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["page","file"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","archived","deleting"]}},{"name":"indexStatus","in":"query","required":false,"schema":{"type":"string","enum":["not_indexed","pending","processing","ready","failed"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/workflows/cases":{"get":{"operationId":"workflow_cases","summary":"Read authorized workflow cases, optionally for a project.","description":"Read authorized workflow cases, optionally for a project.","tags":["workflow"],"security":[{"ApiKeyAuth":["workflows:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"caseId","in":"query","required":false,"schema":{"type":"string"}}]},"post":{"operationId":"workflow_case_start","summary":"Instantiate and run an active workflow process case for a business entity","description":"Instantiate and run an active workflow process case for a business entity","tags":["workflow"],"security":[{"ApiKeyAuth":["workflows:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"definitionKey":{"type":"string","maxLength":4000},"subjectEntityType":{"type":"string","maxLength":240,"enum":["supply_request","task","contract","finance_record","inventory_item","risk","deliverable"]},"subjectEntityId":{"type":"string","maxLength":240},"projectId":{"type":"string","maxLength":240}},"required":["definitionKey","subjectEntityType","subjectEntityId"]}}}}}},"/workflows/catalog":{"get":{"operationId":"workflow_catalog_get","summary":"Get the Flow Authoring Catalog: allowed process subjects, node types (user_task, domain_action, linked_record_wait, gateways), valid field o","description":"Get the Flow Authoring Catalog: allowed process subjects, node types (user_task, domain_action, linked_record_wait, gateways), valid field operators, and business roles.","tags":["workflow"],"security":[{"ApiKeyAuth":["workflows:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[]}},"/workflows/definitions":{"get":{"operationId":"workflow_definitions_list","summary":"List existing workflow definitions in the active workspace with version, status (published, draft, archived), and target subject.","description":"List existing workflow definitions in the active workspace with version, status (published, draft, archived), and target subject.","tags":["workflow"],"security":[{"ApiKeyAuth":["workflows:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["published","draft","archived","all"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/workflows/definitions/{key}":{"get":{"operationId":"workflow_definition_get","summary":"Inspect the exact graph structure (nodes, edges, decision gateways, action configurations) of a workflow definition.","description":"Inspect the exact graph structure (nodes, edges, decision gateways, action configurations) of a workflow definition.","tags":["workflow"],"security":[{"ApiKeyAuth":["workflows:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","description":"Unique workflow key"}},{"name":"version","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Version number (defaults to latest published or draft)"}}]}},"/workflows/simulate":{"post":{"operationId":"workflow_definition_simulate","summary":"Simulate workflow graph execution with token passes to verify absence of deadlocks, unreachable branches, or condition errors.","description":"Simulate workflow graph execution with token passes to verify absence of deadlocks, unreachable branches, or condition errors.","tags":["workflow"],"security":[{"ApiKeyAuth":["workflows:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"type":"object","description":"Complete workflow graph definition object"},"sample":{"type":"object","description":"Sample entity payload for condition evaluation"}},"required":["definition"]}}}}}},"/workflows/definitions/drafts":{"post":{"operationId":"workflow_definition_compose_draft","summary":"Compose or update a workflow definition draft with nodes, edges, gateways, and actor rules","description":"Compose or update a workflow definition draft with nodes, edges, gateways, and actor rules","tags":["workflow"],"security":[{"ApiKeyAuth":["workflows:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":4000},"subjectEntityType":{"type":"string","maxLength":240,"enum":["supply_request","task","contract","finance_record","inventory_item","risk","deliverable"]},"description":{"type":"string","maxLength":4000},"key":{"type":"string","maxLength":4000},"startMode":{"type":"string","maxLength":240,"enum":["automatic","manual"]},"nodes":{"type":"object","additionalProperties":true,"description":"Structured parameters validated by the canonical Domain executor"},"edges":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30}},"required":["name","subjectEntityType"]}}}}}},"/workflows/definitions/{id}/archive":{"post":{"operationId":"workflow_definition_archive","summary":"Archive a workflow definition","description":"Archive a workflow definition","tags":["workflow"],"security":[{"ApiKeyAuth":["workflows:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/workflows/project-bindings":{"post":{"operationId":"workflow_project_binding_save","summary":"Bind a workflow definition to a project planning phase","description":"Bind a workflow definition to a project planning phase","tags":["workflow"],"security":[{"ApiKeyAuth":["workflows:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","maxLength":240},"phaseId":{"type":"string","maxLength":240},"definitionKey":{"type":"string","maxLength":4000},"activationMode":{"type":"string","maxLength":240,"enum":["on_phase_start","manual"]}},"required":["projectId","phaseId","definitionKey"]}}}}}},"/analytics/overview":{"get":{"operationId":"analytics_overview","summary":"Read canonical permission-scoped aggregate Analytics counts and trends. Not a raw data export.","description":"Read canonical permission-scoped aggregate Analytics counts and trends. Not a raw data export.","tags":["analytics"],"security":[{"ApiKeyAuth":["analytics:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"bucket","in":"query","required":false,"schema":{"type":"string","enum":["week","month"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}}]}},"/notifications":{"get":{"operationId":"notifications_mine","summary":"Read recipient notifications addressed to this user; distinct from Kartable responsibilities and without exposing unavailable targets.","description":"Read recipient notifications addressed to this user; distinct from Kartable responsibilities and without exposing unavailable targets.","tags":["notifications"],"security":[{"ApiKeyAuth":["notifications:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}}]}},"/notifications/{id}":{"get":{"operationId":"notification_get","summary":"Read one of the calling user's own notifications by id. A notification of another user, or a dismissed one, is not found.","description":"Read one of the calling user's own notifications by id. A notification of another user, or a dismissed one, is not found.","tags":["notification"],"security":[{"ApiKeyAuth":["notifications:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}]}},"/reports/summary":{"get":{"operationId":"reports_workspace_summary","summary":"Analyze report submissions across projects: recent submissions, pending reviews, and projects experiencing reporting silence.","description":"Analyze report submissions across projects: recent submissions, pending reviews, and projects experiencing reporting silence.","tags":["reports"],"security":[{"ApiKeyAuth":["reports:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":90,"description":"Evaluation window in days (default 7)"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string","description":"Optional project filter"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["submitted","approved","rejected"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}}]}},"/reports/commitments":{"get":{"operationId":"reports_commitments_list","summary":"Read time-bound commitments and promises extracted from report text by the Kalaaf Operator engine.","description":"Read time-bound commitments and promises extracted from report text by the Kalaaf Operator engine.","tags":["reports"],"security":[{"ApiKeyAuth":["reports:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string","description":"Optional project filter"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"timezone","in":"query","required":false,"schema":{"type":"string","description":"Optional IANA timezone override (e.g. Asia/Tehran, UTC)"}}]}},"/reports":{"post":{"operationId":"report_create","summary":"Create a project or entity report","description":"Create a project or entity report","tags":["report"],"security":[{"ApiKeyAuth":["reports:write"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":4000},"body":{"type":"string","maxLength":4000},"projectId":{"type":"string","maxLength":240},"kind":{"type":"string","maxLength":240,"enum":["task","inventory","procurement","project","general"]},"subjectType":{"type":"string","maxLength":240,"enum":["project","task","inventory_item","procurement_item","contact","contract","finance_record","risk"]},"subjectId":{"type":"string","maxLength":240},"status":{"type":"string","maxLength":240,"enum":["draft","submitted","approved","rejected"]},"attachments":{"type":"array","items":{"type":"string","maxLength":240},"maxItems":30}},"required":["title","body","projectId"]}}}}}},"/governance/approvals/pending":{"get":{"operationId":"governance_approvals_pending","summary":"List contracts and finance records currently waiting for managerial approval, including approval trail and pending amount.","description":"List contracts and finance records currently waiting for managerial approval, including approval trail and pending amount.","tags":["governance"],"security":[{"ApiKeyAuth":["finance:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["contract","finance","all"]}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string","description":"Optional project filter"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":30}}]}},"/files":{"get":{"operationId":"file_asset_list","summary":"List metadata of authorized FileAssets in the active Workspace, newest first, with bounded pagination; follow nextOffset when present. Retur","description":"List metadata of authorized FileAssets in the active Workspace, newest first, with bounded pagination; follow nextOffset when present. Returns file metadata only — never file content, storage keys, or a download URL.","tags":["file_asset"],"security":[{"ApiKeyAuth":["files:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"projectId","in":"query","required":false,"schema":{"type":"string","maxLength":128}},{"name":"mimeType","in":"query","required":false,"schema":{"type":"string","maxLength":128}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/files/search":{"get":{"operationId":"file_asset_search","summary":"Search authorized FileAssets by file NAME only: case-insensitive substring (contains) match on fileName or originalName. File content is nev","description":"Search authorized FileAssets by file NAME only: case-insensitive substring (contains) match on fileName or originalName. File content is never searched — use file.text_excerpt / file.original_excerpt to read content, and knowledge.search for content search. Returns file metadata only — never file content, storage keys, or a download URL.","tags":["file_asset"],"security":[{"ApiKeyAuth":["files:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","maxLength":500}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string","maxLength":128}},{"name":"mimeType","in":"query","required":false,"schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/files/{id}":{"get":{"operationId":"file_asset_get","summary":"Read metadata of one authorized FileAsset by id. Returns file metadata only — never file content, storage keys, or a download URL. Use file.","description":"Read metadata of one authorized FileAsset by id. Returns file metadata only — never file content, storage keys, or a download URL. Use file.text_excerpt / file.original_excerpt to read file content.","tags":["file_asset"],"security":[{"ApiKeyAuth":["files:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":128}}]}},"/entities/{entityType}/{entityId}/files":{"get":{"operationId":"files_linked","summary":"List currently accessible evidence FILE METADATA linked to a canonical entity. Does NOT open or read file content.","description":"List currently accessible evidence FILE METADATA linked to a canonical entity. Does NOT open or read file content.","tags":["files"],"security":[{"ApiKeyAuth":["files:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"entityType","in":"path","required":true,"schema":{"type":"string","enum":["project","deliverable","deliverable_submission","supply_request","contract","financial_security","financial_document","finance_record","inventory_item","calendar_event","wiki_page","commercial_opportunity","commercial_proposal","commercial_proposal_revision"]}},{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}}]}},"/files/{id}/excerpt":{"get":{"operationId":"file_text_excerpt","summary":"Read a bounded text excerpt of an authorized TXT, Markdown, or CSV FileAsset. PDF/DOCX are not directly supported.","description":"Read a bounded text excerpt of an authorized TXT, Markdown, or CSV FileAsset. PDF/DOCX are not directly supported.","tags":["file"],"security":[{"ApiKeyAuth":["files:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/files/{id}/original-excerpt":{"get":{"operationId":"file_original_excerpt","summary":"Read ORIGINAL, clean-scanned, currently authorized file text. PDF: pageNumber (1..500), section empty; DOCX: no pageNumber, section p:N (par","description":"Read ORIGINAL, clean-scanned, currently authorized file text. PDF: pageNumber (1..500), section empty; DOCX: no pageNumber, section p:N (paragraph); TXT/Markdown/CSV: section text:whole; PNG/JPEG: no pageNumber, section image:whole (OCR text only, not visual interpretation). Scanned PDF and image OCR require configured OCR. Uses real S3 bytes and Knowledge extraction. Returns source/revision/excerpt hashes and untrusted text; does NOT create a report or mutate Domain data.","tags":["file"],"security":[{"ApiKeyAuth":["files:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":128}},{"name":"pageNumber","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":500}},{"name":"section","in":"query","required":false,"schema":{"type":"string","maxLength":120}}]}},"/workspaces":{"get":{"operationId":"context_workspaces","summary":"Auth-context read: workspaces.","description":"Auth-context read: workspaces.","tags":["context"],"security":[{"ApiKeyAuth":["workspaces:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[]}},"/members":{"get":{"operationId":"context_members","summary":"Auth-context read: members.","description":"Auth-context read: members.","tags":["context"],"security":[{"ApiKeyAuth":["users:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[{"name":"roleKey","in":"query","required":false,"schema":{"type":"string"}},{"name":"department","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":500}}]}},"/subscription":{"get":{"operationId":"context_subscription","summary":"Auth-context read: subscription.","description":"Auth-context read: subscription.","tags":["context"],"security":[{"ApiKeyAuth":["workspaces:read"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Validation error"},"401":{"description":"Missing, invalid, expired, or revoked API key"},"403":{"description":"Insufficient scope or permission"},"404":{"description":"Not found"},"429":{"description":"Rate limit exceeded"}},"parameters":[]}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"klaf_live_...","description":"Per-workspace API key (Authorization: Bearer klaf_live_...)."}}}}