Pencil Projects API

Groupings of tasks and content.

GitHub OpenAPI

Operations 10

GET /projects List projects #
POST /projects Create a project #
GET /projects/{id} Get a project #
PATCH /projects/{id} Update a project #
DELETE /projects/{id} delete Project #
POST /projects/{id}/restore restore Project #
GET /projects/{id}/overview get Project Overview #
POST /projects/{id}/status publish Project Status #
GET /projects/{id}/discussion list Project Discussion #
POST /projects/{id}/discussion add Project Comment #

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/pencil-ink:pencil-ink-projects-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

pencil-ink-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pencil Public Projects API
  version: 1.0.0
  description: 'Programmatic access to Pencil tasks, projects, agents, ideas, content, phases, and meetings.


    **Authentication.** Every request must send an org-scoped API key as a bearer token:


    ```

    Authorization: Bearer pk_live_…

    ```


    Create and manage keys in Pencil under **Settings → API Keys**. A key is scoped to a single organization — the org is determined by the key, so you never pass an org id. Each key carries a single coarse role:


    - `read` — may call any `GET` endpoint.

    - `write` — may additionally call `POST`/`PATCH`/`DELETE`. A read-only key calling a write endpoint gets `403`.


    **Responses.** Single resources are wrapped as `{ "data": … }`. List endpoints return `{ "data": [...], "pagination": { "nextCursor": string | null, "hasMore": boolean } }`; pass the returned `nextCursor` back as the `cursor` query param to page. Errors use `{ "error": { "code": …, "message": … } }`.


    **Rate limits.** Requests are limited per key. Exceeding the limit returns `429` with a `Retry-After` header (seconds until the window resets).'
servers:
- url: https://app.pencil.ink/api/v1
  description: This deployment
security:
- bearerAuth: []
tags:
- name: Projects
  description: Groupings of tasks and content.
paths:
  /projects:
    get:
      tags:
      - Projects
      summary: List projects
      description: Requires a `read` (or `write`) key.
      operationId: listProjects
      parameters:
      - name: status
        in: query
        schema:
          $ref: '#/components/schemas/ProjectStatus'
        description: Filter by status.
      - name: customerId
        in: query
        schema:
          type: string
      - name: productId
        in: query
        schema:
          type: string
      - name: query
        in: query
        schema:
          type: string
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of projects.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Project'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      tags:
      - Projects
      summary: Create a project
      description: Requires a `write` key.
      operationId: createProject
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectCreate'
      responses:
        '201':
          $ref: '#/components/responses/ProjectResource'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
  /projects/{id}:
    parameters:
    - $ref: '#/components/parameters/PathId'
    get:
      tags:
      - Projects
      summary: Get a project
      operationId: getProject
      responses:
        '200':
          $ref: '#/components/responses/ProjectResource'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      tags:
      - Projects
      summary: Update a project
      description: Requires a `write` key.
      operationId: updateProject
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectUpdate'
      responses:
        '200':
          $ref: '#/components/responses/ProjectResource'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: deleteProject
      tags:
      - Projects
      summary: delete Project
      description: Uses the authenticated key creator's current permissions. Writes require a write key. Project customer/product visibility and member write permissions are enforced. Reuse Idempotency-Key or idempotencyKey only with an identical request.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The authorized resource or acknowledgement.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Stale revision, sales state conflict or idempotency key reused with a different payload.
  /projects/{id}/restore:
    post:
      operationId: restoreProject
      tags:
      - Projects
      summary: restore Project
      description: Uses the authenticated key creator's current permissions. Writes require a write key. Project customer/product visibility and member write permissions are enforced. Reuse Idempotency-Key or idempotencyKey only with an identical request.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The authorized resource or acknowledgement.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Stale revision, sales state conflict or idempotency key reused with a different payload.
  /projects/{id}/overview:
    get:
      operationId: getProjectOverview
      tags:
      - Projects
      summary: get Project Overview
      description: Uses the authenticated key creator's current permissions. Writes require a write key. Project customer/product visibility and member write permissions are enforced. Reuse Idempotency-Key or idempotencyKey only with an identical request.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The authorized resource or acknowledgement.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Stale revision, sales state conflict or idempotency key reused with a different payload.
  /projects/{id}/status:
    post:
      operationId: publishProjectStatus
      tags:
      - Projects
      summary: publish Project Status
      description: Uses the authenticated key creator's current permissions. Writes require a write key. Project customer/product visibility and member write permissions are enforced. Reuse Idempotency-Key or idempotencyKey only with an identical request.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectStatusInput'
      responses:
        '200':
          description: The authorized resource or acknowledgement.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Stale revision, sales state conflict or idempotency key reused with a different payload.
  /projects/{id}/discussion:
    get:
      operationId: listProjectDiscussion
      tags:
      - Projects
      summary: list Project Discussion
      description: Uses the authenticated key creator's current permissions. Writes require a write key. Project customer/product visibility and member write permissions are enforced. Reuse Idempotency-Key or idempotencyKey only with an identical request.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: cursor
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 30
      - name: parentSourceTable
        in: query
        schema:
          type: string
      - name: parentSourceId
        in: query
        schema:
          type: string
      responses:
        '200':
          description: A bounded page. Follow pagination.nextCursor even when data is empty.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Stale revision, sales state conflict or idempotency key reused with a different payload.
    post:
      operationId: addProjectComment
      tags:
      - Projects
      summary: add Project Comment
      description: Uses the authenticated key creator's current permissions. Writes require a write key. Project customer/product visibility and member write permissions are enforced. Reuse Idempotency-Key or idempotencyKey only with an identical request.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectCommentInput'
      responses:
        '200':
          description: The authorized resource or acknowledgement.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Stale revision, sales state conflict or idempotency key reused with a different payload.
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key (`unauthorized`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ProjectResource:
      description: A single project.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: '#/components/schemas/Project'
    Forbidden:
      description: The key is read-only and may not write (`forbidden`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded (`rate_limited`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds until the rate-limit window resets.
    NotFound:
      description: Resource not found in this org (`not_found`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ValidationError:
      description: Malformed request or invalid field (`validation_error`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    ProjectCreate:
      type: object
      required:
      - name
      properties:
        name:
          type: string
        customerId:
          type: string
          nullable: true
        productId:
          type: string
          nullable: true
        leadAgentId:
          type: string
          nullable: true
        description:
          type: string
        dueDate:
          type: integer
          description: Epoch ms.
        projectType:
          $ref: '#/components/schemas/ProjectType'
        columnLabels:
          type: object
          additionalProperties: false
          properties:
            backlog:
              type: string
            inbox:
              type: string
            in_progress:
              type: string
            blocked:
              type: string
            review:
              type: string
            done:
              type: string
        autoCloseOnMerge:
          type: boolean
        reviewGateMode:
          type: string
          enum:
          - inherit
          - override
        reviewGates:
          type: array
          maxItems: 2
          items:
            type: object
            additionalProperties: false
            required:
            - reviewType
            - agentId
            properties:
              reviewType:
                type: string
                enum:
                - qa
                - security
              agentId:
                type: string
              browserMode:
                type: string
                enum:
                - 'off'
                - optional
                - required
    ProjectStatus:
      type: string
      enum:
      - active
      - paused
      - on_hold
      - completed
      - archived
    ProjectStatusInput:
      type: object
      properties:
        health:
          type: string
          enum:
          - on_track
          - at_risk
          - off_track
          - not_assessed
        reason:
          type: string
          maxLength: 500
        update:
          type: string
          maxLength: 4000
      required:
      - health
      - reason
      - update
      additionalProperties: false
    ProjectCommentInput:
      type: object
      properties:
        content:
          type: string
        idempotencyKey:
          type: string
          minLength: 1
          maxLength: 200
          description: Unique retry key. Reuse with exactly the same arguments after an uncertain result. Never reuse for a different change.
        parent:
          type: object
          additionalProperties: false
          required:
          - sourceTable
          - sourceId
          properties:
            sourceTable:
              type: string
            sourceId:
              type: string
      required:
      - content
      - idempotencyKey
      additionalProperties: false
    ProjectType:
      type: string
      enum:
      - kanban
      - content
    ProjectUpdate:
      type: object
      properties:
        cascade:
          type: boolean
          description: Cascade an explicit customer assignment/clear to all project tasks.
        cascadeOnClear:
          type: boolean
          description: Clear task products too when productId is null. Setting a product always cascades.
        name:
          type: string
        customerId:
          type: string
          nullable: true
        productId:
          type: string
          nullable: true
        leadAgentId:
          type: string
          nullable: true
        description:
          type: string
        status:
          $ref: '#/components/schemas/ProjectStatus'
        dueDate:
          type: integer
          nullable: true
          description: Epoch ms; null clears.
        projectType:
          $ref: '#/components/schemas/ProjectType'
        columnLabels:
          type: object
          additionalProperties: false
          properties:
            backlog:
              type: string
            inbox:
              type: string
            in_progress:
              type: string
            blocked:
              type: string
            review:
              type: string
            done:
              type: string
        autoCloseOnMerge:
          type: boolean
        reviewGateMode:
          type: string
          enum:
          - inherit
          - override
        reviewGates:
          type: array
          maxItems: 2
          items:
            type: object
            additionalProperties: false
            required:
            - reviewType
            - agentId
            properties:
              reviewType:
                type: string
                enum:
                - qa
                - security
              agentId:
                type: string
              browserMode:
                type: string
                enum:
                - 'off'
                - optional
                - required
    Project:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        status:
          $ref: '#/components/schemas/ProjectStatus'
        projectType:
          $ref: '#/components/schemas/ProjectType'
        dueDate:
          type: integer
          nullable: true
          description: Epoch ms.
        leadAgentId:
          type: string
          nullable: true
        productId:
          type: string
          nullable: true
        customerId:
          type: string
          nullable: true
        taskCount:
          type: integer
        createdAt:
          type: integer
          description: Epoch ms.
        updatedAt:
          type: integer
          nullable: true
          description: Epoch ms.
        columnLabels:
          type: object
          additionalProperties: false
          properties:
            backlog:
              type: string
            inbox:
              type: string
            in_progress:
              type: string
            blocked:
              type: string
            review:
              type: string
            done:
              type: string
        autoCloseOnMerge:
          type: boolean
        reviewGateMode:
          type: string
          enum:
          - inherit
          - override
        reviewGates:
          type: array
          maxItems: 2
          items:
            type: object
            additionalProperties: false
            required:
            - reviewType
            - agentId
            properties:
              reviewType:
                type: string
                enum:
                - qa
                - security
              agentId:
                type: string
              browserMode:
                type: string
                enum:
                - 'off'
                - optional
                - required
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - unauthorized
              - forbidden
              - rate_limited
              - validation_error
              - phase_gate_locked
              - conflict
              - not_found
              - internal_error
            message:
              type: string
    Pagination:
      type: object
      properties:
        nextCursor:
          type: string
          nullable: true
          description: Cursor for the next page, or null when there are no more results.
        hasMore:
          type: boolean
  parameters:
    PathId:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: The resource id.
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
      description: Page size (clamped to 1–100, default 25).
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
      description: Opaque pagination cursor (`pagination.nextCursor` from a previous page).
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Org-scoped API key, e.g. `pk_live_…`.