OpenProof Assessments API

The assessments API from OpenProof — 11 operation(s) for assessments.

GitHub OpenAPI

Operations 12

GET /assessments List Assessments #
POST /assessments Create Assessment #
GET /assessments/{assessment_id} Get Assessment #
POST /assessments/claim Claim Assessment #
POST /assessments/{assessment_id}/share Enable Share Link #
POST /assessments/{assessment_id}/share/revoke Revoke Share Link #
GET /assessments/shared/{share_token} Get Shared Assessment #
POST /assessments/{assessment_id}/share/extend Extend Share Link #
GET /assessments/{assessment_id}/share/status Share Status #
POST /assessments/{assessment_id}/share/listing Set Share Listing #
GET /assessments/public/openproof-score Get Openproof Public Score #
GET /assessments/benchmark/{category} Get Benchmark #

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-assessments-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-assessments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Openproof Io Assessments API
  version: 1.0.0
  description: 'Operations tagged assessments 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: assessments
paths:
  /assessments:
    get:
      tags:
      - assessments
      summary: List Assessments
      description: 'List all assessments for the current business (owner or any active

        teammate with at least viewer access -- Tier 4, 7 Aug 2026).'
      operationId: list_assessments_assessments_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AssessmentListItem'
                type: array
                title: Response List Assessments Assessments Get
      security:
      - HTTPBearer: []
    post:
      tags:
      - assessments
      summary: Create Assessment
      description: 'Save an assessment. Unwraps nested payload if frontend sent {responses:{...}, score:{...}}.


        RBAC note (Tier 4, 7 Aug 2026): business_id is resolved via

        get_active_business_id_optional -- for a normal single-user account

        this is just current_user.id, unchanged. For an invited teammate, it

        resolves to the BUSINESS OWNER''s id, so the assessment is correctly

        attributed to the shared business. owner_user (may differ from

        current_user) is used wherever plan/company_name/activated_at need

        to reflect the business. The notification email still goes to

        current_user (whoever actually submitted it), not the owner.'
      operationId: create_assessment_assessments_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssessmentCreate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssessmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /assessments/{assessment_id}:
    get:
      tags:
      - assessments
      summary: Get Assessment
      description: Get a single assessment by ID
      operationId: get_assessment_assessments__assessment_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: assessment_id
        in: path
        required: true
        schema:
          type: string
          title: Assessment Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssessmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /assessments/claim:
    post:
      tags:
      - assessments
      summary: Claim Assessment
      description: 'Link an anonymous assessment to the authenticated user''s business

        (owner''s id, or the shared business_id for a teammate -- Tier 4, 7

        Aug 2026). Editor role required since this is a write.'
      operationId: claim_assessment_assessments_claim_post
      requestBody:
        content:
          application/json:
            schema:
              type: object
              title: Body
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /assessments/{assessment_id}/share:
    post:
      tags:
      - assessments
      summary: Enable Share Link
      description: 'Enable the public share link for an assessment. Editor+ role

        required (Tier 4, 7 Aug 2026).'
      operationId: enable_share_link_assessments__assessment_id__share_post
      security:
      - HTTPBearer: []
      parameters:
      - name: assessment_id
        in: path
        required: true
        schema:
          type: string
          title: Assessment Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /assessments/{assessment_id}/share/revoke:
    post:
      tags:
      - assessments
      summary: Revoke Share Link
      description: Disable the public share link. Editor+ role required.
      operationId: revoke_share_link_assessments__assessment_id__share_revoke_post
      security:
      - HTTPBearer: []
      parameters:
      - name: assessment_id
        in: path
        required: true
        schema:
          type: string
          title: Assessment Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /assessments/shared/{share_token}:
    get:
      tags:
      - assessments
      summary: Get Shared Assessment
      operationId: get_shared_assessment_assessments_shared__share_token__get
      parameters:
      - name: share_token
        in: path
        required: true
        schema:
          type: string
          title: Share Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssessmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /assessments/{assessment_id}/share/extend:
    post:
      tags:
      - assessments
      summary: Extend Share Link
      description: 'Extend an active share link by 30 days from now. Editor+ role

        required. Does not rotate the token.'
      operationId: extend_share_link_assessments__assessment_id__share_extend_post
      security:
      - HTTPBearer: []
      parameters:
      - name: assessment_id
        in: path
        required: true
        schema:
          type: string
          title: Assessment Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /assessments/{assessment_id}/share/status:
    get:
      tags:
      - assessments
      summary: Share Status
      description: 'audit-b7: the real share state of one assessment, so the report page is right after a reload.'
      operationId: share_status_assessments__assessment_id__share_status_get
      security:
      - HTTPBearer: []
      parameters:
      - name: assessment_id
        in: path
        required: true
        schema:
          type: string
          title: Assessment Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /assessments/{assessment_id}/share/listing:
    post:
      tags:
      - assessments
      summary: Set Share Listing
      description: 'audit-b7: list (or unlist) this assessment in the public Verify directory. Off by default. Listing needs an active

        share link, and a business has at most one listed assessment.'
      operationId: set_share_listing_assessments__assessment_id__share_listing_post
      security:
      - HTTPBearer: []
      parameters:
      - name: assessment_id
        in: path
        required: true
        schema:
          type: string
          title: Assessment Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShareListingBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /assessments/public/openproof-score:
    get:
      tags:
      - assessments
      summary: Get Openproof Public Score
      description: Return OpenProof's own latest assessment score -- public, no auth.
      operationId: get_openproof_public_score_assessments_public_openproof_score_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /assessments/benchmark/{category}:
    get:
      tags:
      - assessments
      summary: Get Benchmark
      description: Return anonymised benchmark stats for a business category.
      operationId: get_benchmark_assessments_benchmark__category__get
      parameters:
      - name: category
        in: path
        required: true
        schema:
          type: string
          title: Category
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ShareListingBody:
      properties:
        listed:
          type: boolean
          title: Listed
      type: object
      required:
      - listed
      title: ShareListingBody
    AssessmentCreate:
      properties:
        responses:
          type: object
          title: Responses
        score:
          anyOf:
          - type: object
          - type: 'null'
          title: Score
        company_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Company Name
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      type: object
      required:
      - responses
      title: AssessmentCreate
    AssessmentResponse:
      properties:
        id:
          type: string
          title: Id
        report_ref:
          type: string
          title: Report Ref
        responses:
          type: object
          title: Responses
        scores:
          anyOf:
          - type: object
          - type: 'null'
          title: Scores
        fix_list:
          anyOf:
          - items:
              type: object
            type: array
          - type: 'null'
          title: Fix List
        overall:
          anyOf:
          - type: integer
          - type: 'null'
          title: Overall
        band:
          anyOf:
          - type: string
          - type: 'null'
          title: Band
        fixed_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Fixed Count
        completed_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Completed At
        created_at:
          type: string
          format: date-time
          title: Created At
        version_stamp:
          type: string
          title: Version Stamp
        company_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Company Name
        plan_limit_warning:
          anyOf:
          - type: string
          - type: 'null'
          title: Plan Limit Warning
      type: object
      required:
      - id
      - report_ref
      - responses
      - created_at
      - version_stamp
      title: AssessmentResponse
    AssessmentListItem:
      properties:
        id:
          type: string
          title: Id
        report_ref:
          type: string
          title: Report Ref
        overall:
          anyOf:
          - type: integer
          - type: 'null'
          title: Overall
        band:
          anyOf:
          - type: string
          - type: 'null'
          title: Band
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - report_ref
      - overall
      - band
      - created_at
      title: AssessmentListItem
    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)