Create Opportunity
Create a new opportunity with required and optional fields.
Required fields:
- `title`: Opportunity title/name
- `address`: Opportunity location
- `trades`: Array of trade types
Optional fields:
- `accountId`: Link to existing account
- `workflowId`: Link to workflow
- `phaseId`: Link to phase
- `value`: Opportunity value
- `size`: Opportunity size
- `confidence`: Confidence score (0-100)
- `primaryEmail`/`primaryPhone`: Contact information
- `contacts`: Contact IDs only (no name, email, phone, etc.). The contacts must be created first via POST /contacts.
- `custom`: Custom fields object
Note: If primaryEmail or primaryPhone is provided, a contact will be automatically created or matched.
**Note:** The `/requests` path is an alias for `/opportunities` and will continue to work until users are individually notified and migrated.
Authentication
x-api-keystring
API Key authentication via header
Query parameters
allow_new_options
Whether to allow creation of new dropdown options during record creation
match_by
Field to use for matching existing records
Allowed values:
match_found_strategy
Strategy to use when a match is found
Allowed values:
Request
This endpoint expects an object.
title
Opportunity title/name
address
An array containing a single string, which represents the full opportunity location/address.
trades
Array of trade types
description
Opportunity description
accountId
ID of associated account
workflowId
ID of associated workflow
value
Project value
size
Project size
status
Status of the project:
* `ACTIVE` - Project is active and in progress
* `ON_HOLD` - Project is temporarily paused
* `CANCELLED` - Project has been cancelled
* `COMPLETED` - Project has been completed
Allowed values:
primaryEmail
Primary contact email
primaryPhone
Primary contact phone
contacts
Contact IDs only (no name, email, phone, etc.). The contacts must be created first via POST /contacts.
custom
Custom fields
Response
Matching opportunity found
accountId
Associated account ID
address
An array containing a single string, which represents the full opportunity location/address.
city
confidence
Deal confidence score (0-100)
createdAt
Creation timestamp
createdById
Identifier of the user who created the opportunity
custom
Custom fields
description
Record description
geoLocation
Latitude/Longitude in “lat,lon” format
id
Unique identifier
imageUrl
Image URL for the opportunity
isActive
Whether the record is active
jurisdiction
lastActivity
number
Sequential opportunity number
owner
phase
phaseId
phaseInstances
Ordered list of phase instances for the opportunity
primaryEmail
Primary contact email
primaryPhone
Primary contact phone
projectManager
salesRep
size
Deal size
state
street
streetViewUrl
Street view image URL
title
Record title/name
trades
Array of trade types
updatedAt
Last update timestamp
value
Deal value
workflowId
Associated workflow ID
workflowName
Name of the associated workflow.
zipcode
