---
title: "Create saved prompt"
method: POST
path: "/v1/ai/saved-prompts"
tags: ["AI Saved Prompts"]
---

# Create saved prompt

`POST /v1/ai/saved-prompts`

Create a new saved AI assistant prompt for the current user.

## Request body

- object
  - `name` string, required — Display name for the saved prompt
  - `description` string — Optional description
  - `promptText` string, required — The prompt text

## Response `201`

Prompt created

- 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` — Missing or invalid fields
- `403` — Insufficient access rights
- `500` — Database failure

---

[API](https://skmtc.net/netxms/apis/netxms-api.md) · [All operations](https://skmtc.net/netxms/apis/netxms-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netxms/netxms-api/versions/14d93e5115dd/schema)
