# Prompt Quick Start

By the end of this guide, you'll have a prompt running in the dashboard and a public cURL snippet you can use to invoke it from your app.

## Prerequisites

* A Fetch Hive workspace
* A workspace API key if you want to run the public cURL example - see [API Keys](https://docs.fetchhive.com/your-workspace/api-keys)

## Step 1: Create a prompt

Open **Prompts** in the sidebar, then click **Add Prompt**.

Enter a **Name**. If your workspace uses categories, you can also choose a **Category**. Click **Save** to open the editor.

## Step 2: Add your first message

In the editor, find the **Prompt** section and click **Add Message**.

For a minimal prompt, add one short instruction. For example:

```
You are a helpful assistant. Summarize the user's text in one sentence.
```

If you want the prompt to accept dynamic input, include a variable such as `{{text}}`. When your prompt contains variables, you can click **Variables** to open the **Input Values** sheet and provide test values before you run it.

## Step 3: Test the prompt in the editor

Click **Run**.

The response appears in the **Model Response** area on the right side of the editor. Use this step to confirm that your prompt behaves the way you expect before you create a prompt deployment.

This in-editor run is for dashboard testing. It is not the same as the public API invoke flow.

## Step 4: Save a named version

Click **Save Version** in the editor header.

Enter a short description of what changed, then save the version. This gives you a named checkpoint you can refer back to later.

## Step 5: Create a deployment

Click **Deploy**, then choose **Create a Deployment**.

Enter a **Deployment key** and save it. This creates the live prompt deployment you can invoke outside the dashboard.

Use **Deploy** and **deployment** language here. In Fetch Hive, this is the step that makes your prompt available as a prompt deployment through the public API.

## Step 6: Copy the public invoke snippet

Open **More** in the sidebar, then click **Get Code**.

Select your **Deployment** and **Variant**. The dialog shows a cURL snippet for `POST /v1/invoke`.

The dialog provides a cURL snippet here. The **Python** and **TypeScript** tabs are still marked **Coming Soon**.

```bash
curl 'https://api.fetchhive.com/v1/invoke' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  --data-raw '{
    "deployment": "YOUR_DEPLOYMENT_NAME",
    "variant": "YOUR_VARIANT_NAME",
    "inputs": {
      "text": "Fetch Hive helps teams ship AI products faster."
    },
    "streaming": true
  }' \
  --compressed
```

Replace `YOUR_API_KEY`, `YOUR_DEPLOYMENT_NAME`, `YOUR_VARIANT_NAME`, and the `inputs` object with your real values.

## Next steps

* [Prompts](https://docs.fetchhive.com/prompts/prompts)
* [Publishing and Versioning](https://docs.fetchhive.com/prompts/publishing-and-versioning)
* [Run with API](https://docs.fetchhive.com/prompts/run-with-api)
