Create deal
curl --request POST \
--url https://dev-public-api.openphone.dev/deals \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'Quo-Api-Version: <quo-api-version>' \
--data '
{
"pipelineId": "SPa1b2c3d4e5f6a1b2c3d4e5f6",
"statusId": "DSa1b2c3d4e5f6a1b2c3d4e5f6",
"contactIds": [
"6a145ff26212a192852c856e"
],
"title": "Website redesign",
"value": {
"amount": 500000,
"currency": "USD"
}
}
'{
"data": {
"id": "DLa1b2c3d4e5f6a1b2c3d4e5f6",
"pipelineId": "SPa1b2c3d4e5f6a1b2c3d4e5f6",
"statusId": "DSa1b2c3d4e5f6a1b2c3d4e5f6",
"stage": "active",
"contactIds": [
"6a145ff26212a192852c856e"
],
"ownerIds": [
"US123abc"
],
"createdAt": "2026-01-01T00:00:00Z",
"title": "Website redesign",
"value": {
"amount": 500000,
"currency": "USD"
},
"archivedAt": "2026-01-01T00:00:00Z"
}
}Deals
Create deal
Create a deal in a sales pipeline. A deal is created with a single primary contact. Returns 202 Accepted when the deal is saved but not yet readable, in which case fetch it with GET /deals/.
POST
/
deals
Create deal
curl --request POST \
--url https://dev-public-api.openphone.dev/deals \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'Quo-Api-Version: <quo-api-version>' \
--data '
{
"pipelineId": "SPa1b2c3d4e5f6a1b2c3d4e5f6",
"statusId": "DSa1b2c3d4e5f6a1b2c3d4e5f6",
"contactIds": [
"6a145ff26212a192852c856e"
],
"title": "Website redesign",
"value": {
"amount": 500000,
"currency": "USD"
}
}
'{
"data": {
"id": "DLa1b2c3d4e5f6a1b2c3d4e5f6",
"pipelineId": "SPa1b2c3d4e5f6a1b2c3d4e5f6",
"statusId": "DSa1b2c3d4e5f6a1b2c3d4e5f6",
"stage": "active",
"contactIds": [
"6a145ff26212a192852c856e"
],
"ownerIds": [
"US123abc"
],
"createdAt": "2026-01-01T00:00:00Z",
"title": "Website redesign",
"value": {
"amount": 500000,
"currency": "USD"
},
"archivedAt": "2026-01-01T00:00:00Z"
}
}Headers
Body
application/json
Was this page helpful?