Insights

Generate Email Draft

Generate a draft email for missing insights without sending.

Returns the email subject and body for advisor review/editing before approval.

Args: business_id: Business UUID request: Insight IDs and optional context message ctx: Advisor context

Returns: Email draft with subject, body, and recipient info

post/api/businesses/{business_id}/insights/generate-email-draft

Request

  • Base URL
    https://api.flagpost.ai (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

business_idstring required

Request body

insight_idsstring[] required
messagestring nullable

Response

Successful Response

subjectstring required
body_htmlstring required
body_textstring required
recipient_emailstring required
recipient_namestring nullable required
missing_insightsobject[] required

Changes

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