---
title: "Generate internal linking suggestions for a guide"
method: POST
path: "/api/v1/internal-links"
tags: ["v1", "In-guide features"]
---

# Generate internal linking suggestions for a guide

`POST /api/v1/internal-links`

## 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/internal-links`
- Auth: HTTP bearer

Analyzes a guide and generates internal linking suggestions based on content analysis. 
**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

## Response `200`

Internal links generation initiated or completed successfully

- object
  - `success` boolean

## Other responses

- `400`: Bad request - Missing guideId, insufficient tokens or failed to consume tokens
- `401`: Unauthorized - Invalid API key
- `403`: Not authorized to access this guide (no token is consumed)
- `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/e71b28ef35a8?raw)
