OpenProof Policies API

The policies API from OpenProof — 4 operation(s) for policies.

GitHub OpenAPI

Operations 5

GET /policies List Policies #
POST /policies Generate Policy #
DELETE /policies/{policy_id} Delete Policy #
GET /policies/versions List Policy Versions #
GET /policies/diff Diff Policy Versions #

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-policies-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-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Openproof Io Policies API
  version: 1.0.0
  description: 'Operations tagged policies 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: Policies
paths:
  /policies:
    get:
      tags:
      - Policies
      summary: List Policies
      description: 'Latest version of each policy type for the current business.

        Viewer+ role required (Tier 4, 7 Aug 2026).'
      operationId: list_policies_policies_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items: {}
                type: array
                title: Response List Policies Policies Get
      security:
      - HTTPBearer: []
    post:
      tags:
      - Policies
      summary: Generate Policy
      description: 'Generate a compliance policy document using Claude. Editor+ role

        required (Tier 4, 7 Aug 2026) -- this costs real API tokens and

        creates a persisted document, so viewers can''t trigger it.


        Plan check, company_name, and grievance-officer contact all resolve

        from the BUSINESS OWNER''s User row (owner_user, fetched via

        business_id) rather than current_user directly -- the plan is the

        business''s paid plan, not the individual teammate''s, and the

        generated document should reflect the business''s own identity/

        contact info regardless of which teammate clicked generate.'
      operationId: generate_policy_policies_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicyGenRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /policies/{policy_id}:
    delete:
      tags:
      - Policies
      summary: Delete Policy
      description: 'Delete one specific version of a generated policy. Editor+ role

        required (Tier 4, 7 Aug 2026).'
      operationId: delete_policy_policies__policy_id__delete
      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'
  /policies/versions:
    get:
      tags:
      - Policies
      summary: List Policy Versions
      description: 'All versions of a given policy type for a given assessment, most

        recent first. Viewer+ role required.'
      operationId: list_policy_versions_policies_versions_get
      security:
      - HTTPBearer: []
      parameters:
      - name: assessment_id
        in: query
        required: true
        schema:
          type: string
          title: Assessment Id
      - name: policy_type
        in: query
        required: true
        schema:
          type: string
          title: Policy Type
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /policies/diff:
    get:
      tags:
      - Policies
      summary: Diff Policy Versions
      description: 'Line-level diff between two versions of the same policy, both

        owned by the current business. Viewer+ role required.'
      operationId: diff_policy_versions_policies_diff_get
      security:
      - HTTPBearer: []
      parameters:
      - name: from_id
        in: query
        required: true
        schema:
          type: string
          title: From Id
      - name: to_id
        in: query
        required: true
        schema:
          type: string
          title: To Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PolicyGenRequest:
      properties:
        assessment_id:
          type: string
          title: Assessment Id
        policy_type:
          type: string
          title: Policy Type
        language:
          anyOf:
          - type: string
          - type: 'null'
          title: Language
          default: en
        force_regenerate:
          type: boolean
          title: Force Regenerate
          default: false
      type: object
      required:
      - assessment_id
      - policy_type
      title: PolicyGenRequest
    PolicyResponse:
      properties:
        id:
          type: string
          title: Id
        policy_type:
          type: string
          title: Policy Type
        content_html:
          type: string
          title: Content Html
        generated_at:
          type: string
          title: Generated At
        version_stamp:
          anyOf:
          - type: string
          - type: 'null'
          title: Version Stamp
        language:
          type: string
          title: Language
          default: en
      type: object
      required:
      - id
      - policy_type
      - content_html
      - generated_at
      - version_stamp
      title: PolicyResponse
    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)