---
title: "Create a goal (STARTER+)"
method: POST
path: "/goals"
tags: ["goals"]
---

# Create a goal (STARTER+)

`POST /goals`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/goals`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

## Headers

- `X-Organization-Id` string, required

## Request body

- object
  - `title` string, required
  - `description` string
  - `targetDate` string, date-time, nullable
  - `parentId` string, uuid, nullable: Parent goal UUID for nested OKRs

## Response `201`

Goal created

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `402`: Plan gate - feature not available on current plan

---

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