> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sequence Goals

> Create and manage persisted conversion goals for a sequence

# Sequence Goals

Sequence goals are the persisted conversion signals shown in the dashboard.
They are separate from the `goal` prompt used to generate sequence copy.

## Endpoints

* `GET /api/v1/sequences/{sequenceId}/goals` lists goals.
* `POST /api/v1/sequences/{sequenceId}/goals` creates a goal.
* `PATCH /api/v1/sequences/{sequenceId}/goals/{goalId}` updates a goal.
* `DELETE /api/v1/sequences/{sequenceId}/goals/{goalId}` deletes a goal.

Event goals use `triggerType: "event"` and require `triggerEventName`.
Subscriber-attribute goals use `triggerType: "attribute_change"`, an
`attributePath`, and `attributeCondition` set to `changed`, `changed_to`, or
`changed_from_to`. The latter conditions also require the corresponding target
and previous values.

```json theme={null}
{
  "name": "Account reactivated",
  "triggerType": "event",
  "triggerEventName": "account.reactivated",
  "attributionWindowHours": 168
}
```

For event goals, `eventPropertyName` and `eventPropertyLabel` can track a
numeric property such as revenue. `attributionWindowHours` accepts whole hours
from 1 to 720. Both create and update accept `isActive`, so you can create a
goal disabled or pause tracking later without deleting the goal.

The CLI exposes the same operations under `sequenzy sequences goals`, and MCP
clients can use `list_sequence_goals`, `create_sequence_goal`,
`update_sequence_goal`, and `delete_sequence_goal`.
