---
title: "Api Create Prompt"
method: POST
path: "/v1/prompts/{application_id}"
tags: ["prompts"]
---

# Api Create Prompt

`POST /v1/prompts/{application_id}`

## Request

- Base URL: `https://api.branchly.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.branchly.io/v1/prompts/{application_id}`
- Auth: HTTP bearer

## Path parameters

- `application_id` string, uuid, required

## Request body

- PromptAPICreate
  - `prompt` string, required
  - `type` 'chat' | 'search_answering' | 'suggested_questions' | 'chat_evaluation', required: Types of prompts in the system.
  - `subtype` 'routing_instructions' | 'output_instructions': Subtypes for prompts - used for routing vs output instructions.
  - `interface_type` 'chat' | 'navigator' | 'search' | 'api' | 'form': Coarser grouping of EmbedType for prompt scoping. Follows the same pattern as StyleType in the interface_styles domain. Each value maps to one or more EmbedType values via ``embed_type_to_interface_type``.

## Response `201`

Successful Response

- PromptAPIResponse
  - `id` string, uuid, required
  - `application_id` string, uuid, required
  - `prompt` string, required
  - `is_active` boolean, required
  - `type` 'chat' | 'search_answering' | 'suggested_questions' | 'chat_evaluation', required: Types of prompts in the system.
  - `subtype` 'routing_instructions' | 'output_instructions': Subtypes for prompts - used for routing vs output instructions.
  - `interface_type` 'chat' | 'navigator' | 'search' | 'api' | 'form': Coarser grouping of EmbedType for prompt scoping. Follows the same pattern as StyleType in the interface_styles domain. Each value maps to one or more EmbedType values via ``embed_type_to_interface_type``.
  - `created_by` union, required
    - string, email
    - 'system'
    - 'mcp-agent'
  - `updated_by` union, required
    - string, email
    - 'system'
    - 'mcp-agent'
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/branchly/apis/branchly-io-api.md) · [All operations](https://skmtc.dev/branchly/apis/branchly-io-api/llms.txt) · [OpenAPI document](https://skmtc.dev/branchly/apis/branchly-io-api/revisions/9ffb024f8ec8?raw)
