---
title: "Create a new deal"
method: POST
path: "/deals"
---

# Create a new deal

`POST /deals`

Create a new contact with the provided details. Requires a valid Bearer token.

## Request body

- object
  - `name` string, required
  - `expectedDealValue` number
  - `currency` string
  - `closeDate` string
  - `groupId` string
  - `stageId` string
  - `priorityId` string
  - `labelIds` string[]
  - `source` string
  - `contactIds` string[]
  - `accountIds` string[]

## Response `201`

Account created successfully

- object
  - `message` string
  - `accountId` string, uuid

## Other responses

- `401` — Unauthorized
- `500` — Error occurred while creating the account

---

[API](https://skmtc.net/supabase/apis/dalil-oauth-resource-api.md) · [All operations](https://skmtc.net/supabase/apis/dalil-oauth-resource-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/supabase/dalil-oauth-resource-api/versions/40a7125e0355/schema)
