---
title: "Detect Intent"
method: POST
path: "/api/detect-intent"
tags: ["schematic-detection"]
---

# Detect Intent

`POST /api/detect-intent`

## Request

- Base URL: `https://backend.snapmagic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.snapmagic.com/api/detect-intent`
- Auth: none declared

## Request body

- DetectSchematicRequest
  - `message` string, required
  - `include_intent` boolean
  - `has_existing_schematic` boolean

## Response `200`

Successful Response

- DetectSchematicResponse
  - `is_schematic_request` boolean, required
  - `intent` string, nullable
  - `confidence` number, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/snapmagic/apis/snapmagic-api.md) - [All operations](https://skmtc.dev/snapmagic/apis/snapmagic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/snapmagic/apis/snapmagic-api/revisions/db14522771a6?raw)
