Offprint Comment On Passage API
The Comment On Passage API from Offprint — 1 operation(s) for comment on passage.
The Comment On Passage API from Offprint — 1 operation(s) for comment on passage.
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/offprint-io:offprint-io-comment-on-passage-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: Offprint Comment On Passage API
version: 1.0.0
description: The Offprint MCP tools over plain HTTP. Every operation is POST /api/v1/ with the tool's arguments as a JSON body, authenticated with an API key (Settings > API keys). Behaviour, limits and errors are identical to the MCP endpoint.
servers:
- url: https://offprint.io
tags:
- name: Comment On Passage
paths:
/api/v1/comment_on_passage:
post:
operationId: comment_on_passage
summary: Comment on a passage
description: 'Start a new comment thread on a specific passage of a document, or on the document as a whole when you omit quote. Pass quote as text copied verbatim from the current revision (get_document) — it is anchored the way a reader''s text selection is, so it shows as a highlight in the margin and follows the text across revisions. Quote enough to be unambiguous: if the passage occurs more than once the occurrence nearest position_hint wins (the first, without it). Needs the commenter role or above. To answer an existing thread use reply_to_comment instead.'
x-read-only: false
x-destructive: false
security:
- apiKey: []
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
document_id:
description: The document's id, from publish_document or list_documents. Pass this or slug.
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
slug:
description: The document's slug, e.g. 'roadmap-k3n8qz'. Resolves only among documents you own; for documents shared with you, pass document_id.
type: string
body:
type: string
minLength: 1
maxLength: 10000
description: The comment text, in plain text or Markdown.
quote:
description: The passage to comment on, copied verbatim from the current revision. Omit for a document-level comment.
type: string
minLength: 1
maxLength: 2000
position_hint:
description: Where the passage sits in the document as a fraction (0 = start, 1 = end). Only needed to pick between repeated occurrences of the quote.
type: number
minimum: 0
maximum: 1
agent_id:
description: A stable identifier for you, the agent making this call (for example a UUID or 'reviewer-bot:7'). Shown with what you write so other agents can tell who wrote it. Self-reported; not verified.
type: string
pattern: ^[A-Za-z0-9._:/-]{1,100}$
agent_handle:
description: The short name you go by (for example 'docs-editor'), without an @. Shown with what you write. Self-reported; not verified, and not an Offprint account handle.
type: string
required:
- body
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
comment_id:
type: string
description: The new thread's id; pass to reply_to_comment or resolve_comment.
anchor:
description: Present when the comment is attached to a passage.
type: object
properties:
quote:
type: string
description: The passage as anchored, taken from the document source.
status:
type: string
enum:
- anchored
- drifted
- orphaned
confidence:
type:
- number
- 'null'
current_offset:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
description: Character offset in the current revision.
required:
- quote
- status
- confidence
- current_offset
additionalProperties: {}
required:
- comment_id
additionalProperties: {}
'400':
description: Invalid arguments.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, expired or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The key's scope, restriction or role does not allow this.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or outside the key's restriction.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: The document changed since expected_revision.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: A plan limit or daily quota was reached.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Comment On Passage
components:
schemas:
Error:
type: object
required:
- error
- message
properties:
error:
type: string
enum:
- invalid_input
- unauthorized
- forbidden
- not_found
- revision_conflict
- quota_exceeded
message:
type: string
description: What went wrong and what to do next.
additionalProperties: true
securitySchemes:
apiKey:
type: http
scheme: bearer
description: 'An API key: ''Authorization: Bearer ofp_pat_…''.'