---
title: "Archive Prompt"
method: POST
path: "/prompts/{prompt_id}/archive"
tags: ["Project"]
---

# Archive Prompt

`POST /prompts/{prompt_id}/archive`

## Request

- Base URL: `https://api.peec.ai/customer/v1`
- URL: `https://api.peec.ai/customer/v1/prompts/{prompt_id}/archive`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in query parameter `api_key`
  - HTTP bearer

Archive a prompt (is_archived = true) so it stops running while keeping its chats and history

## Path parameters

- `prompt_id` string, required

## Response `200`

Prompt archived successfully

- object: Prompt archived successfully

## Other responses

- `404`: Response for status 404

---

[API](https://skmtc.dev/peec/apis/peec-ai-customer-api.md) - [All operations](https://skmtc.dev/peec/apis/peec-ai-customer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/peec/apis/peec-ai-customer-api/revisions/9d774600c8eb?raw)
