Plaineo Public API

REST API v1 for tasks, files, categories, groups, search, and recurring exceptions. The full machine-readable contract is available as OpenAPI JSON.

Authentication

All public API calls use an API key in the HTTP header X-API-Key. Keys can be created and managed in the Plaineo Developer Portal.

Keep the full key private. The portal shows the full value only when you create it; later lists show only the prefix.

curl https://api.plaineo.com/api/v1/tasks \
  -H "X-API-Key: sc_your_api_key"
GET /api/v1/tasks

List owned and accepted shared tasks

Path and query parameters

Name Where Type Required Description
limit query integer optional Maximum number of items to return.
offset query integer optional Number of items to skip for pagination.
dateFrom query string (date) optional Only include tasks on or after this date.
dateTo query string (date) optional Only include tasks on or before this date.
categoryCode query string optional Convenience category code for one of your own categories.
search query string optional Case-insensitive substring match against task title only.
finished query boolean optional Completion state.
includeParticipants query boolean optional Include full access participant metadata. Defaults to false for faster list/search/agent reads.
calendarId query string optional Restrict results to events in an accessible calendar.

Responses: 200 Task list, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

POST /api/v1/tasks

Create a task

Supply calendarId with start and end ISO datetimes including seconds and a UTC offset or Z for a calendar event. End must follow start; do not combine calendarId with date. Calendar write permission is required. Updates preserve omitted event fields; moving a shared task also requires destination access for its owner.

Request body fields

Name Where Type Required Description
id body string optional Optional new task ID. If the ID already exists, creation returns 409 without modifying the record.
title body string required Task title.
notes body string optional Free-form task notes.
date body string (date) optional Task date in YYYY-MM-DD format.
start body string optional Optional task start time.
end body string optional Optional task end time.
categoryId body string optional Stable category ID to assign the task to.
categoryCode body string optional Convenience category code for one of your own categories.
finished body boolean optional Completion state.
cancelled body boolean optional Whether the task or recurring instance is cancelled.
recurring body object optional Recurring rule data for repeating tasks.
subtasks body array<object> optional Checklist/subtask items attached to the task.
reminders body array<value> optional Reminder definitions for a task.
attachments body array<object | object> optional Inline file uploads or references to previously uploaded files.
comments body array<object> optional Public comment objects for the task or recurring instance.
customFields body object optional
metadata body object optional
calendarId body string optional Calendar identifier returned by calendar discovery. Calendar events require complete start/end ISO datetimes with seconds and UTC offsets; omit date.
allDay body boolean optional Calendar date range without timezone conversion.
timeZone body string optional IANA timezone for local task datetimes. Explicit ISO offsets preserve the instant. Defaults to the account timezone at creation.

Example JSON body

{
  "title": "Call dentist",
  "date": "2026-06-10"
}

Responses: 200 Created task, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 409 The requested task ID is unavailable., 503 Integration authorization or a required upstream service is unavailable

POST /api/v1/tasks/from-content

Create tasks from text, base64 content, or URL using AI extraction

Runs the existing content-intake AI flow and immediately saves extracted tasks. Without calendarId, legacy category placement is preserved. With calendarId, all proposals must have complete valid calendar dates and write access; all event placements are validated before any source upload or task write. Persistence failures may still yield partial results. Use analyze-content and direct task creation to review/edit before saving. Normal AI quota applies to every extraction.

Request body fields

Name Where Type Required Description
text body string optional Plain text to process.
url body string (uri) optional Public HTTP(S) source URL without embedded credentials. Cannot be combined with base64.
base64 body string optional Raw base64 file content. Requires mimeType. Image processing currently accepts up to 4.5 MiB of encoded image data; MCP HTTP also has a 10 MiB total request limit.
mimeType body string optional MIME type, such as image/jpeg or application/pdf.
fileName body string optional Original file name, including extension.
categoryCode body string optional Optional explicit extraction category.
categoryId body string optional Accessible category reference; takes precedence over categoryCode.
calendarId body string optional Accessible calendar for preview; creation requires write access.
timeZone body string optional IANA timezone used for extracted dates/datetimes without an explicit UTC offset. Required for local calendar dates. Ambiguous/nonexistent DST times require an explicit offset.
currentDate body string (date) optional Reference date for relative expressions. Defaults to today in timeZone when supplied, otherwise the current UTC date.
idempotencyKey body string optional Stable key for retries of the same input and target. Prevents duplicate task/file IDs; extraction still runs and consumes normal AI quota on each request.

Example JSON body

{
  "text": "Dentist appointment next Monday at 3pm"
}

Responses: 200 Created tasks, 400 BadRequest, 401 Unauthorized, 404 NotFound, 408 AI processing timed out., 413 Input exceeds the size limit., 422 No tasks extracted or calendar proposals need corrected dates/timezone. Preview with analyze-content before retrying., 429 Normal AI token quota exceeded., 503 AI quota state unavailable.

GET /api/v1/tasks/{id}

Get a task detail, including safe attachment metadata

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.
include query string optional Comma-separated optional sections. Supported values: attachments,comments,subtasks,notes,metadata,customFields,recurring,reminders,all. When omitted, default full task DTO behavior is preserved.

Responses: 200 Task detail, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

PUT /api/v1/tasks/{id}

Update a task; shared recipients need write permission

Supply calendarId with start and end ISO datetimes including seconds and a UTC offset or Z for a calendar event. End must follow start; do not combine calendarId with date. Calendar write permission is required. Updates preserve omitted event fields; moving a shared task also requires destination access for its owner.

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.

Request body fields

Name Where Type Required Description
title body string optional Task title.
notes body string optional Free-form task notes.
date body string (date) optional Task date in YYYY-MM-DD format.
start body string optional Optional task start time.
end body string optional Optional task end time.
categoryId body string optional Stable category ID to assign the task to.
categoryCode body string optional Convenience category code for one of your own categories.
finished body boolean optional Completion state.
cancelled body boolean optional Whether the task or recurring instance is cancelled.
recurring body object optional Recurring rule data for repeating tasks.
subtasks body array<object> optional Checklist/subtask items attached to the task.
reminders body array<value> optional Reminder definitions for a task.
attachments body array<object | object> optional Inline file uploads or references to previously uploaded files.
comments body array<object> optional Public comment objects for the task or recurring instance.
customFields body object optional
metadata body object optional
calendarId body string optional Calendar identifier returned by calendar discovery. Calendar events require complete start/end ISO datetimes with seconds and UTC offsets; omit date.
allDay body boolean optional Calendar date range without timezone conversion.
timeZone body string optional IANA timezone for local task datetimes. Explicit ISO offsets preserve the instant. Defaults to the account timezone at creation.

Example JSON body

{
  "notes": "Updated via API"
}

Responses: 200 Updated task, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

DELETE /api/v1/tasks/{id}

Soft-delete a task; shared recipients need write permission

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.

Responses: 200 Ok, 401 Unauthorized, 403 Forbidden, 404 NotFound

POST /api/v1/tasks/{id}/comments

Append a task comment without replacing existing comments

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.

Request body fields

Name Where Type Required Description
text body string required Markdown comment text to append. Existing comments are never replaced.
idempotencyKey body string optional Stable key that prevents a retried append from creating a duplicate comment.
authorId body string optional Optional service or automation identity displayed as the comment author.

Example JSON body

{
  "text": "## Deeper analysis\n\nThe implementation seam is clear.",
  "authorId": "automation",
  "idempotencyKey": "task-analysis-v1"
}

Responses: 200 Task with the appended comment, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 409 Task changed repeatedly while the comment was being appended, 503 Integration authorization or a required upstream service is unavailable

PATCH /api/v1/tasks/{id}/custom-fields

Set or unset selected custom fields without replacing the field map

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.

Request body fields

Name Where Type Required Description
set body object optional Custom fields to add or replace. Plain values are wrapped as objects with a value property.
unset body array<string> optional Custom field names to remove. A field cannot also be present in set.

Example JSON body

{
  "set": {
    "state": "implementing",
    "branch": "auto/example-task"
  }
}

Responses: 200 Task with the merged custom fields, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 409 Task changed repeatedly while custom fields were being patched, 503 Integration authorization or a required upstream service is unavailable

POST /api/v1/files

Upload a base64 file

Request body fields

Name Where Type Required Description
id body string optional Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.
fileName body string required Original file name, including extension.
mimeType body string required MIME type, such as image/jpeg or application/pdf.
base64 body string required Base64-encoded file or image content.
thumbBase64 body string optional Optional base64-encoded thumbnail.
description body string optional Optional human-readable description.

Example JSON body

{
  "fileName": "receipt.jpg",
  "mimeType": "image/jpeg",
  "base64": "<base64>"
}

Responses: 201 File metadata, 400 BadRequest, 401 Unauthorized, 413 PayloadTooLarge

GET /api/v1/files/{id}

Get file metadata and base64 content

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.
onlyThumb query boolean optional Return thumbnailBase64Content instead of base64Content.

Responses: 200 File DTO, 401 Unauthorized, 403 Forbidden, 404 NotFound

DELETE /api/v1/files/{id}

Soft-delete an owned file

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.

Responses: 200 Ok, 401 Unauthorized, 403 Forbidden, 404 NotFound

GET /api/v1/categories

List owned and accepted shared categories

Path and query parameters

Name Where Type Required Description
includeParticipants query boolean optional Include full access participant metadata. Defaults to false for faster list/search/agent reads.

Responses: 200 Category list, 401 Unauthorized, 403 Forbidden, 503 Integration authorization or a required upstream service is unavailable

POST /api/v1/categories

Create a custom category with optional custom field schema

Request body fields

Name Where Type Required Description
id body string optional Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.
code body string required
name body string optional
color body string optional
icon body string optional
resultStructure body array<object> optional
voiceTextDescription body string optional
imageDescription body string optional
keywords body array<string> optional
enabledForImage body boolean optional
enabledForVoiceText body boolean optional

Example JSON body

{
  "code": "api_smoke",
  "name": "API Smoke",
  "resultStructure": [
    {
      "param": "severity",
      "type": "text",
      "description": "Severity label"
    },
    {
      "param": "referenceUrl",
      "type": "url",
      "description": "Related issue or document URL"
    }
  ]
}

Responses: 200 Created category, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/categories/{id}

Get one category by id or code

Path and query parameters

Name Where Type Required Description
id path string required Category id or category code.

Responses: 200 Category, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

PUT /api/v1/categories/{id}

Update a custom category by id or code

Path and query parameters

Name Where Type Required Description
id path string required Category id or category code.

Request body fields

Name Where Type Required Description
name body string optional
color body string optional
icon body string optional
resultStructure body array<object> optional
voiceTextDescription body string optional
imageDescription body string optional
keywords body array<string> optional
enabledForImage body boolean optional
enabledForVoiceText body boolean optional

Responses: 200 Updated category, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/recurring-exceptions/task/{taskId}

List exceptions for an accessible recurring task

Path and query parameters

Name Where Type Required Description
taskId path string required ID of the parent task.

Responses: 200 Exception list, 401 Unauthorized, 404 NotFound

POST /api/v1/recurring-exceptions/task/{taskId}

Create or upsert an exception; shared recipients need write permission

Path and query parameters

Name Where Type Required Description
taskId path string required ID of the parent task.

Request body fields

Name Where Type Required Description
instanceDate body string optional Date of the recurring task instance to override.
cancelled body boolean optional Whether the task or recurring instance is cancelled.
finished body boolean optional Completion state.
comments body array<object> optional Public comment objects for the task or recurring instance.

Example JSON body

{
  "instanceDate": "2026-06-10",
  "finished": true
}

Responses: 200 Updated existing exception, 201 Created exception, 401 Unauthorized, 403 Forbidden, 404 NotFound

PUT /api/v1/recurring-exceptions/{id}

Update an exception; shared recipients need write permission on the parent task

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.

Request body fields

Name Where Type Required Description
instanceDate body string optional Date of the recurring task instance to override.
cancelled body boolean optional Whether the task or recurring instance is cancelled.
finished body boolean optional Completion state.
comments body array<object> optional Public comment objects for the task or recurring instance.

Example JSON body

{
  "finished": false
}

Responses: 200 Updated exception, 401 Unauthorized, 403 Forbidden, 404 NotFound

GET /api/v1/groups

List visible category groups and share groups

Path and query parameters

Name Where Type Required Description
search query string optional Case-insensitive substring match against group name, code, id, type, or category codes.
includeStats query boolean optional Include task counts for each group.
includeParticipants query boolean optional Include full access participant metadata. Defaults to false for faster list/search/agent reads.

Responses: 200 Group list, 401 Unauthorized, 403 Forbidden, 503 Integration authorization or a required upstream service is unavailable

POST /api/v1/groups

Create an owned category group

Organizes existing owned categories. A category group does not grant sharing permissions and is not a task destination.

Request body fields

Name Where Type Required Description
name body string required
idempotencyKey body string required Reuse with the same name and ordered category codes to recover the created group.
categoryCodes body array<string> optional Existing category codes owned by the caller. Omit to create an empty group.

Responses: 200 Identical creation retry, 201 Category group created, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 409 The key already belongs to a different or unavailable group, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/groups/{id}

Get a visible group by id or code

Path and query parameters

Name Where Type Required Description
id path string required Group id or group code.
includeParticipants query boolean optional Include full access participant metadata. Defaults to false for faster list/search/agent reads.

Responses: 200 Group detail, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

PUT /api/v1/groups/{id}/categories

Update category membership for an owned category group

Use categoryCodes to replace the full membership, or add/remove to patch it. Only category-group records owned by the API-key user can be updated.

Path and query parameters

Name Where Type Required Description
id path string required Group id or group code.

Request body fields

Name Where Type Required Description
categoryCodes body array<string> optional Full replacement list of category codes for a category group.
add body array<string> optional Category codes to add to a category group.
remove body array<string> optional Category codes to remove from a category group.

Example JSON body

{
  "add": [
    "automation"
  ]
}

Responses: 200 Updated group, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/groups/{id}/tasks

List tasks resolved under a group

Path and query parameters

Name Where Type Required Description
id path string required Group id or group code.
limit query integer optional Maximum number of items to return.
offset query integer optional Number of items to skip for pagination.
includeParticipants query boolean optional Include full access participant metadata. Defaults to false for faster list/search/agent reads.

Responses: 200 Tasks in group, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/groups/{id}/context

Get compact group context with counts, category breakdown, and representative tasks

Path and query parameters

Name Where Type Required Description
id path string required Group id or group code.
limit query integer optional Maximum recent/unfinished tasks returned in each list.

Responses: 200 Group context, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/search

Search visible tasks, groups, and categories using indexed task search by default

Task search uses the compact search index by default. Scoped task search with categoryCode or groupId avoids global scans. Existing unindexed accounts fall back to an exhaustive scan until POST /api/v1/search/reindex is run.

Path and query parameters

Name Where Type Required Description
q query string required Search text.
types query string optional Comma-separated subset: tasks,groups,categories.
limit query integer optional Maximum number of items to return.
categoryCode query string optional Optional fast task-search scope: only search tasks in this category code.
groupId query string optional Optional fast task-search scope: only search tasks in this group id or code.
scope query "indexed" | "all" optional Task search scope. Default uses the compact task search index. Use all to force the slower exhaustive task scan fallback.

Responses: 200 Search results, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/categories/{id}/tasks

List tasks in a category by id or code

Path and query parameters

Name Where Type Required Description
id path string required Category id or category code.
limit query integer optional Maximum number of items to return.
offset query integer optional Number of items to skip for pagination.
finished query boolean optional Completion state.
search query string optional Case-insensitive title substring search.
hasComments query boolean optional Only include tasks that have at least one non-deleted comment when true, or no visible comments when false.
hasAttachments query boolean optional Only include tasks that have attachments when true, or no attachments when false.
attachmentMimeType query string optional Only include tasks with an attachment matching this MIME type or prefix, e.g. image/ or image/jpeg.
include query string optional Comma-separated optional sections. Supported values: attachments,comments,subtasks,notes,metadata,customFields,recurring,reminders,all. When omitted, default full task DTO behavior is preserved.

Responses: 200 Tasks in category, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/categories/{id}/context

Get compact category context with task, photo, and comment counts

Path and query parameters

Name Where Type Required Description
id path string required Category id or category code.
limit query integer optional Maximum recent/unfinished tasks returned in each list.

Responses: 200 Category context, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/files/{id}/inspect

Inspect file metadata and thumbnail readability

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.

Responses: 200 File inspection, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

POST /api/v1/search/reindex

Backfill the compact task search index for the authenticated API-key user

Responses: 200 Reindex result, 401 Unauthorized

GET /api/v1/calendars

List owned and accepted shared calendars

Path and query parameters

Name Where Type Required Description
search query string optional Case-insensitive calendar name substring.

Responses: 200 Calendar list, 401 Unauthorized, 403 Forbidden, 503 Integration authorization or a required upstream service is unavailable

POST /api/v1/calendars

Create a calendar owned by the authenticated user

Request body fields

Name Where Type Required Description
name body string required Calendar name, trimmed before saving.
color body string optional
idempotencyKey body string optional Reuse with the same name and color to recover the existing calendar on retry.

Responses: 200 Calendar returned for an identical creation retry, 201 Created calendar, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 409 The key belongs to a different or unavailable calendar, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/calendars/{id}

Read an owned or accepted shared calendar

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.

Responses: 200 Calendar, 401 Unauthorized, 403 Forbidden, 404 NotFound, 503 Integration authorization or a required upstream service is unavailable

POST /api/v1/tasks/analyze-content

Extract AI task/event proposals without creating tasks

Uses the existing content-intake AI flow under the authenticated account and its normal AI token quota. May initialize category configuration and records AI usage/run history, but does not create task or file documents. Review readyToCreate and warnings, then save edited proposals with POST /api/v1/tasks. Date-only extracted ranges have inclusive end dates; proposed all-day event ends are exclusive. No timed-event duration is invented.

Request body fields

Name Where Type Required Description
text body string optional Plain text to process.
url body string (uri) optional Public HTTP(S) source URL without embedded credentials. Cannot be combined with base64.
base64 body string optional Raw base64 file content. Requires mimeType. Image processing currently accepts up to 4.5 MiB of encoded image data; MCP HTTP also has a 10 MiB total request limit.
mimeType body string optional MIME type, such as image/jpeg or application/pdf.
fileName body string optional Original file name, including extension.
categoryCode body string optional Optional explicit extraction category.
categoryId body string optional Accessible category reference; takes precedence over categoryCode.
calendarId body string optional Accessible calendar for preview; creation requires write access.
timeZone body string optional IANA timezone used for extracted dates/datetimes without an explicit UTC offset. Required for local calendar dates. Ambiguous/nonexistent DST times require an explicit offset.
currentDate body string (date) optional Reference date for relative expressions. Defaults to today in timeZone when supplied, otherwise the current UTC date.

Responses: 200 Content classification and extracted proposals; no tasks or source file attachments are saved., 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 408 AI processing timed out., 413 Input exceeds the size limit., 429 Normal AI token quota exceeded., 503 AI quota state unavailable.

POST /api/v1/calendars/{id}/events/batch

Save a batch of reviewed calendar events

Commits all events and owner shares in one transaction. Repeating the exact request with its original key returns the same event IDs. A conflicting key or unavailable prior event is rejected.

Path and query parameters

Name Where Type Required Description
id path string required Stable resource ID. You can provide one on create where supported, otherwise Plaineo generates it.

Request body fields

Name Where Type Required Description
idempotencyKey body string required A stable account-wide key for this exact ordered event batch and destination.
timeZone body string required IANA timezone for the events.
events body array<object> required

Responses: 200 Events in input order, 400 BadRequest, 401 Unauthorized, 403 Forbidden, 404 NotFound, 409 Conflicting idempotency key or unavailable task ID, 503 Integration authorization or a required upstream service is unavailable

GET /api/v1/tasks/analyze-content/access

Check intake authorization without running AI

Used by remote MCP before downloading a client attachment. Does not reserve or consume AI quota.

Responses: 200 Credential is authorized for intake, 401 Unauthorized, 403 Forbidden, 503 Integration authorization or a required upstream service is unavailable