---
title: "Saves the prompt"
method: POST
path: "/v1/agent/prompt/save"
tags: ["AI Agent"]
---

# Saves the prompt

`POST /v1/agent/prompt/save`

Saves the prompt.

## Request body

- PromptSaveRequest
  - `prompt` string, required — Input given to the agent
  - `agent_id` string — ID of the agent
  - `tags` KeyValuePair[] — List of tag key/value pairs
    - `key` string — Key of the pair
    - `value` string — Value of the pair

## Response `201`

Created

- string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

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