Pencil Planning API

Sprints, iterations, and deliverables.

GitHub OpenAPI

Operations 17

GET /sprints List sprints #
POST /sprints Create sprints #
GET /sprints/{id} Get sprint #
PATCH /sprints/{id} Update sprint #
DELETE /sprints/{id} Delete sprint #
GET /iterations List iterations #
POST /iterations Create iterations #
GET /iterations/{id} Get iteration #
PATCH /iterations/{id} Update iteration #
DELETE /iterations/{id} Delete iteration #
POST /iterations/{id}/tasks Attach a task to an iteration #
DELETE /iterations/{id}/tasks/{taskId} Detach a task from an iteration #
GET /deliverables List deliverables #
POST /deliverables Create deliverables #
GET /deliverables/{id} Get deliverable #
PATCH /deliverables/{id} Update deliverable #
DELETE /deliverables/{id} Delete deliverable #

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-planning-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-planning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pencil Public Planning 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: Planning
  description: Sprints, iterations, and deliverables.
paths:
  /sprints:
    get:
      tags:
      - Planning
      summary: List sprints
      operationId: listSprints
      parameters:
      - name: status
        in: query
        schema:
          type: string
      - name: teamId
        in: query
        schema:
          type: string
      - name: customerId
        in: query
        schema:
          type: string
      - name: productId
        in: query
        schema:
          type: string
      - name: projectId
        in: query
        schema:
          type: string
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of resources.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/DurableObject'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      tags:
      - Planning
      summary: Create sprints
      description: Requires a `write` key.
      operationId: createSprints
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DurableObjectInput'
      responses:
        '201':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
  /sprints/{id}:
    parameters:
    - $ref: '#/components/parameters/PathId'
    get:
      tags:
      - Planning
      summary: Get sprint
      operationId: getSprint
      responses:
        '200':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      tags:
      - Planning
      summary: Update sprint
      description: Requires a `write` key.
      operationId: updateSprint
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DurableObjectInput'
      responses:
        '200':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      tags:
      - Planning
      summary: Delete sprint
      description: Soft-deletes the resource. Requires a `write` key.
      operationId: deleteSprint
      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'
  /iterations:
    get:
      tags:
      - Planning
      summary: List iterations
      operationId: listIterations
      parameters:
      - name: kind
        in: query
        schema:
          type: string
      - name: projectId
        in: query
        schema:
          type: string
      - name: productId
        in: query
        schema:
          type: string
      - name: featureId
        in: query
        schema:
          type: string
      - name: status
        in: query
        schema:
          type: string
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of resources.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/DurableObject'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      tags:
      - Planning
      summary: Create iterations
      description: Requires a `write` key.
      operationId: createIterations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DurableObjectInput'
      responses:
        '201':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
  /iterations/{id}:
    parameters:
    - $ref: '#/components/parameters/PathId'
    get:
      tags:
      - Planning
      summary: Get iteration
      operationId: getIteration
      responses:
        '200':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      tags:
      - Planning
      summary: Update iteration
      description: Requires a `write` key.
      operationId: updateIteration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DurableObjectInput'
      responses:
        '200':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      tags:
      - Planning
      summary: Delete iteration
      description: Soft-deletes the resource. Requires a `write` key.
      operationId: deleteIteration
      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'
  /iterations/{id}/tasks:
    post:
      tags:
      - Planning
      summary: Attach a task to an iteration
      operationId: attachIterationTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - taskId
              properties:
                taskId:
                  type: string
      responses:
        '201':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '400':
          $ref: '#/components/responses/ValidationError'
        '403':
          $ref: '#/components/responses/Forbidden'
  /iterations/{id}/tasks/{taskId}:
    delete:
      tags:
      - Planning
      summary: Detach a task from an iteration
      operationId: detachIterationTask
      responses:
        '200':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
  /deliverables:
    get:
      tags:
      - Planning
      summary: List deliverables
      operationId: listDeliverables
      parameters:
      - name: projectId
        in: query
        schema:
          type: string
      - name: iterationId
        in: query
        schema:
          type: string
      - name: status
        in: query
        schema:
          type: string
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of resources.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/DurableObject'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
    post:
      tags:
      - Planning
      summary: Create deliverables
      description: Requires a `write` key.
      operationId: createDeliverables
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DurableObjectInput'
      responses:
        '201':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
  /deliverables/{id}:
    parameters:
    - $ref: '#/components/parameters/PathId'
    get:
      tags:
      - Planning
      summary: Get deliverable
      operationId: getDeliverable
      responses:
        '200':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      tags:
      - Planning
      summary: Update deliverable
      description: Requires a `write` key.
      operationId: updateDeliverable
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DurableObjectInput'
      responses:
        '200':
          description: The resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DurableObject'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      tags:
      - Planning
      summary: Delete deliverable
      description: Soft-deletes the resource. Requires a `write` key.
      operationId: deleteDeliverable
      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'
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key (`unauthorized`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    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:
    DeleteResult:
      type: object
      properties:
        deleted:
          type: boolean
    DurableObjectInput:
      type: object
      additionalProperties: true
      description: Writable fields depend on the endpoint. Requirements accept kind, personaId, storyActor, storyGoal, storyBenefit, and acceptanceCriteria. Unknown fields are ignored by the server-side allow-list.
    DurableObject:
      type: object
      additionalProperties: true
      properties:
        id:
          type: string
        displayId:
          type:
          - string
          - number
          - 'null'
        name:
          type: string
        title:
          type: string
        status:
          type: string
        kind:
          type: string
          enum:
          - requirement
          - user_story
          description: Requirement subtype. Legacy rows are returned as requirement.
        personaId:
          type:
          - string
          - 'null'
        storyActor:
          type:
          - string
          - 'null'
        storyGoal:
          type:
          - string
          - 'null'
        storyBenefit:
          type:
          - string
          - 'null'
        acceptanceCriteria:
          type: array
          items:
            type: string
        storySentence:
          type:
          - string
          - 'null'
        createdAt:
          type:
          - integer
          - 'null'
          description: Epoch ms.
        updatedAt:
          type:
          - integer
          - 'null'
          description: Epoch ms.
      description: Stable public shape for newly exposed durable objects. Internal workspace ids, deletion markers, sync data, storage credentials, and secrets are omitted.
    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_…`.