Onplana Imports API
Importing a schedule file as a project, or into one
Importing a schedule file as a project, or into one
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-imports-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 Imports 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: Imports
description: Importing a schedule file as a project, or into one
paths:
/migrations/upload:
post:
tags:
- Imports
summary: Upload a schedule file and get a preview of what an import would create
description: 'Needs the PROJECTS_WRITE scope on a token. No plan gate on the route. One file in the multipart field `file`, at most 50 MB: Microsoft Project (.mpp, .xml, .mpx), Primavera (.xer), ProjectLibre (.pod), GanttProject (.gan) or a spreadsheet (.xlsx, .csv). Nothing is imported yet: the answer is a jobId and the preview, and POST /migrations/{id}/import runs it. A file that cannot be read answers 400 with a sentence, a code and whether the failed file can be sent to the team (fileReport). A spreadsheet that does not look like a plan answers 422 NOT_A_PLAN or NO_TASK_TITLES with `sheet`, its headers and samples, so the columns can be mapped and the file sent again with columnOverrides. A plan over the task limit answers 422 FILE_TOO_COMPLEX with taskCount.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
required:
- file
properties:
file:
type: string
format: binary
columnOverrides:
type: string
description: 'For a spreadsheet: the column mapping, as JSON'
responses:
'201':
description: 'Parsed: `{ jobId, preview }`, and `sheet` for a spreadsheet'
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
'413':
description: The file is over 50 MB
'415':
description: Not one of the file types above
'422':
description: NOT_A_PLAN, NO_TASK_TITLES or FILE_TOO_COMPLEX
operationId: postMigrationsUpload
x-operation-id-source: derived
/migrations/{id}/import:
post:
tags:
- Imports
summary: Run an uploaded file's import, as a new project or into an existing one
description: 'Needs the PROJECTS_WRITE scope on a token. The job must be one the caller uploaded (404 otherwise). Without targetProjectId it creates a project, which counts against the plan''s project limit (402 PROJECT_LIMIT_REACHED with limit and used). With targetProjectId it adds the file''s tasks to that project and creates none; the caller must be able to add content to it (404 otherwise). The answer is { projectId, appended, result, undoUntil }: undoUntil is until when POST /migrations/{id}/undo takes the import back. A failed import answers 500 with the reason and leaves the job FAILED.'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: The jobId from the upload
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
targetProjectId:
type: string
description: Add to this project instead of creating one
projectName:
type: string
description: A name for the new project; the file's own name when omitted or empty (400 INVALID_PROJECT_NAME when it is not a valid project name)
resourceEmails:
type: object
additionalProperties:
type: string
description: Email addresses for the file's resources, by resource id (400 INVALID_RESOURCE_EMAILS when malformed)
nonPersonResources:
type: array
items:
type: string
description: Resource ids that are not people, such as equipment (400 INVALID_NON_PERSON_RESOURCES when malformed)
responses:
'200':
description: '`{ projectId, appended, result, undoUntil }`'
'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: No such upload of the caller's, or no such target project the caller may change
'500':
description: The import failed; the body says why
operationId: postMigrationsByIdImport
x-operation-id-source: derived
/migrations/{id}/field-destinations:
get:
tags:
- Imports
summary: The workspace's own task fields an uploaded file's custom fields can land in
description: 'Needs the PROJECTS_READ scope on a token. For the import wizard''s Field Mapping step. While the operator switch import_field_destination_enabled is off (the default) the answer is { enabled: false, fields: [] } and nothing is read. On, `fields` holds the org-wide task fields (at most 500, by name) and, with targetProjectId, that project''s own when the caller may add content to it, plus the field of the same name for every custom field of the file, whatever the cap. Each says which file field types it can hold (`holds`), and a dropdown or multi-select its `options`. `defaults` gives, by the file''s field id, the field a custom field lands in when no destination is chosen on POST /migrations/{id}/map (null: a new field of the project) and the same-name field passed over because its type cannot hold the values: the rule the import itself applies. The job must be one the caller uploaded (404 otherwise).'
parameters:
- $ref: '#/components/parameters/OrgHeader'
- name: id
in: path
required: true
schema:
type: string
description: The jobId from the upload
- name: targetProjectId
in: query
required: false
schema:
type: string
description: The project the file goes into, when it is not a new one
responses:
'200':
description: '`{ enabled, fields, defaults }`'
content:
application/json:
schema:
type: object
required:
- enabled
- fields
properties:
enabled:
type: boolean
fields:
type: array
items:
type: object
required:
- id
- name
- fieldType
- scope
- holds
properties:
id:
type: string
name:
type: string
fieldType:
type: string
description: The field's type, as custom fields name it (TEXT, TEXTAREA, NUMBER, DROPDOWN and so on)
scope:
type: string
enum:
- org
- project
holds:
type: array
items:
type: string
description: The file field types this field can hold
options:
type: array
items:
type: string
description: A dropdown or multi-select field's list
defaults:
type: object
description: By the file's custom field id. Absent while the switch is off.
additionalProperties:
type: object
properties:
default:
type: string
nullable: true
description: The field it lands in when none is chosen; null for a new field
misfit:
type: string
nullable: true
description: The same-name field passed over because its type cannot hold the values
'400':
description: Validation error
'401':
description: Unauthorized - missing or invalid JWT
'403':
description: Forbidden - insufficient role
'404':
description: No such upload of the caller's
operationId: getMigrationsByIdFieldDestinations
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.