API Reference

Esta mensagem é enviada quando uma atividade do Flow é realizada.

{
  "event": "LEAD_ACTIVITY.FINISHED",
  "activity": {
    "id": 1,
    "status": "FINISHED",
    "scope": "CADENCE",
    "goalDate": "2020-03-09T18:34:07.097Z",
    "executionDate": "2020-03-09T20:11:56.087Z",
    "activityTemplateId": "1234",
    "annotation": "",
    "type": "E_MAIL",
    "executedBy": {
      "id": 1,
      "name": "User Name"
    },
    "prospection": {
      "id": 1,
      "lead": {
        "id": 1,
        "email": "[email protected]",
        "firstName": null,
        "name": null,
        "company": null,
        "phones": [
          {
            "label": "Novo",
            "phone": "+554811111111",
            "lastUsage": "2020-03-09T18:35:10.814Z"
          }
        ],
        "position": null,
        "site": null,
        "state": null,
        "city": null,
        "twitter": null,
        "facebook": null,
        "linkedIn": null,
        "annotations": null,
        "customFields": {},
        "publicUrl": "https://meetime.com.br/dashboard/public/leads/xxx",
        "externalReference": null
      },
      "cadence": {
        "id": 1,
        "name": "Cadence"
      },
      "originType": "IMPORTED_FROM_LIST",
      "inbound": false,
      "startDate": "2020-03-09T18:34:07.097Z",
      "status": "EXECUTING",
      "salesman": {
        "id": 1,
        "name": "User Name",
        "email": "[email protected]"
      },
      "activities": [
        {
          "id": 1,
          "status": "FINISHED",
          "scope": "CADENCE",
          "goalDate": "2020-03-09T18:34:07.097Z",
          "executionDate": "2020-03-09T20:11:56.087Z",
          "annotation": "",
          "type": "E_MAIL",
          "executedBy": {
            "id": 1,
            "name": "User Name"
          }
        }
      ],
      "extraActivities": [],
      "origin": {
        "campaign": null,
        "source": null,
        "conversion": "leadBase 1",
        "channel": "UNKNOWN"
      },
      "rdStationInfo": {
        "id": "2d1b489a-1e2a-4499-bc4b-707cee31a8cf",
        "publicUrl": "http://app.rdstation.com.br/leads/public/2d1b489a-1e2a-4499-bc4b-707cee31a8cf"
      }
    }
  }
}