---
title: "Build account health fix"
method: POST
path: "/account-health/insights/{insightId}/fix"
tags: ["Account Health"]
---

# Build account health fix

`POST /account-health/insights/{insightId}/fix`

## Request

- Base URL: `https://api.sequenzy.com/api/v1`
- URL: `https://api.sequenzy.com/api/v1/account-health/insights/{insightId}/fix`
- Auth: HTTP bearer

Builds the draft sequence an "event without a sequence" (unhandled_event) or "missing sequence" (missing_sequence) finding asks for, with its trigger, timing and titled email steps, then writes the emails with AI like a sequence from a template. An unhandled_event draft is triggered by its event; a missing_sequence draft uses the trigger and steps in the finding's evidence (new contacts, an event, or manual enrollment). It stays inactive until you enable it. Calling it again returns the existing draft with created false; email steps that still have no email (for example a draft the weekly check laid out that nobody opened yet) are written then, and existing emails are never rewritten. Requires the sequences:write scope.

## Path parameters

- `insightId` string, required

## Response `200`

A draft already existed and is returned

- AccountHealthFixResult
  - `success` boolean
  - `sequenceId` string
  - `created` boolean: False when an existing draft was returned.
  - `enrichmentStatus` 'processing' | 'not_queued': When created is true, or when an existing draft still had email steps without an email (absent once every email exists). `processing` while AI writes the emails; poll Get Sequence for progress. `not_queued` means the draft exists but writing could not start: open it in the dashboard to write the emails, and do not build it again.

## Other responses

- `201`: Draft sequence built
- `400`: The insight is neither an event without a sequence nor a missing sequence
- `401`: Unauthorized
- `403`: API key is missing the sequences:write scope, or the user has view-only access
- `404`: Insight not found in this company
- `409`: IN_PROGRESS - another request is building this fix right now

## Changes

- **2026-10-16** `db3873ca3d4d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sequenzy/apis/sequenzy-api/changes/account-health/insights/:insightId/fix/post.md)

---

[API](https://skmtc.dev/sequenzy/apis/sequenzy-api.md) - [All operations](https://skmtc.dev/sequenzy/apis/sequenzy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sequenzy/apis/sequenzy-api/revisions/8156dc12d8b4?raw)
