---
title: "Import a filing"
method: POST
path: "/filings/import_from_office"
tags: ["Filings"]
---

# Import a filing

`POST /filings/import_from_office`

## Request

- Base URL: `https://api.markmesh.com/v1`
- URL: `https://api.markmesh.com/v1/filings/import_from_office`
- Auth: HTTP bearer

Canonical entry point for creating a filing. The backend fetches the filing from the named office, deduplicates against existing records, creates the trademark on the fly if needed, links Nice classes, and mirrors the office-observed phase into the local row. Provide either `trademark_id` (import into an existing trademark) or `name` + `client_id` (create the trademark and import in one go).

## Response `201`

Filing imported (JSON:API-shape)

## Other responses

- `400`: Malformed request
- `401`: API key missing, invalid, expired, or revoked
- `404`: Resource not found, or not visible to this actor
- `422`: Validation error — field-level detail in the response body

---

[API](https://skmtc.dev/markmesh/apis/markmesh-api.md) · [All operations](https://skmtc.dev/markmesh/apis/markmesh-api/llms.txt) · [OpenAPI document](https://skmtc.dev/markmesh/apis/markmesh-api/revisions/87d08d2479ee?raw)
