Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Onplana Templates 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: Templates
description: 'Project templates: save and instantiate reusable project structures (PRO+)'
paths:
/templates:
get:
tags:
- Templates
summary: List project templates
description: Returns both org-scoped templates and the system built-ins (available on all plans).
parameters:
- $ref: '#/components/parameters/OrgHeader'
responses:
'200':
description: Array of ProjectTemplate
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
operationId: getTemplates
x-operation-id-source: derived
post:
tags:
- Templates
summary: Save an existing project as a template
description: 'Plan: `templates` (PRO+).'
parameters:
- $ref: '#/components/parameters/OrgHeader'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
description:
type: string
category:
type: string
isPublic:
type: boolean
projectId:
type: string
description: The project to save as a template
snapshot:
description: The template content, instead of projectId. With neither, an empty template
required:
- name
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectTemplate'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'402':
description: Plan gate - feature not available on current plan
'403':
description: Forbidden - insufficient role
operationId: postTemplates
x-operation-id-source: derived
/templates/{id}/instantiate:
post:
tags:
- Templates
summary: Create a new project from a template
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
minLength: 1
description: The new project's name
startDate:
type: string
description: 'The new project''s start: YYYY-MM-DD or an ISO 8601 timestamp (year 1900 to 9999)'
required:
- name
- startDate
responses:
'201':
description: The new project
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'402':
description: Plan gate - feature not available on current plan
'403':
description: Forbidden - insufficient role
'404':
description: Template not found
operationId: postTemplatesByIdInstantiate
x-operation-id-source: derived
/templates/{id}:
delete:
tags:
- Templates
summary: Delete an org template
description: Built-in system templates cannot be deleted.
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Deleted
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'402':
description: Plan gate - feature not available on current plan
'403':
description: Forbidden - insufficient role
'404':
description: Not found
operationId: deleteTemplatesById
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
schemas:
ProjectTemplate:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
description:
type: string
nullable: true
organizationId:
type: string
format: uuid
nullable: true
description: null = system-built-in template (available on all plans).
taskCount:
type: integer
milestoneCount:
type: integer
createdById:
type: string
format: uuid
nullable: true
createdAt:
type: string
format: date-time
required:
- id
- name
- createdAt
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.