OpenProof Documents API

The documents API from OpenProof — 8 operation(s) for documents.

GitHub OpenAPI

Operations 8

GET /documents/tailored List Tailored #
GET /documents/tailored/{kind}/versions List Versions #
POST /documents/tailored/{kind} Generate Tailored #
GET /documents/tailored/{policy_id}/html Tailored Html #
GET /documents/tailored/{policy_id}/pdf Tailored Pdf #
GET /documents/tailored/{policy_id}/docx Tailored Docx #
POST /documents/tailored/{policy_id}/approve Approve Tailored #
POST /documents/tailored/{policy_id}/translate Translate Tailored #

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/openproof-io:openproof-io-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

openproof-io-documents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Openproof Io Documents API
  version: 1.0.0
  description: 'Operations tagged documents across 2 of this provider''s published API definitions: openapi.json, openproof-io-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Documents
paths:
  /documents/tailored:
    get:
      tags:
      - Documents
      summary: List Tailored
      description: 'Status of every document: latest version, approval, whether the records changed since, items still to complete, translations.'
      operationId: list_tailored_documents_tailored_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /documents/tailored/{kind}/versions:
    get:
      tags:
      - Documents
      summary: List Versions
      operationId: list_versions_documents_tailored__kind__versions_get
      security:
      - HTTPBearer: []
      parameters:
      - name: kind
        in: path
        required: true
        schema:
          type: string
          title: Kind
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /documents/tailored/{kind}:
    post:
      tags:
      - Documents
      summary: Generate Tailored
      description: Build the document from the business's records. An unchanged document keeps its version; a changed one becomes the next version.
      operationId: generate_tailored_documents_tailored__kind__post
      security:
      - HTTPBearer: []
      parameters:
      - name: kind
        in: path
        required: true
        schema:
          type: string
          title: Kind
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /documents/tailored/{policy_id}/html:
    get:
      tags:
      - Documents
      summary: Tailored Html
      description: 'One document as a web page: a tailored version, a translation of one, or an earlier AI-written document.'
      operationId: tailored_html_documents_tailored__policy_id__html_get
      security:
      - HTTPBearer: []
      parameters:
      - name: policy_id
        in: path
        required: true
        schema:
          type: string
          title: Policy Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /documents/tailored/{policy_id}/pdf:
    get:
      tags:
      - Documents
      summary: Tailored Pdf
      operationId: tailored_pdf_documents_tailored__policy_id__pdf_get
      security:
      - HTTPBearer: []
      parameters:
      - name: policy_id
        in: path
        required: true
        schema:
          type: string
          title: Policy Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /documents/tailored/{policy_id}/docx:
    get:
      tags:
      - Documents
      summary: Tailored Docx
      description: 'The document as a Word file (an English version, or a translation: Word shows every Indian script, unlike our PDF).'
      operationId: tailored_docx_documents_tailored__policy_id__docx_get
      security:
      - HTTPBearer: []
      parameters:
      - name: policy_id
        in: path
        required: true
        schema:
          type: string
          title: Policy Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /documents/tailored/{policy_id}/approve:
    post:
      tags:
      - Documents
      summary: Approve Tailored
      description: Record that the business reviewed and approved this version, and when it takes effect.
      operationId: approve_tailored_documents_tailored__policy_id__approve_post
      security:
      - HTTPBearer: []
      parameters:
      - name: policy_id
        in: path
        required: true
        schema:
          type: string
          title: Policy Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApproveBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /documents/tailored/{policy_id}/translate:
    post:
      tags:
      - Documents
      summary: Translate Tailored
      description: Translate an APPROVED English document. Machine-assisted and labelled so; made once per approved version and language.
      operationId: translate_tailored_documents_tailored__policy_id__translate_post
      security:
      - HTTPBearer: []
      parameters:
      - name: policy_id
        in: path
        required: true
        schema:
          type: string
          title: Policy Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TranslateBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ApproveBody:
      properties:
        approver:
          anyOf:
          - type: string
          - type: 'null'
          title: Approver
        effective_date:
          type: string
          title: Effective Date
        confirm_reviewed:
          type: boolean
          title: Confirm Reviewed
          default: false
        acknowledge_open_items:
          type: boolean
          title: Acknowledge Open Items
          default: false
        acknowledge_stale:
          type: boolean
          title: Acknowledge Stale
          default: false
      type: object
      required:
      - effective_date
      title: ApproveBody
    TranslateBody:
      properties:
        language:
          type: string
          title: Language
      type: object
      required:
      - language
      title: TranslateBody
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- openapi.json
- openproof-io-openapi.json
x-provenance:
  method: harvested
  publisher: OpenProof
  source: https://api.openproof.io/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)