---
title: "Create an opportunity"
method: POST
path: "/opportunities"
tags: ["Opportunities"]
---

# Create an opportunity

`POST /opportunities`

Creates a new opportunity. Provide the company, pipeline stage, estimated value, and other opportunity details.

## Request body

- CreateOpportunityDto
  - `companyId` string, required — The ID of the company this opportunity belongs to
  - `name` string, required — The name of the opportunity
  - `description` string, nullable, required — Detailed description of the opportunity
  - `stageId` string, required — The pipeline stage ID to assign to this opportunity
  - `ownerId` string — The user ID of the opportunity owner
  - `closeDate` CreateOpportunityCloseDateDto, required
    - `target` string, date-time, required
  - `clientTeam` IdDto[] — Client contacts to associate with this opportunity
    - `id` string, required

## Response `201`

Opportunity created successfully. Returns the opportunity ID.

- CreateRecordResponseDto
  - `id` string, required

## Other responses

- `400` — Bad request - missing or invalid required fields
- `401` — Unauthorized - invalid or missing authentication
- `500` — Error response

---

[API](https://skmtc.net/spott/apis/spott-webhooks.md) · [All operations](https://skmtc.net/spott/apis/spott-webhooks/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spott/spott-webhooks/versions/ad1f8c51cf0a/schema)
