---
title: "Validate a survey definition"
method: POST
path: "/engagement/surveys/validate"
tags: ["Engagement Survey"]
---

# Validate a survey definition

`POST /engagement/surveys/validate`

## Request

- Base URL: `https://api.gleap.io/v3`
- URL: `https://api.gleap.io/v3/engagement/surveys/validate`
- Auth: HTTP bearer

Validate a Surveys 2.0 definition without saving it (editor, MCP `validate_survey`). Body
`{ definition }`. Returns `{ ok, errors: [{ path, code, message }] }`.

## Headers

- `project` string, required

## Request body

- unknown

## Response `200`

Ok

- unknown

## Changes

- **2026-10-08** `fd83cd1963c4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gleap/apis/gleap-server/changes/engagement/surveys/validate/post.md)

---

[API](https://skmtc.dev/gleap/apis/gleap-server.md) - [All operations](https://skmtc.dev/gleap/apis/gleap-server/llms.txt) - [OpenAPI document](https://skmtc.dev/gleap/apis/gleap-server/revisions/3b025e883cef?raw)
