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

# Get Prompt

> Retrieve a specific prompt by name, optionally at a specific version

## Overview

Get the details of a specific prompt by its unique name. Returns the latest version by default, or a specific version if the `version` query parameter is provided.

## Authentication

<ParamField header="X-API-Key" type="string" required>
  Your eigi.ai API key. Must be prefixed with `vk_`.
</ParamField>

## Path Parameters

<ParamField path="prompt_name" type="string" required>
  The unique prompt name.

  Example: `customer_support_v1`
</ParamField>

## Query Parameters

<ParamField query="version" type="integer">
  Specific version number to retrieve (minimum: 1). Omit to get the latest version.
</ParamField>

## Response

<ResponseField name="prompt_name" type="string">
  The unique prompt name.
</ResponseField>

<ResponseField name="prompt_version" type="integer">
  Version number of the returned prompt.
</ResponseField>

<ResponseField name="prompt_content" type="string">
  The prompt text content.
</ResponseField>

<ResponseField name="prompt_metadata" type="object">
  Metadata including prompt\_type.
</ResponseField>

<ResponseField name="created_at" type="string">
  ISO 8601 creation timestamp.
</ResponseField>

<ResponseField name="updated_at" type="string">
  ISO 8601 last update timestamp.
</ResponseField>


## OpenAPI

````yaml GET /v1/public/prompts/{prompt_name}
openapi: 3.0.0
info:
  title: eigi.ai API
  description: REST API for managing AI voice agents and conversations
  version: 1.0.0
  contact:
    email: buddy@eigi.ai
    url: https://eigi.ai
servers:
  - url: https://api.eigi.ai
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /v1/public/prompts/{prompt_name}:
    get:
      tags:
        - Prompts
      summary: Get Prompt
      description: >-
        Retrieve a specific prompt by name. Returns the latest version by
        default, or a specific version if the version query parameter is
        provided.
      operationId: getPrompt
      parameters:
        - name: prompt_name
          in: path
          required: true
          description: The unique prompt name
          schema:
            type: string
          example: customer_support_v1
        - name: version
          in: query
          description: Specific version to retrieve (omit for latest)
          schema:
            type: integer
            minimum: 1
      responses:
        '200':
          description: Successfully retrieved prompt
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PromptResponse'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PromptResponse:
      type: object
      properties:
        prompt_name:
          type: string
          description: Unique prompt name
        prompt_version:
          type: integer
          description: Version number of the prompt
        prompt_content:
          type: string
          description: The prompt text content
        prompt_metadata:
          type: object
          description: Additional metadata
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp
    Error:
      type: object
      properties:
        detail:
          type: string
          description: Error message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Get your API key from the eigi.ai Dashboard
        under Settings â†’ API Keys.

````