---
title: "Create Goal"
method: POST
path: "/sites/{site_id}/goals"
tags: ["sites"]
---

# Create Goal

`POST /sites/{site_id}/goals`

## 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}/goals`
- Auth: API key in header `X-Agent-Key`

Create a goal. The baseline is measured here, never taken from the caller.

## Path parameters

- `site_id` string, required

## Query parameters

- `email` string, nullable

## Request body

- GoalCreateRequest
  - `title` string, required
  - `description` string, nullable
  - `parent_id` string, nullable
  - `category` string
  - `stage` string
  - `priority` string
  - `tags` string[], nullable
  - `metric_key` string, nullable
  - `direction` string, nullable
  - `target_value` number, nullable
  - `manual_total` integer, nullable
  - `starts_at` string, date-time, nullable
  - `due_at` string, date-time, nullable
  - `owner_email` string, nullable

## 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)
