Quickstart guide
This sample shows you how to create a sales opportunity through our REST API using cURL.
curl --location 'https://api.voxity.ai/v1/agents/1R7kHmQ6moHuhpaddTf9/opportunities'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer <API KEY>'
--data '{ "name": "Scheduling a dental cleaning",\
"customerId": "o2muqsb14vuUCeEDw1Tg", \
"stageId": "K1mb7xsIsx0qnfyxFAvo", "pipelineId": "g3g7oZwXq7Gc9e5rwO3Y",\
"score": 50}'Then, you should get a response that looks like this:
{
"id": "LbcyBummksW72pKVPkL5",
"name": "Scheduling a dental cleaning",
"score": 50,
"amount": null,
"pipelineId": "g3g7oZwXq7Gc9e5rwO3Y",
"stageId": "K1mb7xsIsx0qnfyxFAvo",
"customerId": "o2muqsb14vuUCeEDw1Tg",
"ownerId": null,
"createdAt": "2024-08-15T00:24:51.392Z",
"updatedAt": "2024-08-15T00:24:51.392Z",
"removed": false
}Last updated