MolTrust Violation API

The Violation API from MolTrust — 4 operation(s) for violation.

Operations 4

POST /violation/record Create Violation Record #
GET /violation/{record_id} Get Violation Record #
POST /violation/{record_id}/reverse Reverse Violation #
GET /violation/agent/{did} Get Agent Violations #

Documentation

Specifications

Other Resources

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/moltrust-ch:moltrust-ch-violation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

moltrust-ch-violation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MolTrust Violation API
  version: '2.5'
tags:
- name: Violation
paths:
  /violation/record:
    post:
      summary: Create Violation Record
      description: Record a protocol violation. Requires X-Admin-Key header. Tech Spec 2.7.
      operationId: create_violation_record_violation_record_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ViolationRecordRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Violation
  /violation/{record_id}:
    get:
      summary: Get Violation Record
      description: Retrieve a ViolationRecord by ID. Public endpoint.
      operationId: get_violation_record_violation__record_id__get
      parameters:
      - name: record_id
        in: path
        required: true
        schema:
          type: string
          maxLength: 64
          title: Record Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Violation
  /violation/{record_id}/reverse:
    post:
      summary: Reverse Violation
      description: Reverse a violation record. Requires X-Admin-Key header. Tech Spec 2.7.
      operationId: reverse_violation_violation__record_id__reverse_post
      parameters:
      - name: record_id
        in: path
        required: true
        schema:
          type: string
          maxLength: 64
          title: Record Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ViolationReversalRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Violation
  /violation/agent/{did}:
    get:
      summary: Get Agent Violations
      description: List all violation records for a given agent DID. Public endpoint.
      operationId: get_agent_violations_violation_agent__did__get
      parameters:
      - name: did
        in: path
        required: true
        schema:
          type: string
          title: Did
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Violation
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ViolationRecordRequest:
      properties:
        agent_did:
          type: string
          maxLength: 128
          title: Agent Did
        principal_did:
          type: string
          maxLength: 128
          title: Principal Did
        violation_type:
          type: string
          maxLength: 64
          title: Violation Type
        interaction_proof_id:
          anyOf:
          - type: string
            maxLength: 128
          - type: 'null'
          title: Interaction Proof Id
        description:
          anyOf:
          - type: string
            maxLength: 1024
          - type: 'null'
          title: Description
        adjudicator_reference:
          anyOf:
          - type: string
            maxLength: 256
          - type: 'null'
          title: Adjudicator Reference
        confirmed_at:
          type: string
          maxLength: 64
          title: Confirmed At
      type: object
      required:
      - agent_did
      - principal_did
      - violation_type
      - confirmed_at
      title: ViolationRecordRequest
    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
    ViolationReversalRequest:
      properties:
        adjudicator_reference:
          anyOf:
          - type: string
            maxLength: 256
          - type: 'null'
          title: Adjudicator Reference
        reversal_date:
          anyOf:
          - type: string
            maxLength: 64
          - type: 'null'
          title: Reversal Date
      type: object
      title: ViolationReversalRequest