SpecProof Requirements API

The requirements API from SpecProof — 6 operation(s) for requirements.

GitHub OpenAPI

Operations 7

GET /requirements/specs List Specs With Requirements #
GET /requirements List Requirements #
GET /requirements/coverage Coverage Summary #
POST /requirements/links Create Link #
POST /requirements/refine Refine Requirement #

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/specproof-ai:specproof-ai-requirements-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

specproof-ai-requirements-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpecProof Portal Requirements API
  version: 1.0.0
tags:
- name: Requirements
paths:
  /requirements/specs:
    get:
      tags:
      - Requirements
      summary: List Specs With Requirements
      description: 'Documents that have extracted requirements, with per-obligation counts —

        powers the spec picker and shows where the normative load concentrates.'
      operationId: list_specs_with_requirements_requirements_specs_get
      parameters:
      - name: doc_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Doc Type
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          default: 200
          title: Limit
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /requirements:
    get:
      tags:
      - Requirements
      summary: List Requirements
      operationId: list_requirements_requirements_get
      parameters:
      - name: document_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Document Id
      - name: spec
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: LIKE match on corpus spec_number/filename
          title: Spec
        description: LIKE match on corpus spec_number/filename
      - name: obligation
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Obligation
      - name: keyword
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Keyword
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: substring match on requirement text
          title: Search
        description: substring match on requirement text
      - name: coverage
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: 'filter: ''covered'' | ''gap'''
          title: Coverage
        description: 'filter: ''covered'' | ''gap'''
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 50
          title: Per Page
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /requirements/coverage:
    get:
      tags:
      - Requirements
      summary: Coverage Summary
      description: 'Coverage for one document: totals by obligation, plus how many requirements

        have >=1 traceability link (test/validator/run) for this org — the gap view.'
      operationId: coverage_summary_requirements_coverage_get
      parameters:
      - name: document_id
        in: query
        required: true
        schema:
          type: integer
          title: Document Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /requirements/links:
    get:
      tags:
      - Requirements
      summary: List Links
      operationId: list_links_requirements_links_get
      parameters:
      - name: requirement_key
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Requirement Key
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Requirements
      summary: Create Link
      operationId: create_link_requirements_links_post
      parameters:
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /requirements/links/{link_id}:
    delete:
      tags:
      - Requirements
      summary: Delete Link
      operationId: delete_link_requirements_links__link_id__delete
      parameters:
      - name: link_id
        in: path
        required: true
        schema:
          type: string
          title: Link Id
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /requirements/refine:
    post:
      tags:
      - Requirements
      summary: Refine Requirement
      description: 'LLM refinement: decompose a requirement into atomic condition/action pieces

        (cite-or-abstain — grounded strictly in the source sentence).'
      operationId: refine_requirement_requirements_refine_post
      parameters:
      - name: X-Org-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Org-Id
      - name: authorization
        in: header
        required: false
        schema:
          type: string
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefineRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RefineRequest:
      properties:
        requirement_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Requirement Id
        text:
          anyOf:
          - type: string
          - type: 'null'
          title: Text
        obligation:
          anyOf:
          - type: string
          - type: 'null'
          title: Obligation
        actor:
          anyOf:
          - type: string
          - type: 'null'
          title: Actor
        spec_number:
          anyOf:
          - type: string
          - type: 'null'
          title: Spec Number
        section_title:
          anyOf:
          - type: string
          - type: 'null'
          title: Section Title
      type: object
      title: RefineRequest
    LinkCreate:
      properties:
        requirement_key:
          type: string
          title: Requirement Key
        spec_number:
          anyOf:
          - type: string
          - type: 'null'
          title: Spec Number
        link_type:
          type: string
          title: Link Type
          default: test
        target_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Target Type
        target_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Target Id
        status:
          type: string
          title: Status
          default: planned
      type: object
      required:
      - requirement_key
      title: LinkCreate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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