---
title: "Create Prompt"
method: POST
path: "/api/v1/prompt"
tags: ["Prompt"]
---

# Create Prompt

`POST /api/v1/prompt`

Create a new prompt

## Request body

- IPromptCreate
  - `name` string, nullable
  - `description` string, nullable
  - `prompt_template` string, nullable
  - `owner_type` 'user' | 'system'

## Response `201`

Successful Response

- IPostResponseBaseIPromptRead
  - `message` string, nullable
  - `meta` union
    - object
    - unknown
  - `data` IPromptRead
    - `name` string, nullable
    - `description` string, nullable
    - `prompt_template` string, nullable
    - `owner_type` 'user' | 'system', required
    - `id` union, required
      - string, uuid
      - string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/insighto/apis/ragify.md) · [All operations](https://skmtc.net/insighto/apis/ragify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/insighto/ragify/revisions/cdca56191be9/schema)
