---
title: "Discard a credential request and anything already typed into it."
method: POST
path: "/ai/conversations/{public_id}/secrets/{secret_id}/discard"
tags: ["AI Chat"]
---

# Discard a credential request and anything already typed into it.

`POST /ai/conversations/{public_id}/secrets/{secret_id}/discard`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/conversations/{public_id}/secrets/{secret_id}/discard`
- Auth: HTTP bearer

## Path parameters

- `public_id` string, required
- `secret_id` string, required

## Response `200`

Request discarded

- SecretSlotView: What a slot looks like to the console and to the model: everything except the value.
  - `conversation_id` integer, required
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, required
  - `field` string, required: JSON pointer of the request field the value is for.
  - `filled_at` string, date-time, nullable
  - `id` string, required: The id inside the handle (`secret_ref:v1:<id>`).
  - `label` string, required: What the form asks for.
  - `operation_id` string, required
  - `status` string, required: `awaiting`, `filled`, `cancelled` or `expired`.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Conversation or secret request not found
- `500`: Internal server error

## Changes

> 81 revisions in range; 1 not diffed.

- **2026-10-20** `79089e9f49ee`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/conversations/:public_id/secrets/:secret_id/discard/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) · [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) · [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/ab6d5d19e930?raw)
