---
title: "Mark an insight as actioned"
method: POST
path: "/api/insights/{id}/action"
tags: ["Insights"]
---

# Mark an insight as actioned

`POST /api/insights/{id}/action`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/insights/{id}/action`
- Auth: one of:
  - API key in cookie `luca.session_token`
  - API key in header `x-api-key`
  - HTTP bearer

Records that the coach followed the insight's `actionRoute`. It's terminal, same as dismissing, so the insight leaves the open feed.

**API key scopes:** `insights:write`. You also need an `Idempotency-Key` header.

## Path parameters

- `id` string, uuid, required

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- Insight
  - `id` string, uuid, required
  - `kind` 'metric_drop' | 'metric_spike' | 'opportunity' | 'milestone' | 'risk', required
  - `severity` 'info' | 'warning' | 'urgent', required
  - `metric` string, required
  - `title` string, required
  - `body` string, required
  - `currentValue` number, nullable, required
  - `previousValue` number, nullable, required
  - `deltaPct` number, nullable, required
  - `actionRoute` string, nullable, required
  - `actionLabel` string, nullable, required
  - `dedupeKey` string, required
  - `status` 'unread' | 'read' | 'dismissed' | 'actioned' | 'expired', required
  - `detectedAt` string, required
  - `readAt` string, nullable, required
  - `dismissedAt` string, nullable, required
  - `expiresAt` string, nullable, required
  - `createdAt` string, required

## Other responses

- `401`: unauthorized
- `404`: not found
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
