lead#add

Message

a crm lead was created

Payload Example(s) (generated)

{
  "topic": "realestate/lead#add",
  "data": {
    "type": "lead#add",
    "object": {
      "type": "Lead",
      "identifier": {
        "bhhsconsumerid": "12345"
      },
      "object": {
        "type": "Contact",
        "name": "Joe Smith",
        "telephone": "731-620-9877 x6155",
        "email": "Giuseppe.Lang62@hotmail.com"
      },
      "recipient": "http://{lead-recipient}.example.com/profile/card#me",
      "sender": "http://{lead-sender}.example.com/profile/card#me",
      "owner": "http://{lead-owner}.example.com/profile/card#me",
      "dateAccepted": "2019-11-25T04:23:32.000Z",
      "dateRejected": "2019-08-24T14:15:22Z",
      "dateSent": "2019-08-24T14:15:22Z",
      "dateReceived": "2019-11-25T04:23:32.000Z",
      "leadSource": [
        {
          "type": "AskAction",
          "object": {
            "type": "Question",
            "text": "Help me I'm trapped inside documentation."
          }
        }
      ]
    }
  }
}

Payload

NameTypeDescription
(root)object-
topicstringconst ("realestate/lead#add")
dataobject-
data.typestringconst ("lead#add")
data.objectobjecta sales opportunity (object) offered by a sender to a recipient.
data.object.typestringallowed ("Lead") Lead
data.object.identifierobject1 properties
data.object.objectobjectthe lead (Contact)
data.object.recipientstringthe lead recipient format (uri)
data.object.senderstringthe lead provider format (uri)
data.object.ownerstringthe original owner of the lead format (uri)
data.object.dateAcceptedstringThe date/time the item was accepted by the recipient
data.object.dateRejectedstringThe date/time the item was rejected by the recipient format (date-time)
data.object.dateSentstringthe date the lead was sent format (date-time)
data.object.dateReceivedstringThe date/time the item was received by it's recipient
data.object.leadSourcearray<object>lead origin, may be a website event or a thing such as a website, zillow, mobile applicaton.
data.object.leadSource (single item)object-

Headers

NameTypeDescription
(root)object-
timestringdate & time the event was produced format (date-time)
agentstringif you are a multi-tenant app, then the agent is the user associated with the event data. any future events related to this message will be sent to the same agent/recipient format (uri)
instrumentstringthe app or service that produced the event on behalf of the agent/user format (uri)
sourcestringa copy of the event was sent to the source(s). format (uri)
originalRecipientstringthe originalRecipient helps you determine the subscription that delivered the event to you. if the originalRecipient is the same as the agent, then the you are subscribed to the agent. if the originalRecipient is different from the agent, then you are subscribed to the event source format (uri)
idstringthe Event ID (aka "Publish ID") is the immutable canonical identifier for the event. it is a URI that is unique to the event and will not change. all subscribers will receive the same id for the same event. format (uri)
@idstringformat (uri)

Tools