---
title: "Get saved prompt details"
method: GET
path: "/v1/ai/saved-prompts/{prompt-id}"
tags: ["AI Saved Prompts"]
---

# Get saved prompt details

`GET /v1/ai/saved-prompts/{prompt-id}`

## Request

- Base URL: `http://127.0.0.1:8000`
- URL: `http://127.0.0.1:8000/v1/ai/saved-prompts/{prompt-id}`
- Auth: HTTP bearer

Retrieve a single saved AI assistant prompt by ID.

## Path parameters

- `prompt-id` integer, required

## Response `200`

Saved prompt details

- AiSavedPrompt
  - `id` integer: Unique prompt identifier
  - `name` string: Display name for the saved prompt
  - `description` string, nullable: Optional description
  - `promptText` string, nullable: The prompt text

## Other responses

- `400`: Invalid prompt ID
- `403`: Insufficient access rights
- `404`: Prompt not found

## Changes

- **2026-09-17** `a203de7e5d7d`: 1 info
  - removed the non-success response with the status `503`
- **2026-09-17** `a81265c49fa9`: 1 info
  - added the non-success response with the status `503`
- **2026-06-10** `30e75dc6a94c`: 1 breaking
  - the response property `promptText` became nullable for the status `200`
- **2026-04-16** `c2e2aa6afa48`: 1 info
  - api operation id `getAiSavedPrompt` was added
- **2026-04-07** `4f2e9d28bd51`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/netxms/apis/netxms-api/changes/v1/ai/saved-prompts/:prompt-id/get.md)

---

[API](https://skmtc.dev/netxms/apis/netxms-api.md) - [All operations](https://skmtc.dev/netxms/apis/netxms-api/llms.txt) - [OpenAPI document](https://skmtc.dev/netxms/apis/netxms-api/revisions/740d85ba6674?raw)
