Os eventos de chamada possibilitam avisar o RD Station sempre que um contato termina uma ligação.
Evento de Chamada Concluída
O RD Station Marketing considera o valor do atributo event_type CALL_FINISHED como identificador do evento customizado. Esse evento é registrado sempre que uma chamada é concluída.
Request body parameters
Field | Type | Required | Description |
---|---|---|---|
event_type | String | true | The event type that diferentiates the event. For the call finished event it should be sent as "CALL_FINISHED". |
event_family | String | true | The family of the event for processing purposes. It currently accepts only "CDP" as valid option. |
name | String | false | Lead name |
String | true | Lead email | |
company_name | String | false | Lead's company name |
company_site | String | false | Lead's company website |
job_title | String | false | Lead's job title |
personal_phone | String | false | Leads phone (phone of the person who answered the call) |
call_user_email | String | false | Caller email |
call_from_number | String | true | Number of Call Tracking |
call_started_at | Timestamp | false | Call starting time. Must be in RFC 3339 datetime format (example: '2019-03-15T15:00:00.05Z'). |
call_duration | String | false | Call duration, in seconds. |
call_type | String | false | Call type. Inbound or Outbound |
call_status | String | true | Call status. |
call_status_description | String | false | Call status complement. This could be the name of the recipient, a personalized message or "Off" |
call_phone_type | String | false | Phone type. Mobile or comercial. |
call_carrier | String | false | Carrier name |
call_record | String | false | Call recording URL |
legal_bases | Array of Objects | false | Legal Bases of the contact. |
Request body example
{
"event_type": "CALL_FINISHED",
"event_family":"CDP",
"payload": {
"name": "John Doe",
"email": "[email protected]",
"company_name": "Acme Inc",
"company_site": "http://www.acme.inc",
"job_title": "CEO",
"personal_phone": "+5511912341234",
"call_user_email": "[email protected]",
"call_from_number": "+551112341234",
"call_started_at": "2019-03-15T14:53:42.928Z",
"call_duration": "58",
"call_type": "Inbound",
"call_status": "in_progress",
"call_status_description": "n/a",
"call_phone_type": "Mobile",
"call_carrier": "Vivo",
"call_record": "http://wwww.mycompany.com/calls/c9266675-f484-44a7-9ad1-e43a080a8545",
"legal_bases": [
{
"category": "communications",
"type": "consent",
"status": "granted"
}
]
}
}
Legal Bases
Field | Type | Valid Params |
---|---|---|
category | String | communications |
type | String | pre_existent_contract, consent, legitimate_interest, judicial_process, vital_interest or public_interest |
status | String | granted or declined |