---
title: "Create Goal"
method: POST
path: "/api/goals"
tags: ["goals"]
---

# Create Goal

`POST /api/goals`

## Request

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

## Headers

- `X-Tenant-Id` integer, nullable

## Request body

- GoalIn
  - `type` string, required
  - `target_value` number, required
  - `budget_ceiling_cents` integer
  - `deadline` string, date, required
  - `status` string
  - `currency` string
  - `composite_json` object, nullable
  - `channel_mix_json` object, nullable
  - `attribution_mode` string

## Response `201`

Successful Response

- GoalOut
  - `id` integer, required
  - `type` string, required
  - `target_value` number, required
  - `budget_ceiling_cents` integer, required
  - `spent_cents` integer, required
  - `currency` string, required
  - `deadline` string, date, required
  - `status` string, required
  - `attribution_mode` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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