MarkMesh Clients API
Trademark holders — the parties on whose behalf marks are filed. Clients are the customer-org's own contact records (name, address, contact details). Lifecycle is soft-delete only: close + restore, no hard delete via API.
Trademark holders — the parties on whose behalf marks are filed. Clients are the customer-org's own contact records (name, address, contact details). Lifecycle is soft-delete only: close + restore, no hard delete via API.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/markmesh-com:markmesh-com-clients-api"
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.
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: 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 Clients API
version: v1
servers:
- description: Production API surface
url: https://api.markmesh.com/v1
security:
- bearerAuth: []
tags:
- description: 'Trademark holders — the parties on whose behalf marks are filed. Clients are the customer-org''s own contact records (name, address, contact details). Lifecycle is soft-delete only: close + restore, no hard delete via API.'
name: Clients
paths:
/clients:
post:
deprecated: false
description: Create a new client — a trademark holder under your organisation. Clients group filings and trademarks by the legal entity on whose behalf the marks are filed.
parameters: []
requestBody:
content:
application/vnd.api+json:
schema:
additionalProperties: false
example:
data:
attributes:
contact_email: anna@acme.example
contact_name: Anna Müller
country: DE
name: Acme Corp GmbH
type: company
type: client
properties:
data:
additionalProperties: false
properties:
attributes:
additionalProperties: false
properties:
address_1:
anyOf:
- type: string
- type: 'null'
description: Address line 1
address_2:
anyOf:
- type: string
- type: 'null'
description: Address line 2
city:
anyOf:
- type: string
- type: 'null'
description: City
contact_email:
anyOf:
- type: string
- type: 'null'
description: Primary contact email address for the client
contact_name:
anyOf:
- type: string
- type: 'null'
description: Primary contact person name
contact_phone:
anyOf:
- type: string
- type: 'null'
description: Primary contact phone number for the client
country:
anyOf:
- type: string
- type: 'null'
description: Country (ISO 3166-1 alpha-2)
external_id:
anyOf:
- type: string
- type: 'null'
description: External reference ID for billing or CRM integration
name:
description: Client's full legal name or business name
type: string
notes:
anyOf:
- type: string
- type: 'null'
description: Internal notes about the client. Free-form attorney/staff text — marked sensitive because it routinely contains privileged or mandant-specific content.
organization_id:
anyOf:
- format: uuid
type: string
- type: 'null'
description: Optional. Target organisation for the new resource. Omit to write into the calling actor's own organisation (single-tenant default). Supply a managed-org UUID to write on a partner-relationship — your actor must have an active PartnerRelationship into the target with manager access, otherwise the create returns 403. Supplying an unrelated organisation's UUID also returns 403.
postal_code:
anyOf:
- type: string
- type: 'null'
description: Postal / zip code
state:
anyOf:
- type: string
- type: 'null'
description: State or province
status:
anyOf:
- enum:
- active
- inactive
- closed
type: string
- type: 'null'
description: 'Client lifecycle: active (default), inactive (paused), or closed (soft-deleted)'
type:
anyOf:
- enum:
- individual
- company
- government
- nonprofit
- other
type: string
- type: 'null'
description: 'Client type: individual, company (default), government, nonprofit, or other'
required:
- name
type: object
relationships:
additionalProperties: false
properties: {}
type: object
type:
enum:
- client
type: object
required:
- data
type: object
description: Request body for the /clients operation on client resource
required: true
responses:
'201':
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
$ref: '#/components/schemas/client'
description: Success
'401':
description: API key or session credential missing, invalid, expired, or revoked
'422':
description: Validation error — field-level detail in the response body
security:
- UserJWT: []
- ApiKey: []
summary: Create a client
tags:
- Clients
operationId: postClients
x-operation-id-source: derived
get:
deprecated: false
description: 'Trademark-holder records — the legal entities (companies, individuals, …) on whose behalf trademarks are filed. Each client is scoped to your organisation.
**Filterable attributes**: `address_1`, `address_2`, `city`, `closed_reason`, `contact_name`, `country`, `id`, `name`, `postal_code`, `state`, `status`, `type`. See the `Filtering` section under Introduction for the query syntax.
**Sortable attributes**: `address_1`, `address_2`, `city`, `closed_reason`, `contact_email`, `contact_name`, `contact_phone`, `country`, `external_id`, `id`, `name`, `notes`, `postal_code`, `state`, `status`, `type`. See the `Sorting` section under Introduction for the syntax.'
parameters: []
responses:
'200':
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
description: An array of resource objects representing a client
items:
$ref: '#/components/schemas/client'
type: array
uniqueItems: true
type: object
description: Success
'401':
description: API key or session credential missing, invalid, expired, or revoked
security:
- UserJWT: []
- ApiKey: []
summary: List clients
tags:
- Clients
operationId: getClients
x-operation-id-source: derived
/clients/{id}:
get:
deprecated: false
description: Trademark-holder records — the legal entities (companies, individuals, …) on whose behalf trademarks are filed. Each client is scoped to your organisation.
parameters:
- description: Client UUID. Get the list from `GET /v1/clients`.
in: path
name: id
required: true
schema:
format: uuid
type: string
style: form
responses:
'200':
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
$ref: '#/components/schemas/client'
description: Success
'401':
description: API key or session credential missing, invalid, expired, or revoked
'404':
description: Resource not found, or not visible to this actor
security:
- UserJWT: []
- ApiKey: []
summary: Retrieve a client
tags:
- Clients
operationId: getClientsById
x-operation-id-source: derived
patch:
deprecated: false
description: Update a client's name, contact details, or address. Status changes use the dedicated close/restore endpoints.
parameters:
- description: Client UUID. Get the list from `GET /v1/clients`.
in: path
name: id
required: true
schema:
format: uuid
type: string
style: form
requestBody:
content:
application/vnd.api+json:
schema:
additionalProperties: false
example:
data:
attributes:
city: Berlin
contact_phone: +49 30 1234567
id: <client-uuid>
type: client
properties:
data:
additionalProperties: false
properties:
attributes:
additionalProperties: false
properties:
address_1:
anyOf:
- type: string
- type: 'null'
description: Address line 1
address_2:
anyOf:
- type: string
- type: 'null'
description: Address line 2
city:
anyOf:
- type: string
- type: 'null'
description: City
contact_email:
anyOf:
- type: string
- type: 'null'
description: Primary contact email address for the client
contact_name:
anyOf:
- type: string
- type: 'null'
description: Primary contact person name
contact_phone:
anyOf:
- type: string
- type: 'null'
description: Primary contact phone number for the client
country:
anyOf:
- type: string
- type: 'null'
description: Country (ISO 3166-1 alpha-2)
external_id:
anyOf:
- type: string
- type: 'null'
description: External reference ID for billing or CRM integration
name:
anyOf:
- type: string
- type: 'null'
description: Client's full legal name or business name
notes:
anyOf:
- type: string
- type: 'null'
description: Internal notes about the client. Free-form attorney/staff text — marked sensitive because it routinely contains privileged or mandant-specific content.
postal_code:
anyOf:
- type: string
- type: 'null'
description: Postal / zip code
state:
anyOf:
- type: string
- type: 'null'
description: State or province
status:
anyOf:
- enum:
- active
- inactive
- closed
type: string
- type: 'null'
description: 'Client lifecycle: active (default), inactive (paused), or closed (soft-deleted)'
type:
anyOf:
- enum:
- individual
- company
- government
- nonprofit
- other
type: string
- type: 'null'
description: 'Client type: individual, company (default), government, nonprofit, or other'
type: object
id:
type: string
relationships:
additionalProperties: false
properties: {}
type: object
type:
enum:
- client
required:
- id
type: object
required:
- data
type: object
description: Request body for the /clients/:id operation on client resource
required: false
responses:
'200':
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
$ref: '#/components/schemas/client'
description: Success
'401':
description: API key or session credential missing, invalid, expired, or revoked
'404':
description: Resource not found, or not visible to this actor
'422':
description: Validation error — field-level detail in the response body
security:
- UserJWT: []
- ApiKey: []
summary: Update a client
tags:
- Clients
operationId: patchClientsById
x-operation-id-source: derived
/clients/{id}/close:
patch:
deprecated: false
description: 'Soft-delete: marks the client as closed. Data retained.'
parameters:
- description: Client UUID. Get the list from `GET /v1/clients`.
in: path
name: id
required: true
schema:
format: uuid
type: string
style: form
requestBody:
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
additionalProperties: false
properties:
attributes:
additionalProperties: false
properties:
closed_reason:
anyOf:
- enum:
- manual
- organization_closed
- gdpr_request
- billing_enforcement
- system_cleanup
type: string
- type: 'null'
type: object
id:
type: string
relationships:
additionalProperties: false
properties: {}
type: object
type:
enum:
- client
required:
- id
type: object
required:
- data
type: object
description: Request body for the /clients/:id/close operation on client resource
required: false
responses:
'200':
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
$ref: '#/components/schemas/client'
description: Success
'401':
description: API key or session credential missing, invalid, expired, or revoked
'404':
description: Resource not found, or not visible to this actor
'422':
description: Validation error — field-level detail in the response body
security:
- UserJWT: []
- ApiKey: []
summary: Close a client
tags:
- Clients
operationId: patchClientsByIdClose
x-operation-id-source: derived
/clients/{id}/restore:
patch:
deprecated: false
description: Restore a closed client back to active.
parameters:
- description: Client UUID. Get the list from `GET /v1/clients`.
in: path
name: id
required: true
schema:
format: uuid
type: string
style: form
requestBody:
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
additionalProperties: false
properties:
attributes:
additionalProperties: false
properties: {}
type: object
id:
type: string
relationships:
additionalProperties: false
properties: {}
type: object
type:
enum:
- client
required:
- id
type: object
required:
- data
type: object
description: Request body for the /clients/:id/restore operation on client resource
required: false
responses:
'200':
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
$ref: '#/components/schemas/client'
description: Success
'401':
description: API key or session credential missing, invalid, expired, or revoked
'404':
description: Resource not found, or not visible to this actor
'422':
description: Validation error — field-level detail in the response body
security:
- UserJWT: []
- ApiKey: []
summary: Restore a client
tags:
- Clients
operationId: patchClientsByIdRestore
x-operation-id-source: derived
components:
schemas:
client:
additionalProperties: false
properties:
attributes:
additionalProperties: false
description: An attributes object for a client.
properties:
address_1:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: Address line 1.
address_2:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: Address line 2.
city:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: City.
closed_reason:
anyOf:
- enum:
- manual
- organization_closed
- gdpr_request
- billing_enforcement
- system_cleanup
- null
type:
- string
- 'null'
- type: 'null'
description: Why the client was closed (only populated when `status == :closed`).
contact_email:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: Primary contact email address for the client.
contact_name:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: Primary contact person name.
contact_phone:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: Primary contact phone number for the client.
country:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: Country (ISO 3166-1 alpha-2).
external_id:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: External reference ID for billing or CRM integration.
name:
description: Client's full legal name or business name.
type: string
notes:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: Internal notes about the client. Free-form attorney/staff text — marked sensitive because it routinely contains privileged or mandant-specific content.
postal_code:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: Postal / zip code.
state:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: State or province.
status:
anyOf:
- enum:
- active
- inactive
- closed
- null
type:
- string
- 'null'
- type: 'null'
description: 'Client lifecycle: active (default), inactive (paused), or closed (soft-deleted).'
type:
anyOf:
- enum:
- individual
- company
- government
- nonprofit
- other
- null
type:
- string
- 'null'
- type: 'null'
description: 'Client type: individual, company (default), government, nonprofit, or other.'
required:
- name
type: object
id:
description: Resource UUID.
format: uuid
type: string
type:
description: JSON:API resource type. Always `"client"`.
enum:
- client
type: string
required:
- type
- id
type: object
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