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

# Query Prompt

> Search for a specific prompt by ID



## OpenAPI

````yaml post /v1/prompt/{promptId}/query
openapi: 3.0.0
info:
  title: helicone-api
  version: 1.0.0
  license:
    name: MIT
  contact: {}
servers:
  - url: https://api.helicone.ai/
  - url: http://localhost:8585/
security: []
paths:
  /v1/prompt/{promptId}/query:
    post:
      tags:
        - Prompt
      operationId: GetPrompt
      parameters:
        - in: path
          name: promptId
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromptQueryParams'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Result_PromptResult.string_'
      security:
        - api_key: []
components:
  schemas:
    PromptQueryParams:
      properties:
        timeFilter:
          properties:
            end:
              type: string
            start:
              type: string
          required:
            - end
            - start
          type: object
      required:
        - timeFilter
      type: object
      additionalProperties: false
    Result_PromptResult.string_:
      anyOf:
        - $ref: '#/components/schemas/ResultSuccess_PromptResult_'
        - $ref: '#/components/schemas/ResultError_string_'
    ResultSuccess_PromptResult_:
      properties:
        data:
          $ref: '#/components/schemas/PromptResult'
        error:
          type: number
          enum:
            - null
          nullable: true
      required:
        - data
        - error
      type: object
      additionalProperties: false
    ResultError_string_:
      properties:
        data:
          type: number
          enum:
            - null
          nullable: true
        error:
          type: string
      required:
        - data
        - error
      type: object
      additionalProperties: false
    PromptResult:
      properties:
        id:
          type: string
        user_defined_id:
          type: string
        description:
          type: string
        pretty_name:
          type: string
        major_version:
          type: number
          format: double
        latest_version_id:
          type: string
        latest_model_used:
          type: string
        created_at:
          type: string
        last_used:
          type: string
        versions:
          items:
            type: string
          type: array
        metadata:
          $ref: '#/components/schemas/Record_string.any_'
      required:
        - id
        - user_defined_id
        - description
        - pretty_name
        - major_version
        - latest_version_id
        - latest_model_used
        - created_at
        - last_used
        - versions
      type: object
      additionalProperties: false
    Record_string.any_:
      properties: {}
      additionalProperties: {}
      type: object
      description: Construct a type with a set of properties K of type T
  securitySchemes:
    api_key:
      type: apiKey
      name: Authorization
      in: header
      description: 'Bearer token authentication. Format: ''Bearer YOUR_API_KEY'''

````