---
title: "Post Validate Prompt"
method: POST
path: "/api/v1/validate/prompt"
tags: ["Validate"]
---

# Post Validate Prompt

`POST /api/v1/validate/prompt`

## Request body

- ValidatePromptRequest
  - `name` string, required
  - `template` string, required
  - `custom_fields` object, nullable
  - `frontend_node` FrontendNodeRequestInput
    - `template` object, required
    - `description` string, nullable
    - `icon` string, nullable
    - `is_input` boolean, nullable
    - `is_output` boolean, nullable
    - `is_composition` boolean, nullable
    - `base_classes` string[], required
    - `name` string
    - `display_name` string, nullable
    - `priority` integer, nullable
    - `documentation` string
    - `minimized` boolean
    - `custom_fields` object, nullable
    - `output_types` string[]
    - `full_path` string, nullable
    - `pinned` boolean
    - `conditional_paths` string[]
    - `frozen` boolean
    - `outputs` Output[]
      - `types` string[]
      - `selected` string, nullable
      - `name` string, required — The name of the field.
      - `hidden` boolean, nullable
      - `display_name` string, nullable
      - `method` string, nullable
      - `value` string, nullable
      - `cache` boolean
      - `required_inputs` string[], nullable
      - `allows_loop` boolean
      - `loop_types` string[], nullable
      - `group_outputs` boolean
      - `options` OutputOptions
        - `filter` string, nullable
      - `tool_mode` boolean
    - `field_order` string[]
    - `beta` boolean
    - `legacy` boolean
    - `replacement` string[], nullable
    - `error` string, nullable
    - `edited` boolean
    - `metadata` object
    - `tool_mode` boolean

## Response `200`

Successful Response

- PromptValidationResponse
  - `input_variables` unknown[], required
    - unknown
  - `frontend_node` FrontendNodeRequestOutput
    - `template` object, required
    - `description` string, nullable
    - `icon` string, nullable
    - `is_input` boolean, nullable
    - `is_output` boolean, nullable
    - `is_composition` boolean, nullable
    - `base_classes` string[], required
    - `name` string
    - `display_name` string
    - `priority` integer, nullable
    - `documentation` string
    - `minimized` boolean
    - `custom_fields` object, nullable
    - `output_types` string[]
    - `full_path` string, nullable
    - `pinned` boolean
    - `conditional_paths` string[]
    - `frozen` boolean
    - `outputs` Output[]
      - `types` string[]
      - `selected` string, nullable
      - `name` string, required — The name of the field.
      - `hidden` boolean, nullable
      - `display_name` string, nullable
      - `method` string, nullable
      - `value` string, nullable
      - `cache` boolean
      - `required_inputs` string[], nullable
      - `allows_loop` boolean
      - `loop_types` string[], nullable
      - `group_outputs` boolean
      - `options` OutputOptions
        - `filter` string, nullable
      - `tool_mode` boolean
    - `field_order` string[]
    - `beta` boolean
    - `legacy` boolean
    - `replacement` string[], nullable
    - `error` string, nullable
    - `edited` boolean
    - `metadata` object
    - `tool_mode` boolean

## Other responses

- `422` — Validation Error

## Changes

- **2025-12-23** `b0ee9ddb8d9f` — 5 info
  - the endpoint scheme security `API key header` was added to the API
  - the endpoint scheme security `API key query` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearer` was added to the API
  - added the new optional request property `frontend_node/anyOf[subschema #1: FrontendNodeRequest]/outputs/items/loop_types`
  - …1 more
- **2025-10-16** `9bd3e81318d7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/validate/prompt/post.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/b0ee9ddb8d9f/schema)
