Onplana Baselines API

Project baselines: a snapshot of a project's plan to compare against later

GitHub OpenAPI

Operations 8

GET /baselines List a project's baselines #
POST /baselines Take a baseline of a project now #
GET /baselines/access What this workspace may do with baselines #
GET /baselines/revisions List a project's schedule revisions #
POST /baselines/revisions Store a parsed revision on a project #
POST /baselines/revisions/send Email a schedule revision review to typed addresses #
POST /baselines/revisions/compare Compare two schedule revisions #
GET /baselines/{id}/mspdi A baseline as Microsoft Project XML #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onplana-com:onplana-com-baselines-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

onplana-com-baselines-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onplana Baselines 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: baselines
  description: 'Project baselines: a snapshot of a project''s plan to compare against later'
paths:
  /baselines:
    get:
      tags:
      - baselines
      summary: List a project's baselines
      description: 'Needs the PROJECTS_READ scope on a token. No plan gate on the route while the operator switch baselines_pro_enabled is off (the default). While it is on, a workspace below Pro is refused with 402 BASELINES_NOT_ON_PLAN: a capture or delete unless it captured a baseline in the 90 days before the switch turned on (then for 30 days after), and a read 30 days after it turned on. projectId is required (400 without it), and the caller must be able to read that project (404 otherwise). Newest first; each row is id, name, takenAt and takenBy, without the snapshot.'
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      - name: projectId
        in: query
        required: true
        schema:
          type: string
        description: The project
      responses:
        '200':
          description: 'Array of baselines: id, name, takenAt, takenBy'
        '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: projectId is not a project the caller may read
      operationId: getBaselines
      x-operation-id-source: derived
    post:
      tags:
      - baselines
      summary: Take a baseline of a project now
      description: 'Needs the PROJECTS_WRITE scope on a token. No plan gate on the route while the operator switch baselines_pro_enabled is off (the default). While it is on, a workspace below Pro is refused with 402 BASELINES_NOT_ON_PLAN: a capture or delete unless it captured a baseline in the 90 days before the switch turned on (then for 30 days after), and a read 30 days after it turned on. Only the project''s owner or a manager of it (403 otherwise). Stores a snapshot of the project, its tasks and its links under the name given. The answer carries the snapshot, with its cost figures taken out when the caller may not read the project''s cost.'
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                projectId:
                  type: string
                name:
                  default: Baseline
                  type: string
                  minLength: 1
              required:
              - projectId
      responses:
        '201':
          description: The baseline, with takenBy and its snapshot
        '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 project in the organization
      operationId: postBaselines
      x-operation-id-source: derived
  /baselines/access:
    get:
      tags:
      - baselines
      summary: What this workspace may do with baselines
      description: 'Needs the PROJECTS_READ scope on a token. The plan gate on the baseline routes, answered before anything is refused, so a client can draw its lock. No plan gate on the route while the operator switch baselines_pro_enabled is off (the default). While it is on, a workspace below Pro is refused with 402 BASELINES_NOT_ON_PLAN: a capture or delete unless it captured a baseline in the 90 days before the switch turned on (then for 30 days after), and a read 30 days after it turned on. switchOn says whether that switch is on; canWrite covers capture and delete, canRead the list, a snapshot, the variance and the Project XML. requiredPlan is the plan code that lifts the gate (null while the switch is off); grandfatheredUntil and readUntil are the ends of the two windows (ISO), null when they do not apply.'
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      responses:
        '200':
          description: The workspace's baseline access
          content:
            application/json:
              schema:
                type: object
                required:
                - switchOn
                - canWrite
                - canRead
                - requiredPlan
                - grandfatheredUntil
                - readUntil
                properties:
                  switchOn:
                    type: boolean
                  canWrite:
                    type: boolean
                  canRead:
                    type: boolean
                  requiredPlan:
                    type: string
                    nullable: true
                  grandfatheredUntil:
                    type: string
                    nullable: true
                  readUntil:
                    type: string
                    nullable: true
        '400':
          description: Validation error
        '401':
          description: Unauthorized - missing or invalid JWT
      operationId: getBaselinesAccess
      x-operation-id-source: derived
  /baselines/revisions:
    get:
      tags:
      - baselines
      summary: List a project's schedule revisions
      description: Needs the PROJECTS_READ scope on a token. A project's schedule revisions (baselines stored from a revised file opened in Onplana Schedule), newest first, at most 100. projectId is required, and the caller must be able to read that project (404 otherwise). Each row is id, label, fileName, takenAt, takenBy and reviewedAt. 404 REVISION_REVIEW_OFF while schedule_revision_review_enabled is off.
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      - name: projectId
        in: query
        required: true
        schema:
          type: string
        description: The project
      responses:
        '200':
          description: '{ revisions: RevisionSummary[] }'
        '400':
          description: Validation error
        '401':
          description: Unauthorized - missing or invalid JWT
        '403':
          description: Forbidden - insufficient role
        '404':
          description: The switch is off (REVISION_REVIEW_OFF), or projectId is not a project the caller may read
      operationId: getBaselinesRevisions
      x-operation-id-source: derived
    post:
      tags:
      - baselines
      summary: Store a parsed revision on a project
      description: 'Needs the PROJECTS_WRITE scope on a token. Store a parsed revision on a project as a new baseline; the working plan is not changed and no second project is made. Body from lib/scheduleRevisionSchemas.ts addRevisionSchema: projectId, fileName, label, statusDate, tasks (1 to 5,000) and dependencies (up to 20,000). Only the project''s owner or a manager of it (403 otherwise). 60 a workspace an hour (429). 404 REVISION_REVIEW_OFF while the switch is off.'
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                projectId:
                  type: string
                  minLength: 1
                  maxLength: 64
                fileName:
                  type: string
                  minLength: 1
                  maxLength: 255
                label:
                  nullable: true
                  type: string
                  maxLength: 120
                statusDate:
                  nullable: true
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                  description: YYYY-MM-DD
                tasks:
                  minItems: 1
                  maxItems: 5000
                  type: array
                  items:
                    type: object
                    properties:
                      uid:
                        type: string
                        minLength: 1
                        maxLength: 64
                      taskId:
                        nullable: true
                        type: string
                        minLength: 1
                        maxLength: 64
                      parentUid:
                        nullable: true
                        type: string
                        minLength: 1
                        maxLength: 64
                      title:
                        type: string
                        maxLength: 500
                      startDate:
                        nullable: true
                        type: string
                        pattern: ^\d{4}-\d{2}-\d{2}$
                      dueDate:
                        nullable: true
                        type: string
                        pattern: ^\d{4}-\d{2}-\d{2}$
                      durationMinutes:
                        nullable: true
                        type: number
                        minimum: 0
                        maximum: 100000000
                      percentComplete:
                        nullable: true
                        type: number
                        minimum: 0
                        maximum: 100
                      actualStart:
                        nullable: true
                        type: string
                        pattern: ^\d{4}-\d{2}-\d{2}$
                      isMilestone:
                        type: boolean
                      resourceNames:
                        nullable: true
                        type: string
                        maxLength: 500
                      constraintType:
                        nullable: true
                        type: string
                        maxLength: 8
                      constraintDate:
                        nullable: true
                        type: string
                        pattern: ^\d{4}-\d{2}-\d{2}$
                    required:
                    - uid
                    - title
                dependencies:
                  default: []
                  maxItems: 20000
                  type: array
                  items:
                    type: object
                    properties:
                      predecessorUid:
                        type: string
                        minLength: 1
                        maxLength: 64
                      successorUid:
                        type: string
                        minLength: 1
                        maxLength: 64
                      type:
                        default: FINISH_TO_START
                        type: string
                        enum:
                        - FINISH_TO_START
                        - START_TO_START
                        - FINISH_TO_FINISH
                        - START_TO_FINISH
                      lagMinutes:
                        nullable: true
                        type: number
                        minimum: -100000000
                        maximum: 100000000
                    required:
                    - predecessorUid
                    - successorUid
              required:
              - projectId
              - fileName
              - tasks
      responses:
        '201':
          description: The revision, the previous revision id, and how many rows matched the project's tasks
        '400':
          description: VALIDATION or DUPLICATE_UID
        '401':
          description: Unauthorized - missing or invalid JWT
        '403':
          description: Forbidden - insufficient role
        '404':
          description: The switch is off, or no such project in the organization
        '429':
          description: More than 60 revisions in an hour in the workspace
      operationId: postBaselinesRevisions
      x-operation-id-source: derived
  /baselines/revisions/send:
    post:
      tags:
      - baselines
      summary: Email a schedule revision review to typed addresses
      description: 'Needs the PROJECTS_WRITE scope on a token. Email the review of two plans of a project (the same sides and defaults as compare) to addresses the caller typed. Never spends: a review not yet paid for answers 402 REVISION_REVIEW_LOCKED; an already reviewed or included one is sent. Project owner or manager only (403). The external-share guard of document shares applies: a verified email (403 EMAIL_UNVERIFIED), the org''s external-share setting (403 EXTERNAL_SHARE_DISABLED) and the per-mailbox recipient budget (429 SHARE_RATE_LIMITED). Under schedule_revision_review_send_mode, dry-run and off send nothing and answer sent 0 with a message. Answer { sent, mode, refused: [{ email, reason }], recipients, message }. 404 REVISION_REVIEW_OFF while schedule_revision_review_enabled is off.'
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                projectId:
                  type: string
                  minLength: 1
                  maxLength: 64
                fromId:
                  type: string
                  minLength: 1
                  maxLength: 64
                toId:
                  type: string
                  minLength: 1
                  maxLength: 64
                recipients:
                  minItems: 1
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    maxLength: 320
                note:
                  type: string
                  maxLength: 1000
              required:
              - projectId
              - recipients
      responses:
        '200':
          description: '{ sent, mode, refused, recipients, message }'
        '400':
          description: VALIDATION, NO_VALID_RECIPIENTS, SAME_SIDES or REVISION_REQUIRED
        '401':
          description: Unauthorized - missing or invalid JWT
        '402':
          description: 'REVISION_REVIEW_LOCKED: the review is not paid for yet; nothing was spent'
        '403':
          description: FORBIDDEN, EMAIL_UNVERIFIED, EXTERNAL_SHARE_DISABLED or SANDBOX_REFUSED
        '404':
          description: The switch is off, the project, or REVISION_NOT_FOUND
        '409':
          description: NO_REVISION
        '429':
          description: SHARE_RATE_LIMITED, with Retry-After
      operationId: postBaselinesRevisionsSend
      x-operation-id-source: derived
  /baselines/revisions/compare:
    post:
      tags:
      - baselines
      summary: Compare two schedule revisions
      description: 'Needs the PROJECTS_READ scope on a token. Compare two revisions, or a revision and the working plan: moved tasks, link changes, slipped milestones, owners of the slipped path, DCMA per side, and P80 where a working-plan risk run exists. The first review in a workspace is free; later reviews need a plan with schedulePaid or one Schedule credit, once per revision. Body compareRevisionsSchema: projectId, fromId, toId (a revision or baseline id, or working), maxTasks. 402 REVISION_REVIEW_LOCKED carries the plan, the credit balance and the trial claim. 404 REVISION_REVIEW_OFF while the switch is off.'
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                projectId:
                  type: string
                  minLength: 1
                  maxLength: 64
                fromId:
                  type: string
                  minLength: 1
                  maxLength: 64
                toId:
                  type: string
                  minLength: 1
                  maxLength: 64
                maxTasks:
                  type: integer
                  minimum: 1
                  maximum: 1000
                  description: How many moved tasks to list; 200 when omitted
              required:
              - projectId
      responses:
        '200':
          description: 'The review: from, to, paywall, comparison and p80'
        '400':
          description: VALIDATION, SAME_SIDES or REVISION_REQUIRED
        '401':
          description: Unauthorized - missing or invalid JWT
        '402':
          description: 'REVISION_REVIEW_LOCKED: the free review is used and the plan has no schedulePaid and no credit was spent'
        '403':
          description: Forbidden - insufficient role
        '404':
          description: The switch is off, the project, or REVISION_NOT_FOUND
        '409':
          description: 'NO_REVISION: the project has no revision'
      operationId: postBaselinesRevisionsCompare
      x-operation-id-source: derived
  /baselines/{id}/mspdi:
    get:
      tags:
      - baselines
      summary: A baseline as Microsoft Project XML
      description: 'Needs the PROJECTS_READ scope on a token. No plan gate on the route while the operator switch baselines_pro_enabled is off (the default). While it is on, a workspace below Pro is refused with 402 BASELINES_NOT_ON_PLAN: a capture or delete unless it captured a baseline in the 90 days before the switch turned on (then for 30 days after), and a read 30 days after it turned on. The plan as it stood when the baseline was taken, as a file Onplana Schedule opens. Readable by whoever may read the baseline''s project (404 otherwise). Task costs are left out when the caller may not read the project''s cost. Three response headers describe it: X-Onplana-Baseline-Name (URL-encoded), X-Onplana-Baseline-Taken-At, and X-Onplana-Baseline-Links, which is not-recorded for a baseline taken before links were kept. A baseline with no tasks answers 422 BASELINE_EMPTY.'
      parameters:
      - $ref: '#/components/parameters/OrgHeader'
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Baseline id
      responses:
        '200':
          description: The MSPDI file
          content:
            application/xml:
              schema:
                type: string
        '400':
          description: Validation error
        '401':
          description: Unauthorized - missing or invalid JWT
        '402':
          description: BASELINES_NOT_ON_PLAN, only while baselines_pro_enabled is on
        '403':
          description: Forbidden - insufficient role
        '404':
          description: No such baseline on a project the caller may read
        '422':
          description: BASELINE_EMPTY, or FILE_TOO_COMPLEX
        '503':
          description: 'MPXJ_UNAVAILABLE: the export service is briefly down'
      operationId: getBaselinesByIdMspdi
      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.