Sales
Create a new Call
POST
/
calls
curl --request POST \
--url https://commerce.driv.ly/api/calls \
--header 'Content-Type: application/json' \
--data '{
"id": "call_3d9k2j8s7d2k",
"note": "Follow up with more information",
"time": "2023-09-20T14:00:00Z",
"rating": 5,
"ratingNote": "Excellent call, potential sale",
"transcript": "Transcript of the call here",
"audioRecording": {
"url": "http://example.com/audio"
},
"conversationURL": "http://example.com/conversation",
"externalPhoneNumber": "555-6789",
"internalPhoneNumber": "555-0199"
}'
{
"data": {
"id": "call_3d9k2j8s7d2k",
"note": "Follow up with more information",
"time": "2023-09-20T14:00:00Z",
"rating": 5,
"ratingNote": "Excellent call, potential sale",
"transcript": "Transcript of the call here",
"audioRecording": {
"url": "http://example.com/audio"
},
"conversationURL": "http://example.com/conversation",
"externalPhoneNumber": "555-6789",
"internalPhoneNumber": "555-0199"
},
"success": true
}
Query Parameters
The number of levels of related objects to include in the response
Body
application/json
Response
200
application/json
Call Created
The response is of type object
.
curl --request POST \
--url https://commerce.driv.ly/api/calls \
--header 'Content-Type: application/json' \
--data '{
"id": "call_3d9k2j8s7d2k",
"note": "Follow up with more information",
"time": "2023-09-20T14:00:00Z",
"rating": 5,
"ratingNote": "Excellent call, potential sale",
"transcript": "Transcript of the call here",
"audioRecording": {
"url": "http://example.com/audio"
},
"conversationURL": "http://example.com/conversation",
"externalPhoneNumber": "555-6789",
"internalPhoneNumber": "555-0199"
}'
{
"data": {
"id": "call_3d9k2j8s7d2k",
"note": "Follow up with more information",
"time": "2023-09-20T14:00:00Z",
"rating": 5,
"ratingNote": "Excellent call, potential sale",
"transcript": "Transcript of the call here",
"audioRecording": {
"url": "http://example.com/audio"
},
"conversationURL": "http://example.com/conversation",
"externalPhoneNumber": "555-6789",
"internalPhoneNumber": "555-0199"
},
"success": true
}