MIDAS Protocol core API

MIDAS Protocol core API as documented publicly: 9 operations. Contract generated from the documentation by API Evangelist (2026-11-18); not the provider's own document.

GitHub OpenAPI

Operations 9

GET /bookings/{id} GET /bookings/{id} #
GET /lending/repay/{loanid} GET /lending/repay/{loanid} #
POST /lending/repay/{loanid} POST /lending/repay/{loanid} #
POST /payments/send POST /payments/send #
GET /payments/{id} GET /payments/{id} #
GET /wallets/fund GET /wallets/fund #
POST /wallets/fund POST /wallets/fund #
GET /x402/pay GET /x402/pay #
POST /x402/pay POST /x402/pay #

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/midasprotocol-org:core-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

midasprotocol-org-core-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: MIDAS Protocol core API
  version: '2026-11-18'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-18: 9 operation(s) read from 6 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; MIDAS Protocol has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 25
    documentation: -5
    pages-with-code: 14
    pages-read: 14
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-18'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.midasprotocol.org/api/bookings/get
  - https://docs.midasprotocol.org/api/lending/repay
  - https://docs.midasprotocol.org/api/payments/get
  - https://docs.midasprotocol.org/api/payments/send
  - https://docs.midasprotocol.org/api/wallets/fund
  - https://docs.midasprotocol.org/api/x402/pay
  x-docs-section: core
servers:
- url: https://api.midasprotocol.org
paths:
  /bookings/{id}:
    get:
      operationId: get_bookings_id
      tags:
      - Bookings
      summary: GET /bookings/{id}
      x-source: https://docs.midasprotocol.org/api/bookings/get
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBookingsIdResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl curl --request GET  --url https://api.example.com/bookings/{id} import requests\nurl = \"https://api.example.com/bookings/{id}\"\
          \nresponse = requests.get(url)\nprint(response.text) const options = {method: 'GET'};\nfetch('https://api.example.com/bookings/{id}',\
          \ options)\n .then(res => res.json())\n .then(res => console.log(res))\n .catch(err => console.error(err)); <?php"
  /lending/repay/{loanid}:
    get:
      operationId: get_lending_repay_loanid
      tags:
      - Lending
      summary: GET /lending/repay/{loanid}
      x-source: https://docs.midasprotocol.org/api/lending/repay
      parameters:
      - name: loanid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetLendingRepayLoanidResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl);\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n} package main\nimport (\n \"fmt\"\n \"strings\"\
          \n \"net/http\"\n \"io\"\n)\nfunc main() {\n url := \"https://api.example.com/lending/repay/{loanId}\"\n payload := strings.NewReader(\"\
          {\\n \\\"amount\\\": 123\\n}\")\n req, _ := http.NewRequest(\"POST\", url, payload)\n req.Header.Add(\"Content-Type\", \"application/json\"\
          )\n res, _ := http.DefaultClient.Do(re"
    post:
      operationId: post_lending_repay_loanid
      tags:
      - Lending
      summary: POST /lending/repay/{loanid}
      x-source: https://docs.midasprotocol.org/api/lending/repay
      parameters:
      - name: loanid
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostLendingRepayLoanidRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostLendingRepayLoanidResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl curl --request POST  --url https://api.example.com/lending/repay/{loanId}  --header 'Content-Type: application/json'  --data\
          \ '{ \n \"amount\": 123 \n }' import requests\nurl = \"https://api.example.com/lending/repay/{loanId}\"\npayload = { \"amount\": 123\
          \ }\nheaders = {\"Content-Type\": \"application/json\"}\nresponse = requests.post(url, json=payload, headers=headers)\nprint(response.text)\
          \ const options = {\n"
  /payments/send:
    post:
      operationId: post_payments_send
      tags:
      - Payments
      summary: POST /payments/send
      x-source: https://docs.midasprotocol.org/api/payments/send
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostPaymentsSendRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostPaymentsSendResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.midasprotocol.org/payments/send  -H \"Authorization: Bearer pp_your_key\"  -H \"Content-Type: application/json\"\
          \  -d '{ \n \"toAgentId\": \"recipient-uuid\", \n \"amount\": 25, \n \"currency\": \"USDC\", \n \"reason\": \"Service payment\" \n }'\
          \ \n On-Chain Payment (Circle Paymaster) "
  /payments/{id}:
    get:
      operationId: get_payments_id
      tags:
      - Payments
      summary: GET /payments/{id}
      x-source: https://docs.midasprotocol.org/api/payments/get
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPaymentsIdResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl curl --request GET  --url https://api.example.com/payments/{id} import requests\nurl = \"https://api.example.com/payments/{id}\"\
          \nresponse = requests.get(url)\nprint(response.text) const options = {method: 'GET'};\nfetch('https://api.example.com/payments/{id}',\
          \ options)\n .then(res => res.json())\n .then(res => console.log(res))\n .catch(err => console.error(err)); <?php"
  /wallets/fund:
    get:
      operationId: get_wallets_fund
      tags:
      - Wallets
      summary: GET /wallets/fund
      x-source: https://docs.midasprotocol.org/api/wallets/fund
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWalletsFundResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl);\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n} package main\nimport (\n \"fmt\"\n \"strings\"\
          \n \"net/http\"\n \"io\"\n)\nfunc main() {\n url := \"https://api.example.com/wallets/fund\"\n payload := strings.NewReader(\"{\\n \\\
          \"amount\\\": 123,\\n \\\"currency\\\": \\\"<string>\\\",\\n \\\"method\\\": \\\"<string>\\\"\\n}\")\n req, _ := http.NewRequest(\"\
          POST\", url, payload)\n req.Header.Add(\"Content-Type\", \"applic"
    post:
      operationId: post_wallets_fund
      tags:
      - Wallets
      summary: POST /wallets/fund
      x-source: https://docs.midasprotocol.org/api/wallets/fund
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostWalletsFundRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostWalletsFundResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.midasprotocol.org/wallets/fund  -H \"Authorization: Bearer pp_your_key\"  -H \"Content-Type: application/json\"\
          \  -d '{ \"amount\": 100, \"currency\": \"USDC\", \"method\": \"crypto_deposit\" }' \n Response \n { \n \"walletId\" : \"uuid\" , \n\
          \ \"method\" : \"crypto_deposit\" , \n \"instructions\" : { \n \"address\" : \"0x...\" , \n \"network\" : \"base\" , \n \"currency\"\
          \ : \"USDC\" , \n \"note\" : \"Send USDC on Base ne"
  /x402/pay:
    get:
      operationId: get_x402_pay
      tags:
      - X402
      summary: GET /x402/pay
      x-source: https://docs.midasprotocol.org/api/x402/pay
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetX402PayResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl);\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n} package main\nimport (\n \"fmt\"\n \"strings\"\
          \n \"net/http\"\n \"io\"\n)\nfunc main() {\n url := \"https://api.example.com/x402/pay\"\n payload := strings.NewReader(\"{\\n \\\"\
          url\\\": \\\"<string>\\\",\\n \\\"method\\\": \\\"<string>\\\",\\n \\\"headers\\\": {},\\n \\\"body\\\": \\\"<string>\\\"\\n}\")\n req,\
          \ _ := http.NewRequest(\"POST\", url, payload)\n req.Header.Add(\"Conte"
    post:
      operationId: post_x402_pay
      tags:
      - X402
      summary: POST /x402/pay
      x-source: https://docs.midasprotocol.org/api/x402/pay
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostX402PayRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostX402PayResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.midasprotocol.org/x402/pay  -H \"Authorization: Bearer pp_your_api_key\"  -H \"Content-Type: application/json\"\
          \  -d '{ \n \"url\": \"https://api.example.com/premium-data\", \n \"method\": \"GET\" \n }' \n Response (no payment needed) \n If the\
          \ target service does not require payment, the response is proxied directly: \n { \n \"success\" : true , \n \"statusCode\" : 200 ,\
          \ \n \"headers\" : { \"content-"
security:
- bearer: []
components:
  schemas:
    GetBookingsIdResponse:
      type: object
      properties:
        method:
          type: string
    GetLendingRepayLoanidResponse:
      type: object
      properties:
        loanId:
          type: string
        amountPaid:
          type: string
        totalRepaid:
          type: string
        totalOwed:
          type: string
        remaining:
          type: string
        status:
          type: string
        collateralReturned:
          type: boolean
    PostLendingRepayLoanidRequest:
      type: object
      properties:
        amount:
          type: integer
    PostLendingRepayLoanidResponse:
      type: object
      properties:
        loanId:
          type: string
        amountPaid:
          type: string
        totalRepaid:
          type: string
        totalOwed:
          type: string
        remaining:
          type: string
        status:
          type: string
        collateralReturned:
          type: boolean
    PostPaymentsSendRequest:
      type: object
      properties:
        toAgentId:
          type: string
        amount:
          type: integer
        currency:
          type: string
        reason:
          type: string
    PostPaymentsSendResponse:
      type: object
      properties:
        transactionId:
          type: string
        status:
          type: string
        amount:
          type: string
        currency:
          type: string
        fees:
          type: string
        rail:
          type: string
        recipient:
          type: object
          properties:
            id:
              type: string
            name:
              type: string
        completedAt:
          type: string
          format: date-time
    GetPaymentsIdResponse:
      type: object
      properties:
        method:
          type: string
    GetWalletsFundResponse:
      type: object
      properties:
        walletId:
          type: string
        method:
          type: string
        instructions:
          type: object
          properties:
            address:
              type: string
            network:
              type: string
            currency:
              type: string
            note:
              type: string
    PostWalletsFundRequest:
      type: object
      properties:
        amount:
          type: integer
        currency:
          type: string
        method:
          type: string
    PostWalletsFundResponse:
      type: object
      properties:
        walletId:
          type: string
        method:
          type: string
        instructions:
          type: object
          properties:
            address:
              type: string
            network:
              type: string
            currency:
              type: string
            note:
              type: string
    GetX402PayResponse:
      type: object
      properties:
        success:
          type: boolean
        statusCode:
          type: integer
        headers:
          type: object
          properties:
            content-type:
              type: string
        body:
          type: string
    PostX402PayRequest:
      type: object
      properties:
        url:
          type: string
        method:
          type: string
    PostX402PayResponse:
      type: object
      properties:
        success:
          type: boolean
        statusCode:
          type: integer
        headers:
          type: object
          properties:
            content-type:
              type: string
        body:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
tags:
- name: Bookings
- name: Lending
- name: Payments
- name: Wallets
- name: X402