MONARK Attest API

The Attest API from MONARK — 1 operation(s) for attest.

GitHub OpenAPI

Operations 1

POST /attest Run the attest operation (JSON mirror of the MCP tool) #

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/monarkgate-tech:monarkgate-tech-attest-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

monarkgate-tech-attest-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MONARK harness — HTTP/JSON mirror Attest API
  version: 0.4.0
  description: Plain-JSON mirror of the MONARK MCP harness (attest, gate, cascade, calibrate). Same frozen contracts as the MCP surface; derived from the frozen schemas, never hand-written. The gate only emits a decision; it never calls the named tool.
servers:
- url: https://api.monarkgate.tech
tags:
- name: Attest
paths:
  /attest:
    post:
      operationId: attest
      summary: Run the attest operation (JSON mirror of the MCP tool)
      description: projection of a committed Shōgen-verified witness (Binance BTCUSDT, self-notarized); the verifier is NOT executed at call time.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties: {}
      responses:
        '200':
          description: The frozen structuredContent plus the honesty content text (K-1).
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                - structuredContent
                - content
                properties:
                  structuredContent:
                    type: object
                    additionalProperties: false
                    required:
                    - price
                    - provenance
                    - label
                    properties:
                      price:
                        type: object
                        additionalProperties: false
                        required:
                        - schema_version
                        - subject
                        - attestor
                        - residual
                        - transport
                        - utterance
                        - observed_at
                        - octets_recalcules
                        - verifier_revision
                        properties:
                          schema_version:
                            type: string
                            pattern: ^\d+\.\d+\.\d+$
                          subject:
                            type: string
                            pattern: ^[ -~]+$
                            minLength: 1
                          attestor:
                            type: array
                            minItems: 1
                            uniqueItems: true
                            items:
                              type: object
                              additionalProperties: false
                              required:
                              - identity
                              - key
                              properties:
                                identity:
                                  type: string
                                  pattern: ^[ -~]+$
                                  minLength: 1
                                key:
                                  type: string
                                  pattern: ^([0-9a-f]{2})+$
                          residual:
                            type: array
                            minItems: 1
                            uniqueItems: true
                            items:
                              type: string
                              pattern: ^[ -~]+$
                              minLength: 1
                          transport:
                            type: string
                            pattern: ^[ -~]+$
                            minLength: 1
                          utterance:
                            type: object
                            additionalProperties: false
                            required:
                            - hash
                            properties:
                              hash:
                                type: string
                                pattern: ^[0-9a-f]{64}$
                              bytes:
                                type: string
                                pattern: ^([0-9a-f]{2})*$
                          observed_at:
                            type: object
                            additionalProperties: false
                            required:
                            - clock
                            - instant
                            properties:
                              clock:
                                type: string
                                pattern: ^[ -~]+$
                                minLength: 1
                              instant:
                                type: integer
                                minimum: 0
                          octets_recalcules:
                            type: boolean
                          verifier_revision:
                            type: string
                            pattern: ^[ -~]+$
                            minLength: 1
                          sens_emis_digest:
                            type: string
                            pattern: ^[0-9a-f]{64}$
                      provenance:
                        type: object
                        additionalProperties: false
                        required:
                        - source_lot_sha256
                        - source_verdict_sha256
                        - shogen_head_sha
                        properties:
                          source_lot_sha256:
                            type: string
                            pattern: ^[0-9a-f]{64}$
                            description: sha256 of the committed witness lot (CBOR), recomputed from the bytes.
                          source_verdict_sha256:
                            type: string
                            pattern: ^[0-9a-f]{64}$
                            description: sha256 of the committed verifier output (UTF-8), recomputed from the bytes.
                          shogen_head_sha:
                            type: string
                            pattern: ^[0-9a-f]{40}$
                            description: Source revision the fixtures were extracted from (pinned).
                      label:
                        type: string
                        description: 'Honesty label carried OUTSIDE the frozen price (K-1): the witness is demonstrative, not probative.'
                  content:
                    type: array
                    items:
                      type: object
                      additionalProperties: false
                      required:
                      - type
                      - text
                      properties:
                        type:
                          const: text
                        text:
                          type: string
        '400':
          description: Input failed the frozen schema, or the tool refused the input (never a silent result).
          content:
            application/json:
              schema:
                oneOf:
                - type: object
                  additionalProperties: false
                  required:
                  - error
                  - operation
                  - message
                  - code
                  properties:
                    error:
                      const: tool_error
                    operation:
                      type: string
                      minLength: 1
                    message:
                      type: string
                    code:
                      enum:
                      - param_invalid
                      - schema_version_unsupported
                      - byo_calibration_invalid
                      - byo_yhat_type
                      - byo_set_tau_cap
                      - yhat_type_mismatch
                      - liq_yhat_domain
                      - attested_inconsistent
                      - task_class_unknown
                      - byo_overrides_committed
                      - byo_edge_blank
                      - byo_lookalike_committed
                      - byo_reserved_kata
                      - byo_lookalike_confusable
                      - produced_at_invalid
                      - produced_at_future
                      - policy_alpha_mismatch
                      - policy_nmin_mismatch
                      - task_class_retired
                      - attest_refused
                      - calibrate_input_invalid
                      - cascade_input_invalid
                      - ukemi_predict_input_invalid
                      - kata_key_invalid
                      - kata_yhat_domain
                      - features_digest_required
                      - policy_tau_cap
                      - produced_at_off_grid
                      - produced_at_stale
                - type: object
                  additionalProperties: false
                  required:
                  - error
                  - operation
                  - message
                  - code
                  - issues
                  properties:
                    error:
                      const: invalid_input
                    operation:
                      type: string
                      minLength: 1
                    message:
                      type: string
                    code:
                      const: input_invalid
                    issues:
                      type: array
                - type: object
                  additionalProperties: false
                  required:
                  - error
                  - operation
                  - message
                  - code
                  properties:
                    error:
                      const: invalid_json
                    operation:
                      type: string
                      minLength: 1
                    message:
                      type: string
                    code:
                      const: json_invalid
        '403':
          description: Origin present and not a monarkgate.tech origin (K-9).
        '413':
          description: The request body is larger than the harness cap (payload_too_large); the connection is closed.
        '500':
          description: The tool output broke its frozen contract, or the tool failed (both name the operation); or the request failed in transport (no operation); never a stack.
          content:
            application/json:
              schema:
                oneOf:
                - type: object
                  additionalProperties: false
                  required:
                  - error
                  - operation
                  properties:
                    error:
                      const: internal_error
                    operation:
                      type: string
                      minLength: 1
                    code:
                      const: output_invalid
                - type: object
                  additionalProperties: false
                  required:
                  - error
                  properties:
                    error:
                      const: internal_error
      tags:
      - Attest