Offprint List Documents API

The List Documents API from Offprint — 1 operation(s) for list documents.

GitHub OpenAPI

Operations 1

POST /api/v1/list_documents List documents #

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/offprint-io:offprint-io-list-documents-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

offprint-io-list-documents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Offprint List Documents 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: List Documents
paths:
  /api/v1/list_documents:
    post:
      operationId: list_documents
      summary: List documents
      description: List documents you can access through any membership — owned and shared with you. your_role on each result tells you whether you can write before you try. Never includes content; use get_document.
      x-read-only: true
      x-destructive: false
      security:
      - apiKey: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  description: Filter to documents whose title contains this text (case-insensitive).
                  type: string
                visibility:
                  description: Filter to public or private documents.
                  type: string
                  enum:
                  - public
                  - private
                role:
                  description: Filter to documents where you have this role.
                  type: string
                  enum:
                  - owner
                  - editor
                  - commenter
                  - viewer
                owned_by_me:
                  description: Only documents you own.
                  type: boolean
                project:
                  description: Filter to one project (name or id). Names resolve against your own projects.
                  type: string
                  minLength: 1
                  maxLength: 200
                limit:
                  description: Maximum results to return (default 20, at most 50).
                  type: integer
                  minimum: 1
                  maximum: 50
                cursor:
                  description: The next_cursor from a previous call, to fetch the next page.
                  type: string
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  documents:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        slug:
                          type: string
                        title:
                          type: string
                        url:
                          type: string
                          description: Absolute URL of the document's page.
                        revision:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        your_role:
                          type: string
                          enum:
                          - owner
                          - editor
                          - commenter
                          - viewer
                          description: Your role on the document or project.
                        owner_handle:
                          type: string
                        visibility:
                          type: string
                          enum:
                          - public
                          - private
                        project:
                          type: string
                        directory_path:
                          description: Directory path inside the project; null at the project root.
                          type:
                          - string
                          - 'null'
                        updated_at:
                          type: string
                          description: ISO 8601 timestamp.
                        bytes:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                      required:
                      - id
                      - slug
                      - title
                      - url
                      - revision
                      - your_role
                      - owner_handle
                      - visibility
                      - project
                      - directory_path
                      - updated_at
                      - bytes
                      additionalProperties: {}
                  next_cursor:
                    description: Pass as cursor to get the next page; null on the last page.
                    type:
                    - string
                    - 'null'
                required:
                - documents
                - next_cursor
                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:
      - List Documents
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_…''.'