---
title: "Create a prompt"
method: POST
path: "/api/prompts/"
tags: ["prompts"]
---

# Create a prompt

`POST /api/prompts/`

Create a new prompt template.

## Headers

- `Authorization` string, required

## Request body

- object
  - `name` string, required — Prompt name.
  - `description` string — Prompt description.

## Response `201`

Prompt created successfully.

- PromptsCreatePromptResponse201
  - `id` string — The unique prompt identifier.
  - `name` string
  - `description` string, nullable
  - `prompt_slug` string, nullable
  - `tags` ApiPromptsPostResponsesContentApplicationJsonSchemaTagsItems[]
    - `id` string
    - `name` string
    - `color` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `current_version` ApiPromptsPostResponsesContentApplicationJsonSchemaCurrentVersion
    - `version` integer
    - `model` string
    - `updated_at` string, date-time
  - `live_version` ApiPromptsPostResponsesContentApplicationJsonSchemaLiveVersion
    - `version` integer
    - `model` string
    - `updated_at` string, date-time
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Missing/invalid authentication

## Changes

- **2026-08-13** `4e064cf81dae` — 30 breaking, 62 warning, 4 info
  - the request property `name` became required
  - the response property `description` became nullable for the status `201`
  - the response property `current_version` became optional for the status `201`
  - the response property `id` became optional for the status `201`
  - …92 more
- **2026-07-31** `c26d550029f8` — 3 breaking, 2 warning, 90 info
  - added the new required request property `organization`
  - the `current_version` response's property type/format changed from ``/`` to `object`/`` for status `201`
  - the `live_version` response's property type/format changed from ``/`` to `object`/`` for status `201`
  - removed the optional property `created_at` from the response with the `201` status
  - …91 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/prompts/post.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/b18c72975097/schema)
