messages

Regenerate message draft

Try again on one AI SDR draft: the pending_approval row is canceled and the run that wrote it is re-armed with your guidance and the discarded text; a plan step that failed after it is reopened first. The new draft arrives asynchronously: item is the canceled row, result.run the queued run. 409 conflict: message_not_editable (not pending, or no run behind it), message_superseded (its reason is gone: withdrawn, nothing armed), agent_disabled (the AI SDR off, or off for this thread).

Contract:

  • MCP tool regenerate_message, registry package mcp.unibox/messages, mount unibox.inbox.
  • Operation action, response envelope action.
  • Flags: none.
post/api/messages/{sid}/regenerate

Request

  • Base URL
    https://beta.getsales.io/unibox/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Path parameters

sidstring required

The draft to rewrite. It must be pending_approval AND carry an agent_run_sid, else 409 message_not_editable.

Request body

guidancestring nullable

Steering for the next attempt, max 1024 ("shorter, mention the SOC 2 report"). It rides the run together with the discarded draft, so the new text is materially different.

Response

action success envelope.

successtrue required
operation'action' required
actionstring required

kebab-case verb; matches the route segment.

Changes

No recorded changes to this operation across all 1 revision of this API.