Pencil Products API
Products, components, features, requirements, personas, and stakeholders.
Products, components, features, requirements, personas, and stakeholders.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/pencil-ink:pencil-ink-products-api"
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.
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: 3.2.0
info:
title: Pencil Public Products 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: Products
description: Products, components, features, requirements, personas, and stakeholders.
paths:
/products:
get:
tags:
- Products
summary: List products
operationId: listProducts
parameters:
- name: status
in: query
schema:
type: string
- name: customerId
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:
- Products
summary: Create products
description: Requires a `write` key.
operationId: createProducts
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'
/products/{id}:
parameters:
- $ref: '#/components/parameters/PathId'
get:
tags:
- Products
summary: Get product
operationId: getProduct
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:
- Products
summary: Update product
description: Requires a `write` key.
operationId: updateProduct
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:
- Products
summary: Delete product
description: Soft-deletes the resource. Requires a `write` key.
operationId: deleteProduct
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'
/products/{id}/components:
get:
tags:
- Products
summary: List components
operationId: listProductComponents
parameters:
- $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:
- Products
summary: Create components
description: Requires a `write` key.
operationId: createProductComponents
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'
/components/{id}:
parameters:
- $ref: '#/components/parameters/PathId'
get:
tags:
- Products
summary: Get component
operationId: getComponent
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:
- Products
summary: Update component
description: Requires a `write` key.
operationId: updateComponent
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:
- Products
summary: Delete component
description: Soft-deletes the resource. Requires a `write` key.
operationId: deleteComponent
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'
/features:
get:
tags:
- Products
summary: List features
operationId: listFeatures
parameters:
- name: productId
in: query
schema:
type: string
- name: componentId
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:
- Products
summary: Create features
description: Requires a `write` key.
operationId: createFeatures
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'
/features/{id}:
parameters:
- $ref: '#/components/parameters/PathId'
get:
tags:
- Products
summary: Get feature
operationId: getFeature
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:
- Products
summary: Update feature
description: Requires a `write` key.
operationId: updateFeature
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:
- Products
summary: Delete feature
description: Soft-deletes the resource. Requires a `write` key.
operationId: deleteFeature
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'
/requirements:
get:
tags:
- Products
summary: List requirements and structured user stories
operationId: listRequirements
parameters:
- name: productId
in: query
schema:
type: string
- name: featureId
in: query
schema:
type: string
- name: sprintId
in: query
schema:
type: string
- name: iterationId
in: query
schema:
type: string
- name: status
in: query
schema:
type: string
- name: kind
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:
- Products
summary: Create requirements and structured user stories
description: Requires a `write` key.
operationId: createRequirements
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'
/requirements/{id}:
parameters:
- $ref: '#/components/parameters/PathId'
get:
tags:
- Products
summary: Get requirement
operationId: getRequirement
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:
- Products
summary: Update requirement
description: Requires a `write` key.
operationId: updateRequirement
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:
- Products
summary: Delete requirement
description: Soft-deletes the resource. Requires a `write` key.
operationId: deleteRequirement
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'
/personas:
get:
tags:
- Products
summary: List personas
operationId: listPersonas
parameters:
- name: productId
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:
- Products
summary: Create personas
description: Requires a `write` key.
operationId: createPersonas
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'
/personas/{id}:
parameters:
- $ref: '#/components/parameters/PathId'
get:
tags:
- Products
summary: Get persona
operationId: getPersona
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:
- Products
summary: Update persona
description: Requires a `write` key.
operationId: updatePersona
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:
- Products
summary: Delete persona
description: Soft-deletes the resource. Requires a `write` key.
operationId: deletePersona
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'
/stakeholders:
get:
tags:
- Products
summary: List stakeholders
operationId: listStakeholders
parameters:
- name: customerId
in: query
schema:
type: string
- name: type
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:
- Products
summary: Create stakeholders
description: Requires a `write` key.
operationId: createStakeholders
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'
/stakeholders/{id}:
parameters:
- $ref: '#/components/parameters/PathId'
get:
tags:
- Products
summary: Get stakeholder
operationId: getStakeholder
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:
- Products
summary: Update stakeholder
description: Requires a `write` key.
operationId: updateStakeholder
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:
- Products
summary: Delete stakeholder
description: Soft-deletes the resource. Requires a `write` key.
operationId: deleteStakeholder
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_…`.