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

# Create Goal

`POST /api/partners/goals`

## Request

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

Create a joint savings goal.

## Request body

- AppApiPartnersGoalCreate
  - `name` string, required
  - `target_amount` union, required
    - number
    - string
  - `monthly_contribution` union
    - number
    - string
  - `icon` string, nullable

## Response `201`

Successful Response

- AppApiPartnersGoalResponse
  - `id` string, required
  - `name` string, required
  - `target_amount` number, required
  - `current_amount` number, required
  - `user1_contributed` number, required
  - `user2_contributed` number, required
  - `monthly_contribution` number, required
  - `icon` string, nullable, required
  - `progress_pct` number, required
  - `created_at` string, required

## Other responses

- `422`: Validation Error

---

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