Zum Inhalt springen
Deutsch
Esc
↑↓navigate↵open⌘Jpreview

Create a deal

Early access: request API access for your workspace at https://bauhow.com/support before using this endpoint.

POST/v1/deals
Authorization
AuthorizationBearer token · headerrequired
Workspace API key (`bh_…`).
Request body
requiredapplication/json
contactIdstringrequired
min length 1
titlestringrequired
min length 1 · max length 200
stageIdstringrequired
min length 1
valuenumber | any
Show properties
Any of:
number
number
any
any
ownerIdstring | any
Show properties
Any of:
string
string
any
any
projectTypeIdsstring[]
max items 50
streetstring | any
Show properties
Any of:
string
string
any
any
postalCodestring | any
Show properties
Any of:
string
string
any
any
citystring | any
Show properties
Any of:
string
string
any
any
notesstring | any
Show properties
Any of:
string
string
any
any
Responses
201OK
idstringrequired
contactIdstringrequired
titlestringrequired
valuenumber | anyrequired
Show properties
Any of:
number
number
any
any
stageIdstringrequired
stageEnteredAtstring<date-time>required
statusstringrequired
Allowed:openwonlost
ownerIdstring | anyrequired
Show properties
Any of:
string
string
any
any
projectTypeIdsstring[]required
streetstring | anyrequired
Show properties
Any of:
string
string
any
any
postalCodestring | anyrequired
Show properties
Any of:
string
string
any
any
citystring | anyrequired
Show properties
Any of:
string
string
any
any
notesstring | anyrequired
Show properties
Any of:
string
string
any
any
projectIdstring | anyrequired
Show properties
Any of:
string
string
any
any
closedAtstring<date-time> | anyrequired
Show properties
Any of:
string<date-time>
string<date-time>
any
any
archivedAtstring<date-time> | anyrequired
Show properties
Any of:
string<date-time>
string<date-time>
any
any
createdAtstring<date-time>required
updatedAtstring<date-time>required
Request
curl -X POST "https://app.bauhow.com/api/v1/deals" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "contactId": "string",
  "title": "string",
  "stageId": "string",
  "value": 0,
  "ownerId": "string",
  "projectTypeIds": [
    "string"
  ],
  "street": "string",
  "postalCode": "string",
  "city": "string",
  "notes": "string"
}'
Response
{
  "id": "string",
  "contactId": "string",
  "title": "string",
  "value": 0,
  "stageId": "string",
  "stageEnteredAt": "2024-01-01T00:00:00Z",
  "status": "open",
  "ownerId": "string",
  "projectTypeIds": [
    "string"
  ],
  "street": "string",
  "postalCode": "string",
  "city": "string",
  "notes": "string",
  "projectId": "string",
  "closedAt": "2024-01-01T00:00:00Z",
  "archivedAt": "2024-01-01T00:00:00Z",
  "createdAt": "2024-01-01T00:00:00Z",
  "updatedAt": "2024-01-01T00:00:00Z"
}