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

# Get Prompt

> Retrieve a prompt by ID

Retrieves a prompt template by its unique identifier. This returns the prompt metadata including name, tags, and creation date.

## Path Parameters

<ParamField path="promptId" type="string" required>
  The unique identifier of the prompt
</ParamField>

## Response

<ResponseField name="data" type="object">
  <ResponseField name="id" type="string">
    The unique identifier for the prompt
  </ResponseField>

  <ResponseField name="name" type="string">
    Name of the prompt template
  </ResponseField>

  <ResponseField name="tags" type="string[]">
    Array of tags associated with the prompt
  </ResponseField>

  <ResponseField name="created_at" type="string">
    ISO 8601 timestamp of when the prompt was created
  </ResponseField>
</ResponseField>

<ResponseField name="error" type="string | null">
  Error message if the request failed, null otherwise
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```typescript TypeScript theme={null}
  const response = await fetch(
    'https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz',
    {
      headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
      },
    }
  );

  const result = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://api.helicone.ai/v1/prompt-2025/id/prompt_abc123xyz',
      headers={
          'Authorization': 'Bearer YOUR_API_KEY',
      },
  )

  result = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 Success theme={null}
  {
    "data": {
      "id": "prompt_abc123xyz",
      "name": "Customer Support Agent",
      "tags": ["support", "customer-service"],
      "created_at": "2024-03-10T12:00:00Z"
    },
    "error": null
  }
  ```

  ```json 500 Error theme={null}
  {
    "data": null,
    "error": "Prompt not found"
  }
  ```
</ResponseExample>
