TODO.LAW API

TODO.LAW API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-26); not the provider's own document.

GitHub OpenAPI

Operations 45

GET /.well-known/agent.json Agent card describing the service capabilities, authentication and contract types. #
GET /api/v1/agent/contract-types Contract types and the facts each needs #
POST /api/v1/agent/contracts Make a contract in one call #
GET /api/v1/agent/credits/balance Credits left #
POST /api/v1/agent/credits/checkout A payment link for a bundle of credits #
GET /api/v1/agent/deadlines Public statutory dates with their sources #
DELETE /api/v1/agent/deals/{dealid} Delete one of your single-party deals and its data #
GET /api/v1/agent/deals/{dealid} A deal's clauses and status #
POST /api/v1/agent/deals/{dealid}/attorney Invite your own lawyer to review #
GET /api/v1/agent/deals/{dealid}/document/md The contract as Markdown (also /html, /txt, /docx; PDF without suffix) #
GET /api/v1/agent/deals/{dealid}/obligations The duties and dates of a contract #
GET /api/v1/agent/find-template The templates that match a description #
POST /api/v1/agent/mcp MCP server endpoint to send tool calls with POST, with your API key in the Authorization header. #
POST /api/v1/agent/negotiate Start a new negotiation (returns token). #
POST /api/v1/agent/negotiate/join Join using a negotiation token. #
POST /api/v1/agent/playbooks Create a new negotiation playbook. #
GET /api/v1/agent/templates/{code} Clauses and options of one contract #
GET /api/v1/agent/templates/{code}/options The options of one clause, from both sides #
POST /contracts Make a contract in one call #
GET /credits/balance Your account's credit balance, shared by all of its API keys #
POST /credits/checkout Buy a prepaid bundle of contract credits for your account #
GET /deals List all deals for this API key #
DELETE /deals/{id} Delete one of your single‑party deals and its data #
GET /deals/{id} Get deal outcome and clause results #
POST /deals/{id}/accept Accept the current suggestion. #
POST /deals/{id}/counter Submit counter‑proposals for specific clauses #
POST /deals/{id}/dispute Escalate a deal to Gavel (planned). #
GET /deals/{id}/document Download the final contract as PDF #
GET /deals/{id}/document/docx Download the final contract as DOCX #
POST /deals/{id}/reject Reject and fail the deal. #
GET /deals/{id}/status Lightweight status poll. #
POST /negotiate Start a new negotiation (returns token) #
POST /negotiate/join Join using a negotiation token #
GET /playbooks List all playbooks for this API key #
POST /playbooks Create a new negotiation playbook #
DELETE /playbooks/{id} Delete a playbook #
GET /playbooks/{id} Get playbook details #
PUT /playbooks/{id} Update an existing playbook #
POST /subscribe Retired: answers 410. There is no subscription; contracts are paid with credits #
GET /subscriptions View the premium entitlements held by the API key's customer #
GET /templates List all available contract templates #
GET /templates/{contracttype} Get template details including all clauses and options #
GET /webhooks List registered webhook endpoints #
POST /webhooks Register a new webhook endpoint #
DELETE /webhooks/{id} Delete a webhook endpoint #

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/todo-law:todo-law-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

todo-law-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: TODO.LAW API
  version: '2026-11-26'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-26: 45 operation(s) read from 2 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; TODO.LAW has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 0
    documentation: 45
    pages-with-code: 1
    pages-read: 2
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-26'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://dealroom.todo.law/docs/agent-api
  - https://dealroom.todo.law/developers
servers:
- url: https://dealroom.todo.law
paths:
  /.well-known/agent.json:
    get:
      operationId: get_well_known_agent_json
      tags:
      - API
      summary: Agent card describing the service capabilities, authentication and contract types.
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agent/contract-types:
    get:
      operationId: get_api_v1_agent_contract_types
      tags:
      - Api
      summary: Contract types and the facts each needs
      x-source: https://dealroom.todo.law/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agent/contracts:
    post:
      operationId: post_api_v1_agent_contracts
      tags:
      - Api
      summary: Make a contract in one call
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agent/credits/balance:
    get:
      operationId: get_api_v1_agent_credits_balance
      tags:
      - Api
      summary: Credits left
      x-source: https://dealroom.todo.law/developers
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AgentCreditsBalanceResponse'
      x-evidence:
        kind: documentation
  /api/v1/agent/credits/checkout:
    post:
      operationId: post_api_v1_agent_credits_checkout
      tags:
      - Api
      summary: A payment link for a bundle of credits
      x-source: https://dealroom.todo.law/developers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1AgentCreditsCheckoutRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1AgentCreditsCheckoutResponse'
      x-evidence:
        kind: documentation
  /api/v1/agent/deadlines:
    get:
      operationId: get_api_v1_agent_deadlines
      tags:
      - Api
      summary: Public statutory dates with their sources
      x-source: https://dealroom.todo.law/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agent/deals/{dealid}:
    delete:
      operationId: delete_api_v1_agent_deals_dealid
      tags:
      - Api
      summary: Delete one of your single-party deals and its data
      x-source: https://dealroom.todo.law/developers
      parameters:
      - name: dealid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_api_v1_agent_deals_dealid
      tags:
      - Api
      summary: A deal's clauses and status
      x-source: https://dealroom.todo.law/developers
      parameters:
      - name: dealid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AgentDealsDealidResponse'
      x-evidence:
        kind: documentation
  /api/v1/agent/deals/{dealid}/attorney:
    post:
      operationId: post_api_v1_agent_deals_dealid_attorney
      tags:
      - Api
      summary: Invite your own lawyer to review
      x-source: https://dealroom.todo.law/developers
      parameters:
      - name: dealid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agent/deals/{dealid}/document/md:
    get:
      operationId: get_api_v1_agent_deals_dealid_document_md
      tags:
      - Api
      summary: The contract as Markdown (also /html, /txt, /docx; PDF without suffix)
      x-source: https://dealroom.todo.law/developers
      parameters:
      - name: dealid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AgentDealsDealidDocumentMdResponse'
      x-evidence:
        kind: documentation
  /api/v1/agent/deals/{dealid}/obligations:
    get:
      operationId: get_api_v1_agent_deals_dealid_obligations
      tags:
      - Api
      summary: The duties and dates of a contract
      x-source: https://dealroom.todo.law/developers
      parameters:
      - name: dealid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agent/find-template:
    get:
      operationId: get_api_v1_agent_find_template
      tags:
      - Api
      summary: The templates that match a description
      x-source: https://dealroom.todo.law/developers
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AgentFindTemplateResponse'
      x-evidence:
        kind: documentation
  /api/v1/agent/mcp:
    post:
      operationId: post_api_v1_agent_mcp
      tags:
      - Api
      summary: MCP server endpoint to send tool calls with POST, with your API key in the Authorization header.
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agent/negotiate:
    post:
      operationId: post_api_v1_agent_negotiate
      tags:
      - Api
      summary: Start a new negotiation (returns token).
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agent/negotiate/join:
    post:
      operationId: post_api_v1_agent_negotiate_join
      tags:
      - Api
      summary: Join using a negotiation token.
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agent/playbooks:
    post:
      operationId: post_api_v1_agent_playbooks
      tags:
      - Api
      summary: Create a new negotiation playbook.
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/agent/templates/{code}:
    get:
      operationId: get_api_v1_agent_templates_code
      tags:
      - Api
      summary: Clauses and options of one contract
      x-source: https://dealroom.todo.law/developers
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AgentTemplatesCodeResponse'
      x-evidence:
        kind: documentation
  /api/v1/agent/templates/{code}/options:
    get:
      operationId: get_api_v1_agent_templates_code_options
      tags:
      - Api
      summary: The options of one clause, from both sides
      x-source: https://dealroom.todo.law/developers
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
      - name: clause
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1AgentTemplatesCodeOptionsResponse'
      x-evidence:
        kind: documentation
  /contracts:
    post:
      operationId: post_contracts
      tags:
      - Contracts
      summary: Make a contract in one call
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /credits/balance:
    get:
      operationId: get_credits_balance
      tags:
      - Credits
      summary: Your account's credit balance, shared by all of its API keys
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /credits/checkout:
    post:
      operationId: post_credits_checkout
      tags:
      - Credits
      summary: Buy a prepaid bundle of contract credits for your account
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /deals:
    get:
      operationId: get_deals
      tags:
      - Deals
      summary: List all deals for this API key
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /deals/{id}:
    delete:
      operationId: delete_deals_id
      tags:
      - Deals
      summary: Delete one of your single‑party deals and its data
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_deals_id
      tags:
      - Deals
      summary: Get deal outcome and clause results
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /deals/{id}/accept:
    post:
      operationId: post_deals_id_accept
      tags:
      - Deals
      summary: Accept the current suggestion.
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /deals/{id}/counter:
    post:
      operationId: post_deals_id_counter
      tags:
      - Deals
      summary: Submit counter‑proposals for specific clauses
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /deals/{id}/dispute:
    post:
      operationId: post_deals_id_dispute
      tags:
      - Deals
      summary: Escalate a deal to Gavel (planned).
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /deals/{id}/document:
    get:
      operationId: get_deals_id_document
      tags:
      - Deals
      summary: Download the final contract as PDF
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /deals/{id}/document/docx:
    get:
      operationId: get_deals_id_document_docx
      tags:
      - Deals
      summary: Download the final contract as DOCX
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /deals/{id}/reject:
    post:
      operationId: post_deals_id_reject
      tags:
      - Deals
      summary: Reject and fail the deal.
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /deals/{id}/status:
    get:
      operationId: get_deals_id_status
      tags:
      - Deals
      summary: Lightweight status poll.
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /negotiate:
    post:
      operationId: post_negotiate
      tags:
      - Negotiate
      summary: Start a new negotiation (returns token)
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /negotiate/join:
    post:
      operationId: post_negotiate_join
      tags:
      - Negotiate
      summary: Join using a negotiation token
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /playbooks:
    get:
      operationId: get_playbooks
      tags:
      - Playbooks
      summary: List all playbooks for this API key
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_playbooks
      tags:
      - Playbooks
      summary: Create a new negotiation playbook
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /playbooks/{id}:
    delete:
      operationId: delete_playbooks_id
      tags:
      - Playbooks
      summary: Delete a playbook
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_playbooks_id
      tags:
      - Playbooks
      summary: Get playbook details
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    put:
      operationId: put_playbooks_id
      tags:
      - Playbooks
      summary: Update an existing playbook
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /subscribe:
    post:
      operationId: post_subscribe
      tags:
      - Subscribe
      summary: 'Retired: answers 410. There is no subscription; contracts are paid with credits'
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /subscriptions:
    get:
      operationId: get_subscriptions
      tags:
      - Subscriptions
      summary: View the premium entitlements held by the API key's customer
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /templates:
    get:
      operationId: get_templates
      tags:
      - Templates
      summary: List all available contract templates
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /templates/{contracttype}:
    get:
      operationId: get_templates_contracttype
      tags:
      - Templates
      summary: Get template details including all clauses and options
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: contracttype
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /webhooks:
    get:
      operationId: get_webhooks
      tags:
      - Webhooks
      summary: List registered webhook endpoints
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_webhooks
      tags:
      - Webhooks
      summary: Register a new webhook endpoint
      x-source: https://dealroom.todo.law/docs/agent-api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /webhooks/{id}:
    delete:
      operationId: delete_webhooks_id
      tags:
      - Webhooks
      summary: Delete a webhook endpoint
      x-source: https://dealroom.todo.law/docs/agent-api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    GetApiV1AgentCreditsBalanceResponse:
      type: object
      properties:
        balance:
          type: string
    PostApiV1AgentCreditsCheckoutRequest:
      type: object
      properties:
        bundleSize:
          type: string
      required:
      - bundleSize
    PostApiV1AgentCreditsCheckoutResponse:
      type: object
      properties:
        paymentLink:
          type: string
    GetApiV1AgentDealsDealidResponse:
      type: object
      properties:
        dealId:
          type: string
        status:
          type: string
        clauses:
          type: string
        documents:
          type: string
    GetApiV1AgentDealsDealidDocumentMdResponse:
      type: object
      properties:
        format:
          type: string
        content:
          type: string
    GetApiV1AgentFindTemplateResponse:
      type: object
      properties:
        templates:
          type: string
    GetApiV1AgentTemplatesCodeResponse:
      type: object
      properties:
        clauses:
          type: string
        options:
          type: string
    GetApiV1AgentTemplatesCodeOptionsResponse:
      type: object
      properties:
        options:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: API
- name: Api
- name: Contracts
- name: Credits
- name: Deals
- name: Negotiate
- name: Playbooks
- name: Subscribe
- name: Subscriptions
- name: Templates
- name: Webhooks