---
title: "Get an issue's agent prompt"
method: GET
path: "/issues/{issueId}/agent-prompt"
tags: ["Issues"]
---

# Get an issue's agent prompt

`GET /issues/{issueId}/agent-prompt`

## Request

- Base URL: `https://api.sazabi.com/v1`
- URL: `https://api.sazabi.com/v1/issues/{issueId}/agent-prompt`
- Auth: none declared

Get the prompt that hands an open, resolved, or ignored issue to your own coding agent, including its current status: it tells the agent to set up the Sazabi CLI, load the analysis, verify it against live logs, fix the code, and open a pull request linked to the issue.

## Path parameters

- `issueId` string, uuid, required: Issue to build the agent prompt for.

## Response `200`

OK

- object
  - `prompt` string, required: The prompt to paste into a coding agent. It carries IDs and a link, never a credential.
  - `version` integer, required: Version of the prompt's wording and structure.

## Changes

- **2026-10-05** `f8153a7e1664`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sazabi/apis/sazabi-public-api/changes/issues/:issueId/agent-prompt/get.md)

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) - [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sazabi/apis/sazabi-public-api/revisions/965b6230cf45?raw)
