> ## Documentation Index
> Fetch the complete documentation index at: https://docs.topify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Public API: prompt management endpoints

> Create, update, and delete prompts via the public API.

## Prompt write endpoints

The public API now supports full CRUD operations on prompts. Previously, the API was read-only for prompt data. You can now programmatically manage your tracked prompts without using the dashboard.

### New endpoints

* **POST** `/projects/{project_id}/prompts` -- create one or more prompts (up to 50 per request)
* **PATCH** `/projects/{project_id}/prompts/{prompt_id}` -- update prompt content, country, topic, or type
* **DELETE** `/projects/{project_id}/prompts/{prompt_id}` -- permanently remove a prompt

All write endpoints require an admin-scoped API key. Existing read-only endpoints are unchanged.

See the [prompts reference](/api-reference/prompts) for full request and response documentation.

### Scoped API keys

API keys now carry a role (`admin` or `viewer`) and optional project restrictions, inherited from the creating user's permissions at the time the key is generated. All existing keys default to full admin access with no breaking changes.

### API key visibility

You can now view and copy full API keys from the **Management > Members** page in the dashboard. Keys created before this update only display a prefix.
