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

# Api Generate Prompt

`POST /v1/prompts/{application_id}/{prompt_id}/generate`

## 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}/{prompt_id}/generate`
- Auth: HTTP bearer

## Path parameters

- `application_id` string, uuid, required
- `prompt_id` string, uuid, required

## Request body

- PromptGenerationInputAPI
  - `prompt` string, required: The base prompt to build upon

## Response `200`

Successful Response

- GeneratedPromptAPI
  - `updated_prompt` string, required: The updated prompt with instructions.
  - `previous_prompt` string, required: The previous prompt before updating.

## 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)
