The notification content when someone does one of the following actions:
- Suggests edits to a design.
- Applies or rejects a suggestion.
- Replies to a suggestion.
- Mentions a user in a reply to a suggestion.
Properties of content
The value for this can only be suggestion
.
Basic details about the design, such as the design's ID, title, and URL.
Properties of design
The design ID.
When the design was created in Canva, as a Unix timestamp (in seconds since the Unix Epoch).
When the design was last updated in Canva, as a Unix timestamp (in seconds since the Unix Epoch).
The design title.
URL of the design.
A thumbnail image representing the object.
Properties of thumbnail
The type of suggestion event, along with additional type-specific properties.
Properties of suggestion_event_type
This can be one of the following:
new
: Event type for a new suggestion.accepted
: Event type for a suggestion that has been accepted.rejected
: Event type for a suggestion that has been rejected.reply
: Event type for a reply to a suggestion.mention
: Event type for a mention in a reply to a suggestion.
A URL to the design, focused on the suggestion.
A discussion thread on a design.
The type
of the thread can be found in the thread_type
object, along with additional type-specific properties.
Properties of suggestion
The ID of the thread.
You can use this ID to create replies to the thread using the Create reply API.
The ID of the design that the discussion thread is on.
The type of the discussion thread, along with additional type-specific properties.
Properties of thread_type
This can be one of the following:
comment
: A comment thread.suggestion
: A suggestion thread.
The comment's message.
Any user mentions are shown in the format [user_id:team_id]
.
The Canva users mentioned in the comment.
Properties of mentions
Metadata for the user, consisting of the User ID, Team ID, and display name.
{"oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP": {"user_id": "oUnPjZ2k2yuhftbWF7873o","team_id": "oBpVhLW22VrqtwKgaayRbP","display_name": "John Doe"}}
The suggestion's content.
Properties of content
This can be one of the following:
add
: A suggestion to add some text.delete
: A suggestion to delete some text.replace
: A suggestion to replace some text.format
: A suggestion to format some text.
This can be an array of the following:
font_family
font_size
font_weight
font_style
color
decoration
strikethrough
link
letter_spacing
line_height
direction
text_align
list_marker
list_level
margin_inline_start
text_indent
The current status of the suggestion. This can be one of the following:
open
: A suggestion was made, but it hasn't been accepted or rejected yet.accepted
: A suggestion was accepted and applied to the design.rejected
: A suggestion was rejected and not applied to the design.
When the thread was created, as a Unix timestamp (in seconds since the Unix Epoch).
When the thread was last updated, as a Unix timestamp (in seconds since the Unix Epoch).
A URL to the design, focused on the suggestion reply.
A reply to a thread.
Properties of reply
The ID of the reply.
The ID of the design that the thread for this reply is attached to.
The ID of the thread this reply is in.
The reply's message.
Any user mentions are shown in the format [user_id:team_id]
The Canva users mentioned in the comment.
Properties of mentions
Metadata for the user, consisting of the User ID, Team ID, and display name.
{"oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP": {"user_id": "oUnPjZ2k2yuhftbWF7873o","team_id": "oBpVhLW22VrqtwKgaayRbP","display_name": "John Doe"}}
When the reply was created, as a Unix timestamp (in seconds since the Unix Epoch).
When the reply was last updated, as a Unix timestamp (in seconds since the Unix Epoch).