---
title: "Create Prompt"
method: POST
path: "/internal/prompts"
tags: ["INTERNAL_PROMPT_LIBRARY"]
---

# Create Prompt

`POST /internal/prompts`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/internal/prompts`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Create a global prompt or one prompt per tenant.

Returns a single row (frontend re-fetches the list). For multi-tenant, all
target tenants are validated up front so the write pass is effectively
all-or-nothing; the first created row is returned.

## Request body

- InternalCreatePromptRequest: Create request for the superuser page (CreatePromptRequestSchema).
  - `scope` 'global' | 'tenants', required
  - `tenants` string[], nullable
  - `title` string, nullable
  - `description` string, nullable
  - `prompt_text` string, required
  - `tags` string[]
  - `platform` 'snowflake' | 'dbt' | 'databricks'
  - `placement` 'browse' | 'starter'
  - `entity_type` string, nullable

## Response `201`

Successful Response

- InternalPromptRow: One prompt row for the superuser Prompt Library page (PromptRowSchema).
  - `id` string, uuid, required
  - `title` string, required
  - `description` string, nullable
  - `prompt_text` string, required
  - `tags` string[]
  - `is_public` boolean, required
  - `tenant` string, nullable
  - `created_by` integer, required
  - `created_by_email` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `platform` string, nullable
  - `placement` 'browse' | 'starter'
  - `entity_type` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-07** `b4beb9e80982`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/myaltimate/apis/myaltimate-api/changes/internal/prompts/post.md)

---

[API](https://skmtc.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
