v1
latestOpenAPI 3.0.22026-07-173834119.9 KBPrompt Management
Get Prompt Template
Endpoint to Get a Prompt Template
This endpoint gets the latest version of a prompt template by name.
Request Body
| Field | Type | Description |
|---|---|---|
| name | str | The name of the prompt template. |
Example Request Body
```json
{
"name": "CHATBOT_PROMPT"
}
```
Response Body
| Field | Type | Description |
|---|---|---|
| id | str | The ID of the prompt template. |
| name | str | The name of the prompt template. |
| prompt_template | str | The prompt template. |
| version | int | The version of the prompt template. |
Errors
- 404 Not Found: If the prompt template is not found.
- 500 Internal Server Error: If there is an unexpected error during the retrieval of the prompt template.
post/prompt/template/get
Request body
Response
Successful Response