Mercantry Keys API

The Keys API from Mercantry — 1 operation(s) for keys.

GitHub OpenAPI

Operations 1

POST /v1/keys Self-serve developer key (free; abuse control, not gating) #

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/mercantry-org:mercantry-org-keys-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

mercantry-org-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Registry — agent-native merchant registry (REST mirror)…
  version: 1.0.0
  description: 'Structured merchant data and phone-fulfilled restaurant reservations for AI agents. San Francisco, CA, ~500 merchants. This REST surface mirrors the MCP server at POST /mcp (Streamable HTTP) — same data, same booking state machine. Honest by design: filter-based search in deterministic order (never ranked), transaction-verified feedback only, availability checked on the call at booking time (`performed_at_booking`). Reads are free and unauthenticated; API keys are optional and exist for abuse control, not gating. Errors are machine-actionable: every 4xx/5xx body carries a stable `error` code plus `field`/`allowed`/`example`/`message`/`docs` where known (schema AgentError); 429s set Retry-After.'
servers:
- url: https://mercantry.org
tags:
- name: Keys
paths:
  /v1/keys:
    post:
      summary: Self-serve developer key (free; abuse control, not gating)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - developer_name
              - contact
              properties:
                developer_name:
                  type: string
                  maxLength: 80
                contact:
                  type: string
                  maxLength: 120
                webhook_url:
                  type: string
                  description: Optional http(s) URL for booking state-change webhooks.
      responses:
        '200':
          description: New key (reg_...) and documented rate limit.
        '400':
          description: invalid_developer_name | invalid_contact | invalid_webhook_url.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentError'
        '429':
          description: key_minting_limit_per_ip | key_minting_limit_global — Retry-After says when the rolling 24h window frees up.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentError'
      tags:
      - Keys
      operationId: postV1Keys
      x-operation-id-source: derived
components:
  schemas:
    AgentError:
      type: object
      description: Agent-actionable error, returned on every 4xx/5xx. `error` is a stable machine code — match on it exactly. Where known, `field` names the offending input, `allowed`/`example` say what would be accepted, `message` explains the fix, and `docs` links this document. 429s additionally set the Retry-After header and `retry_after_s`.
      required:
      - error
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: string
          description: Stable machine code, e.g. party_size_out_of_range, unknown_merchant, rate_limited.
        message:
          type: string
          description: What went wrong and what to do instead.
        field:
          type: string
          description: The offending request field, when the error is input-specific.
        allowed:
          type: string
          description: Accepted values/range for `field`, e.g. '1-8'.
        example:
          type: string
          description: An example of an accepted value.
        docs:
          type: string
          description: URL of this OpenAPI document.
        retry_after_s:
          type: integer
          description: Seconds to wait before retrying (429 only; mirrors the Retry-After header).
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Optional developer key from POST /v1/keys. Also accepted as Authorization: Bearer <key>.'
x-rate-limits:
  per_minute: 300
  headers:
  - X-RateLimit-Limit
  - X-RateLimit-Remaining
  - X-RateLimit-Reset
  on_429: Retry-After header (seconds) + retry_after_s/limit/remaining/reset in the body — wait exactly that long, then resume.
x-mcp:
  endpoint: /mcp
  transport: streamable-http
  note: Agents with MCP support should prefer the MCP endpoint; tools self-describe via tools/list.