Create a call
POST/v2/activities/calls
Creates a call. The parameters of this endpoint can be used to create an action and ensure that the CRM Task is mapped correctly.
Request
- multipart/form-data
Body
required
The ID of the person whom this call will be logged for
The phone number that was called
The length of the call, in seconds
The disposition of the call. Can be required on a per-team basis. Must be present in the disposition list.
The sentiment of the call. Can be required on a per-team basis. Must be present in the sentiment list.
Notes to log for the call. This is similar to the notes endpoint, but ensures that the notes get synced to the user's CRM
Guid of the user whom this call should be logged for. Defaults to the authenticated user. Only team admins can pass another user's guid
Action that this call is being logged for. This will validate that the action is still valid before completing it. The same action can never be successfully passed twice to this endpoint. The action must have a type of 'phone'.
Task that this call is being logged for. This will validate that the task is still valid before completing it. The same task can never be successfully passed twice to this endpoint. The task must have a type of 'call.' Can not be present if action_id was also provided.
CRM specific parameters. Some parameters are required on a per-team basis. Consume the CrmActivityFields endpoint to receive a list of valid parameters. The "field" property is passed as the key of this object, and the value of this object is the value that you would like to set.
If CrmActivityField has a non-null value, then that value must be submitted, or excluded from API calls, as these values are automatically applied.
CallDataRecord associations that will become linked to the created call. It is possible to pass multiple CallDataRecord ids in this field; this can be used to represent multiple phone calls that made up a single call.
Any call data record that is used must not already be linked to a call. It is not possible to link a call data record to multiple calls, and it is not possible to re-assign a call data record to a different call.
Sets the CRM activity metadata on the call log
Responses
- 200
Success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
ID of Call
Phone number that received the call
Length of the call in seconds
Outcome of the conversation
Result of the call
Datetime of when the call was created
Datetime of when the call was last updated
recordings object[]
The recordings for this this call and their status
The url of the recording
The status of the call that produced this recording. Possible values are (but not limited to):
no-answer: The call was not answered
failed: The call was not able to be placed
busy: The call was busy
ringing: The call is ringing
in-progress: The call is ongoing
completed: The call is finished
The processing status of the recording. Possible values are (but not limited to):
not_recorded: there is no recording available, and there will not be one becoming available
pending: the recording is currently being processed by the system
processing: the recording is currently being processed by the system
completed: the recording processing has been completed
user object
User that made the call
action object
Action associated to the call
task object
Task that this call was loged from, or null if not sent through a cadence
called_person object
The person called
crm_activity object
CRM Activity associated with the call
note object
Note for this call
cadence object
Cadence the call was made on
step object
Step the call was made on
{
"id": 1,
"to": "7705551234",
"duration": 60,
"sentiment": "Demo Scheduled",
"disposition": "Connected",
"created_at": "2024-01-01T00:00:00.000000+00:00",
"updated_at": "2024-01-01T00:00:00.000000+00:00",
"recordings": [
{
"url": "https://example.com/recording1",
"recording_status": "completed",
"status": "completed"
}
],
"user": {
"id": 1,
"_href": "https://api.salesloft.com/v2/users/1"
},
"action": {
"id": 1
},
"task": {
"id": 1
},
"called_person": {
"id": 1,
"_href": "https://api.salesloft.com/v2/people/1"
},
"crm_activity": {
"id": 1,
"_href": "https://api.salesloft.com/v2/crm_activities/1"
},
"note": {
"id": 1,
"_href": "https://api.salesloft.com/v2/notes/1"
},
"cadence": {
"id": 1,
"_href": "https://api.salesloft.com/v2/cadences/1"
},
"step": {
"id": 1,
"_href": "https://api.salesloft.com/v2/steps/1"
}
}