---
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}`

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`

[Change 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/05f4250e90c7?raw)
