> For the complete documentation index, see [llms.txt](https://help.mimeeq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.mimeeq.com/api/companies/create-company-note.md). Agents can also search and read this documentation through its [MCP server](https://help.mimeeq.com/~gitbook/mcp).

# Create Company Note

Add a note to a company.

Use this to record CRM context against a company, such as a call summary or an agreed next step. Take `companyId` from List Companies.

### Behaviour

`noteTitle` is required. Send `noteContent` as plain text: it is stored as one paragraph and returned as `{ html, text }`. Omit it or send `null` for a note without text.

To attach files, upload each one with Upload Company Note Attachment first, then list the returned `fileId` values in `attachments` (at most 20; a repeated id is attached once). Every id must name a file in this company's attachment folder; otherwise the request answers `404 company_note_attachment_not_found`, naming the ids in `details`, and no note is created.

The response is the created note. A retried request creates a second note, so after a timeout read List Company Notes before retrying. Each note write rewrites the company's whole note list, so write one company's notes one at a time: concurrent writes can overwrite each other.

Requires the `companies:write` scope.

```json
{"openapi":"3.1.0","info":{"title":"Mimeeq External API","version":"1.3.0"},"tags":[{"name":"Companies","description":"Manage the companies stored in your Mimeeq account. Company records hold business details, delivery addresses and commercial relationships, including assigned price lists.\n\nUse this section to synchronize company records with a CRM or ERP, keep company notes and their attachments, and attach or detach price lists. People belonging to a company are managed through Contacts.\n\n## What you can do\n\n| Task | Reference |\n| --- | --- |\n| Find available companies | [List Companies](https://help.mimeeq.com/api/companies/list-companies) |\n| Add a new company | [Create Company](https://help.mimeeq.com/api/companies/create-company) |\n| Read one company | [Get Company](https://help.mimeeq.com/api/companies/get-company) |\n| Change company | [Update Company](https://help.mimeeq.com/api/companies/update-company) |\n| Remove a company | [Delete Company](https://help.mimeeq.com/api/companies/delete-company) |\n| Find available company notes | [List Company Notes](https://help.mimeeq.com/api/companies/list-company-notes) |\n| Add a company note | [Create Company Note](https://help.mimeeq.com/api/companies/create-company-note) |\n| Upload a note attachment | [Upload Company Note Attachment](https://help.mimeeq.com/api/companies/upload-company-note-attachment) |\n| Change a company note | [Update Company Note](https://help.mimeeq.com/api/companies/update-company-note) |\n| Remove a company note | [Delete Company Note](https://help.mimeeq.com/api/companies/delete-company-note) |\n| Change company price lists | [Attach or Detach Company Price Lists](https://help.mimeeq.com/api/companies/attach-or-detach-company-price-lists) |\n\n## Before you start\n\nYour API key needs `companies:read` to read these resources. Use `companies:write` for write operations, including note changes. Deleting a company needs `companies:delete`.\n\n## Important behaviour\n\nRead Customer settings to obtain configured currency codes before creating or updating a company. General company updates replace the submitted configuration, and omitted optional arrays are cleared. Manage price-list assignments through their dedicated operation.\n\nNotes are plain text. To attach a file, upload it with Upload Company Note Attachment, then list its `fileId` in the note's `attachments`. Each note write rewrites the company's whole note list, so write one company's notes one at a time.\n\nDeleting a company is permanent and also removes its media-library folder, including note attachments. A company that still has contacts, quotations or product groups cannot be deleted."}],"servers":[{"url":"https://admin.mimeeqapi.com","description":"Production API"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key sent as a bearer token (mk_live_… / mk_test_…)."}},"schemas":{"CompaniesMutation2":{"type":"object","properties":{"data":{"type":"object","properties":{"noteId":{"type":"string"},"noteTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"noteContent":{"type":"object","properties":{"html":{"type":"string","description":"Draft.js content rendered as HTML."},"text":{"type":"string","description":"Plain text extracted from Draft.js blocks."}},"required":["html","text"],"additionalProperties":false},"attachments":{"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string"},"filePath":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Public file URL, or null when unavailable."},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["fileId","filePath","label"],"additionalProperties":false}},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO 8601 creation timestamp."},"modifiedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO 8601 last-modified timestamp."}},"required":["noteId","noteTitle","noteContent","attachments","createdAt","modifiedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false,"description":"Data schema used by Create Company Note (POST /v1/companies/{companyId}/notes). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ."},"PublicError":{"description":"An API error response. Use code and the HTTP status to classify the failure, message and optional details for context, and requestId when reporting it. Edge firewall responses may omit requestId.","type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","description":"Present on every error the API itself returns; absent when the edge firewall rejected the request."},"details":{"description":"Optional error-specific details (e.g. per-field validation reasons)."}}},"CompaniesNotesRequest":{"type":"object","properties":{"noteTitle":{"type":"string","minLength":1,"maxLength":255},"noteContent":{"description":"Plain note text, stored as a single paragraph; formatting made in the Mimeeq app is replaced. Omitted or null leaves the note without content. Responses return it as `{ html, text }`.","anyOf":[{"type":"string","maxLength":10000},{"type":"null"}]},"attachments":{"description":"The complete attachment list, at most 20. Omitted on an update keeps the stored attachments; an empty list removes them all.","maxItems":20,"type":"array","items":{"type":"object","properties":{"fileId":{"type":"string","minLength":1,"maxLength":1024,"description":"A `fileId` returned by Upload Company Note Attachment for this company."}},"required":["fileId"],"additionalProperties":false}}},"required":["noteTitle"],"additionalProperties":false,"description":"Data schema used by Create Company Note (POST /v1/companies/{companyId}/notes). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ."}}},"paths":{"/v1/companies/{companyId}/notes":{"post":{"summary":"Create Company Note","tags":["Companies"],"description":"Add a note to a company.\n\nUse this to record CRM context against a company, such as a call summary or an agreed next step. Take `companyId` from List Companies.\n\n## Behaviour\n\n`noteTitle` is required. Send `noteContent` as plain text: it is stored as one paragraph and returned as `{ html, text }`. Omit it or send `null` for a note without text.\n\nTo attach files, upload each one with Upload Company Note Attachment first, then list the returned `fileId` values in `attachments` (at most 20; a repeated id is attached once). Every id must name a file in this company's attachment folder; otherwise the request answers `404 company_note_attachment_not_found`, naming the ids in `details`, and no note is created.\n\nThe response is the created note. A retried request creates a second note, so after a timeout read List Company Notes before retrying. Each note write rewrites the company's whole note list, so write one company's notes one at a time: concurrent writes can overwrite each other.\n\nRequires the `companies:write` scope.","responses":{"200":{"description":"Successful response.","headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompaniesMutation2"}}}},"400":{"description":"Invalid request data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}}},"403":{"description":"The API key lacks the required scope (`scope_denied`), the operation is not permitted for this account (`operation_not_permitted`), or the account is inactive (`account_inactive`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"429":{"description":"The API key exceeded its request rate (`rate_limit_exceeded`) or its monthly quota (`quota_exceeded`). Both carry `Retry-After`; the `RateLimit-*` headers accompany `rate_limit_exceeded` only, since a spent quota says nothing about the bucket.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}}},"parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"string","pattern":"^COMP-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompaniesNotesRequest"}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.mimeeq.com/api/companies/create-company-note.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
