---
title: "Give a failed or waiting goal a fresh attempt budget and check it again now."
method: POST
path: "/ai/conversations/{public_id}/goals/{goal_id}/retry"
tags: ["AI Chat"]
---

# Give a failed or waiting goal a fresh attempt budget and check it again now.

`POST /ai/conversations/{public_id}/goals/{goal_id}/retry`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/conversations/{public_id}/goals/{goal_id}/retry`
- Auth: HTTP bearer

## Path parameters

- `public_id` string, required
- `goal_id` string, required

## Response `200`

Goal reopened

- GoalResponse: Goal as returned to the console.
  - `attempts` integer, required: Fix turns started so far.
  - `check_operation` string, required: The read operation that observes the goal.
  - `created_at` string, required
  - `deadline_at` string, required: The goal is given up, as failed, after this instant (ISO 8601).
  - `deployment` GoalDeployment: A deployment a goal is watching.
    - `deployment_id` integer, nullable: Absent when the goal watches whichever deployment is the project's latest, so the console follows that deployment as it changes.
    - `project_id` integer, required
  - `id` string, required: Opaque goal id.
  - `last_checked_at` string, nullable: ISO 8601, `Z` suffix.
  - `last_observation` string, nullable: What the last check saw, in one sentence.
  - `max_attempts` integer, required
  - `status` string, required: `active`, `healing`, `needs_you`, `achieved`, `failed` or `cancelled`.
  - `title` string, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Conversation or goal not found
- `409`: Goal is not failed or waiting
- `500`: Internal server error

## Changes

> 81 revisions in range; 1 not diffed.

- **2026-10-20** `79089e9f49ee`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/conversations/:public_id/goals/:goal_id/retry/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) · [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) · [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/ab6d5d19e930?raw)
