Every API here is available over the APIs.io API and to AI agents over MCP.
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 Trademarks API
version: v1
servers:
- description: Production API surface
url: https://api.markmesh.com/v1
security:
- bearerAuth: []
tags:
- description: The trademark records themselves and their optional grouping into portfolios. Trademarks belong to a client and carry one or more filings across jurisdictions. New trademarks are created implicitly via `POST /v1/filings/import_from_office` (a naked Trademark.create has no realistic integrator use case); DELETE cascades to all filings and cannot be undone — use it deliberately.
name: Trademarks
paths:
/trademark-groups:
post:
deprecated: false
description: Create a trademark group (a self-service portfolio label). The group exists only while at least one trademark is assigned to it — assigning the last trademark away auto-destroys the group.
parameters: []
requestBody:
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
additionalProperties: false
properties:
attributes:
additionalProperties: false
properties:
name:
description: Group label, e.g. 'United Domains'
type: string
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.
required:
- name
type: object
relationships:
additionalProperties: false
properties: {}
type: object
type:
enum:
- trademark_group
type: object
required:
- data
type: object
description: Request body for the /trademark-groups operation on trademark_group resource
required: true
responses:
'201':
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
$ref: '#/components/schemas/trademark_group'
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 trademark group
tags:
- Trademarks
operationId: postTrademarkGroups
x-operation-id-source: derived
get:
deprecated: false
description: 'Trademark groups — lightweight portfolio labels for grouping related trademarks (spelling variants, historic versions, …). Groups exist only while at least one trademark is assigned; the system auto-destroys empty groups on unassignment.
**Filterable attributes**: `id`, `name`. See the `Filtering` section under Introduction for the query syntax.
**Sortable attributes**: `id`, `name`. 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 trademark_group
items:
$ref: '#/components/schemas/trademark_group'
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 trademark groups
tags:
- Trademarks
operationId: getTrademarkGroups
x-operation-id-source: derived
/trademark-groups/{id}:
get:
deprecated: false
description: Trademark groups — lightweight portfolio labels for grouping related trademarks (spelling variants, historic versions, …). Groups exist only while at least one trademark is assigned; the system auto-destroys empty groups on unassignment.
parameters:
- description: Resource UUID.
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/trademark_group'
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 trademark group
tags:
- Trademarks
operationId: getTrademarkGroupsById
x-operation-id-source: derived
/trademark-groups/{id}/rename:
patch:
deprecated: false
description: Rename a trademark group. The display name is the only user-managed attribute on a group.
parameters:
- description: Resource UUID.
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:
name:
anyOf:
- type: string
- type: 'null'
description: Group label, e.g. 'United Domains'
type: object
id:
type: string
relationships:
additionalProperties: false
properties: {}
type: object
type:
enum:
- trademark_group
required:
- id
type: object
required:
- data
type: object
description: Request body for the /trademark-groups/:id/rename operation on trademark_group resource
required: false
responses:
'200':
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
$ref: '#/components/schemas/trademark_group'
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: Rename a trademark group
tags:
- Trademarks
operationId: patchTrademarkGroupsByIdRename
x-operation-id-source: derived
/trademarks:
get:
deprecated: false
description: 'Trademark records — the brand names or marks being protected. Each trademark belongs to a client and can carry filings across multiple jurisdictions.
**Filterable attributes**: `client_id`, `closed_reason`, `id`, `name`, `status`, `trademark_group_id`. See the `Filtering` section under Introduction for the query syntax.
**Sortable attributes**: `client_id`, `closed_reason`, `id`, `name`, `notes`, `status`, `trademark_group_id`. 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 trademark
items:
$ref: '#/components/schemas/trademark'
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 trademarks
tags:
- Trademarks
operationId: getTrademarks
x-operation-id-source: derived
/trademarks/{id}:
get:
deprecated: false
description: Trademark records — the brand names or marks being protected. Each trademark belongs to a client and can carry filings across multiple jurisdictions.
parameters:
- description: Resource UUID.
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/trademark'
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 trademark
tags:
- Trademarks
operationId: getTrademarksById
x-operation-id-source: derived
patch:
deprecated: false
description: Update trademark details.
parameters:
- description: Resource UUID.
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:
name:
anyOf:
- type: string
- type: 'null'
description: The trademark name or text (e.g., brand name, slogan)
notes:
anyOf:
- type: string
- type: 'null'
description: Internal notes about the trademark. Marked sensitive because it routinely contains privileged attorney/strategy content.
trademark_group_id:
anyOf:
- format: uuid
type: string
- type: 'null'
type: object
id:
type: string
relationships:
additionalProperties: false
properties: {}
type: object
type:
enum:
- trademark
required:
- id
type: object
required:
- data
type: object
description: Request body for the /trademarks/:id operation on trademark resource
required: false
responses:
'200':
content:
application/vnd.api+json:
schema:
additionalProperties: false
properties:
data:
$ref: '#/components/schemas/trademark'
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 trademark
tags:
- Trademarks
operationId: patchTrademarksById
x-operation-id-source: derived
delete:
deprecated: false
description: Permanently delete a trademark. Action cannot be undone.
parameters:
- description: Resource UUID.
in: path
name: id
required: true
schema:
format: uuid
type: string
style: form
responses:
'200':
description: Deleted successfully
'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: Delete a trademark
tags:
- Trademarks
operationId: deleteTrademarksById
x-operation-id-source: derived
components:
schemas:
trademark_group:
additionalProperties: false
properties:
attributes:
additionalProperties: false
description: An attributes object for a trademark_group.
properties:
name:
description: Group label, e.g. 'United Domains'.
type: string
required:
- name
type: object
id:
description: Resource UUID.
format: uuid
type: string
type:
description: JSON:API resource type. Always `"trademark_group"`.
enum:
- trademark_group
type: string
required:
- type
- id
type: object
trademark:
additionalProperties: false
properties:
attributes:
additionalProperties: false
description: An attributes object for a trademark.
properties:
client_id:
description: UUID of the related client.
format: uuid
type: string
closed_reason:
anyOf:
- enum:
- manual
- organization_closed
- gdpr_request
- billing_enforcement
- system_cleanup
- null
type:
- string
- 'null'
- type: 'null'
description: Why the trademark was closed; drives selective restore on Organization.reopen.
name:
description: The trademark name or text (e.g., brand name, slogan).
type: string
notes:
anyOf:
- type:
- string
- 'null'
- type: 'null'
description: Internal notes about the trademark. Marked sensitive because it routinely contains privileged attorney/strategy content.
provenance:
anyOf:
- type:
- object
- 'null'
- type: 'null'
description: States that this is a customer-authored record; office provenance lives on its filings.
status:
anyOf:
- enum:
- active
- closed
- null
type:
- string
- 'null'
- type: 'null'
description: 'Trademark lifecycle: :active (default) or :closed (soft-deleted).'
trademark_group_id:
anyOf:
- format: uuid
type:
- string
- 'null'
- type: 'null'
description: UUID of the related trademark group.
required:
- name
- client_id
type: object
id:
description: Resource UUID.
format: uuid
type: string
relationships:
additionalProperties: false
description: A relationships object for a trademark.
properties:
client:
properties:
data:
additionalProperties: false
description: An identifier for client.
properties:
id:
type: string
meta:
additionalProperties: true
type: object
type:
type: string
required:
- type
- id
type:
- object
- 'null'
trademark_group:
properties:
data:
additionalProperties: false
description: An identifier for trademark_group.
properties:
id:
type: string
meta:
additionalProperties: true
type: object
type:
type: string
required:
- type
- id
type:
- object
- 'null'
type: object
type:
description: JSON:API resource type. Always `"trademark"`.
enum:
- trademark
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