message.created is sent when a new message is created in a conversation containing a profile selected on the endpoint.
Delivery target
The envelope’sprofile_id is a receiving profile that is an active conversation participant. The sender does not receive an event for their own message.
For conversations with multiple receiving profiles, each matching selected profile receives its own event with that profile’s profile_id.
Data object
data contains exactly one field:
data.message fields
The sender profile or guest is not embedded. Resolve
sender_actor_id against the conversation participants when sender details are needed.
Example delivery
Retrieve related resources
The message body is already available asdata.message.body. Retrieve the conversation when you need its participants, sender details, or message history:
profile_id and grant messages:read, messages:all, all:read, or all:all.
Respond as the receiving profile
messages:write, messages:all, all:write, or all:all.