---
title: "Creates a goal for crafting or forging an item. The first goal becomes the focused one."
method: POST
path: "/api/mod/goals"
tags: ["ModBridge"]
---

# Creates a goal for crafting or forging an item. The first goal becomes the focused one.

`POST /api/mod/goals`

## Request

- Base URL: `https://sky.coflnet.com` (the document declares no server; this is the origin it was published from)
- URL: `https://sky.coflnet.com/api/mod/goals`
- Auth: none declared

## Request body

- ModGoalCreateRequest: Request to create a goal
  - `kind` string, nullable: `craft` or `forge`
  - `itemTag` string, nullable: Tag of the item to obtain
  - `quantity` integer, required: How many to make
  - `sell` boolean, required: Add a final step to sell the result

## Response `200`

OK

- ModGoalProgress: A goal with its progress
  - `id` string, nullable: Goal id
  - `title` string, nullable: Display title
  - `rootItemTag` string, nullable: Tag of the target item
  - `quantity` integer, required: Target quantity
  - `createdAt` string, date-time, required: When the goal was created
  - `source` string, nullable: `website` or `mod`
  - `done` integer, required: Completed steps
  - `total` integer, required: Total steps
  - `root` ModGoalStep: One step of a goal
    - `id` string, nullable: Step id
    - `kind` 'buyOrder' | 'instaBuy' | 'npc' | 'auction' | 'craft' | 'forge' | 'sell', required
    - `itemTag` string, nullable: Item tag
    - `itemName` string, nullable: Item display name
    - `quantity` integer, required: Needed amount
    - `status` 'todo' | 'ordered' | 'ready' | 'forging' | 'done', required
    - `children` ModGoalStep[], nullable: Sub steps

## Changes

- **2026-10-14** `886696623fe1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coflnet/apis/skyapi/changes/api/mod/goals/post.md)

---

[API](https://skmtc.dev/coflnet/apis/skyapi.md) - [All operations](https://skmtc.dev/coflnet/apis/skyapi/llms.txt) - [OpenAPI document](https://skmtc.dev/coflnet/apis/skyapi/revisions/c787372dc7a2?raw)
