Onplana Developer API

Personal Access Tokens - programmatic API access

GitHub OpenAPI

Operations 3

GET /api-tokens List your personal access tokens #
POST /api-tokens Create a personal access token #
DELETE /api-tokens/{id} Revoke a personal access token #

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-developer-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-developer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onplana Developer 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: developer
  description: Personal Access Tokens - programmatic API access
paths:
  /api-tokens:
    get:
      tags:
      - developer
      summary: List your personal access tokens
      description: Returns all non-revoked PATs for the authenticated user across all organizations. **JWT only** - PATs cannot list tokens.
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Array of token records (no secrets)
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiToken'
        '400':
          description: Validation error
        '401':
          description: Unauthorized - missing or invalid JWT
      operationId: getApiTokens
      x-operation-id-source: derived
    post:
      tags:
      - developer
      summary: Create a personal access token
      description: Creates a new PAT and returns the **plaintext token once**. Store it securely - it cannot be retrieved again. **JWT only** - PATs cannot create other PATs.
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                organizationId:
                  type: string
                  format: cuid
                  pattern: ^[cC][0-9a-z]{6,}$
                scopes:
                  minItems: 1
                  maxItems: 15
                  type: array
                  items:
                    type: string
                    enum:
                    - PROJECTS_READ
                    - PROJECTS_WRITE
                    - TASKS_READ
                    - TASKS_WRITE
                    - MEMBERS_READ
                    - WEBHOOKS_MANAGE
                    - TIMESHEETS_READ
                    - TIMESHEETS_WRITE
                    - COMPLIANCE_READ
                    - REPORTS_READ
                    - AUDIT_READ
                    - PLAYGROUND_READ
                    - PLAYGROUND_WRITE
                    - MCP_AGENT
                    - WILDCARD
                expiresAt:
                  type: string
                  format: date-time
                  pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                  description: Optional expiry (ISO 8601). An agent_connect token without one expires in 90 days
                purpose:
                  type: string
                  minLength: 1
                  maxLength: 32
                  description: agent_connect for a token minted by Connect Agent; any other value is a label
                agentProvider:
                  type: string
                  enum:
                  - CLAUDE_CODE
                  - CLAUDE_AI
                  - CLAUDE_DESKTOP
                  - CODEX
                  - CURSOR
                  - WINDSURF
                  - COWORK
                  - COPILOT_WORKSPACE
                  - CHATGPT
                  - M365_COPILOT
                  - MCP_USE
                  - GEMINI
                  - ONPLANA_NATIVE
                  - OTHER
                  description: 'With purpose agent_connect: the agent client, so its persona exists at once'
                projectIds:
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    format: cuid
                    pattern: ^[cC][0-9a-z]{6,}$
                  description: Limit the token to these projects of the organization; left out means every project
                notifyWebhookUrl:
                  type: string
                  maxLength: 2048
                  format: uri
                  description: 'With purpose agent_connect and agentProvider: where Onplana pushes events. Public http(s) only'
              required:
              - name
              - organizationId
              - scopes
      responses:
        '201':
          description: Token created - plaintext returned once
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateApiTokenResponse'
        '400':
          description: Validation error
        '401':
          description: Unauthorized - missing or invalid JWT
        '403':
          description: Forbidden - insufficient role
      operationId: postApiTokens
      x-operation-id-source: derived
  /api-tokens/{id}:
    delete:
      tags:
      - developer
      summary: Revoke a personal access token
      description: Soft-revokes the token (sets `revokedAt`). The token immediately stops working.
      security:
      - bearerAuth: []
      - patAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Token UUID
      responses:
        '200':
          description: Token revoked
        '400':
          description: Validation error
        '401':
          description: Unauthorized - missing or invalid JWT
        '403':
          description: Forbidden - insufficient role
        '404':
          description: Token not found
        '409':
          description: Token already revoked
      operationId: deleteApiTokensById
      x-operation-id-source: derived
components:
  schemas:
    ApiToken:
      type: object
      description: A Personal Access Token (PAT) for programmatic API access.
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          description: Human-readable label for this token
        tokenPrefix:
          type: string
          description: First 12 chars of the token (e.g. "pat_AbCdEfGh") - safe to display
        scopes:
          type: array
          items:
            type: string
            enum:
            - PROJECTS_READ
            - PROJECTS_WRITE
            - TASKS_READ
            - TASKS_WRITE
            - MEMBERS_READ
            - WEBHOOKS_MANAGE
            - TIMESHEETS_READ
            - TIMESHEETS_WRITE
            - COMPLIANCE_READ
            - REPORTS_READ
            - AUDIT_READ
            - PLAYGROUND_READ
            - PLAYGROUND_WRITE
            - MCP_AGENT
            - WILDCARD
        organizationId:
          type: string
          format: uuid
        orgPlan:
          type: string
          description: Plan snapshot at creation time
        expiresAt:
          type: string
          format: date-time
          nullable: true
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
        organization:
          type: object
          properties:
            name:
              type: string
            slug:
              type: string
      required:
      - id
      - name
      - tokenPrefix
      - scopes
      - organizationId
      - createdAt
    CreateApiTokenResponse:
      allOf:
      - $ref: '#/components/schemas/ApiToken'
      - type: object
        properties:
          token:
            type: string
            description: Plaintext token - shown ONCE; save it immediately.
          warning:
            type: string
        required:
        - token
        - warning
  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.