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

# Render prompt with variables (CLI/SDK)

> Renders a prompt template with provided variables.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/runtime/prompts/{nameOrId}/render
openapi: 3.0.0
info:
  title: Runflow Runtime API
  description: >-
    Programmatic surface for the Runflow platform — used by the SDK, the CLI,
    the execution engine, and any server-to-server caller. Authenticate with an
    `x-api-key` header (or `Authorization: Bearer ...`).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.runflow.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags: []
paths:
  /api/v1/runtime/prompts/{nameOrId}/render:
    post:
      tags:
        - Runtime API - Prompts Management
      summary: Render prompt with variables (CLI/SDK)
      description: Renders a prompt template with provided variables.
      operationId: RuntimePromptsManagementController_renderPrompt
      parameters:
        - name: nameOrId
          required: true
          in: path
          description: Prompt name or UUID
          schema:
            type: string
        - name: environment
          required: false
          in: query
          description: 'Environment: staging or production (default: production)'
          schema:
            type: string
      responses:
        '200':
          description: Prompt rendered successfully.
      security:
        - bearer: []
components: {}

````