---
title: "Generate search intent analysis for a guide"
method: POST
path: "/api/v1/intent"
tags: ["v1", "In-guide features"]
---

# Generate search intent analysis for a guide

`POST /api/v1/intent`

## Request

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

Analyzes search intent for a guide and optionally analyzes provided content against that intent. 
**Note:** This endpoint uses tokens (check /api/v1/tokens-usage for the cost, might vary).

## Request body

- object
  - `guideId` string, required: ID of the guide
  - `content` string: Optional content to analyze against the intent (only after intent analysis was created)

## Response `200`

Intent analysis initiated or completed successfully

- object
  - `success` boolean

## Other responses

- `400`: Bad request - Invalid guideId, insufficient tokens, or failed to consume tokens
- `401`: Unauthorized - Invalid API key or user doesn't own the guide
- `404`: Guide not found
- `410`: Guide expired. Guides are locked 180 days after their creation, because the Google results they are built on are no longer representative. The body is `{ success: false, error: "Guide expired", expiresAt: "<ISO 8601 expiry date>" }`. Definitive: do not retry, create a new guide on the same keyword. No token is consumed by this refusal.
- `500`: Internal server error

---

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