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

# Get Prompt

> Retrieves a prompt with its messages and parameters. Supports lookup by prompt ID (cuid) or textId (deprecated).



## OpenAPI

````yaml GET /v1/studio/prompts/{promptId}
openapi: 3.0.3
info:
  title: Qualifire AI API
  description: API for Qualifire AI services, including evaluation and prompt management.
  version: 1.0.0
servers:
  - url: https://api.qualifire.ai/api
security:
  - ApiKeyAuth: []
paths:
  /v1/studio/prompts/{promptId}:
    get:
      tags:
        - Studio
      summary: Get a prompt
      description: >-
        Retrieves a prompt with its messages and parameters. Supports lookup by
        prompt ID (cuid) or textId (deprecated).
      parameters:
        - name: promptId
          in: path
          description: Prompt ID (cuid) or textId (deprecated)
          required: true
          schema:
            type: string
        - name: revision
          in: query
          description: Revision ID (cuid) - preferred method
          schema:
            type: string
        - name: revisionNumber
          in: query
          description: Revision number (deprecated, use revision instead)
          deprecated: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.Prompt'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.Error'
        '404':
          description: Prompt not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/models.Error'
components:
  schemas:
    models.Prompt:
      type: object
      required:
        - id
        - name
        - revision
        - description
        - created_at
        - messages
        - tools
        - parameters
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        created_at:
          type: string
          nullable: true
        revision:
          type: integer
        messages:
          type: array
          items:
            type: object
            required:
              - role
              - content
            properties:
              role:
                type: string
              content:
                type: string
                nullable: true
        tools:
          type: array
          items:
            $ref: '#/components/schemas/models.ToolResponse'
        parameters:
          type: object
          properties:
            model:
              type: string
            temperature:
              type: number
            top_p:
              type: number
            frequency_penalty:
              type: number
            presence_penalty:
              type: number
            max_tokens:
              type: integer
            reasoning_effort:
              type: string
              description: Reasoning effort level for supported models
    models.Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A human-readable error message
          example: Invalid API key
    models.ToolResponse:
      type: object
      required:
        - type
        - function
      properties:
        type:
          type: string
        function:
          type: object
          required:
            - name
          properties:
            name:
              type: string
            description:
              type: string
            parameters:
              type: object
              additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Qualifire-API-Key

````