Calls
The Calls API provides a simple interface to manage calls.
The API allows you to create, read and delete your calls. You can retrieve individual calls, as well as list of all calls.
The Calls API provides a simple interface to manage calls.
The API allows you to create, read and delete your calls. You can retrieve individual calls, as well as list of all calls.
Attribute | Description |
---|---|
id number readonly |
Unique identifier of the call. |
user_id number |
Unique identifier of the user who performed the call. |
summary string |
Content of the note about this call. |
recording_url string |
URL pointing to call recording. |
outcome_id number |
Unique identifier of Call Outcome assigned to the call. See more at Call Outcomes. |
duration number |
Duration of the call in seconds. |
phone_number string |
Phone number of the person with which the call was made. |
incoming boolean |
Indicator of whether the call was incoming or not. |
missed boolean |
Indicator of whether the call was missed (not answered) by the user or not. |
resource_type string |
Name of the resource type the call is attached to. If provided, then Possible values:
|
resource_id number |
Unique identifier of the resource the call is attached to. If provided, then |
associated_deal_ids array |
An array of ids of deals associated to the call. |
made_at string |
Date and time of when the call was made (started) in UTC (ISO8601 format). |
updated_at string readonly |
Date and time of the last update in UTC (ISO8601 format). |
external_id string |
Unique identifier of a call from an external system. |
Returns all calls available to the user, according to the parameters provided. Calls are always sorted by made_at in descending order.
Attribute | Description |
---|---|
page number optional |
Page number to start from. Page numbering starts at 1 and omitting the
e.g.
?page=2
|
per_page number optional |
Number of records to return per page. The default limit is 25 and the maximum number that can be returned is 100.
e.g.
?per_page=20
|
ids string optional |
Comma-separated list of call IDs to be returned in request.
e.g.
?ids=1,2,3
|
resource_type string optional |
Name of the type of resource calls are attached to. Possible values:
e.g.
?resource_type=lead
|
resource_id number optional |
Unique identifier of the resource calls are attached to.
e.g.
?resource_id=7
|
associated_deal_id number optional |
Unique identifier of the Deal the calls are attached to.
e.g.
?associated_deal_id=12
|
Creates a new call.
Attribute | Description |
---|---|
user_id number optional |
Unique identifier of the user who performed the call. Defaults to the unique identifier of the user who created the call.
e.g.
"user_id": "1"
|
summary string optional |
Content of the note about this call.
e.g.
"summary": "Highly important."
|
recording_url string optional |
URL pointing to call recording.
e.g.
"recording_url": "http://example.com/recording.mp3"
|
outcome_id number optional |
Unique identifier of Call Outcome assigned to the call. See more at Call Outcomes.
e.g.
"outcome_id": "8"
|
duration number optional |
Duration of the call in seconds.
e.g.
"duration": "120"
|
phone_number string required |
Phone number of the person with which the call was made.
e.g.
"phone_number": "+44-208-1234567"
|
incoming boolean optional |
Indicator of whether the call was incoming or not.
e.g.
"incoming": "true"
|
missed boolean optional |
Indicator of whether the call was missed (not answered) by the user or not.
e.g.
"missed": "false"
|
resource_type string optional |
Name of the resource type the call is attached to. If not null, then resource_id also has to be not null. Possible values:
e.g.
"resource_type": "lead"
|
resource_id number optional |
Unique identifier of the resource the call is attached to. If not null, then resource_type also has to be not null.
e.g.
"resource_id": "7"
|
associated_deal_ids array optional |
An array of ids of deals associated to the call.
e.g.
"associated_deal_ids": [10, 11]
|
made_at string optional |
Date and time of when the call was made (started) in UTC (ISO8601 format). Defaults to current time.
e.g.
"made_at": "2016-10-28T12:12:05Z"
|
external_id string optional |
Unique identifier of a call from an external system. Defaults to null. |
Returns a single call available to the user, according to the unique call ID provided. If the specified call does not exist, this query returns an error.
Attribute | Description |
---|---|
id number required |
Unique identifier of the call. |
The update API allows to attach a Contact or Lead to an existing Call, or change it’s current association.
Attribute | Description |
---|---|
resource_type string optional |
Name of the resource type the call is going to be attached to. If not null, then resource_id also has to be not null. Possible values:
e.g.
"resource_type": "lead"
|
resource_id number optional |
Unique identifier of the resource the call is going to be attached to. If not null, then resource_type also has to be not null.
e.g.
"resource_id": "7"
|
recording_url string optional |
URL pointing to call recording.
e.g.
"recording_url": "http://example.com/recording.mp3"
|
Delete an existing call. If the specified call does not exist, this query returns an error. This operation cannot be undone.
Attribute | Description |
---|---|
id number required |
Unique identifier of the call. |