---
title: "Validate Intent"
method: POST
path: "/v1/ai/validate_intent"
tags: ["ai"]
---

# Validate Intent

`POST /v1/ai/validate_intent`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/ai/validate_intent`
- Auth: HTTP bearer

Generate example comments that would match an AI_INTENT trigger
prompt, in languages matching the user's country (e.g. Hinglish for
India), so the creator can sanity-check the prompt before saving.

## Request body

- ValidateIntentPayload
  - `prompt` string, required
  - `count` integer

## Response `200`

Successful Response

- ValidateIntentResponse
  - `examples` ValidateIntentExample[], required
    - `text` string, required
    - `language` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
