MarkMesh Search API

Cross-office trademark search — fans out across USPTO, EUIPO, DPMA, ... in one call. Usual entry point into the domain workflow.

GitHub OpenAPI

Operations 1

GET /search Search #

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/markmesh-com:markmesh-com-search-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

markmesh-com-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'The MarkMesh REST API is a JSON:API-compliant interface for

    managing trademarks, filings, clients and watches. It is the

    same surface used by the MarkMesh web UI, exposed for machine

    integrations under the `mm_live_*` / `mm_test_*` API-key auth. Two integration shapes:


    - **Customer-self** — you manage your own organisation''s

    trademark portfolio. Use the resource tags (Clients,

    Trademarks, Filings, Watches) directly. - **Partner / agency** — you manage *other* organisations''

    portfolios on their behalf. Read managed-orgs and their data

    via the **Partner** tag; create or update by passing

    `organization_id` on the existing customer-side endpoints. Each call requires an active `PartnerRelationship`. ## Quickstart


    1. Create an API key in the dashboard at `/api/keys` (live or sandbox). 2. Set the `Authorization: Bearer mm_live_…` header on every request. 3. Hit `GET /v1/introspect` to confirm the key is valid and to see

    which organisation it is bound to. 4. Browse the endpoint reference below or jump to one of the

    guides. ```bash

    curl https://api.markmesh.com/v1/introspect \

    -H "Authorization: Bearer mm_live_xxxxxxxx"

    ```


    ---


    ## Authentication


    Every request must carry a Bearer token in the `Authorization`

    header. Token prefixes:


    - `mm_live_*` — production keys, bound to a live organisation,

    hit live trademark-office APIs

    - `mm_test_*` — sandbox keys, bound to a sandbox organisation,

    backed by the sandbox dataset described below


    Tokens are shown **once** at creation. Lost a token? Revoke and

    recreate. Tokens are scoped to one organisation. A `mm_live_*`

    key against a sandbox organisation — or vice versa — returns

    `401 environment_mismatch`. ---


    ## Sandbox


    Sandbox keys (`mm_test_*`) run against a curated test dataset

    designed for integration testing and CI. Same routes, same

    JSON:API shapes, same headers as production — only the data

    your customer code consumes changes. Production logic runs

    unmodified. Every office in sandbox is covered by **deterministic test

    data**: each office exposes three known marks with stable

    identifiers (`MM--001/002/003`), owner

    `MarkMesh Sandbox Co.`, a mix of `:registered` and `:pending`

    status. The same query against the same office returns the

    same hits today, tomorrow, next year — so your CI can assert

    exact mark numbers, dates, and Nice/Vienna classes without

    flakiness. Search is case-insensitive substring on `mark_text`,

    `application_number`, and `registration_number`:


    ```bash

    # Returns the "ALPHA" mark from each requested office

    curl ''https://api.markmesh.com/v1/search?q=ALPHA&offices=FR,JP,KR,ES'' \

    -H "Authorization: Bearer mm_test_xxxxxxxx"


    # Exact-number lookup — registers a sandbox filing on a trademark

    curl ''https://api.markmesh.com/v1/filings/import_from_office'' \

    -H "Authorization: Bearer mm_test_xxxxxxxx" \

    -d ''{"office":"FR","number":"MM-FR-001","trademark_id":""}''

    ```


    Sandbox organisations also short-circuit billing operations

    (Stripe is never called from sandbox), enforce per-resource

    storage caps (100 trademarks / 200 filings / 50 clients), and

    expose a `reset_sandbox` action that wipes all data in one

    call — perfect for resetting state between CI runs. No production filings are ever created against an office from

    a sandbox key. ---


    ## Pagination


    List endpoints use **keyset pagination** — no offset, no

    `page=2`. The response carries a `meta.page` block with

    `after` / `before` / `total_count`; pass the cursor back via

    `page[after]=…` to fetch the next slice. - `page[limit]` — page size (default 25, max 100)

    - `page[after]` — keyset cursor returned in the previous response


    ```bash

    curl ''https://api.markmesh.com/v1/filings?page[limit]=10'' \

    -H "Authorization: Bearer mm_live_xxxxxxxx"

    ```


    Sorting and filtering have their own sections below; both

    layer on top of pagination via separate query params. ---


    ## Sorting


    Every list endpoint accepts a `sort` query parameter. Pass one

    or more attribute names, comma-separated; prefix with `-` for

    descending order.'
  title: MarkMesh Search API
  version: v1
servers:
- description: Production API surface
  url: https://api.markmesh.com/v1
security:
- bearerAuth: []
tags:
- description: Cross-office trademark search — fans out across USPTO, EUIPO, DPMA, ... in one call. Usual entry point into the domain workflow.
  name: Search
paths:
  /search:
    get:
      description: 'Synchronous query across one or more trademark offices in a single call. Returns a merged result list plus per-office meta showing which offices succeeded, failed, or timed out. Defaults to `EU,DE` if `offices` is omitted, so a bare call never fans out to every adapter.


        Sandbox routing follows the calling key: `mm_test_*` queries each office''s sandbox endpoint (deterministic fixtures), `mm_live_*` queries the production office. The same search engine backs the MarkMesh dashboard''s search page — results are identical.'
      parameters:
      - description: Search term (min length 2 after trim)
        in: query
        name: q
        required: true
        schema:
          minLength: 2
          type: string
      - description: Comma-separated country codes (e.g. `EU,DE`). Empty → defaults to `EU,DE`.
        in: query
        name: offices
        required: false
        schema:
          type: string
      - description: Per-office page size (default 25, max 100)
        in: query
        name: limit
        required: false
        schema:
          default: 25
          maximum: 100
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    description: Merged trademark matches across all queried offices, in office-return order (no global sort).
                    items:
                      properties:
                        application_number:
                          type:
                          - string
                          - 'null'
                        colour_claim:
                          description: Office-supplied colour claim text, if the application contained one.
                          type:
                          - string
                          - 'null'
                        expiry_date:
                          description: ISO 8601 date (e.g. `2025-03-14`).
                          format: date
                          type:
                          - string
                          - 'null'
                        filing_date:
                          description: ISO 8601 date (e.g. `2025-03-14`).
                          format: date
                          type:
                          - string
                          - 'null'
                        mark_text:
                          description: Trademark text as registered with the office.
                          type:
                          - string
                          - 'null'
                        mark_type:
                          description: Office-supplied mark type (word, figurative, …) — normalisation varies by office.
                          type:
                          - string
                          - 'null'
                        nice_classes:
                          description: Nice Classification class numbers (1-45).
                          items:
                            type: integer
                          type:
                          - array
                          - 'null'
                        office:
                          description: Office identifier (lowercase, e.g. `euipo`, `dpma`, `uspto`).
                          example: euipo
                          type: string
                        owner_name:
                          type:
                          - string
                          - 'null'
                        publication_date:
                          description: ISO 8601 date (e.g. `2025-03-14`).
                          format: date
                          type:
                          - string
                          - 'null'
                        publication_number:
                          type:
                          - string
                          - 'null'
                        registration_date:
                          description: ISO 8601 date (e.g. `2025-03-14`).
                          format: date
                          type:
                          - string
                          - 'null'
                        registration_number:
                          type:
                          - string
                          - 'null'
                        representative_name:
                          description: Legal representative on the office record (where supplied).
                          type:
                          - string
                          - 'null'
                        status:
                          description: Lifecycle status as reported by the office (e.g. `pending`, `registered`, `refused`).
                          type:
                          - string
                          - 'null'
                        vienna_classes:
                          description: Vienna Classification codes for figurative elements (e.g. `27.05.01`).
                          items:
                            type: string
                          type:
                          - array
                          - 'null'
                      type: object
                    type: array
                  meta:
                    properties:
                      country_codes:
                        description: Country codes resolved from the `offices` parameter (after defaulting). Tells you which set actually fanned out, useful for debugging unexpected results.
                        items:
                          type: string
                        type: array
                      local_index:
                        description: 'One of `ok`, `unavailable`, `not_queried`. Whether the MarkMesh index — where most results come from — answered. `unavailable`: it could not be queried and `data` holds only what the live office queries returned, a partial answer; retry for the full one. `not_queried`: the term is a recent known miss and was answered without a fresh query.'
                        enum:
                        - ok
                        - unavailable
                        - not_queried
                        type: string
                      offices_failed:
                        description: Per-office error reports for adapters that returned a non-timeout error. Their matches are excluded from `data`. The `reason` is the adapter's internal error code (e.g. `auth_required`, `all_fallbacks_exhausted`, `rate_limited`) — useful for triaging whether to retry, narrow `offices`, or check credentials.
                        items:
                          properties:
                            office:
                              description: Office identifier (lowercase).
                              example: euipo
                              type: string
                            reason:
                              description: Short error code from the adapter.
                              example: all_fallbacks_exhausted
                              type: string
                          required:
                          - office
                          - reason
                          type: object
                        type: array
                      offices_queried:
                        description: Office identifiers the request was dispatched to.
                        items:
                          type: string
                        type: array
                      offices_succeeded:
                        description: Office identifiers that returned results (possibly an empty list of matches).
                        items:
                          type: string
                        type: array
                      offices_timed_out:
                        description: Office identifiers whose adapter exceeded the per-office timeout budget. Re-issuing the same query may still hit the slow office — consider narrowing `offices`.
                        items:
                          type: string
                        type: array
                      term:
                        description: The trimmed search term that was actually used.
                        type: string
                    required:
                    - term
                    - country_codes
                    - offices_queried
                    - offices_succeeded
                    - offices_failed
                    - offices_timed_out
                    type: object
                required:
                - data
                - meta
                type: object
          description: Merged result list with per-office meta
        '400':
          description: Malformed request
        '401':
          description: API key or session credential missing, invalid, expired, or revoked
        '503':
          description: '`search_unavailable` — the MarkMesh index could not be queried and the office queries returned no hits, so there is no answer to give (an empty list would wrongly read as no such marks). Retry shortly.'
      security:
      - UserJWT: []
      - ApiKey: []
      summary: Search
      tags:
      - Search
      operationId: getSearch
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKey:
      bearerFormat: Opaque API key (prefix mm_live_ or mm_test_)
      description: Static API key for machine integrations. Issued via the UI at `/account/api-keys`. Prefix `mm_live_*` for production, `mm_test_*` for sandbox. Tokens are shown ONCE at creation — store them immediately.
      scheme: bearer
      type: http
    UserJWT:
      bearerFormat: JWT
      description: Session credential issued when signing in through the MarkMesh dashboard (magic-link or passkey). Used by the dashboard itself; most external integrations should authenticate with an API key instead.
      scheme: bearer
      type: http
    bearerAuth:
      bearerFormat: JWT
      description: JWT for bearer authentication
      scheme: bearer
      type: http