---
updatedAt: 2026-04-15T11:43:58.000Z
agentTools:
  projectIndex: https://developers.happeo.com/llms.txt
---

# Retry a discussion entry

Retries generation from the previous user entry, replacing the specified model entry and all subsequent entries

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Chat API",
    "version": "1.0",
    "description": "Chat API for managing discussions, entries, tool tasks, and AI conversations with streaming responses."
  },
  "tags": [
    {
      "name": "Chat",
      "description": "Chat system endpoints for managing discussions, entries, and AI conversations"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-universe-auth"
      }
    }
  },
  "paths": {
    "/chats/{discussionId}/entries/{entryId}/retry": {
      "post": {
        "summary": "Retry a discussion entry",
        "description": "Retries generation from the previous user entry, replacing the specified model entry and all subsequent entries",
        "tags": [
          "Chat"
        ],
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "discussionId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the discussion"
          },
          {
            "in": "path",
            "name": "entryId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the model entry to retry"
          },
          {
            "in": "header",
            "name": "x-universe-auth",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "JWT authentication token"
          }
        ],
        "responses": {
          "200": {
            "description": "Entry retried with streaming AI response",
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "type": "string",
                  "description": "NDJSON stream with new AI response"
                }
              }
            }
          },
          "400": {
            "description": "Bad request - entry cannot be retried (check REL links)"
          },
          "401": {
            "description": "Unauthorized - invalid or missing authentication"
          },
          "404": {
            "description": "Discussion, entry, or previous user entry not found"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
```