---
title: "Create Prompt"
method: POST
path: "/prompts/"
tags: ["PROMPT_LIBRARY"]
deprecated: true
---

# Create Prompt

`POST /prompts/`

> **Deprecated.**

Create a new prompt.
All prompts are stored in the tenant table, owned by the creating user
(the service user, Altimate AI, included).

## Request body

- CreatePromptRequest — Request schema for creating a new prompt
  - `title` string, nullable
  - `description` string, nullable
  - `prompt_text` string, required
  - `tags` string[]
  - `teams` integer[], nullable
  - `attributes` object

## Response `201`

Successful Response

- PromptResponse — Response schema for a single prompt
  - `id` string, uuid, required
  - `title` string, required
  - `description` string, nullable
  - `prompt_text` string, required
  - `tags` string[]
  - `teams` integer[], nullable
  - `created_by` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `last_used_at` string, date-time, nullable
  - `attributes` object
  - `is_public` boolean

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/103580dad816/schema)
