Ben Milne Contact API

The Contact API from Ben Milne — 1 operation(s) for contact.

Operations 1

POST /contact/send Send a paid message via x402 #

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/benmilne-com:benmilne-com-contact-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

benmilne-com-contact-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: benmilne.com Developer Contact API
  description: Public read-only multilingual API for benmilne.com content. Supports 14 languages via ?lang= query parameter. English is the default and source of truth. SSE streaming available for real-time search.
  version: 2.0.0
  contact:
    name: Ben Milne
    url: https://benmilne.com/api
  x-cli:
    name: benmilne-api
    install: npm install -g benmilne-api
    registry: https://www.npmjs.com/package/benmilne-api
  x-source:
    url: https://github.com/benmilne-com/agents
    type: github
  x-ratelimit:
    strategy: edge-cache
    description: Cloudflare edge caching serves most reads. No application-level rate limit enforced. Headers included on every JSON response.
    headers:
    - X-RateLimit-Limit
    - X-RateLimit-Remaining
    - X-RateLimit-Reset
  x-graphql:
    endpoint: https://benmilne.com/graphql
    introspection: true
    description: Read-only GraphQL API with Relay cursor pagination, typed errors, and full schema descriptions. POST queries to /graphql.
servers:
- url: https://benmilne.com
  description: Production
- url: https://benmilne.com/sandbox
  description: Sandbox (canned test data)
security:
- public: []
tags:
- name: Contact
paths:
  /contact/send:
    post:
      operationId: sendContactMessage
      summary: Send a paid message via x402
      description: Agent-to-human contact gated by x402 stablecoin payment. First request returns 402 with payment requirements and field schema. Retry with PAYMENT-SIGNATURE header after signing an ERC-2612 permit.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sender:
                  type: string
                  description: Agent or service identifier
                body:
                  type: string
                  description: Message content
                reply_to:
                  type: string
                  format: email
                  description: Email address for replies
                callback:
                  type: string
                  format: uri
                  description: Webhook endpoint for responses
              required:
              - sender
              - body
      parameters:
      - name: PAYMENT-SIGNATURE
        in: header
        description: Base64-encoded x402 payment payload (ERC-2612 permit)
        schema:
          type: string
      responses:
        '200':
          description: Message delivered with payment receipt
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  txHash:
                    type: string
                  receipt:
                    type: object
        '402':
          description: Payment required — includes price, accepted assets, and field schema
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  price:
                    type: string
                  accepts:
                    type: array
                  fields:
                    type: array
        '422':
          description: Required fields missing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Contact endpoint disabled or not configured
      tags:
      - Contact
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        supported_languages:
          type: array
          items:
            type: string
      required:
      - error
  securitySchemes:
    public:
      type: http
      scheme: bearer
      description: All read endpoints are public and unauthenticated. No API key or token is required.
externalDocs:
  description: benmilne.com developer portal
  url: https://benmilne.com/developers