openapi: 3.1.0 info: title: Sofia Space API version: "1.0.0" summary: Read and write tasks, projects, docs pages, comments and files in a Sofia Space workspace. description: | The REST API of Sofia Space, callable with an API token (`Authorization: Bearer sophie_pat_...`). There are two kinds of token owner: a person (a personal API token, from Settings → My account → Security → API tokens) or an integration account (a workspace member that is a system, with tokens created by an Org Admin in Settings → Integrations). Every call acts as the token's owner, in the one workspace the token belongs to, with the owner's permissions. Each operation lists the token scopes that allow it in `x-sofia-scopes` (any one is enough). Personal tokens with the AI (full-access) scopes (`tasks:read`, `tasks:write`, `docs:read`, `docs:write`, `projects:admin`, ...) count as an AI app called "API token": the workspace's AI rules apply to them (see the documentation). Integration-account tokens use the same scopes, but the AI rules don't apply to them. Tokens with only the script scopes (`task:create`, `doc:create`) reach only the six operations marked with them. Deleting (tasks, task comments, worklogs, attachments, pages, page comments) and attachment download links are for apps a person signed in to: an API token gets 403 {"error":"SIGNED_IN_APP_ONLY"} on them, whatever its scopes. Those operations are not listed here. Request limits are the same on every plan: https://docs.sofiaspace.uz/api/rate-limits/ Human-readable documentation: https://docs.sofiaspace.uz/api/overview/ contact: name: Sofia Space support url: https://docs.sofiaspace.uz/ externalDocs: description: Sofia Space API reference url: https://docs.sofiaspace.uz/api/overview/ servers: - url: https://{workspace}.sofiaspace.uz description: Your workspace's own address variables: workspace: default: acme description: The first part of your workspace address, for example `acme` for acme.sofiaspace.uz. security: - apiToken: [] tags: - name: Me and workspace - name: Projects - name: Tasks - name: Comments, links and blockers - name: Files and attachments - name: Time tracking - name: Spaces and pages - name: Search - name: Integrations paths: /api/v1/agent/scopes: get: tags: [Me and workspace] operationId: getTokenScopes summary: The scopes this token can use now, and its owner's user ID description: | Any full-access scope; a token with only script scopes gets 403. `scopes` is already capped by the owner's current role. `roleScopes` is left out for an integration-account token. x-sofia-scopes: [tasks:read, tasks:write, docs:read, docs:write, projects:admin, notifications:read, notifications:write, calendar:read, calendar:write, chat:read, chat:write, dashboards:read, dashboards:write, home:write] responses: "200": description: Effective scopes content: application/json: schema: { $ref: "#/components/schemas/AgentScopes" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "429": { $ref: "#/components/responses/TooManyRequests" } /api/v1/orgs/by-subdomain/{subdomain}: get: tags: [Me and workspace] operationId: getMyWorkspace summary: Your workspace (organization ID), the token owner's role and user ID description: | A subdomain that isn't the token's own workspace, or doesn't exist, gets 403 ("This token belongs to a different organization"). x-sofia-scopes: [tasks:read, docs:read, dashboards:read, home:write] parameters: - name: subdomain in: path required: true schema: { type: string, example: acme } responses: "200": description: The token owner's membership content: application/json: schema: { $ref: "#/components/schemas/Membership" } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "429": { $ref: "#/components/responses/TooManyRequests" } /api/v1/orgs/{orgId}/members/search: get: tags: [Me and workspace] operationId: searchMembers summary: Find active members by first name, last name or e-mail (at most 20) description: | Active members only, sorted by first name, last name and e-mail. Integration accounts are left out unless `includeIntegrations=true`. x-sofia-scopes: [tasks:read, docs:read, dashboards:write] parameters: - $ref: "#/components/parameters/OrgId" - name: q in: query description: One piece of text, matched case-insensitively against first name, last name or e-mail. Empty returns the first members. schema: { type: string } - name: includeIntegrations in: query description: Include integration accounts in the results. schema: { type: boolean, default: false } responses: "200": description: Matching members content: application/json: schema: type: object properties: members: { type: array, items: { $ref: "#/components/schemas/OrgMember" } } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "429": { $ref: "#/components/responses/TooManyRequests" } /api/v1/users/batch-get: post: tags: [Me and workspace] operationId: batchGetUsers summary: Names and e-mails for a list of user IDs description: | Only people in the token's workspace come back: the token's owner and active members of that workspace (integration accounts included). People in other workspaces, people who left, people who haven't activated yet and deleted accounts are left out, like unknown IDs. Up to 200 different IDs per call; more are ignored. Unknown or malformed IDs are left out without an error, and the order isn't the order sent. x-sofia-scopes: [tasks:read, docs:read, dashboards:read] requestBody: required: true content: application/json: schema: type: object required: [userIds] properties: userIds: { type: array, items: { type: string, format: uuid } } responses: "200": description: Users content: application/json: schema: type: object properties: users: { type: array, items: { $ref: "#/components/schemas/UserSummary" } } "401": { $ref: "#/components/responses/Unauthorized" } "403": { $ref: "#/components/responses/Forbidden" } "429": { $ref: "#/components/responses/TooManyRequests" } /api/v1/orgs/{orgId}/projects: get: tags: [Projects] operationId: listProjects summary: Projects you can open (yours, and open projects) x-sofia-scopes: [tasks:read, dashboards:read] parameters: [{ $ref: "#/components/parameters/OrgId" }] responses: "200": description: Projects content: application/json: schema: type: object properties: projects: { type: array, items: { $ref: "#/components/schemas/Project" } } post: tags: [Projects] operationId: createProject summary: Create a project description: Needs Org Admin, or a workspace role with the Create projects permission (otherwise 403 PROJECT_CREATE_NOT_ALLOWED). The key is stored as sent, up to 10 characters. x-sofia-scopes: [projects:admin] parameters: - $ref: "#/components/parameters/OrgId" - $ref: "#/components/parameters/IdempotencyKey" requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/CreateProject" } responses: "201": description: Created content: application/json: schema: { $ref: "#/components/schemas/Project" } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "409": { $ref: "#/components/responses/Conflict" } "429": { $ref: "#/components/responses/TooManyRequests" } /api/v1/projects/{projectId}: get: tags: [Projects] operationId: getProject summary: Get a project x-sofia-scopes: [tasks:read, dashboards:read] parameters: [{ $ref: "#/components/parameters/ProjectId" }] responses: "200": description: The project content: application/json: schema: { $ref: "#/components/schemas/Project" } "404": { $ref: "#/components/responses/NotFound" } /api/v1/projects/{projectId}/workflow-statuses: get: tags: [Projects] operationId: listStatuses summary: A project's workflow statuses, in board order x-sofia-scopes: [tasks:read] parameters: [{ $ref: "#/components/parameters/ProjectId" }] responses: "200": description: Statuses content: application/json: schema: type: object properties: statuses: { type: array, items: { $ref: "#/components/schemas/WorkflowStatus" } } post: tags: [Projects] operationId: createStatus summary: Add a status to a project x-sofia-scopes: [projects:admin] parameters: [{ $ref: "#/components/parameters/ProjectId" }] requestBody: required: true content: application/json: schema: type: object required: [name] properties: name: { type: string } orderIndex: { type: integer, minimum: 0 } statusGroup: { $ref: "#/components/schemas/StatusGroup" } isCompletionStatus: { type: boolean, description: "Older way to say statusGroup DONE." } color: { type: [string, "null"], enum: [red, amber, green, teal, blue, violet, plum, moss, slate, null], example: amber } responses: "201": description: Created content: application/json: schema: { $ref: "#/components/schemas/WorkflowStatus" } "400": description: A blank name, a name already used in the project (code STATUS_NAME_TAKEN), or an unknown colour or group content: application/json: schema: { $ref: "#/components/schemas/Error" } "403": { $ref: "#/components/responses/Forbidden" } /api/v1/workflow-statuses/{statusId}: put: tags: [Projects] operationId: updateStatus summary: Change a status (send only what changes) x-sofia-scopes: [projects:admin] parameters: - name: statusId in: path required: true schema: { type: string, format: uuid } requestBody: required: true content: application/json: schema: type: object properties: name: { type: string } orderIndex: { type: integer } statusGroup: { $ref: "#/components/schemas/StatusGroup" } isCompletionStatus: { type: boolean } color: { type: string, description: "red, amber, green, teal, blue, violet, plum, moss or slate; empty string clears." } responses: "200": description: The status content: application/json: schema: { $ref: "#/components/schemas/WorkflowStatus" } "400": { $ref: "#/components/responses/BadRequest" } /api/v1/projects/{projectId}/workflow-statuses/reorder: put: tags: [Projects] operationId: reorderStatuses summary: Put every status of a project in a new order x-sofia-scopes: [projects:admin] parameters: [{ $ref: "#/components/parameters/ProjectId" }] requestBody: required: true content: application/json: schema: type: object required: [statusIds] properties: statusIds: { type: array, items: { type: string, format: uuid } } responses: "200": description: Statuses in the new order content: application/json: schema: type: object properties: statuses: { type: array, items: { $ref: "#/components/schemas/WorkflowStatus" } } /api/v1/projects/{projectId}/workflow-transitions: get: tags: [Projects] operationId: listTransitions summary: Allowed moves between statuses x-sofia-scopes: [tasks:read] parameters: [{ $ref: "#/components/parameters/ProjectId" }] responses: "200": description: Transitions content: application/json: schema: type: object properties: transitions: { type: array, items: { $ref: "#/components/schemas/WorkflowTransition" } } post: tags: [Projects] operationId: createTransition summary: Allow a move from one status to another x-sofia-scopes: [projects:admin] parameters: [{ $ref: "#/components/parameters/ProjectId" }] requestBody: required: true content: application/json: schema: type: object required: [fromStatusId, toStatusId] properties: fromStatusId: { type: string, format: uuid } toStatusId: { type: string, format: uuid } responses: "201": description: Created content: application/json: schema: { $ref: "#/components/schemas/WorkflowTransition" } "400": description: The transition already exists (TRANSITION_EXISTS), or goes from a status to itself (TRANSITION_SAME_STATUS) content: application/json: schema: { $ref: "#/components/schemas/Error" } /api/v1/orgs/{orgId}/task-types: get: tags: [Projects] operationId: listTaskTypes summary: The workspace's task types x-sofia-scopes: [tasks:read, task:create] parameters: [{ $ref: "#/components/parameters/OrgId" }] responses: "200": description: Task types content: application/json: schema: type: object properties: taskTypes: { type: array, items: { $ref: "#/components/schemas/TaskType" } } /api/v1/projects/{projectId}/labels: get: tags: [Projects] operationId: listLabels summary: A project's labels x-sofia-scopes: [tasks:read, dashboards:read] parameters: [{ $ref: "#/components/parameters/ProjectId" }] responses: "200": description: Labels content: application/json: schema: type: object properties: labels: { type: array, items: { $ref: "#/components/schemas/Label" } } post: tags: [Projects] operationId: createLabel summary: Create a label in a project x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/ProjectId" }] requestBody: required: true content: application/json: schema: type: object required: [name] properties: name: { type: string } color: { type: [string, "null"] } responses: "201": description: Created content: application/json: schema: { $ref: "#/components/schemas/Label" } "409": { $ref: "#/components/responses/Conflict" } /api/v1/projects/{projectId}/sprints: get: tags: [Projects] operationId: listSprints summary: A project's sprints x-sofia-scopes: [tasks:read, dashboards:read] parameters: - $ref: "#/components/parameters/ProjectId" - name: boardId in: query schema: { type: string, format: uuid } responses: "200": description: Sprints content: application/json: schema: type: object properties: sprints: { type: array, items: { $ref: "#/components/schemas/Sprint" } } post: tags: [Projects] operationId: createSprint summary: Create a future sprint description: Without boardId the sprint goes on the project's default board. The end date can't be before the start date. 409 when Sprints is switched off for the project. x-sofia-scopes: [projects:admin] parameters: [{ $ref: "#/components/parameters/ProjectId" }] requestBody: required: true content: application/json: schema: type: object required: [name] properties: name: { type: string } goal: { type: string } startDate: { type: string, format: date } endDate: { type: string, format: date } boardId: { type: string, format: uuid } responses: "201": description: Created content: application/json: schema: { $ref: "#/components/schemas/Sprint" } "400": { $ref: "#/components/responses/BadRequest" } "409": { $ref: "#/components/responses/Conflict" } /api/v1/sprints/{sprintId}/start: post: tags: [Projects] operationId: startSprint summary: Start a future sprint description: Needs the right to manage the project. Refused with 409 when the sprint isn't future, has no tasks, another sprint on its board is active, or Sprints is switched off. x-sofia-scopes: [projects:admin] parameters: [{ $ref: "#/components/parameters/SprintId" }] responses: "200": description: The sprint content: application/json: schema: { $ref: "#/components/schemas/Sprint" } "403": { $ref: "#/components/responses/Forbidden" } "409": { $ref: "#/components/responses/Conflict" } /api/v1/sprints/{sprintId}/complete: post: tags: [Projects] operationId: completeSprint summary: Complete a sprint; open tasks move to targetSprintId or the backlog description: Needs the right to manage the project. Only an active sprint can be completed; targetSprintId must be a future sprint on the same board. x-sofia-scopes: [projects:admin] parameters: [{ $ref: "#/components/parameters/SprintId" }] requestBody: required: false content: application/json: schema: type: object properties: targetSprintId: { type: [string, "null"], format: uuid } responses: "200": description: The sprint content: application/json: schema: { $ref: "#/components/schemas/Sprint" } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "409": { $ref: "#/components/responses/Conflict" } /api/v1/projects/{projectId}/custom-fields: get: tags: [Projects] operationId: listProjectFields summary: The custom fields enabled on a project x-sofia-scopes: [tasks:read] parameters: [{ $ref: "#/components/parameters/ProjectId" }] responses: "200": description: Fields content: application/json: schema: type: object properties: fields: { type: array, items: { $ref: "#/components/schemas/ProjectField" } } /api/v1/projects/{projectId}/activity: get: tags: [Projects] operationId: listProjectActivity summary: A project's recent activity, newest first description: | Tasks created, moved and finished, comments, and assignee and due-date changes. Five or more events of one kind by one person within a minute come as one `bulk` event. 429 when the reporting engine is busy; retry. x-sofia-scopes: [tasks:read] parameters: - $ref: "#/components/parameters/ProjectId" - name: since in: query description: First day to include (yyyy-MM-dd). Default the last 7 days, today included. schema: { type: string, format: date } - name: tz in: query description: Time zone the days are counted in; default UTC. schema: { type: string, example: Asia/Tashkent } - name: limit in: query description: Events per page; default 25, at most 100. schema: { type: integer, minimum: 0 } - name: cursor in: query description: The `next` value of the previous page. schema: { type: string } responses: "200": description: A page of events content: application/json: schema: { $ref: "#/components/schemas/ProjectActivity" } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "429": { $ref: "#/components/responses/TooManyRequests" } /api/v1/projects/{projectId}/tasks: get: tags: [Tasks] operationId: listTasks summary: Tasks in a project, a page at a time x-sofia-scopes: [tasks:read] parameters: - $ref: "#/components/parameters/ProjectId" - { name: assigneeId, in: query, schema: { type: string, format: uuid } } - { name: reporterId, in: query, schema: { type: string, format: uuid } } - { name: statusId, in: query, schema: { type: string, format: uuid } } - { name: taskTypeId, in: query, schema: { type: string, format: uuid } } - { name: parentTaskId, in: query, schema: { type: string, format: uuid } } - { name: sprintId, in: query, schema: { type: string, format: uuid } } - { name: epicId, in: query, schema: { type: string, format: uuid } } - name: labelIds in: query style: form explode: true schema: { type: array, items: { type: string, format: uuid } } - name: archived in: query schema: { type: string, enum: [exclude, only, include], default: exclude } - { name: createdFrom, in: query, schema: { type: string, format: date } } - { name: createdTo, in: query, schema: { type: string, format: date } } - { name: updatedFrom, in: query, schema: { type: string, format: date } } - { name: updatedTo, in: query, schema: { type: string, format: date } } - { name: doneFrom, in: query, schema: { type: string, format: date } } - { name: doneTo, in: query, schema: { type: string, format: date } } - name: tz in: query description: IANA time zone the date ranges are counted in; default UTC. schema: { type: string, example: Asia/Tashkent } - name: sort in: query schema: { type: string, enum: [number, rank, field], default: number } - { name: sortFieldId, in: query, schema: { type: string, format: uuid } } - name: sortDirection in: query schema: { type: string, enum: [asc, desc] } - name: fieldFilters in: query description: 'JSON array of {"fieldId","op","values"}; op is IS_SET, IS_EMPTY, EQUALS, CONTAINS, EQ, NE, LT, LTE, GT, GTE, BETWEEN, ON, BEFORE and more.' schema: { type: string } - name: description in: query description: false leaves descriptions out of the list. schema: { type: boolean, default: true } - $ref: "#/components/parameters/Limit" - $ref: "#/components/parameters/Cursor" responses: "200": description: A page of tasks content: application/json: schema: type: object properties: items: { type: array, items: { $ref: "#/components/schemas/Task" } } nextCursor: { type: [string, "null"] } hasMore: { type: boolean } post: tags: [Tasks] operationId: createTask summary: Create a task description: | storyPoints is 0 to 1000 (above: 400 STORY_POINTS_TOO_HIGH); a blank title is 400 NAME_REQUIRED; a parent that is itself a subtask is 400 SUBTASK_DEPTH. fieldValues are set in the same step; a bad value refuses the whole create. With an externalRef that a task you can open already holds, nothing is created: the answer is 200 with the header X-Sofia-Existing: true and that task. If a task you can't open holds it, 409 EXTERNAL_REF_TAKEN. At most 120 creates a minute per token owner, shared with createTaskByProjectKey. x-sofia-scopes: [tasks:write, task:create] parameters: - $ref: "#/components/parameters/ProjectId" - $ref: "#/components/parameters/IdempotencyKey" requestBody: required: true content: application/json: schema: allOf: - $ref: "#/components/schemas/CreateTask" - type: object properties: storyPoints: { type: integer, minimum: 0, maximum: 1000 } fieldValues: { type: array, items: { $ref: "#/components/schemas/FieldValue" } } externalRef: type: object description: The record in another system this task is for. required: [system, id] properties: system: { type: string, pattern: "^[a-z0-9][a-z0-9_-]{0,39}$", example: erp } id: { type: string, minLength: 1, maxLength: 200, example: ORD-2026-0815 } url: { type: string, format: uri, maxLength: 2000 } label: { type: string, maxLength: 200 } responses: "201": description: Created content: application/json: schema: { $ref: "#/components/schemas/Task" } "200": description: A task you can open already holds the externalRef; that task, nothing created headers: X-Sofia-Existing: schema: { type: string, enum: ["true"] } content: application/json: schema: { $ref: "#/components/schemas/Task" } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "409": { $ref: "#/components/responses/Conflict" } "429": { $ref: "#/components/responses/TooManyRequests" } /api/v1/tasks/{taskId}: get: tags: [Tasks] operationId: getTask summary: Get a task x-sofia-scopes: [tasks:read] parameters: [{ $ref: "#/components/parameters/TaskId" }] responses: "200": description: The task, with its external references content: application/json: schema: allOf: - $ref: "#/components/schemas/Task" - type: object properties: externalRefs: type: array description: Records in other systems this task stands for. Filled on a single task; empty in lists. items: type: object properties: system: { type: string, example: erp } id: { type: string, example: ORD-2026-0815 } url: { type: [string, "null"] } label: { type: [string, "null"] } createdBy: { type: [string, "null"], format: uuid } createdAt: { type: [string, "null"], format: date-time } "404": { $ref: "#/components/responses/NotFound" } put: tags: [Tasks] operationId: updateTask summary: Update a task's fields (send only what changes) description: storyPoints above 1000 is refused with 400; a negative value clears it. x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: true content: application/json: schema: { $ref: "#/components/schemas/UpdateTask" } responses: "200": description: The task content: application/json: schema: { $ref: "#/components/schemas/Task" } "400": { $ref: "#/components/responses/BadRequest" } /api/v1/projects/by-key/{projectKey}/tasks/{taskNumber}/summary: get: tags: [Tasks] operationId: getTaskByKey summary: Find a task by its key, for example SALES-42 x-sofia-scopes: [tasks:read] parameters: - name: projectKey in: path required: true schema: { type: string, example: SALES } - name: taskNumber in: path required: true schema: { type: integer, example: 42 } responses: "200": description: The task's summary content: application/json: schema: { $ref: "#/components/schemas/TaskSummary" } "404": { $ref: "#/components/responses/NotFound" } /api/v1/tasks/{taskId}/status: post: tags: [Tasks] operationId: changeTaskStatus summary: Move a task to another status, following the workflow x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: true content: application/json: schema: type: object required: [newStatusId] properties: newStatusId: { type: string, format: uuid } responses: "200": description: The task content: application/json: schema: { $ref: "#/components/schemas/Task" } "409": description: The workflow refuses the move content: application/json: schema: type: object properties: error: { type: string, enum: [INVALID_TRANSITION, INCOMPLETE_SUBTASKS, BLOCKED_BY_INCOMPLETE_TASK] } message: { type: string } /api/v1/tasks/{taskId}/archived: put: tags: [Tasks] operationId: setTaskArchived summary: Archive (true) or restore (false) a task x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: true content: application/json: schema: type: object required: [archived] properties: archived: { type: boolean } responses: "200": description: The task content: application/json: schema: { $ref: "#/components/schemas/Task" } /api/v1/tasks/{taskId}/parent: put: tags: [Tasks] operationId: setTaskParent summary: Make a task a subtask (null parentTaskId un-nests it) x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: false content: application/json: schema: type: object properties: parentTaskId: { type: [string, "null"], format: uuid } responses: "200": description: The task content: application/json: schema: { $ref: "#/components/schemas/Task" } /api/v1/tasks/{taskId}/epic: put: tags: [Tasks] operationId: setTaskEpic summary: Put a task in an epic (null removes it) x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: false content: application/json: schema: type: object properties: epicId: { type: [string, "null"], format: uuid } responses: "200": description: The task content: application/json: schema: { $ref: "#/components/schemas/Task" } /api/v1/tasks/{taskId}/sprint: put: tags: [Tasks] operationId: moveTaskToSprint summary: Move a task to a sprint (null moves it to the backlog) description: Its subtasks move with it; a subtask can't be moved on its own (400 TASK_HIERARCHY_INVALID). A completed sprint is refused with 409. x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: false content: application/json: schema: type: object properties: sprintId: { type: [string, "null"], format: uuid } responses: "200": description: The task content: application/json: schema: { $ref: "#/components/schemas/Task" } /api/v1/tasks/{taskId}/rank: put: tags: [Tasks] operationId: rankTask summary: Reorder a task in the project's backlog, between two neighbours description: | previousTaskId is the task directly above, nextTaskId the task directly below. Send only nextTaskId to put it first, only previousTaskId to put it last; no body (or neither) moves it to the bottom. Neighbours must be in the same project, and previousTaskId must rank above nextTaskId (otherwise 400 INVALID_ARGUMENT). Needs access to the project. x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: false content: application/json: schema: type: object properties: previousTaskId: { type: [string, "null"], format: uuid } nextTaskId: { type: [string, "null"], format: uuid } responses: "200": description: The task, with its new rank content: application/json: schema: { $ref: "#/components/schemas/Task" } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } /api/v1/tasks/{taskId}/labels/{labelId}: parameters: - $ref: "#/components/parameters/TaskId" - name: labelId in: path required: true schema: { type: string, format: uuid } post: tags: [Tasks] operationId: addTaskLabel summary: Put a label on a task x-sofia-scopes: [tasks:write] responses: "204": { description: "Added" } delete: tags: [Tasks] operationId: removeTaskLabel summary: Take a label off a task x-sofia-scopes: [tasks:write] responses: "204": { description: "Removed" } /api/v1/tasks/{taskId}/field-values: put: tags: [Tasks] operationId: setTaskFieldValues summary: Set or clear custom-field values (a value with no member set clears that field) x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: true content: application/json: schema: type: object required: [values] properties: values: { type: array, items: { $ref: "#/components/schemas/FieldValue" } } responses: "200": description: The task with its values content: application/json: schema: { $ref: "#/components/schemas/Task" } /api/v1/tasks/{taskId}/comments: get: tags: [Comments, links and blockers] operationId: listTaskComments summary: A task's comments (top-level comments with their replies), a page at a time x-sofia-scopes: [tasks:read] parameters: - $ref: "#/components/parameters/TaskId" - $ref: "#/components/parameters/Limit" - $ref: "#/components/parameters/Cursor" responses: "200": description: A page of comments content: application/json: schema: type: object properties: comments: { type: array, items: { $ref: "#/components/schemas/TaskComment" } } nextCursor: { type: [string, "null"] } hasMore: { type: boolean } post: tags: [Comments, links and blockers] operationId: createTaskComment summary: Comment on a task, or reply to a comment x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: true content: application/json: schema: type: object required: [content] properties: content: { $ref: "#/components/schemas/RichText" } parentCommentId: { type: [string, "null"], format: uuid } responses: "201": description: Created content: application/json: schema: { $ref: "#/components/schemas/TaskComment" } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "429": { $ref: "#/components/responses/TooManyRequests" } /api/v1/task-comments/{commentId}: put: tags: [Comments, links and blockers] operationId: editTaskComment summary: Edit your own task comment x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/CommentId" }] requestBody: required: true content: application/json: schema: type: object required: [content] properties: content: { $ref: "#/components/schemas/RichText" } responses: "200": description: The comment content: application/json: schema: { $ref: "#/components/schemas/TaskComment" } /api/v1/tasks/{taskId}/activity: get: tags: [Comments, links and blockers] operationId: listTaskActivity summary: A task's change history, newest first description: One entry per changed field, as on the task's History tab. Default page size 50, at most 100. Comments aren't included. x-sofia-scopes: [tasks:read] parameters: - $ref: "#/components/parameters/TaskId" - $ref: "#/components/parameters/Limit" - $ref: "#/components/parameters/Cursor" responses: "200": description: A page of entries content: application/json: schema: type: object properties: entries: { type: array, items: { $ref: "#/components/schemas/TaskActivityEntry" } } nextCursor: { type: [string, "null"] } hasMore: { type: boolean } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } /api/v1/tasks/{taskId}/links: get: tags: [Comments, links and blockers] operationId: listTaskPageLinks summary: Docs pages linked to a task x-sofia-scopes: [tasks:read] parameters: [{ $ref: "#/components/parameters/TaskId" }] responses: "200": description: Linked pages content: application/json: schema: type: object properties: docs: { type: array, items: { $ref: "#/components/schemas/LinkedDoc" } } post: tags: [Comments, links and blockers] operationId: linkPageToTask summary: Link a docs page to a task (you must be able to edit the page) x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: true content: application/json: schema: type: object required: [docPageId] properties: docPageId: { type: string, format: uuid } responses: "204": { description: "Linked" } /api/v1/tasks/{taskId}/links/{docPageId}: delete: tags: [Comments, links and blockers] operationId: unlinkPageFromTask summary: Remove a page link from a task x-sofia-scopes: [tasks:write] parameters: - $ref: "#/components/parameters/TaskId" - name: docPageId in: path required: true schema: { type: string, format: uuid } responses: "204": { description: "Unlinked" } /api/v1/tasks/{taskId}/blocks: post: tags: [Comments, links and blockers] operationId: addBlocker summary: Record that this task (the path's) blocks another task description: | The two tasks may be in different projects of the same workspace; you need access to both. Refused with 400 when a task would block itself (TASK_BLOCKS_SELF), the blocker exists (TASK_BLOCK_EXISTS), it would make a loop (BLOCKER_LOOP: the blocking task already waits on the other, directly or through other tasks), or the tasks are in different workspaces (TASKS_DIFFERENT_WORKSPACE). x-sofia-scopes: [tasks:write] parameters: - name: taskId in: path required: true description: The blocking task. schema: { type: string, format: uuid } requestBody: required: true content: application/json: schema: type: object required: [blockedTaskId] properties: blockedTaskId: { type: string, format: uuid } responses: "204": { description: "Added" } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } /api/v1/tasks/{taskId}/blocks/{blockedTaskId}: delete: tags: [Comments, links and blockers] operationId: removeBlocker summary: Remove a blocker x-sofia-scopes: [tasks:write] parameters: - name: taskId in: path required: true description: The blocking task. schema: { type: string, format: uuid } - name: blockedTaskId in: path required: true schema: { type: string, format: uuid } responses: "204": { description: "Removed" } /api/v1/tasks/{epicId}/epic-blockers: get: tags: [Comments, links and blockers] operationId: getEpicBlockers summary: What holds an epic back from outside it description: | Unfinished tasks from any project of the workspace that are neither the epic nor under it, but block the epic or a task under it, each with the tasks it holds up. Ones in projects you can't open are only counted (hiddenCount). Needs access to the epic's project. x-sofia-scopes: [tasks:read] parameters: - name: epicId in: path required: true schema: { type: string, format: uuid } responses: "200": description: The outside blockers content: application/json: schema: { $ref: "#/components/schemas/EpicBlockers" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } /api/v1/orgs/{orgId}/projects/by-key/{projectKey}/tasks: post: tags: [Tasks] operationId: createTaskByProjectKey summary: Create a task by project key, with types, statuses and people by name or e-mail description: | For other systems (a CRM, an ERP). The project key, type and status names match without regard to case; the project must be one you can open. With an externalRef that a task you can open already holds, nothing is created: the answer is 200 with X-Sofia-Existing: true and that task. Honours Idempotency-Key. Counts against the task-create cap (120 a minute per token owner), shared with createTask. An e-mail for assignee or reporter must be an active member's whole address (any case): with no such member, 400 MEMBER_EMAIL_NOT_FOUND; when too many members match to find the exact one, 400 MEMBER_EMAIL_AMBIGUOUS (pass the user id instead). params.field names the field. Documentation: https://docs.sofiaspace.uz/api/integrations/ x-sofia-scopes: [tasks:write] parameters: - $ref: "#/components/parameters/OrgId" - name: projectKey in: path required: true schema: { type: string, example: WEB } - $ref: "#/components/parameters/IdempotencyKey" requestBody: required: true content: application/json: schema: type: object required: [title] properties: title: { type: string, maxLength: 500 } type: { type: string, description: "A task type's name or ID. Default Task, or the workspace's first type.", example: Bug } status: { type: string, description: "A status name or ID of this project. Default the first status.", example: To Do } assignee: { type: string, description: "An active member's user ID, or their whole e-mail address (any case; part of an address never matches).", example: ali.valiyev@example.com } reporter: { type: string, description: "An e-mail or user ID; default is the token's account." } priority: { type: string, description: "HIGHEST, HIGH, MEDIUM (default), LOW or LOWEST, any case.", example: high } description: { $ref: "#/components/schemas/RichText" } storyPoints: { type: integer, minimum: 0, maximum: 1000 } dueDate: { type: string, format: date } startDate: { type: string, format: date } fieldValues: { type: array, items: { $ref: "#/components/schemas/FieldValue" } } externalRef: type: object required: [system, id] properties: system: { type: string, pattern: "^[a-z0-9][a-z0-9_-]{0,39}$", example: erp } id: { type: string, minLength: 1, maxLength: 200, example: ORD-2026-0815 } url: { type: string, format: uri, maxLength: 2000 } label: { type: string, maxLength: 200, example: Order ORD-2026-0815 } example: title: Deliver website for order ORD-2026-0815 assignee: ali.valiyev@example.com priority: HIGH dueDate: "2026-12-15" externalRef: { system: erp, id: ORD-2026-0815, label: Order ORD-2026-0815 } responses: "201": description: Created content: application/json: schema: { $ref: "#/components/schemas/Task" } "200": description: A task you can open already holds the externalRef; that task, nothing created headers: X-Sofia-Existing: schema: { type: string, enum: ["true"] } content: application/json: schema: { $ref: "#/components/schemas/Task" } "400": description: Unknown task type, unknown status, MEMBER_EMAIL_NOT_FOUND, MEMBER_EMAIL_AMBIGUOUS, STORY_POINTS_TOO_HIGH, NAME_REQUIRED, or another invalid field content: application/json: schema: { $ref: "#/components/schemas/Error" } "403": { $ref: "#/components/responses/Forbidden" } "404": description: No project with that key that you can open content: application/json: schema: { $ref: "#/components/schemas/Error" } "409": { $ref: "#/components/responses/Conflict" } "429": { $ref: "#/components/responses/TooManyRequests" } /api/v1/tasks/{taskId}/external-refs/{system}/{externalId}: parameters: - $ref: "#/components/parameters/TaskId" - name: system in: path required: true description: Your system's short name, 1-40 characters of a-z 0-9 - _, starting with a letter or digit. schema: { type: string, pattern: "^[a-z0-9][a-z0-9_-]{0,39}$", example: crm } - name: externalId in: path required: true description: The record's ID in that system, 1-200 characters, URL-encoded. schema: { type: string, minLength: 1, maxLength: 200, example: "4512" } put: tags: [Tasks] operationId: putTaskExternalRef summary: Link a task to a record in another system, or update the link's url and label description: One record links to one task in the workspace; a task holds at most 20 links. Needs the right to edit the task. x-sofia-scopes: [tasks:write] requestBody: required: false content: application/json: schema: type: object properties: url: { type: string, format: uri, maxLength: 2000, description: "An http or https link." } label: { type: string, maxLength: 200, example: "Deal #4512" } responses: "200": description: The task, with externalRefs filled content: application/json: schema: { $ref: "#/components/schemas/Task" } "400": { $ref: "#/components/responses/BadRequest" } "404": { $ref: "#/components/responses/NotFound" } "409": description: EXTERNAL_REF_TAKEN (the record is already linked to another task; params system, externalId) or EXTERNAL_REF_LIMIT (the task already holds 20 links; params max) content: application/json: schema: { $ref: "#/components/schemas/Error" } delete: tags: [Tasks] operationId: deleteTaskExternalRef summary: Remove a link to a record (the task and the record stay) description: Removing a link the task doesn't have changes nothing and still answers 200. x-sofia-scopes: [tasks:write] responses: "200": description: The task content: application/json: schema: { $ref: "#/components/schemas/Task" } "404": { $ref: "#/components/responses/NotFound" } /api/v1/orgs/{orgId}/tasks/by-external-ref: get: tags: [Tasks] operationId: getTaskByExternalRef summary: The task linked to a record in another system description: 404 when no task holds the record, or you can't open the task that does. x-sofia-scopes: [tasks:read] parameters: - $ref: "#/components/parameters/OrgId" - name: system in: query required: true schema: { type: string, example: erp } - name: id in: query required: true schema: { type: string, example: ORD-2026-0815 } responses: "200": description: The task, with externalRefs filled content: application/json: schema: { $ref: "#/components/schemas/Task" } "404": { $ref: "#/components/responses/NotFound" } /api/v1/orgs/{orgId}/kpi: get: tags: [Time tracking] operationId: exportKpi summary: KPIs per person - tasks completed, points, on-time rate, open and overdue, cycle time, hours logged description: | Everyone's numbers need Org Admin, Project Admin or a role with See people analytics; otherwise only your own row comes back (notice people_restricted), and asking for other userIds is refused with 403. openTasks and overdue are as of now, the same in every period. format=csv answers a UTF-8 CSV with a byte-order mark. Documentation: https://docs.sofiaspace.uz/api/integrations/ x-sofia-scopes: [dashboards:read] parameters: - $ref: "#/components/parameters/OrgId" - { name: from, in: query, description: "Default 29 days before to.", schema: { type: string, format: date } } - { name: to, in: query, description: "Default today. At most 731 days from from.", schema: { type: string, format: date } } - name: groupBy in: query description: One block per month or per week (Monday to Sunday); at most 60 periods. schema: { type: string, enum: [none, month, week], default: none } - name: tz in: query description: IANA time zone the days are counted in; default UTC. schema: { type: string, example: Asia/Tashkent } - { name: userIds, in: query, style: form, explode: true, schema: { type: array, items: { type: string, format: uuid } } } - { name: projectIds, in: query, style: form, explode: true, schema: { type: array, items: { type: string, format: uuid } } } - { name: teamIds, in: query, style: form, explode: true, schema: { type: array, items: { type: string, format: uuid } } } - name: format in: query schema: { type: string, enum: [json, csv], default: json } responses: "200": description: The report content: application/json: schema: type: object properties: from: { type: string, format: date } to: { type: string, format: date } groupBy: { type: string, enum: [none, month, week] } timeTracked: { type: boolean, description: "false when no project in scope tracks time; hoursLogged is then null." } notices: { type: array, items: { type: string }, description: "For example people_restricted, tracking_off_all." } rows: type: array items: type: object properties: periodStart: { type: string, format: date } periodEnd: { type: string, format: date } userId: { type: string } name: { type: [string, "null"], example: Ali Valiyev } email: { type: [string, "null"], description: "null for an integration account." } completedTasks: { type: integer } completedPoints: { type: integer } completedWithDueDate: { type: integer } completedOnTime: { type: integer } onTimeRate: { type: [number, "null"], minimum: 0, maximum: 1 } openTasks: { type: integer } overdue: { type: integer } medianCycleDays: { type: [number, "null"] } hoursLogged: { type: [number, "null"] } text/csv: schema: { type: string } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } /api/v1/orgs/{orgId}/timesheet: get: tags: [Time tracking] operationId: getTimesheet summary: Minutes logged per person, task and day description: | Your own time from every project you can open; other people's only from projects where you may see per-person numbers (Org Admin, Project Admin, or See people analytics). At most 93 days. x-sofia-scopes: [dashboards:read] parameters: - $ref: "#/components/parameters/OrgId" - { name: from, in: query, required: true, schema: { type: string, format: date } } - { name: to, in: query, required: true, schema: { type: string, format: date } } - name: tz in: query description: IANA time zone the days are counted in; default UTC. schema: { type: string, example: Asia/Tashkent } - name: userIds in: query description: Whose time; default only yours. style: form explode: true schema: { type: array, items: { type: string, format: uuid } } responses: "200": description: The timesheet content: application/json: schema: type: object properties: people: { type: array, items: { type: string, format: uuid } } hiddenPeople: { type: array, items: { type: string, format: uuid } } cells: type: array items: type: object properties: userId: { type: string, format: uuid } taskId: { type: string, format: uuid } taskKey: { type: string, example: WEB-87 } taskTitle: { type: string } projectId: { type: string, format: uuid } day: { type: string, format: date } minutes: { type: integer } "400": { $ref: "#/components/responses/BadRequest" } /api/v1/files/upload-requests: post: tags: [Files and attachments] operationId: requestUpload summary: Step 1 of an upload - get an address to PUT the bytes to description: | A file may be at most the smaller of 100 MB (for `task` and `doc`) and the plan's largest file (25 MB on Free, 250 MB on Pro, 500 MB on Business). `.exe`, `.dll`, `.bat`, `.cmd`, `.com`, `.scr`, `.msi`, `.jar`, `.app`, `.deb` and `.rpm` files are refused. At most 120 upload requests a minute per person. If you (the token owner) already uploaded a file with the same SHA-256 to this workspace, `alreadyExists` is true: attach `fileId` without uploading or confirming. Another person's file is never reused, even with the same bytes. The upload address is valid for 15 minutes. x-sofia-scopes: [tasks:write, docs:write] requestBody: required: true content: application/json: schema: type: object required: [orgId, fileName, mimeType, sizeBytes, checksum, module] properties: orgId: { type: string, format: uuid } fileName: { type: string, example: contract-1042.pdf } mimeType: { type: string, example: application/pdf } sizeBytes: { type: integer, minimum: 1, maximum: 104857600 } checksum: { type: string, pattern: "^[0-9a-fA-F]{64}$", description: "SHA-256 of the bytes as 64 hex characters (stored lower-case). Anything else is 400 INVALID_ARGUMENT. Checked against the uploaded bytes at confirm." } module: type: string enum: [task, doc] description: Sets the size limit (100 MB). Leaving it out applies the 25 MB chat limit. responses: "200": description: Where to send the bytes content: application/json: schema: { $ref: "#/components/schemas/UploadRequestResult" } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "409": description: Over the plan's largest file (`ENTITLEMENT_DENIED`, `key` `file.max.mb`). "429": description: Over 120 upload requests a minute (`RATE_LIMITED`); wait `Retry-After` seconds. /api/v1/files/{fileId}/confirm: post: tags: [Files and attachments] operationId: confirmUpload summary: Step 3 of an upload - confirm the bytes arrived description: | Checks that the bytes are in storage, that their size is exactly the declared `sizeBytes`, that their content matches the declared `mimeType`'s kind, and that their SHA-256 is the declared `checksum`; on failure the bytes are deleted and the file stays unconfirmed (upload the right bytes and confirm again). Counts the file toward the workspace's storage. Safe to repeat. `checksum` is only returned to the uploader. x-sofia-scopes: [tasks:write, docs:write] parameters: - name: fileId in: path required: true schema: { type: string, format: uuid } responses: "200": description: The file content: application/json: schema: { $ref: "#/components/schemas/File" } "409": description: | `FAILED_PRECONDITION` when the bytes are missing, the wrong size, not the declared type, or don't match the declared SHA-256 checksum; `ENTITLEMENT_DENIED` (`key` `storage.total.gb`) when the workspace's storage is full. /api/v1/tasks/{taskId}/attachments: get: tags: [Files and attachments] operationId: listTaskAttachments summary: Files attached to a task x-sofia-scopes: [tasks:read] parameters: [{ $ref: "#/components/parameters/TaskId" }] responses: "200": description: Attachments content: application/json: schema: type: object properties: attachments: { type: array, items: { $ref: "#/components/schemas/TaskAttachment" } } post: tags: [Files and attachments] operationId: attachFileToTask summary: Attach a confirmed file to a task description: The file must be confirmed and in the same workspace. Name, type and size come from the file. Removing an attachment and download links aren't available to tokens. x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: true content: application/json: schema: type: object required: [fileId] properties: fileId: { type: string, format: uuid } responses: "200": description: The attachment content: application/json: schema: { $ref: "#/components/schemas/TaskAttachment" } /api/v1/tasks/{taskId}/time: get: tags: [Time tracking] operationId: getTaskTime summary: A task's estimate, time spent and worklogs x-sofia-scopes: [tasks:read] parameters: [{ $ref: "#/components/parameters/TaskId" }] responses: "200": description: The task's time content: application/json: schema: { $ref: "#/components/schemas/TaskTime" } /api/v1/tasks/{taskId}/worklogs: post: tags: [Time tracking] operationId: logWork summary: Log time on a task x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: true content: application/json: schema: type: object required: [startedAt, minutes] properties: startedAt: { type: string, format: date-time } minutes: { type: integer, minimum: 1, maximum: 1440 } description: { type: string, maxLength: 2000 } remainingMode: { type: string, enum: [AUTO, SET, LEAVE], default: AUTO } remainingMinutes: { type: integer, description: "Required with remainingMode SET." } userId: { type: string, format: uuid, description: "Log for another member (needs canLogForOthers); default is you." } responses: "200": description: The worklog content: application/json: schema: { $ref: "#/components/schemas/Worklog" } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "409": { $ref: "#/components/responses/Conflict" } /api/v1/tasks/{taskId}/estimate: put: tags: [Time tracking] operationId: setTaskEstimate summary: Set the original and remaining estimate (send only what changes) description: A missing or null minutes value with its clear flag false keeps that estimate. remainingMinutes is ignored when the project doesn't track a remaining estimate. 409 when time tracking is off or the project tracks time without estimates. x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] requestBody: required: true content: application/json: schema: type: object properties: originalMinutes: { type: [integer, "null"], minimum: 0, maximum: 100000 } clearOriginal: { type: boolean, default: false } remainingMinutes: { type: [integer, "null"], minimum: 0, maximum: 100000 } clearRemaining: { type: boolean, default: false } responses: "200": description: The task's time content: application/json: schema: { $ref: "#/components/schemas/TaskTime" } "400": { $ref: "#/components/responses/BadRequest" } "409": { $ref: "#/components/responses/Conflict" } /api/v1/worklogs/{worklogId}: patch: tags: [Time tracking] operationId: updateWorklog summary: Change a worklog's start, minutes and description description: | Your own worklog, or anyone's if you manage worklogs in the project (canManageWorklogs). All three fields are written: a missing description removes it. The project's time-tracking rules apply as when logging. Deleting a worklog isn't possible with a token (403 SIGNED_IN_APP_ONLY). x-sofia-scopes: [tasks:write] parameters: - name: worklogId in: path required: true schema: { type: string, format: uuid } requestBody: required: true content: application/json: schema: type: object required: [startedAt, minutes] properties: startedAt: { type: string, format: date-time } minutes: { type: integer, minimum: 1, maximum: 1440 } description: { type: string, maxLength: 2000 } responses: "200": description: The changed worklog content: application/json: schema: { $ref: "#/components/schemas/Worklog" } "400": { $ref: "#/components/responses/BadRequest" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "409": { $ref: "#/components/responses/Conflict" } /api/v1/tasks/{taskId}/timer: post: tags: [Time tracking] operationId: startTimer summary: Start your timer on a task description: | Each person has one timer. One running on another task is logged first (or dropped if that task can't take time any more); one already on this task keeps running. 409 when time tracking is off or the project doesn't use the timer. x-sofia-scopes: [tasks:write] parameters: [{ $ref: "#/components/parameters/TaskId" }] responses: "200": description: The running timer content: application/json: schema: { $ref: "#/components/schemas/RunningTimer" } "403": { $ref: "#/components/responses/Forbidden" } "404": { $ref: "#/components/responses/NotFound" } "409": { $ref: "#/components/responses/Conflict" } /api/v1/me/timer: get: tags: [Time tracking] operationId: getMyTimer summary: Your running timer, if any x-sofia-scopes: [tasks:read] responses: "200": description: The timer, or null content: application/json: schema: type: object properties: timer: oneOf: - $ref: "#/components/schemas/RunningTimer" - type: "null" delete: tags: [Time tracking] operationId: discardTimer summary: Stop your timer without logging anything x-sofia-scopes: [tasks:write] responses: "204": { description: "Discarded (also when no timer was running)" } /api/v1/me/timer/stop: post: tags: [Time tracking] operationId: stopTimer summary: Stop your timer and log the time description: | Without minutes, the measured time is logged (at most 24 hours, rounded as the project says). worklog is null when no timer ran, under a minute was measured, or the task was deleted. The project's worklog rules apply; a refused stop leaves the timer running. x-sofia-scopes: [tasks:write] requestBody: required: false content: application/json: schema: type: object properties: minutes: { type: integer, description: "Log this instead of the measured time; more than 1440 is cut to 1440." } description: { type: string, maxLength: 2000 } responses: "200": description: The new worklog, or null content: application/json: schema: type: object properties: worklog: oneOf: - $ref: "#/components/schemas/Worklog" - type: "null" "400": { $ref: "#/components/responses/BadRequest" } /api/v1/orgs/{orgId}/spaces: get: tags: [Spaces and pages] operationId: listSpaces summary: Spaces you can see x-sofia-scopes: [docs:read] parameters: - $ref: "#/components/parameters/OrgId" - { name: includeArchived, in: query, schema: { type: boolean, default: false } } - { name: includeStats, in: query, schema: { type: boolean, default: false } } responses: "200": description: Spaces content: application/json: schema: type: object properties: spaces: { type: array, items: { $ref: "#/components/schemas/Space" } } post: tags: [Spaces and pages] operationId: createSpace summary: Create a space description: Any workspace member may create one and becomes its admin. At most 30 new spaces an hour per person; the plan limits how many spaces a workspace has (3 on Free, 10 on Pro, 25 on Business). x-sofia-scopes: [docs:write] parameters: - $ref: "#/components/parameters/OrgId" - $ref: "#/components/parameters/IdempotencyKey" requestBody: required: true content: application/json: schema: type: object required: [key, name] properties: key: { type: string, example: REPORTS } name: { type: string } description: { type: string } openTo: { type: string, enum: [MEMBERS, ORG], default: MEMBERS } defaultRole: { type: string, enum: [VIEWER, COMMENTER, EDITOR], default: VIEWER } pictureKind: { type: string, enum: [LETTER, SYMBOL], default: LETTER } pictureColor: { type: string, enum: [teal, blue, violet, orange, rose, moss] } pictureSymbol: { type: string, description: "With SYMBOL: the icon's name." } responses: "201": description: Created content: application/json: schema: { $ref: "#/components/schemas/Space" } "409": { $ref: "#/components/responses/Conflict" } "429": description: Over 30 new spaces an hour (`RATE_LIMITED`). /api/v1/spaces/{spaceId}: get: tags: [Spaces and pages] operationId: getSpace summary: Get a space x-sofia-scopes: [docs:read] parameters: [{ $ref: "#/components/parameters/SpaceId" }] responses: "200": description: The space content: application/json: schema: { $ref: "#/components/schemas/Space" } /api/v1/spaces/{spaceId}/pages: get: tags: [Spaces and pages] operationId: listPages summary: Every page you can open in a space, flat, ordered by position x-sofia-scopes: [docs:read] parameters: [{ $ref: "#/components/parameters/SpaceId" }] responses: "200": description: Pages content: application/json: schema: type: object properties: pages: { type: array, items: { $ref: "#/components/schemas/Page" } } post: tags: [Spaces and pages] operationId: createPage summary: Create an empty page (publish content into it next) description: Needs the Editor role in the space, or edit rights on `parentPageId`. At most 60 new pages a minute per person. x-sofia-scopes: [docs:write, doc:create] parameters: - $ref: "#/components/parameters/SpaceId" - $ref: "#/components/parameters/IdempotencyKey" requestBody: required: true content: application/json: schema: type: object required: [title] properties: title: { type: string, maxLength: 500, description: "May be blank for an HTML page: the file's own