Eventos de Chamada

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
FieldTypeRequiredDescription
event_typeStringtrueThe event type that diferentiates the event. For the call finished event it should be sent as "CALL_FINISHED".
event_familyStringtrueThe family of the event for processing purposes. It currently accepts only "CDP" as valid option.
nameStringfalseLead name
emailStringtrueLead email
company_nameStringfalseLead's company name
company_siteStringfalseLead's company website
job_titleStringfalseLead's job title
personal_phoneStringfalseLeads phone (phone of the person who answered the call)
call_user_emailStringfalseCaller email
call_from_numberStringtrueNumber of Call Tracking
call_started_atTimestampfalseCall starting time. Must be in RFC 3339 datetime format (example: '2019-03-15T15:00:00.05Z').
call_durationStringfalseCall duration, in seconds.
call_typeStringfalseCall type. Inbound or Outbound
call_statusStringtrueCall status.
call_status_descriptionStringfalseCall status complement. This could be the name of the recipient, a personalized message or "Off"
call_phone_typeStringfalsePhone type. Mobile or comercial.
call_carrierStringfalseCarrier name
call_recordStringfalseCall recording URL
legal_basesArray of ObjectsfalseLegal 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
FieldTypeValid Params
categoryStringcommunications
typeStringpre_existent_contract, consent, legitimate_interest, judicial_process, vital_interest or public_interest
statusStringgranted or declined