v28

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-013593344.3 KB
Prompts

Archive Prompt

Archive a prompt you no longer need. Archived prompts are soft-deleted (we set an archived_at timestamp) so you can still access them for historical data.

Safety First:

  • Can't archive a prompt that's currently active. You must activate a different version first.
  • Historical data is preserved—old conversations continue to reference archived prompts so your message history stays intact.
  • Archived prompts remain accessible for reporting and analysis.
delete/prompts/{id}

Path parameters

idstring uuid required

The prompt ID to archive

The prompt ID to archive

Response

Prompt archived successfully

promptIdstring uuid required

The archived prompt ID.

externalPromptIdstring

The external prompt ID.

archivedAtstring required

ISO 8601 timestamp when archived.