Developer Portal
Events

message

One SMS or email between a dealer and a consumer.

A message event is one SMS or email, in either direction. Outbound messages are the ones Impel sends for the dealer, written by the AI or by dealer staff. Inbound messages are the consumer's replies.

FieldTypePresentDescriptionExample
event_typestringAlwaysAlways message for this event.message
event_timestampstring (date-time)AlwaysWhen the message was sent or received, in UTC with second precision.2026-09-14T15:02:11Z
event_idstring (uuid)AlwaysStable identifier for this event. It never changes across retries or the history file, so use it to deduplicate.7f6efcd5-3151-5c6f-a502-bd56256b6527
client_keystringAlwaysImpel's identifier for the dealer.EXAMPLEDEALER
consumer_keystringAlwaysImpel's identifier for the consumer. Unique within a dealer only, so key consumers on client_key plus consumer_key.CONSUMER-001
messageobjectAlwaysThe message itself.
message.conversation_idstringWhen knownIdentifies the conversation thread. Present on every inbound message; can be absent on an outbound one.6cac7467-7e3b-42ba-83bc-dc163a95bb36
message.opportunity_idstringWhen knownImpel's identifier for the lead the conversation belongs to.9dca0816-4fd7-4a80-a238-3d5c5b928c50
message.source_systemstringWhen knownThe Impel product the message belongs to. On an outbound message, it's the product that sent it; on an inbound reply, it's the product whose conversation the consumer is replying to. Current values are lead_nurture and voice_ai; more products can be enabled later, so expect new values.lead_nurture
message.directionstringAlwaysoutbound is dealer to consumer; inbound is the consumer's reply. Values: outbound, inbound.outbound
message.channelstringWhen knownDelivery channel, lowercase. Today this is sms or email.sms
message.sent_bystringWhen knownWho wrote the message. Outbound: AI, Human (dealer staff) or System, and absent when unknown. Inbound: always Consumer. New values can appear.AI
message.sender_contactstringWhen knownPhone number or email address the message was sent from: the dealer's on outbound, the consumer's on inbound.+15555550100
message.receiver_contactstringWhen knownPhone number or email address the message was sent to.+15555550123
message.subjectstringWhen knownEmail subject line. Absent on SMS.Your test drive at Example Motors
message.bodystringWhen knownMessage content as sent: plain text for SMS, usually HTML for email.Hi, thanks for your interest in the vehicle you…
message.body_textstringWhen knownPlain-text version of the content, with no markup. Identical to body for SMS; can be absent on inbound email.Hi, thanks for your interest in the vehicle you…
metadataobjectAlwaysIdentifiers on your side.
metadata.source_client_keystringAlwaysYour dealer code for this dealer, as registered with Impel during onboarding.DEALER-001

Notes

  • Which messages are shared. Outbound messages from the Impel products enabled for you, and the consumer's replies in those same conversations. Messages Impel sends to dealer staff aren't shared.
  • Inbound replies carry their conversation's product. A reply's source_system is the product whose conversation the consumer is answering. A reply is shared because its conversation_id belongs to a conversation one of your enabled products started.
  • body and body_text. For SMS they're the same. For email, body is usually HTML (plain text when the email had no HTML part) and body_text is the plain-text version; use body_text if you only need the words. On inbound email body_text can be missing, so fall back to body.
  • Contacts are per message. sender_contact and receiver_contact are the addresses used on this message. They're the only way a consumer's newer phone number or email reaches you, since consumer_created is never re-sent.