---
title: "New message, a held thread or ask to a client (#2587 p5-B)"
method: POST
path: "/accountant/messages"
tags: ["Accountant Portal"]
---

# New message, a held thread or ask to a client (#2587 p5-B)

`POST /accountant/messages`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/messages`
- Auth: HTTP bearer

Starts a thread with a client from a person. The first message is held 10 seconds like every accountant send (undo with `POST …/threads/{threadId}/messages/{messageId}/undo` until `undoUntil`); the client sees it, and Slack gets it, only after the hold. `to` and `cc` are `personKey`s from `GET …/message-recipients`; a key that is not listed answers 422 `MESSAGE_RECIPIENT_UNKNOWN`, and with nobody in `to` the send is 422. The firm copy-owner preference applies when another person sends. If `expectedCopyOwner` was supplied and the preference has changed, 409 `MESSAGE_SETTINGS_CHANGED` prompts the sender to review the current recipients before retrying. Only an `ask` may set `blocksClose`; a `[bracketed]` part left in `subject` or `body` is 422; a person is in To or in Cc, not both. What the send recorded (kind, recipients) is stored with the thread (migration 658). Penny never sends: a signed-in person only, every API key is refused (404). Email delivery to `to` and `cc` is not part of this send: the thread shows in the client app and in Slack as today.

## Request body

- object
  - `clientId` string, uuid, required
  - `kind` 'thread' | 'ask', required
  - `to` string[], required
  - `cc` string[]
  - `subject` string, required
  - `body` string, required
  - `blocksClose` boolean
  - `expectedCopyOwner` boolean

## Response `201`

Sent, held 10 seconds

- object
  - `success` true, required
  - `data` object, required
    - `threadId` string, uuid, required
    - `messageId` string, uuid, required
    - `sentAt` string, date-time, required
    - `undoUntil` string, date-time, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Request failed validation

## Changes

- **2026-11-27** `70fbf6a9dc18`: 2 info
  - added the new optional request property `expectedCopyOwner`
  - added the non-success response with the status `409`
- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/messages/post.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
