Pencil Tasks API

Work items on the board.

GitHub OpenAPI

Operations 9

GET /priorities List configured priorities #
GET /tasks List tasks #
POST /tasks Create a task #
GET /tasks/{id} Get a task #
PATCH /tasks/{id} Update a task #
DELETE /tasks/{id} Delete a task #
GET /tasks/{id}/checklist Get a task checklist #
PATCH /tasks/{id}/checklist Toggle a task checklist item #
GET /task-statuses List configured task statuses #

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-tasks-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-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pencil Public Tasks 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: Tasks
  description: Work items on the board.
paths:
  /priorities:
    get:
      tags:
      - Tasks
      summary: List configured priorities
      description: Returns priority keys, display names, urgency (basePriority), and archived flags in display order for the API key's default workspace. Use an active key when writing a priority.
      responses:
        '200':
          description: Configured priorities in a data envelope
      operationId: getPriorities
      x-operation-id-source: derived
  /tasks:
    get:
      tags:
      - Tasks
      summary: List tasks
      description: Requires a `read` (or `write`) key.
      operationId: listTasks
      parameters:
      - name: status
        in: query
        schema:
          $ref: '#/components/schemas/TaskStatus'
        description: Filter by status.
      - name: projectId
        in: query
        schema:
          type: string
        description: Filter to a single project.
      - name: includeArchived
        in: query
        schema:
          type: boolean
          default: false
        description: When true, include archived tasks in the page.
      - name: customerId
        in: query
        schema:
          type: string
        description: Filter to tasks linked to this customer.
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of tasks.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Task'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      tags:
      - Tasks
      summary: Create a task
      description: Requires a `write` key.
      operationId: createTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TaskCreate'
      responses:
        '201':
          $ref: '#/components/responses/TaskResource'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
  /tasks/{id}:
    parameters:
    - $ref: '#/components/parameters/PathId'
    get:
      tags:
      - Tasks
      summary: Get a task
      operationId: getTask
      responses:
        '200':
          $ref: '#/components/responses/TaskResource'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      tags:
      - Tasks
      summary: Update a task
      description: Requires a `write` key.
      operationId: updateTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TaskUpdate'
      responses:
        '200':
          $ref: '#/components/responses/TaskResource'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      tags:
      - Tasks
      summary: Delete a task
      description: Soft-deletes the task. Requires a `write` key.
      operationId: deleteTask
      responses:
        '200':
          description: Deletion acknowledged.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DeleteResult'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /tasks/{id}/checklist:
    parameters:
    - $ref: '#/components/parameters/PathId'
    get:
      tags:
      - Tasks
      summary: Get a task checklist
      operationId: getTaskChecklist
      responses:
        '200':
          $ref: '#/components/responses/TaskChecklistResource'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      tags:
      - Tasks
      summary: Toggle a task checklist item
      description: Requires a `write` key.
      operationId: updateTaskChecklistCompletion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TaskChecklistCompletionUpdate'
      responses:
        '200':
          $ref: '#/components/responses/TaskChecklistResource'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /task-statuses:
    get:
      tags:
      - Tasks
      summary: List configured task statuses
      description: Returns the ordered visible workflow, including each status's immutable base status and legacy alias.
      operationId: listTaskStatuses
      responses:
        '200':
          description: The configured task workflow.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/TaskStatusDefinition'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    TaskChecklistItem:
      type: object
      properties:
        stepId:
          type: string
        subjectId:
          type: string
          nullable: true
        title:
          type: string
        required:
          type: boolean
        position:
          type: integer
        completed:
          type: boolean
    TaskStatus:
      type: string
      enum:
      - backlog
      - inbox
      - in_progress
      - blocked
      - review
      - done
    TaskChecklistTemplate:
      type: object
      required:
      - steps
      properties:
        subjects:
          type: array
          items:
            type: object
            required:
            - name
            properties:
              name:
                type: string
              email:
                type: string
        steps:
          type: array
          items:
            type: object
            required:
            - title
            properties:
              title:
                type: string
              required:
                type: boolean
                default: true
    DeleteResult:
      type: object
      properties:
        deleted:
          type: boolean
    Task:
      type: object
      properties:
        id:
          type: string
        displayId:
          type: string
          nullable: true
          example: T-142
        title:
          type: string
        description:
          type: string
          nullable: true
        status:
          $ref: '#/components/schemas/TaskStatus'
        baseStatus:
          $ref: '#/components/schemas/TaskBaseStatus'
        statusId:
          type: string
          nullable: true
        priority:
          $ref: '#/components/schemas/Priority'
        taskType:
          type: string
          description: Defaults to `task`.
        projectId:
          type: string
          nullable: true
        epicId:
          type: string
          nullable: true
        phaseId:
          type: string
          nullable: true
        customerId:
          type: string
          nullable: true
        agentId:
          type: string
          nullable: true
        assigneeId:
          type: string
          nullable: true
        humanAssigneeId:
          type: string
          nullable: true
          description: Canonical Pencil user id for the task's human owner. Distinct from agentId.
        autoPickupDisabled:
          type: boolean
          description: When true, unassigned inbox tasks are kept manual and skipped by automatic AI pickup.
        dueAt:
          type: integer
          nullable: true
          description: Epoch ms.
        tags:
          type: array
          items:
            type: string
        checklistSummary:
          $ref: '#/components/schemas/TaskChecklistSummary'
        createdAt:
          type: integer
          description: Epoch ms.
        updatedAt:
          type: integer
          nullable: true
          description: Epoch ms.
    TaskBaseStatus:
      type: string
      enum:
      - backlog
      - todo
      - in_progress
      - blocked
      - verifying
      - done
    Priority:
      type: string
      description: 'Stable configured priority key. Defaults: urgent, high, medium, low. Display names may be customized at workspace or organization scope.'
    TaskUpdate:
      type: object
      properties:
        title:
          type: string
        description:
          type: string
        priority:
          $ref: '#/components/schemas/Priority'
        status:
          $ref: '#/components/schemas/TaskStatus'
        baseStatus:
          allOf:
          - $ref: '#/components/schemas/TaskBaseStatus'
          description: Canonical alternative to `status`; resolves to that base's configured default.
        statusId:
          type: string
          description: Concrete status id from `GET /task-statuses`.
        projectId:
          type: string
        customerId:
          type: string
          nullable: true
        agentId:
          type: string
        humanAssigneeId:
          type: string
          nullable: true
          description: Canonical Pencil user id to set as the human owner, or null to clear it.
        autoPickupDisabled:
          type: boolean
          description: Set false to make an unassigned inbox task eligible for automatic AI pickup again.
        dueAt:
          type: integer
          description: Epoch ms.
        tags:
          type: array
          items:
            type: string
    TaskChecklistSummary:
      type: object
      properties:
        subjectCount:
          type: integer
        stepCount:
          type: integer
        total:
          type: integer
        completed:
          type: integer
        requiredTotal:
          type: integer
        requiredCompleted:
          type: integer
        incompleteRequired:
          type: integer
        complete:
          type: boolean
        percent:
          type: integer
    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
    TaskCreate:
      type: object
      required:
      - title
      properties:
        title:
          type: string
        description:
          type: string
        priority:
          $ref: '#/components/schemas/Priority'
        status:
          $ref: '#/components/schemas/TaskStatus'
        baseStatus:
          allOf:
          - $ref: '#/components/schemas/TaskBaseStatus'
          description: Canonical alternative to `status`; resolves to that base's configured default.
        statusId:
          type: string
          description: Concrete status id from `GET /task-statuses`.
        projectId:
          type: string
        customerId:
          type: string
        agentId:
          type: string
        humanAssigneeId:
          type: string
          description: Canonical Pencil user id to set as the human owner.
        autoPickupDisabled:
          type: boolean
          default: false
          description: Set true to keep the task manual instead of allowing automatic AI pickup.
        dueAt:
          type: integer
          description: Epoch ms.
        tags:
          type: array
          items:
            type: string
        checklist:
          $ref: '#/components/schemas/TaskChecklistTemplate'
    TaskChecklist:
      type: object
      properties:
        taskId:
          type: string
        readOnly:
          type: boolean
        summary:
          $ref: '#/components/schemas/TaskChecklistSummary'
        steps:
          type: array
          items:
            type: object
            properties:
              _id:
                type: string
              title:
                type: string
              required:
                type: boolean
              position:
                type: integer
        subjects:
          type: array
          items:
            type: object
            properties:
              _id:
                type: string
              name:
                type: string
              email:
                type: string
                nullable: true
              linkedUserId:
                type: string
                nullable: true
              position:
                type: integer
              summary:
                $ref: '#/components/schemas/TaskChecklistSummary'
              items:
                type: array
                items:
                  $ref: '#/components/schemas/TaskChecklistItem'
        items:
          type: array
          description: Plain checklist items when no subjects are present.
          items:
            $ref: '#/components/schemas/TaskChecklistItem'
    TaskChecklistCompletionUpdate:
      type: object
      required:
      - stepId
      - completed
      properties:
        stepId:
          type: string
        subjectId:
          type: string
        completed:
          type: boolean
    TaskStatusDefinition:
      type: object
      required:
      - id
      - name
      - baseStatus
      - legacyStatus
      - isDefault
      - order
      properties:
        id:
          type: string
        name:
          type: string
        color:
          type: string
          nullable: true
        baseStatus:
          $ref: '#/components/schemas/TaskBaseStatus'
        legacyStatus:
          $ref: '#/components/schemas/TaskStatus'
        isDefault:
          type: boolean
        order:
          type: integer
    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
  responses:
    Forbidden:
      description: The key is read-only and may not write (`forbidden`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TaskChecklistResource:
      description: A task checklist.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: '#/components/schemas/TaskChecklist'
    NotFound:
      description: Resource not found in this org (`not_found`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TaskResource:
      description: A single task.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: '#/components/schemas/Task'
    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.
    ValidationError:
      description: Malformed request or invalid field (`validation_error`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key (`unauthorized`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    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).
    PathId:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: The resource id.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Org-scoped API key, e.g. `pk_live_…`.