This event is triggered if the field of a message is updated (example: status, is_deleted).
Messages send via Partoo are created with the status Sending, and
propagated to the messaging channel.
If the message is sent successfully, the status is changed to Success.
If the messaging channel fails to send the message, the status changed to
Failed. A failed message can be retried using the /retry endpoint.
The event payload contains the event type, the content of the updated message and additional information about the conversation.
The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.
message_updated Show child attributes
Show child attributes
The id of the message.
The id of the parent conversation.
The date at which the message was sent or received, in the ISO 8601 format (ex: "2023-01-31 16:22:17.327878+00:00").
"2023-01-31 16:22:17.327878+00:00"
The type of the message:
⚠️ New values may be added to this enum without prior notice and without following the classic depreciation cycle.
It is up to you to gracefully handle the case where new values are added.
We recommend showing a "Unhandled content" placeholder to the user in place of the message ⚠️
Text, Image, Video, Audio, Document, IgStoryReply, IgStoryMention, Unsupported Describes the person that sent the Message:
⚠️ New values may be added to this enum without prior notice and without following the classic depreciation cycle.
It is up to you to gracefully handle the case where new values are added.
We recommend ignoring messages with unhandled sender_type ⚠️
User, Consumer, Metadata Name of the person sending the message
"Jane Doe"
The delivery status of the message. Messages send via Partoo are created with the status "Sending", and propagated to the messaging channel. If the message is sent successfully, the status is changed to "Success". If the messaging channel fails to send the message, the status changed to "Failed". A failed message can be retried using the /retry endpoint.
Sending, Success, Failed If the message has been deleted by the consumer on the messaging channel (for now, only "Instagram" messages can be deleted).
false
The text of the message.
For "User" messages sent via the Partoo application, the id of the user that sent the message.
Show child attributes
The url of the consumer's profile picture
"https://www.example.com/profile-picture.jpg"
The name of the consumer, can be empty. The format may differ depending on the platform of contact (ex: "John Doe", "John Doe (@johndoe)", "@johndoe", "", ...).
"John Doe"
The channel that the message is being sent to/from.
⚠️ New values may be added to this enum without prior notice and without following the classic depreciation cycle.
It is up to you to gracefully handle the case where new values are added.
Google, Facebook, Instagram, SMS, Whatsapp "Facebook"
Data about the custom channel, this object is filled only if the messaging partner is Custom.
Show child attributes
The id of the custom channel.
The name of the custom channel.
Url of the channel's icon.
Set to true if the channel to be read-only (i.e., no replies via Partoo)
The unique id of the conversation in your system.
The id of the organization
Return a 200 status to indicate that the event was properly received
Was this page helpful?