---
title: "Get Edit Status"
method: GET
path: "/v1/templates/{template_id}/edit-status"
tags: ["templates"]
---

# Get Edit Status

`GET /v1/templates/{template_id}/edit-status`

Return the status of the most-recent 'Edit with AI' run on this template.

Surfaces to the template detail page so the user sees:
  - "Edit call in progress" while they (or a teammate) are still on the call
  - "Synthesizing changes…" between call end and the webhook PATCH landing
  - "Updated just now" briefly after synthesis completes, so the user knows
    to refresh and see the new content

Without this signal, after the call hangs up the user is left on the
template detail page with no idea whether anything is happening or whether
their edits made it in. The webhook synthesis can take 10-30s; that's a
long silence to give the user with no feedback.

Polls live in the frontend (idle 0s, in-flight states every 3-4s) so this
endpoint stays a simple read.

State machine (driven by `interviews.status` + recency of completed_at):
  - in_call: interview.status == 'in_progress'
  - processing: interview.status in ('processing','processing_failed')
  - recently_completed: status == 'completed' AND completed_at within 60s
  - idle: anything older, or no edit interviews ever

## Path parameters

- `template_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/roxels/apis/interviewer.md) · [All operations](https://skmtc.dev/roxels/apis/interviewer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roxels/interviewer/revisions/4ef48ed226e1/schema)
