---
title: "Create goal"
method: POST
path: "/api/sites/{id}/goals"
tags: ["Goals"]
---

# Create goal

`POST /api/sites/{id}/goals`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/api/sites/{id}/goals`
- Auth: API key in cookie `hk_token`

Creates a conversion goal.

## Path parameters

- `id` string, uuid, required

## Request body

- Goal
  - `created_at` string, date-time
  - `id` string, uuid
  - `name` string
  - `site_id` string, uuid
  - `type` 'event' | 'path'
  - `value` string

## Response `201`

Created

---

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