Onplana Workspace API
Document libraries + lists per-resource sharing: restrict a resource and grant VIEW/CONTRIBUTE/MANAGE to users and teams (org + project scope)
Document libraries + lists per-resource sharing: restrict a resource and grant VIEW/CONTRIBUTE/MANAGE to users and teams (org + project scope)
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/onplana-com:onplana-com-workspace-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Onplana Workspace API
version: 1.0.0
description: AI-native Project Management System REST API. All org-scoped routes require the `X-Organization-Id` header. Most routes require a Bearer JWT obtained from `/auth/login`.
servers:
- url: /api
security:
- bearerAuth: []
- patAuth: []
tags:
- name: Workspace
description: 'Document libraries + lists per-resource sharing: restrict a resource and grant VIEW/CONTRIBUTE/MANAGE to users and teams (org + project scope)'
paths:
/workspace/libraries/{id}/grants:
get:
tags:
- Workspace
summary: List a library's sharing grants
description: Returns `{ restrictAccess, grants[] }`. Requires MANAGE on the library (creator / org admin / project OWNER-MANAGER / a MANAGE grant).
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: Library UUID
responses:
'200':
description: Restrict flag + grant list
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: getWorkspaceLibrariesByIdGrants
x-operation-id-source: derived
post:
tags:
- Workspace
summary: Add or update a library sharing grant
description: Upsert a grant for a USER or TEAM. On a PROJECT resource a USER grantee must already be a project member (members-only boundary); add them as a guest first, else 400 GRANTEE_NOT_PROJECT_MEMBER.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: Library UUID
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
granteeType:
type: string
enum:
- TEAM
- USER
granteeId:
type: string
minLength: 1
accessLevel:
type: string
enum:
- VIEW
- CONTRIBUTE
- MANAGE
required:
- granteeType
- granteeId
- accessLevel
responses:
'201':
description: Grant created or updated
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postWorkspaceLibrariesByIdGrants
x-operation-id-source: derived
/workspace/tables/{id}/grants:
get:
tags:
- Workspace
summary: List a list (table)'s sharing grants
description: List variant of the library grants endpoint, same shape, resourceType TABLE.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: List (table) UUID
responses:
'200':
description: Restrict flag + grant list
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: getWorkspaceTablesByIdGrants
x-operation-id-source: derived
post:
tags:
- Workspace
summary: Add or update a list (table) sharing grant
description: Upsert a grant on a list. Same members-only boundary as libraries on project scope.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: List (table) UUID
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
granteeType:
type: string
enum:
- TEAM
- USER
granteeId:
type: string
minLength: 1
accessLevel:
type: string
enum:
- VIEW
- CONTRIBUTE
- MANAGE
required:
- granteeType
- granteeId
- accessLevel
responses:
'201':
description: Grant created or updated
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postWorkspaceTablesByIdGrants
x-operation-id-source: derived
/workspace/tables/import/preview:
post:
tags:
- Workspace
summary: Preview creating a list from a CSV / Excel file
description: 'Same preview as the into-an-existing-list route, with no columns to match against, so every header becomes a new column whose type is inferred from the values. Writes nothing. multipart/form-data with `file`, exactly one of `projectId` / `proposalId` / `scope=org`, and an optional `mapping` JSON field. Also returns `suggestedName`, taken from the file name. Gated like creating a list: membership of the scope plus the content-write permission; JWT only (the workspace router denies PATs).'
parameters:
- $ref: '#/components/parameters/OrgHeader'
responses:
'200':
description: 'Preview: sheet shape, mapping, plan, quota and a suggested list name'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postWorkspaceTablesImportPreview
x-operation-id-source: derived
/workspace/tables/import:
post:
tags:
- Workspace
summary: Create a list from a CSV / Excel file
description: 'Creates the list and fills it in one call. multipart/form-data with `file`, the scope, the confirmed `mapping`, the `fingerprint` the preview returned, and an optional `name` (the file name is used when it is absent). Every refusal that can run before the create does: the row quota for the whole file (402) and the per-list column ceiling (422). The fingerprint check cannot, because it needs a list to import into, so a mismatch answers 409 SHEET_CHANGED and the list that had just been created is removed again rather than left behind empty. Workflows do NOT run for imported rows. Returns the created list alongside the counts and the batchId.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
responses:
'201':
description: List created and filled; the table, counts and the batchId
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postWorkspaceTablesImport
x-operation-id-source: derived
/workspace/tables/{id}/import:
post:
tags:
- Workspace
summary: Preview a CSV / Excel import into a list
description: 'Parses the upload, proposes or applies a column mapping, and returns what WOULD happen: rows to add, rows it could not read and why, columns and dropdown choices that would be created, and the row quota after. Writes nothing. multipart/form-data with `file` and an optional `mapping` JSON field. CONTRIBUTE-gated on the list; JWT only (the workspace router denies PATs). 415 for a format that is not a spreadsheet, with the project importer named as the place to go instead.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: List (table) UUID
responses:
'200':
description: 'Preview: sheet shape, mapping, plan and quota'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postWorkspaceTablesByIdImport
x-operation-id-source: derived
/workspace/tables/{id}/import/commit:
post:
tags:
- Workspace
summary: Import a CSV / Excel file into a list
description: 'Writes the import in one transaction: new columns, widened dropdown choices, then the rows. multipart/form-data with `file`, the confirmed `mapping`, and the `fingerprint` the preview returned, which is refused with 409 SHEET_CHANGED when it does not match the upload. The whole file is checked against the row quota up front, so an over-quota import is refused with 402 and writes nothing. A file that would take the list past the platform row ceiling per list (SYSTEM_LIMITS.rowsPerList, the same on every plan) is refused whole with 422 SYSTEM_LIMIT_REACHED and also writes nothing. Workflows do NOT run for imported rows. Returns a batchId for undo.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: List (table) UUID
responses:
'201':
description: Rows imported; counts plus the batchId
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postWorkspaceTablesByIdImportCommit
x-operation-id-source: derived
/workspace/tables/{id}/import/{batchId}:
delete:
tags:
- Workspace
summary: Undo one list import
description: 'Removes the rows of one import batch. Bounded two ways: only within a day of the import (409 UNDO_WINDOW_PASSED after that), and a row somebody has EDITED since the import is kept rather than deleted, because it is no longer just a copy of a spreadsheet line. Returns how many were removed and how many were kept for that reason.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: List (table) UUID
- name: batchId
in: path
required: true
schema:
type: string
description: Import batch id from the commit response
responses:
'200':
description: '{ deleted, keptModified }'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: deleteWorkspaceTablesByIdImportByBatchId
x-operation-id-source: derived
/workspace/tables/{id}/rows:
get:
tags:
- Workspace
summary: A list's rows with their cells
description: 'Rows in list order, each with its cells (columnId and value), who created and last changed it, and the files uploaded with it. Three modes: no paging parameter returns the whole list as an array; `page` (with `limit`, at most 500) returns `{ data, total, page, limit, hasMore }`; `cursor` (empty for the first page, then the `nextCursor` of the page before) returns `{ data, nextCursor, total }`, keyset on the row order and id, so no row repeats or is skipped. Cells are text as stored unless `typed=1`, which returns a NUMBER cell as a number, and an empty or unreadable NUMBER cell as null; every other column type stays text. The web grid reads text, so text is the default. Read access to the list is required; JWT only (the workspace router denies PATs).'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: List (table) UUID
- name: typed
in: query
required: false
schema:
type: string
description: 'Set to 1 to return NUMBER cells as numbers (null when empty or not a number). Default: every cell as text.'
- name: cursor
in: query
required: false
schema:
type: string
description: 'Keyset paging: empty for the first page, then the nextCursor of the page before. 400 BAD_CURSOR when it belongs to another list.'
- name: page
in: query
required: false
schema:
type: integer
description: 'Offset paging: the page number, from 1.'
- name: limit
in: query
required: false
schema:
type: integer
description: Rows per page, at most 500.
responses:
'200':
description: 'The rows: an array, or a page object in the paged and cursor modes'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
operationId: getWorkspaceTablesByIdRows
x-operation-id-source: derived
/workspace/tables/{id}/rows/bulk-create:
post:
tags:
- Workspace
summary: Add many rows to a list in one call
description: 'Appends rows, each with its cells, in one transaction: the whole batch lands or none of it does. `rows` is an array, each entry a map of columnId to value (string, number, boolean or null); a row may omit any column. The per-call limits are the MCP tool bulk_create_workspace_rows'' own, a row ceiling and a cell ceiling, whichever is reached first; a batch over either is refused with 400 BULK_ROWS_SIZE, whose message names the ceiling and how many rows of this width fit. An unknown column id is 400 COLUMN_NOT_IN_TABLE and the row quota is checked for the whole batch (402 LIST_ROW_LIMIT_REACHED), and a batch that would take the list past the platform row ceiling per list is 422 SYSTEM_LIMIT_REACHED; none of these writes anything. Gated like adding one row (CONTRIBUTE on the list); JWT only (the workspace router denies PATs). Workflows do NOT run for these rows.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: List (table) UUID
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
rows:
maxItems: 400
type: array
items:
type: object
maxProperties: 3000
additionalProperties:
anyOf:
- type: string
- type: number
- type: boolean
- type: string
nullable: true
enum:
- null
description: Each row a map of columnId to value. At most 200 rows and 3000 cells per call (400 BULK_ROWS_SIZE past either)
required:
- rows
responses:
'201':
description: '{ created, rows: [{ id, order }] } in the order given'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: postWorkspaceTablesByIdRowsBulkCreate
x-operation-id-source: derived
/workspace/documents/{id}/approvals:
get:
tags:
- Workspace
summary: A document's approval status and decisions
description: The status a SET_DOCUMENT_STATUS workflow step last wrote, and who approved or rejected which version, and when. The MCP tool list_document_versions returns the same record.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: Document UUID
responses:
'200':
description: '`{ documentId, status, approvals }`'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'402':
description: 'Plan gate: feature documentApproval, Business and above. Still readable inside a downgrade''s read-only window'
'404':
description: Document not found, or not visible to the caller
operationId: getWorkspaceDocumentsByIdApprovals
x-operation-id-source: derived
/workspace/grants/{grantId}:
delete:
tags:
- Workspace
summary: Remove a sharing grant (library or list)
description: 'resourceType-agnostic: resolves the owning library or list from the grant row, then MANAGE-gates the caller.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: grantId
in: path
required: true
schema:
type: string
description: Grant UUID
responses:
'200':
description: Grant removed
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: deleteWorkspaceGrantsByGrantId
x-operation-id-source: derived
/workspace/libraries/{id}/restrict:
put:
tags:
- Workspace
summary: Toggle restrict-access on a library
description: When restrictAccess=true, role-based access is bypassed and only explicit grants (plus org admin / creator) reach the library. Restricting cuts pre-existing external share links of the library's documents. MANAGE-gated.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: Library UUID
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
restrictAccess:
type: boolean
required:
- restrictAccess
responses:
'200':
description: Updated library
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: putWorkspaceLibrariesByIdRestrict
x-operation-id-source: derived
/workspace/tables/{id}/restrict:
put:
tags:
- Workspace
summary: Toggle restrict-access on a list (table)
description: List variant of the library restrict toggle. MANAGE-gated.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: List (table) UUID
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
restrictAccess:
type: boolean
required:
- restrictAccess
responses:
'200':
description: Updated list
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
operationId: putWorkspaceTablesByIdRestrict
x-operation-id-source: derived
components:
parameters:
OrgHeader:
name: X-Organization-Id
in: header
required: true
description: UUID of the active organization. Sets org context for all scoped operations.
schema:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
patAuth:
type: apiKey
in: header
name: Authorization
description: 'Personal Access Token: `Authorization: Bearer pat_<token>`. Org context is embedded in the token - no `X-Organization-Id` header required.'
oauthApp:
type: oauth2
description: Third-party OAuth app (confidential client). Register the app under Settings > Developer > OAuth apps; the person approving picks the workspace the token acts in. Tokens last 90 days and extend while in use; there is no refresh token, so a dormant connection re-consents.
flows:
authorizationCode:
authorizationUrl: /oauth/authorize
tokenUrl: /oauth/token
scopes:
tasks: Read and write the tasks assigned to the person, read their projects, log their time.
schedule: Read projects and create or update them (publish a schedule).
mcp: The MCP tool surface, as a member-capped agent persona.
webhooks: Create, list, change and delete the app's own webhook subscriptions.