ActivitiesCalls

Log an external Call activity

View as Markdown
Use this endpoint to log calls made outside of the Close built-in VoIP system. *status*: defaults to `completed` *direction* (optional): `outbound` or `inbound` *recording_url*: you can post a URL pointing to the MP3 recording of your call. For security reasons, we require the URL to be secure (i.e. starting with https://)

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:)>.

OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
activity_atdatetime or nullOptional
contact_idstring or nullOptional
conversation_type_idstring or nullOptional
created_by_idstring or nullOptional
custom_fieldsmap from strings to any or nullOptional
date_createddatetime or nullOptional
directionenumOptional
Allowed values:
durationinteger or nullOptional<=604800
lead_idstring or nullOptional
notestring or nullOptional
note_htmlstring or nullOptional
organization_idstring or nullOptional
outcome_idstring or nullOptional
phonestring or nullOptional
Phone number in E.164 format
playbook_idstring or nullOptional
quality_infostring or nullOptional
recording_urlstring or nullOptionalformat: "uri"
sourceenumOptional
Allowed values:
statusenumOptional
user_idstring or nullOptional
voicemail_urlstring or nullOptionalformat: "uri"

Response

Successful response
_typestring
activity_atdatetime or null
contact_idstring or null
created_bystring or null
date_createddatetime
date_updateddatetime
idstring
lead_idstring or null
organization_idstring
outcome_idstring or null
sourceenum

Source of a phone activity. Describes whether the phone activity (such as a call or an SMS) was handled by Close’s telephony provider or handled externally by a 3rd party and is merely logged in Close.

Allowed values:
statusenum
Current status of the call.
updated_bystring or null
user_idstring or null
userslist of strings
created_by_namestring or null
sequence_idstring or null
sequence_namestring or null
sequence_subscription_idstring or null
updated_by_namestring or null
user_namestring or null

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error