---
title: "Content For Goal"
method: POST
path: "/sites/{site_id}/content/for-goal/{goal_id}"
tags: ["content"]
---

# Content For Goal

`POST /sites/{site_id}/content/for-goal/{goal_id}`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/sites/{site_id}/content/for-goal/{goal_id}`
- Auth: API key in header `X-Agent-Key`

Start (or resume) the content loop from a goal: the brief already open
for this goal, else a new one with the keyword derived from the goal's
title unless given. Returns the brief and the next step — the same ladder
as create_content_brief, entered from the roadmap.

## Path parameters

- `site_id` string, required
- `goal_id` string, required

## Query parameters

- `email` string, nullable

## Request body

- ForGoalBody
  - `target_keyword` string, nullable
  - `notes` string, nullable
  - `live_serp` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
