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
cURL
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The prompt ID to archive
Previous
List PromptsBrowse through all your prompts to see what you're using across your AI applications. Returns all prompts by default (both active and inactive versions), or filter by product or version to narrow down the results.
**Filtering & Pagination:**
- Filter by `productId` to see prompts for a specific product
- Filter by `versionId` to see a specific version
- Choose your pagination style: cursor-based (`limit` + `cursor`) or page-based (`page` + `pageSize`)
- Check the `Link` header for easy pagination navigation
**Note:** This returns lightweight data with just component IDs. Use `GET /prompts/:id` to fetch the full prompt content.
Next
cURL

