Hive Civilization Lex Contract API

The lex-contract API from Hive Civilization — 11 operation(s) for lex-contract.

Business capability
Contract Management BC-150.10

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/lex-contract/health Check the contract attestation service health · Health #
Ask an LLM
“Is the legal contract attestation service up?”
“Can I health-check Lex Contract before recording events?”
Tell an agent
Check the health of the Lex Contract service.
Ping the contract lifecycle attestation API.
GET /v1/lex-contract/pricing See contract attestation pricing · Pricing #
Ask an LLM
“How much does it cost to attest contract lifecycle events?”
“What is the price per Lex Contract receipt?”
Tell an agent
Show me Lex Contract pricing.
Get the price list for contract lifecycle attestations.
POST /v1/lex-contract/draft_attest Record creation of a contract draft · Draft Attest #
Ask an LLM
“How do I timestamp the first draft of a contract between parties?”
“Can I record clause hashes when a contract draft is created?”
Tell an agent
Attest a new draft of contract {contract_id} between {parties}.
Record draft creation for {contract_id} with parties {parties} and clause hashes {clause_hashes}.
POST /v1/lex-contract/redline_attest Record a redline on a contract · Redline Attest #
Ask an LLM
“How do I keep a signed record of each redline or markup during negotiation?”
“Can I capture which clauses changed in a redline?”
Tell an agent
Attest a redline on contract {contract_id}.
Record markup on {contract_id} with updated clause hashes {clause_hashes}.
POST /v1/lex-contract/signature_attest Record one party signing a contract · Signature Attest #
Ask an LLM
“How do I record that one party has signed but others haven't yet?”
“Can I attest an individual signer's signature by DID?”
Tell an agent
Attest that {signer_did} signed contract {contract_id}.
Record a single-party signature on {contract_id} from signer {signer_did}.
POST /v1/lex-contract/execute_attest Record a fully executed contract · Execute Attest #
Ask an LLM
“How do I mark a contract as fully executed once every party has signed?”
“What do I send to attest full execution of an agreement?”
Tell an agent
Attest full execution of contract {contract_id} by all parties {parties}.
Record that {parties} have all signed {contract_id}.
POST /v1/lex-contract/amendment_attest Record an amendment to a signed contract · Amendment Attest #
Ask an LLM
“How do I record an amendment to a contract that's already in force?”
“Can amendments carry the new clause hashes?”
Tell an agent
Attest an amendment to contract {contract_id}.
Record amendment {event_payload} on {contract_id} with clause hashes {clause_hashes}.
POST /v1/lex-contract/notice_attest Record a formal contract notice · Notice Attest #
Ask an LLM
“How do I prove I sent a breach or termination-intent notice under a contract?”
“Can I attest a renewal opt-out notice?”
Tell an agent
Attest a {notice_type} notice on contract {contract_id}.
Record formal notice of type {notice_type} for {contract_id} to parties {parties}.
POST /v1/lex-contract/termination_attest Record a contract termination · Termination Attest #
Ask an LLM
“How do I create a signed record that a contract has been terminated?”
“Can I attest the end of an agreement for all parties?”
Tell an agent
Attest termination of contract {contract_id}.
Record that {contract_id} is terminated between {parties}.
GET /v1/lex-contract/chain_verify Verify a contract's receipt chain · Chain Verify Endpoint #
Ask an LLM
“How do I check the signatures on every lifecycle receipt for a contract?”
“Is a contract's event chain still valid and unbroken?”
Tell an agent
Verify the receipt chain for contract {contract_id}.
Check whether {contract_id}'s signed event chain is valid.
GET /v1/lex-contract/contract_get Get a contract with its lifecycle history · Contract Get #
Ask an LLM
“How do I see a contract and every event recorded against it?”
“Where can I read the full lifecycle of an agreement from draft to termination?”
Tell an agent
Get contract {contract_id} with all its lifecycle events.
Show me the full history of {contract_id}.

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/thehiveryiq-com:thehiveryiq-com-lex-contract-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

thehiveryiq-com-lex-contract-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Lex Contract API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: lex-contract
paths:
  /v1/lex-contract/health:
    get:
      tags:
      - lex-contract
      summary: Health
      operationId: health_v1_lex_contract_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Health V1 Lex Contract Health Get
  /v1/lex-contract/pricing:
    get:
      tags:
      - lex-contract
      summary: Pricing
      operationId: pricing_v1_lex_contract_pricing_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Pricing V1 Lex Contract Pricing Get
  /v1/lex-contract/draft_attest:
    post:
      tags:
      - lex-contract
      summary: Draft Attest
      description: Record a contract draft creation event.
      operationId: draft_attest_v1_lex_contract_draft_attest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DraftAttestRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Draft Attest V1 Lex Contract Draft Attest Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/lex-contract/redline_attest:
    post:
      tags:
      - lex-contract
      summary: Redline Attest
      description: Record a redline/markup event on a contract.
      operationId: redline_attest_v1_lex_contract_redline_attest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedlineAttestRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Redline Attest V1 Lex Contract Redline Attest Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/lex-contract/signature_attest:
    post:
      tags:
      - lex-contract
      summary: Signature Attest
      description: Record a single-party signature event.
      operationId: signature_attest_v1_lex_contract_signature_attest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignatureAttestRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Signature Attest V1 Lex Contract Signature Attest Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/lex-contract/execute_attest:
    post:
      tags:
      - lex-contract
      summary: Execute Attest
      description: Record full execution — all parties signed.
      operationId: execute_attest_v1_lex_contract_execute_attest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExecuteAttestRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Execute Attest V1 Lex Contract Execute Attest Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/lex-contract/amendment_attest:
    post:
      tags:
      - lex-contract
      summary: Amendment Attest
      description: Record a contract amendment.
      operationId: amendment_attest_v1_lex_contract_amendment_attest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AmendmentAttestRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Amendment Attest V1 Lex Contract Amendment Attest Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/lex-contract/notice_attest:
    post:
      tags:
      - lex-contract
      summary: Notice Attest
      description: Record a formal notice (breach, termination intent, renewal opt-in/out).
      operationId: notice_attest_v1_lex_contract_notice_attest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NoticeAttestRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Notice Attest V1 Lex Contract Notice Attest Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/lex-contract/termination_attest:
    post:
      tags:
      - lex-contract
      summary: Termination Attest
      description: Record contract termination.
      operationId: termination_attest_v1_lex_contract_termination_attest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TerminationAttestRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Termination Attest V1 Lex Contract Termination Attest Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/lex-contract/chain_verify:
    get:
      tags:
      - lex-contract
      summary: Chain Verify Endpoint
      description: Return ordered receipt chain + chain_valid bool + per-receipt sig validity.
      operationId: chain_verify_endpoint_v1_lex_contract_chain_verify_get
      parameters:
      - name: contract_id
        in: query
        required: true
        schema:
          type: string
          description: Contract ID to verify chain for
          title: Contract Id
        description: Contract ID to verify chain for
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Chain Verify Endpoint V1 Lex Contract Chain Verify Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/lex-contract/contract_get:
    get:
      tags:
      - lex-contract
      summary: Contract Get
      description: Return full contract object with all lifecycle events.
      operationId: contract_get_v1_lex_contract_contract_get_get
      parameters:
      - name: contract_id
        in: query
        required: true
        schema:
          type: string
          description: Contract ID to retrieve
          title: Contract Id
        description: Contract ID to retrieve
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Contract Get V1 Lex Contract Contract Get Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TerminationAttestRequest:
      properties:
        contract_id:
          type: string
          title: Contract Id
          description: Contract ID being terminated
        parties:
          items:
            $ref: '#/components/schemas/ContractParty'
          type: array
          title: Parties
        clause_hashes:
          items:
            $ref: '#/components/schemas/ClauseHash'
          type: array
          title: Clause Hashes
        event_payload:
          additionalProperties: true
          type: object
          title: Event Payload
          description: 'Termination metadata: termination_reason, effective_date, for_cause, etc.'
      type: object
      required:
      - contract_id
      title: TerminationAttestRequest
      description: Record contract termination.
    SignatureAttestRequest:
      properties:
        contract_id:
          type: string
          title: Contract Id
          description: Contract ID being signed
        signer_did:
          type: string
          title: Signer Did
          description: DID of the party signing
        parties:
          items:
            $ref: '#/components/schemas/ContractParty'
          type: array
          title: Parties
        clause_hashes:
          items:
            $ref: '#/components/schemas/ClauseHash'
          type: array
          title: Clause Hashes
        event_payload:
          additionalProperties: true
          type: object
          title: Event Payload
          description: 'Signature metadata: signature_method, signature_hash, timestamp, etc.'
      type: object
      required:
      - contract_id
      - signer_did
      title: SignatureAttestRequest
      description: Record a single-party signature event.
    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
    ContractParty:
      properties:
        did:
          type: string
          title: Did
          description: DID of the party (e.g. did:hive:org:acme)
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
          description: Human-readable name of the party
        role:
          anyOf:
          - type: string
          - type: 'null'
          title: Role
          description: 'Party role: buyer, seller, licensor, licensee, service_provider, client, other'
      type: object
      required:
      - did
      title: ContractParty
      description: A party to the contract with a DID.
    AmendmentAttestRequest:
      properties:
        contract_id:
          type: string
          title: Contract Id
          description: Contract ID being amended
        parties:
          items:
            $ref: '#/components/schemas/ContractParty'
          type: array
          title: Parties
        clause_hashes:
          items:
            $ref: '#/components/schemas/ClauseHash'
          type: array
          title: Clause Hashes
          description: Amended clause hashes
        event_payload:
          additionalProperties: true
          type: object
          title: Event Payload
          description: 'Amendment metadata: amendment_number, amendment_summary, effective_date, etc.'
      type: object
      required:
      - contract_id
      title: AmendmentAttestRequest
      description: Record a contract amendment.
    NoticeAttestRequest:
      properties:
        contract_id:
          type: string
          title: Contract Id
          description: Contract ID notice is issued against
        notice_type:
          type: string
          title: Notice Type
          description: 'Type of notice: breach, termination_intent, renewal_opt_in, renewal_opt_out, cure, other'
        parties:
          items:
            $ref: '#/components/schemas/ContractParty'
          type: array
          title: Parties
        clause_hashes:
          items:
            $ref: '#/components/schemas/ClauseHash'
          type: array
          title: Clause Hashes
        event_payload:
          additionalProperties: true
          type: object
          title: Event Payload
          description: 'Notice metadata: notice_hash, delivery_method, cure_deadline, etc.'
      type: object
      required:
      - contract_id
      - notice_type
      title: NoticeAttestRequest
      description: Record a formal notice (breach, termination intent, renewal opt-in/out).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExecuteAttestRequest:
      properties:
        contract_id:
          type: string
          title: Contract Id
          description: Contract ID being executed
        parties:
          items:
            $ref: '#/components/schemas/ContractParty'
          type: array
          title: Parties
          description: All executing parties
        clause_hashes:
          items:
            $ref: '#/components/schemas/ClauseHash'
          type: array
          title: Clause Hashes
        event_payload:
          additionalProperties: true
          type: object
          title: Event Payload
          description: 'Execution metadata: effective_date, governing_law, signature_page_hash, etc.'
      type: object
      required:
      - contract_id
      - parties
      title: ExecuteAttestRequest
      description: Record full execution (all parties signed).
    DraftAttestRequest:
      properties:
        contract_id:
          type: string
          title: Contract Id
          description: Unique contract identifier (UUID or client-assigned)
        parties:
          items:
            $ref: '#/components/schemas/ContractParty'
          type: array
          title: Parties
          description: Contracting parties with DIDs
        clause_hashes:
          items:
            $ref: '#/components/schemas/ClauseHash'
          type: array
          title: Clause Hashes
          description: Clause tamper-evidence hashes
        event_payload:
          additionalProperties: true
          type: object
          title: Event Payload
          description: Arbitrary event metadata (title, jurisdiction, governing_law, etc.)
      type: object
      required:
      - contract_id
      - parties
      title: DraftAttestRequest
      description: Record a contract draft creation event.
    ClauseHash:
      properties:
        clause_id:
          type: string
          title: Clause Id
          description: Clause identifier (e.g. '3.1', 'indemnity', 'ip_ownership')
        hash:
          type: string
          maxLength: 64
          minLength: 64
          title: Hash
          description: sha256 hex of the canonical clause text
      type: object
      required:
      - clause_id
      - hash
      title: ClauseHash
      description: sha256 hash of a contract clause for tamper-evidence.
    RedlineAttestRequest:
      properties:
        contract_id:
          type: string
          title: Contract Id
          description: Contract ID being redlined
        parties:
          items:
            $ref: '#/components/schemas/ContractParty'
          type: array
          title: Parties
        clause_hashes:
          items:
            $ref: '#/components/schemas/ClauseHash'
          type: array
          title: Clause Hashes
          description: Updated clause hashes after redline
        event_payload:
          additionalProperties: true
          type: object
          title: Event Payload
          description: 'Redline metadata: redliner_did, change_summary, version_label, etc.'
      type: object
      required:
      - contract_id
      title: RedlineAttestRequest
      description: Record a redline/markup event on a contract.
x-provenance:
  method: harvested
  publisher: Hive Civilization
  source: https://receipts.thehiveryiq.com/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)