---
title: "Penny drafts the ask (#4356)"
method: POST
path: "/accountant/companies/{customerId}/agent/inbox-items/{id}/draft"
tags: ["Accountant Portal"]
---

# Penny drafts the ask (#4356)

`POST /accountant/companies/{customerId}/agent/inbox-items/{id}/draft`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/agent/inbox-items/{id}/draft`
- Auth: HTTP bearer

The bookkeeping agent's key writes the draft (`draftedBy: penny`). Once a person has edited it, Penny's write is refused with 409 `INBOX_DRAFT_PERSON_EDITED`; once sent, 409 `INBOX_DRAFT_SENT`. Penny never sends.

## Path parameters

- `customerId` string, uuid, required
- `id` string, uuid, required

## Request body

- InboxDraftInput
  - `subject` string, required
  - `body` string, required

## Response `200`

The draft

- InboxDraftEnvelope
  - `success` true, required
  - `data` InboxDraft, required: The one draft of an ask (Jacob P2), kept with its Inbox item.
    - `id` string, uuid, required
    - `companyId` string, uuid, required
    - `inboxItemId` string, uuid, required
    - `subject` string, required
    - `body` string, required
    - `draftedBy` 'penny' | 'person', required
    - `updatedByUserId` string, uuid, nullable, required
    - `threadId` string, uuid, nullable, required
    - `messageId` string, uuid, nullable, required
    - `sentAt` string, date-time, nullable, required
    - `sentByUserId` string, uuid, nullable, required
    - `updatedAt` string, date-time, required
    - `linkedDecisionOpen` boolean: Returned on a draft GET. A linked decision is open at read time.

## Other responses

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

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/agent/inbox-items/:id/draft/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)
