Tasks API

The Tasks API lives under <code>/apis/v1/tasks</code>. Tasks are scoped to the tenant, and a caller can see a task they own, are assigned or delegated, or that has been shared with them.

01

Before you start

Paths are given in full, or relative to /apis/v1/tasks where a table says so. Every request needs a Ration bearer token (see Authentication):

Authorization: Bearer <ration_access_token>
Content-Type: application/json

02

Task model

Task responses are wrapped as { "task": { ... } }. Core fields:

FieldTypeDescription
id, title, descriptionStringTask identity and content. title is required on create.
completed, completed_atBoolean, date-timeCompletion state and time.
date, start_date, reminder_at, reminder_tzStringDue, start and reminder scheduling.
priority, complexity, sensitivity, blockedString/BooleanPlanning and access state.
labels, references, attachmentsArrayCategorisation, source links and attached files.
assignees, delegates, followersArrayCollaboration members.
subtasks, comments, activityArrayWork breakdown, discussion and audit activity.
dependenciesString arrayTasks that must be complete before this one can be completed.
recurrenceObject or nullRecurrence definition. Completing a recurring task creates the next instance.
space_slug, groupStringWorkspace and grouping context.
roleStringThe caller’s access role, when returned.

03

List tasks

GET /apis/v1/tasks returns { "tasks": [Task] }. Use assigned=me to return only work assigned to the authenticated user. Other supported list options go to Ration’s task query for filtering and ordering.

04

Create a task

POST /apis/v1/tasks

  • Other useful create fields: group, space_slug, start_date, completed, sensitivity, complexity, my_day, labels, assignees, delegates, followers, subtasks, references, attachments, recurrence, blocked, dependencies, reminder_at and reminder_tz.
  • Success returns 201 { "task": Task }.
  • A forbidden workspace returns 403 { "error": "workspace_forbidden" }.
{
  "title": "Prepare launch brief",
  "description": "Include the final rollout checklist.",
  "date": "2026-08-14",
  "priority": "high",
  "assignees": [{ "id": "user-id", "email": "sam@example.com" }],
  "labels": ["launch"],
  "dependencies": ["blocking-task-id"]
}

05

Read, update or delete

MethodPathResponse
GET/apis/v1/tasks/:id{ "task": Task, "role": "…" }. Shared tasks also include shared: true.
PATCH or PUT/apis/v1/tasks/:idUpdated { "task": Task }.
DELETE/apis/v1/tasks/:idDeleted { "task": Task }.

Send { "completed": true } to complete a task. If incomplete dependencies prevent completion, Ration returns 409 { "error": "blocked_by_dependency" }. Completing a recurring task may create the next instance automatically.

06

Subtasks and progress

Paths in this table are relative to /apis/v1/tasks.

MethodPathRequestResponse
POST/:task_id/subtasksRequired title; optional completed.201 { "task": Task }
PUT/:task_id/subtasks/:idtitle and/or completed.{ "task": Task }
DELETE/:task_id/subtasks/:idNone{ "task": Task }

To show progress, use the returned task.subtasks array: completed subtasks divided by total subtasks. Updating a subtask returns the parent task straight away, so you don’t need another read to refresh the tracker.

07

Add a comment

POST /apis/v1/tasks/:task_id/comments. body is required. Ration sets author_id and author_name from the authenticated user and returns { "task": Task }.

{ "body": "The legal review is complete." }

08

Attach a file

POST /apis/v1/tasks/:task_id/attachments. Send multipart/form-data with one required file part and Accept: application/json. The effective upload limit is 20 MB.

  • Success returns 201 { "task": Task }. The task attachment includes secure_id, url, filename, content_type and size.
  • DELETE /apis/v1/tasks/:task_id/attachments/:id removes the attachment and returns the updated task.

09

Task action panel

GET /apis/v1/tasks/:id/panel returns { "panel": { ... } }: compact task data and permissions for a task action panel. It holds the title, description, status, priority, dates, recurrence, an assignee summary, and the can_edit, can_undo and can_open flags.

10

Task folders

Task folders use /apis/v1/task_folders.

MethodPathOperation
GET, POST/task_foldersList or create folders.
PATCH, PUT, DELETE/task_folders/:idUpdate or delete a folder.

12

Permissions and errors

StatusError / meaning
401Missing or invalid bearer authentication.
403forbidden or workspace_forbidden: the caller lacks the required task capability.
404Task not found or not visible to the caller.
409blocked_by_dependency or another conflict.
422Invalid ID, missing required fields such as title/body, no changes, file too large or invalid task state.

Owners and delegates can edit task structure. Assignees can update progress and comment where permitted. View-only collaborators can’t change the task.

Next guideNotes API →

Last reviewed 27 November 2026.

Still stuck?

Chat with our support team. Tell us what you were doing and what you saw, and a person will pick it up. You can also email support@ration.works.

Buying or moving to Ration?

For plans, migration or an on-premise deployment, talk to our sales team.