<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a Bearer token.
For example: `Authorization: Bearer {token}`
</Prop>
<Prop name="Content-Type" type="string" required> Indicates the media type of the information sent in the request. This must be set to application/json.
<Prop.List> <Prop name="message_plaintext" type="string" required> The comment message in plaintext. This is the comment body shown in the Canva UI.
You can also mention users in your message by specifying their User ID and Team ID
using the format `[user_id:team_id]`. If the `assignee_id` parameter is specified, you
must mention the assignee in the message.
<Prop.Extras>
**Minimum length:** `1`
**Maximum length:** `2048`
</Prop.Extras>
</Prop>
<Prop name="assignee_id" type="string"> Lets you assign the comment to a Canva user using their User ID. You must mention the assigned user in the message. </Prop> </Prop.List>
If successful, the endpoint returns a 200 response with a JSON body with the following parameters:
<Prop.List> <Prop name="thread" type="Thread" required mode="output"> 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.
The `author` of the thread might be missing if that user account no longer exists.
<PillAccordion title={<>Properties of <strong>thread</strong></>} defaultExpanded={true}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the thread.
You can use this ID to create replies to the thread using the Create reply API.
</Prop>
<Prop name="design_id" type="string" required mode="output">
The ID of the design that the discussion thread is on.
</Prop>
<Prop name="thread_type" type="ThreadType" required mode="output">
The type of the discussion thread, along with additional type-specific properties.
<Tabs>
<Tab name="comment">
A comment thread.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `comment`.
</Prop.Extras>
</Prop>
<Prop name="content" type="CommentContent" required mode="output">
The content of a comment thread or reply.
<PillAccordion title={<>Properties of <strong>content</strong></>}>
<Prop.List>
<Prop name="plaintext" type="string" required mode="output">
The content in plaintext.
Any user mention tags are shown in the format `[user_id:team_id]`.
</Prop>
<Prop name="markdown" type="string" mode="output">
The content in markdown.
Any user mention tags are shown in the format `[user_id:team_id]`
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="mentions" type="object" required mode="output">
The Canva users mentioned in the comment thread or reply.
<PillAccordion title={<>Properties of <strong>mentions</strong></>}>
<Prop.List>
<Prop name="<KEY>" type="object of UserMentions" mode="output" required required>
Information about the user mentioned in a comment thread or reply. Each user mention is keyed using the user's user ID and team ID separated by a colon (`user_id:team_id`).
```json
{
"oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP": {
"tag": "oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP",
"user": {
"user_id": "oUnPjZ2k2yuhftbWF7873o",
"team_id": "oBpVhLW22VrqtwKgaayRbP",
"display_name": "John Doe"
}
}
}
```
<Prop.List>
<Prop name="tag" type="string" required mode="output">
The mention tag for the user mentioned in the comment thread or reply content. This has the format of the user's user ID and team ID separated by a colon (`user_id:team_id`).
</Prop>
<Prop name="user" type="TeamUser" required mode="output">
Metadata for the user, consisting of the User ID, Team ID, and display name.
<PillAccordion title={<>Properties of <strong>user</strong></>}>
<Prop.List>
<Prop name="user_id" type="string" mode="output">
The ID of the user.
</Prop>
<Prop name="team_id" type="string" mode="output">
The ID of the user's Canva Team.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="assignee" type="User" mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>assignee</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="resolver" type="User" mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>resolver</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</Tab>
<Tab name="suggestion">
A suggestion thread.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `suggestion`.
</Prop.Extras>
</Prop>
<Prop name="suggested_edits" type="SuggestedEdit[]" required mode="output">
The type of the suggested edit, along with additional type-specific properties.
<Prop.Extras>
**Minimum items:** `1`
</Prop.Extras>
<Tabs>
<Tab name="add">
A suggestion to add some text.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `add`.
</Prop.Extras>
</Prop>
</Prop.List>
</Tab>
<Tab name="delete">
A suggestion to delete some text.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `delete`.
</Prop.Extras>
</Prop>
</Prop.List>
</Tab>
<Tab name="format">
A suggestion to format some text.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `format`.
</Prop.Extras>
</Prop>
<Prop name="format" type="string" required mode="output">
The suggested format change.
<Prop.Extras>
**Available values:**
* `font_family`
* `font_size`
* `font_weight`
* `font_style`
* `color`
* `background_color`
* `decoration`
* `strikethrough`
* `link`
* `letter_spacing`
* `line_height`
* `direction`
* `text_align`
* `list_marker`
* `list_level`
* `margin_inline_start`
* `text_indent`
* `font_size_modifier`
* `vertical_align`
</Prop.Extras>
</Prop>
</Prop.List>
</Tab>
</Tabs>
</Prop>
<Prop name="status" type="string" required mode="output">
The current status of the suggestion.
<Prop.Extras>
**Available values:**
* `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.
</Prop.Extras>
</Prop>
</Prop.List>
</Tab>
</Tabs>
</Prop>
<Prop name="created_at" type="integer" required mode="output">
When the thread was created, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="updated_at" type="integer" required mode="output">
When the thread was last updated, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="author" type="User" mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>author</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</PillAccordion>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Warning> This API is deprecated, so you should use the Create thread API instead. </Warning>
<Warning> This API is currently provided as a preview. Be aware of the following:
There might be unannounced breaking changes.
Any breaking changes to preview APIs won't produce a new API version.
Public integrations that use preview APIs will not pass the review process, and can't be made available to all Canva users. </Warning>
Create a new top-level comment on a design. For information on comments and how they're used in the Canva UI, see the Canva Help Center. A design can have a maximum of 1000 comments.
<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a Bearer token.
For example: `Authorization: Bearer {token}`
</Prop>
<Prop name="Content-Type" type="string" required> Indicates the media type of the information sent in the request. This must be set to application/json.
<Prop.List> <Prop name="attached_to" type="CommentObjectInput" required> An object containing identifying information for the design or other object you want to attach the comment to.
<Tabs>
<Tab name="design">
If the comment is attached to a Canva Design.
<Prop.List>
<Prop name="type" type="string" required>
<Prop.Extras>
**Available values:** The only valid value is `design`.
</Prop.Extras>
</Prop>
<Prop name="design_id" type="string" required>
The ID of the design you want to attach this comment to.
</Prop>
</Prop.List>
</Tab>
</Tabs>
</Prop>
<Prop name="message" type="string" required> The comment message. This is the comment body shown in the Canva UI.
You can also mention users in your message by specifying their User ID and Team ID
using the format `[user_id:team_id]`. If the `assignee_id` parameter is specified, you
must mention the assignee in the message.
<Prop.Extras>
**Minimum length:** `1`
**Maximum length:** `2048`
</Prop.Extras>
</Prop>
<Prop name="assignee_id" type="string" deprecated> Lets you assign the comment to a Canva user using their User ID. You must mention the assigned user in the message. </Prop> </Prop.List>
If successful, the endpoint returns a 200 response with a JSON body with the following parameters:
<Prop.List> <Prop name="comment" type="ParentComment" required mode="output"> Data about the comment, including the message, author, and the object (such as a design) the comment is attached to.
<PillAccordion title={<>Properties of <strong>comment</strong></>} defaultExpanded={true}>
<Prop.List>
<Prop name="type" type="string" required mode="output">
The type of comment. When creating a new parent (top-level)
comment, the `type` is `parent`.
<Prop.Extras>
**Available values:** The only valid value is `parent`.
</Prop.Extras>
</Prop>
<Prop name="id" type="string" required mode="output">
The ID of the comment.
You can use this ID to create replies to the comment using the Create reply API.
</Prop>
<Prop name="message" type="string" required mode="output">
The comment message. This is the comment body shown in the Canva UI.
User mentions are shown here in the format `[user_id:team_id]`.
</Prop>
<Prop name="author" type="User" required mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>author</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="created_at" type="integer" deprecated mode="output">
When the comment or reply was created, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="updated_at" type="integer" deprecated mode="output">
When the comment or reply was last updated, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="assignee" type="User" deprecated mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>assignee</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="resolver" type="User" deprecated mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>resolver</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="mentions" type="object" required mode="output">
The Canva users mentioned in the comment.
<PillAccordion title={<>Properties of <strong>mentions</strong></>}>
<Prop.List>
<Prop name="<KEY>" type="object of TeamUsers" mode="output" required>
Metadata for the user, consisting of the User ID, Team ID, and display name.
<Prop.List>
<Prop name="user_id" type="string" deprecated mode="output">
The ID of the user.
</Prop>
<Prop name="team_id" type="string" deprecated mode="output">
The ID of the user's Canva Team.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="attached_to" type="CommentObject" deprecated mode="output">
Identifying information about the object (such as a design) that the comment is attached to.
<Tabs>
<Tab name="design">
If the comment is attached to a Canva Design.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `design`.
</Prop.Extras>
</Prop>
<Prop name="design_id" type="string" required mode="output">
The ID of the design this comment is attached to.
</Prop>
</Prop.List>
</Tab>
</Tabs>
</Prop>
</Prop.List>
</PillAccordion>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Warning> This API is currently provided as a preview. Be aware of the following:
There might be unannounced breaking changes.
Any breaking changes to preview APIs won't produce a new API version.
Public integrations that use preview APIs will not pass the review process, and can't be made available to all Canva users. </Warning>
Creates a reply to a comment or suggestion thread on a design. To reply to an existing thread, you must provide the ID of the thread which is returned when a thread is created, or from the thread_id value of an existing reply in the thread. Each thread can have a maximum of 100 replies created for it.
For information on comments and how they're used in the Canva UI, see the Canva Help Center.
<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a Bearer token.
For example: `Authorization: Bearer {token}`
</Prop>
<Prop name="Content-Type" type="string" required> Indicates the media type of the information sent in the request. This must be set to application/json.
<Prop.List> <Prop name="message_plaintext" type="string" required> The comment message of the reply in plaintext. This is the reply comment shown in the Canva UI.
You can also mention users in your message by specifying their User ID and Team ID
using the format `[user_id:team_id]`.
<Prop.Extras>
**Minimum length:** `1`
**Maximum length:** `2048`
</Prop.Extras>
If successful, the endpoint returns a 200 response with a JSON body with the following parameters:
<Prop.List> <Prop name="reply" type="Reply" required mode="output"> A reply to a thread.
The `author` of the reply might be missing if that user account no longer exists.
<PillAccordion title={<>Properties of <strong>reply</strong></>} defaultExpanded={true}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the reply.
</Prop>
<Prop name="design_id" type="string" required mode="output">
The ID of the design that the thread for this reply is attached to.
</Prop>
<Prop name="thread_id" type="string" required mode="output">
The ID of the thread this reply is in.
</Prop>
<Prop name="content" type="CommentContent" required mode="output">
The content of a comment thread or reply.
<PillAccordion title={<>Properties of <strong>content</strong></>}>
<Prop.List>
<Prop name="plaintext" type="string" required mode="output">
The content in plaintext.
Any user mention tags are shown in the format `[user_id:team_id]`.
</Prop>
<Prop name="markdown" type="string" mode="output">
The content in markdown.
Any user mention tags are shown in the format `[user_id:team_id]`
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="mentions" type="object" required mode="output">
The Canva users mentioned in the comment thread or reply.
<PillAccordion title={<>Properties of <strong>mentions</strong></>}>
<Prop.List>
<Prop name="<KEY>" type="object of UserMentions" mode="output" required required>
Information about the user mentioned in a comment thread or reply. Each user mention is keyed using the user's user ID and team ID separated by a colon (`user_id:team_id`).
```json
{
"oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP": {
"tag": "oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP",
"user": {
"user_id": "oUnPjZ2k2yuhftbWF7873o",
"team_id": "oBpVhLW22VrqtwKgaayRbP",
"display_name": "John Doe"
}
}
}
```
<Prop.List>
<Prop name="tag" type="string" required mode="output">
The mention tag for the user mentioned in the comment thread or reply content. This has the format of the user's user ID and team ID separated by a colon (`user_id:team_id`).
</Prop>
<Prop name="user" type="TeamUser" required mode="output">
Metadata for the user, consisting of the User ID, Team ID, and display name.
<PillAccordion title={<>Properties of <strong>user</strong></>}>
<Prop.List>
<Prop name="user_id" type="string" mode="output">
The ID of the user.
</Prop>
<Prop name="team_id" type="string" mode="output">
The ID of the user's Canva Team.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="created_at" type="integer" required mode="output">
When the reply was created, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="updated_at" type="integer" required mode="output">
When the reply was last updated, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="author" type="User" mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>author</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</PillAccordion>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Warning> This API is deprecated, so you should use the Create reply API instead. </Warning>
<Warning> This API is currently provided as a preview. Be aware of the following:
There might be unannounced breaking changes.
Any breaking changes to preview APIs won't produce a new API version.
Public integrations that use preview APIs will not pass the review process, and can't be made available to all Canva users. </Warning>
Creates a reply to a comment in a design. To reply to an existing thread of comments, you can use either the id of the parent (original) comment, or the thread_id of a comment in the thread. Each comment can have a maximum of 100 replies created for it.
For information on comments and how they're used in the Canva UI, see the Canva Help Center.
<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a Bearer token.
For example: `Authorization: Bearer {token}`
</Prop>
<Prop name="Content-Type" type="string" required> Indicates the media type of the information sent in the request. This must be set to application/json.
<Prop.List> <Prop name="attached_to" type="CommentObjectInput" required> An object containing identifying information for the design or other object you want to attach the comment to.
<Tabs>
<Tab name="design">
If the comment is attached to a Canva Design.
<Prop.List>
<Prop name="type" type="string" required>
<Prop.Extras>
**Available values:** The only valid value is `design`.
</Prop.Extras>
</Prop>
<Prop name="design_id" type="string" required>
The ID of the design you want to attach this comment to.
</Prop>
</Prop.List>
</Tab>
</Tabs>
</Prop>
<Prop name="message" type="string" required> The reply comment message. This is the reply comment body shown in the Canva UI.
You can also mention users in your message by specifying their User ID and Team ID
using the format `[user_id:team_id]`.
<Prop.Extras>
**Minimum length:** `1`
**Maximum length:** `2048`
</Prop.Extras>
If successful, the endpoint returns a 200 response with a JSON body with the following parameters:
<Prop.List> <Prop name="comment" type="ReplyComment" required mode="output"> Data about the reply comment, including the message, author, and the object (such as a design) the comment is attached to.
<PillAccordion title={<>Properties of <strong>comment</strong></>} defaultExpanded={true}>
<Prop.List>
<Prop name="type" type="string" required mode="output">
The type of comment. When creating a reply to a top-level
comment, the `type` is `reply`.
<Prop.Extras>
**Available values:** The only valid value is `reply`.
</Prop.Extras>
</Prop>
<Prop name="id" type="string" required mode="output">
The ID of the comment.
</Prop>
<Prop name="message" type="string" required mode="output">
The comment message. This is the comment body shown in the Canva UI.
User mentions are shown here in the format `[user_id:team_id]`.
</Prop>
<Prop name="author" type="User" required mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>author</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="thread_id" type="string" required mode="output">
The ID of the comment thread this reply is in. This ID is the same as the `id` of the
parent comment.
</Prop>
<Prop name="created_at" type="integer" deprecated mode="output">
When the comment or reply was created, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="updated_at" type="integer" deprecated mode="output">
When the comment or reply was last updated, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="mentions" type="object" required mode="output">
The Canva users mentioned in the comment.
<PillAccordion title={<>Properties of <strong>mentions</strong></>}>
<Prop.List>
<Prop name="<KEY>" type="object of TeamUsers" mode="output" required>
Metadata for the user, consisting of the User ID, Team ID, and display name.
<Prop.List>
<Prop name="user_id" type="string" deprecated mode="output">
The ID of the user.
</Prop>
<Prop name="team_id" type="string" deprecated mode="output">
The ID of the user's Canva Team.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="attached_to" type="CommentObject" deprecated mode="output">
Identifying information about the object (such as a design) that the comment is attached to.
<Tabs>
<Tab name="design">
If the comment is attached to a Canva Design.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `design`.
</Prop.Extras>
</Prop>
<Prop name="design_id" type="string" required mode="output">
The ID of the design this comment is attached to.
</Prop>
</Prop.List>
</Tab>
</Tabs>
</Prop>
</Prop.List>
</PillAccordion>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Warning> This API is currently provided as a preview. Be aware of the following:
There might be unannounced breaking changes.
Any breaking changes to preview APIs won't produce a new API version.
Public integrations that use preview APIs will not pass the review process, and can't be made available to all Canva users. </Warning>
Gets a comment or suggestion thread on a design. To retrieve a reply to a comment thread, use the Get reply API. For information on comments and how they're used in the Canva UI, see the Canva Help Center.
If successful, the endpoint returns a 200 response with a JSON body with the following parameters:
<Prop.List> <Prop name="thread" type="Thread" mode="output"> 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.
The `author` of the thread might be missing if that user account no longer exists.
<PillAccordion title={<>Properties of <strong>thread</strong></>} defaultExpanded={true}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the thread.
You can use this ID to create replies to the thread using the Create reply API.
</Prop>
<Prop name="design_id" type="string" required mode="output">
The ID of the design that the discussion thread is on.
</Prop>
<Prop name="thread_type" type="ThreadType" required mode="output">
The type of the discussion thread, along with additional type-specific properties.
<Tabs>
<Tab name="comment">
A comment thread.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `comment`.
</Prop.Extras>
</Prop>
<Prop name="content" type="CommentContent" required mode="output">
The content of a comment thread or reply.
<PillAccordion title={<>Properties of <strong>content</strong></>}>
<Prop.List>
<Prop name="plaintext" type="string" required mode="output">
The content in plaintext.
Any user mention tags are shown in the format `[user_id:team_id]`.
</Prop>
<Prop name="markdown" type="string" mode="output">
The content in markdown.
Any user mention tags are shown in the format `[user_id:team_id]`
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="mentions" type="object" required mode="output">
The Canva users mentioned in the comment thread or reply.
<PillAccordion title={<>Properties of <strong>mentions</strong></>}>
<Prop.List>
<Prop name="<KEY>" type="object of UserMentions" mode="output" required required>
Information about the user mentioned in a comment thread or reply. Each user mention is keyed using the user's user ID and team ID separated by a colon (`user_id:team_id`).
```json
{
"oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP": {
"tag": "oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP",
"user": {
"user_id": "oUnPjZ2k2yuhftbWF7873o",
"team_id": "oBpVhLW22VrqtwKgaayRbP",
"display_name": "John Doe"
}
}
}
```
<Prop.List>
<Prop name="tag" type="string" required mode="output">
The mention tag for the user mentioned in the comment thread or reply content. This has the format of the user's user ID and team ID separated by a colon (`user_id:team_id`).
</Prop>
<Prop name="user" type="TeamUser" required mode="output">
Metadata for the user, consisting of the User ID, Team ID, and display name.
<PillAccordion title={<>Properties of <strong>user</strong></>}>
<Prop.List>
<Prop name="user_id" type="string" mode="output">
The ID of the user.
</Prop>
<Prop name="team_id" type="string" mode="output">
The ID of the user's Canva Team.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="assignee" type="User" mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>assignee</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="resolver" type="User" mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>resolver</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</Tab>
<Tab name="suggestion">
A suggestion thread.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `suggestion`.
</Prop.Extras>
</Prop>
<Prop name="suggested_edits" type="SuggestedEdit[]" required mode="output">
The type of the suggested edit, along with additional type-specific properties.
<Prop.Extras>
**Minimum items:** `1`
</Prop.Extras>
<Tabs>
<Tab name="add">
A suggestion to add some text.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `add`.
</Prop.Extras>
</Prop>
</Prop.List>
</Tab>
<Tab name="delete">
A suggestion to delete some text.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `delete`.
</Prop.Extras>
</Prop>
</Prop.List>
</Tab>
<Tab name="format">
A suggestion to format some text.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `format`.
</Prop.Extras>
</Prop>
<Prop name="format" type="string" required mode="output">
The suggested format change.
<Prop.Extras>
**Available values:**
* `font_family`
* `font_size`
* `font_weight`
* `font_style`
* `color`
* `background_color`
* `decoration`
* `strikethrough`
* `link`
* `letter_spacing`
* `line_height`
* `direction`
* `text_align`
* `list_marker`
* `list_level`
* `margin_inline_start`
* `text_indent`
* `font_size_modifier`
* `vertical_align`
</Prop.Extras>
</Prop>
</Prop.List>
</Tab>
</Tabs>
</Prop>
<Prop name="status" type="string" required mode="output">
The current status of the suggestion.
<Prop.Extras>
**Available values:**
* `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.
</Prop.Extras>
</Prop>
</Prop.List>
</Tab>
</Tabs>
</Prop>
<Prop name="created_at" type="integer" required mode="output">
When the thread was created, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="updated_at" type="integer" required mode="output">
When the thread was last updated, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="author" type="User" mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>author</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="comment" type="Comment" deprecated mode="output"> The comment object, which contains metadata about the comment. Deprecated in favor of the new thread object.
<Tabs>
<Tab name="parent">
The type of comment. When creating a new parent (top-level)
comment, the `type` is `parent`.
<Prop.List>
<Prop name="type" type="string" required mode="output">
The type of comment. When creating a new parent (top-level)
comment, the `type` is `parent`.
<Prop.Extras>
**Available values:** The only valid value is `parent`.
</Prop.Extras>
</Prop>
<Prop name="id" type="string" required mode="output">
The ID of the comment.
You can use this ID to create replies to the comment using the Create reply API.
</Prop>
<Prop name="message" type="string" required mode="output">
The comment message. This is the comment body shown in the Canva UI.
User mentions are shown here in the format `[user_id:team_id]`.
</Prop>
<Prop name="author" type="User" required mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>author</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="created_at" type="integer" deprecated mode="output">
When the comment or reply was created, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="updated_at" type="integer" deprecated mode="output">
When the comment or reply was last updated, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="assignee" type="User" deprecated mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>assignee</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="resolver" type="User" deprecated mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>resolver</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="mentions" type="object" required mode="output">
The Canva users mentioned in the comment.
<PillAccordion title={<>Properties of <strong>mentions</strong></>}>
<Prop.List>
<Prop name="<KEY>" type="object of TeamUsers" mode="output" required>
Metadata for the user, consisting of the User ID, Team ID, and display name.
<Prop.List>
<Prop name="user_id" type="string" deprecated mode="output">
The ID of the user.
</Prop>
<Prop name="team_id" type="string" deprecated mode="output">
The ID of the user's Canva Team.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="attached_to" type="CommentObject" deprecated mode="output">
Identifying information about the object (such as a design) that the comment is attached to.
<Tabs>
<Tab name="design">
If the comment is attached to a Canva Design.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `design`.
</Prop.Extras>
</Prop>
<Prop name="design_id" type="string" required mode="output">
The ID of the design this comment is attached to.
</Prop>
</Prop.List>
</Tab>
</Tabs>
</Prop>
</Prop.List>
</Tab>
<Tab name="reply">
The type of comment. When creating a reply to a top-level
comment, the `type` is `reply`.
<Prop.List>
<Prop name="type" type="string" required mode="output">
The type of comment. When creating a reply to a top-level
comment, the `type` is `reply`.
<Prop.Extras>
**Available values:** The only valid value is `reply`.
</Prop.Extras>
</Prop>
<Prop name="id" type="string" required mode="output">
The ID of the comment.
</Prop>
<Prop name="message" type="string" required mode="output">
The comment message. This is the comment body shown in the Canva UI.
User mentions are shown here in the format `[user_id:team_id]`.
</Prop>
<Prop name="author" type="User" required mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>author</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="thread_id" type="string" required mode="output">
The ID of the comment thread this reply is in. This ID is the same as the `id` of the
parent comment.
</Prop>
<Prop name="created_at" type="integer" deprecated mode="output">
When the comment or reply was created, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="updated_at" type="integer" deprecated mode="output">
When the comment or reply was last updated, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="mentions" type="object" required mode="output">
The Canva users mentioned in the comment.
<PillAccordion title={<>Properties of <strong>mentions</strong></>}>
<Prop.List>
<Prop name="<KEY>" type="object of TeamUsers" mode="output" required>
Metadata for the user, consisting of the User ID, Team ID, and display name.
<Prop.List>
<Prop name="user_id" type="string" deprecated mode="output">
The ID of the user.
</Prop>
<Prop name="team_id" type="string" deprecated mode="output">
The ID of the user's Canva Team.
</Prop>
<Prop name="display_name" type="string" deprecated mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="attached_to" type="CommentObject" deprecated mode="output">
Identifying information about the object (such as a design) that the comment is attached to.
<Tabs>
<Tab name="design">
If the comment is attached to a Canva Design.
<Prop.List>
<Prop name="type" type="string" required mode="output">
<Prop.Extras>
**Available values:** The only valid value is `design`.
</Prop.Extras>
</Prop>
<Prop name="design_id" type="string" required mode="output">
The ID of the design this comment is attached to.
</Prop>
</Prop.List>
</Tab>
</Tabs>
</Prop>
</Prop.List>
</Tab>
</Tabs>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Warning> This API is currently provided as a preview. Be aware of the following:
There might be unannounced breaking changes.
Any breaking changes to preview APIs won't produce a new API version.
Public integrations that use preview APIs will not pass the review process, and can't be made available to all Canva users. </Warning>
Gets a reply to a comment or suggestion thread on a design. For information on comments and how they're used in the Canva UI, see the Canva Help Center.
If successful, the endpoint returns a 200 response with a JSON body with the following parameters:
<Prop.List> <Prop name="reply" type="Reply" required mode="output"> A reply to a thread.
The `author` of the reply might be missing if that user account no longer exists.
<PillAccordion title={<>Properties of <strong>reply</strong></>} defaultExpanded={true}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the reply.
</Prop>
<Prop name="design_id" type="string" required mode="output">
The ID of the design that the thread for this reply is attached to.
</Prop>
<Prop name="thread_id" type="string" required mode="output">
The ID of the thread this reply is in.
</Prop>
<Prop name="content" type="CommentContent" required mode="output">
The content of a comment thread or reply.
<PillAccordion title={<>Properties of <strong>content</strong></>}>
<Prop.List>
<Prop name="plaintext" type="string" required mode="output">
The content in plaintext.
Any user mention tags are shown in the format `[user_id:team_id]`.
</Prop>
<Prop name="markdown" type="string" mode="output">
The content in markdown.
Any user mention tags are shown in the format `[user_id:team_id]`
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="mentions" type="object" required mode="output">
The Canva users mentioned in the comment thread or reply.
<PillAccordion title={<>Properties of <strong>mentions</strong></>}>
<Prop.List>
<Prop name="<KEY>" type="object of UserMentions" mode="output" required required>
Information about the user mentioned in a comment thread or reply. Each user mention is keyed using the user's user ID and team ID separated by a colon (`user_id:team_id`).
```json
{
"oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP": {
"tag": "oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP",
"user": {
"user_id": "oUnPjZ2k2yuhftbWF7873o",
"team_id": "oBpVhLW22VrqtwKgaayRbP",
"display_name": "John Doe"
}
}
}
```
<Prop.List>
<Prop name="tag" type="string" required mode="output">
The mention tag for the user mentioned in the comment thread or reply content. This has the format of the user's user ID and team ID separated by a colon (`user_id:team_id`).
</Prop>
<Prop name="user" type="TeamUser" required mode="output">
Metadata for the user, consisting of the User ID, Team ID, and display name.
<PillAccordion title={<>Properties of <strong>user</strong></>}>
<Prop.List>
<Prop name="user_id" type="string" mode="output">
The ID of the user.
</Prop>
<Prop name="team_id" type="string" mode="output">
The ID of the user's Canva Team.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="created_at" type="integer" required mode="output">
When the reply was created, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="updated_at" type="integer" required mode="output">
When the reply was last updated, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="author" type="User" mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>author</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</PillAccordion>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop name="continuation" type="string"> If the success response contains a continuation token, the list contains more items you can list. You can use this token as a query parameter and retrieve more items from the list, for example ?continuation={continuation}.
To retrieve all items, you might need to make multiple requests.
If successful, the endpoint returns a 200 response with a JSON body with the following parameters:
<Prop.List> <Prop name="items" type="Reply[]" required mode="output"> A reply to a thread.
The `author` of the reply might be missing if that user account no longer exists.
<PillAccordion title={<>Properties of <strong>items</strong></>} defaultExpanded={true}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the reply.
</Prop>
<Prop name="design_id" type="string" required mode="output">
The ID of the design that the thread for this reply is attached to.
</Prop>
<Prop name="thread_id" type="string" required mode="output">
The ID of the thread this reply is in.
</Prop>
<Prop name="content" type="CommentContent" required mode="output">
The content of a comment thread or reply.
<PillAccordion title={<>Properties of <strong>content</strong></>}>
<Prop.List>
<Prop name="plaintext" type="string" required mode="output">
The content in plaintext.
Any user mention tags are shown in the format `[user_id:team_id]`.
</Prop>
<Prop name="markdown" type="string" mode="output">
The content in markdown.
Any user mention tags are shown in the format `[user_id:team_id]`
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="mentions" type="object" required mode="output">
The Canva users mentioned in the comment thread or reply.
<PillAccordion title={<>Properties of <strong>mentions</strong></>}>
<Prop.List>
<Prop name="<KEY>" type="object of UserMentions" mode="output" required required>
Information about the user mentioned in a comment thread or reply. Each user mention is keyed using the user's user ID and team ID separated by a colon (`user_id:team_id`).
```json
{
"oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP": {
"tag": "oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP",
"user": {
"user_id": "oUnPjZ2k2yuhftbWF7873o",
"team_id": "oBpVhLW22VrqtwKgaayRbP",
"display_name": "John Doe"
}
}
}
```
<Prop.List>
<Prop name="tag" type="string" required mode="output">
The mention tag for the user mentioned in the comment thread or reply content. This has the format of the user's user ID and team ID separated by a colon (`user_id:team_id`).
</Prop>
<Prop name="user" type="TeamUser" required mode="output">
Metadata for the user, consisting of the User ID, Team ID, and display name.
<PillAccordion title={<>Properties of <strong>user</strong></>}>
<Prop.List>
<Prop name="user_id" type="string" mode="output">
The ID of the user.
</Prop>
<Prop name="team_id" type="string" mode="output">
The ID of the user's Canva Team.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="created_at" type="integer" required mode="output">
When the reply was created, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="updated_at" type="integer" required mode="output">
When the reply was last updated, as a Unix timestamp
(in seconds since the Unix Epoch).
</Prop>
<Prop name="author" type="User" mode="output">
Metadata for the user, consisting of the User ID and display name.
<PillAccordion title={<>Properties of <strong>author</strong></>}>
<Prop.List>
<Prop name="id" type="string" required mode="output">
The ID of the user.
</Prop>
<Prop name="display_name" type="string" mode="output">
The name of the user as shown in the Canva UI.
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
</Prop.List>
</PillAccordion>
</Prop>
<Prop name="continuation" type="string" mode="output"> If the success response contains a continuation token, the list contains more items you can list. You can use this token as a query parameter and retrieve more items from the list, for example ?continuation={continuation}.
To retrieve all items, you might need to make multiple requests.
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Connect API — Comments
Comments Overview
The Canva Connect APIs for design comments.
<Warning> The comments APIs are currently provided as a preview. Be aware of the following:
The
commentsendpoint allows you to create new top-level comments on designs and reply to a top-level comment thread.Comments APIs
Create Thread
Create a new comment thread on a design.
<Warning> This API is currently provided as a preview. Be aware of the following:
Creates a new comment thread on a design. For information on comments and how they're used in the Canva UI, see the Canva Help Center.
HTTP method and URL path
POST https://api.canva.com/rest/v1/designs/{designId}/comments
This operation is rate limited to 100 requests per minute for each user of your integration.
Authentication and authorization
This endpoint requires a valid access token that acts on behalf of a user.
Scopes
The access token must have all the following scopes (permissions):
comment:writeHeader parameters
<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a
Bearertoken.</Prop>
<Prop name="Content-Type" type="string" required> Indicates the media type of the information sent in the request. This must be set to
application/json.</Prop> </Prop.List>
Path parameters
<Prop.List> <Prop name="designId" type="string" required> The design ID. </Prop> </Prop.List>
Body parameters
<Prop.List> <Prop name="message_plaintext" type="string" required> The comment message in plaintext. This is the comment body shown in the Canva UI.
</Prop>
<Prop name="assignee_id" type="string"> Lets you assign the comment to a Canva user using their User ID. You must mention the assigned user in the
message. </Prop> </Prop.List>Example request
Examples for using the
/v1/designs/{designId}/commentsendpoint:<Tabs storageKey="example.language" disableContentTransition> <Tab name="cURL">
sh curl --request POST 'https://api.canva.com/rest/v1/designs/{designId}/comments' \ --header 'Authorization: Bearer {token}' \ --header 'Content-Type: application/json' \ --data '{ "message_plaintext": "Great work [oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP]!", "assignee_id": "oUnPjZ2k2yuhftbWF7873o" }'</Tab><Tab name="Node.js"> ```js const fetch = require("node-fetch");
</Tab>
<Tab name="Java"> ```java import java.io.IOException; import java.net.URI; import java.net.http.*;
</Tab>
<Tab name="Python"> ```py import requests
</Tab>
<Tab name="C#"> ```csharp using System.Net.Http;
</Tab>
<Tab name="Go"> ```go package main
</Tab>
<Tab name="PHP"> ```php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.canva.com/rest/v1/designs/{designId}/comments", CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array( 'Authorization: Bearer {token}', 'Content-Type: application/json', ), CURLOPT_POSTFIELDS => json_encode([ "message_plaintext" => "Great work [oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP]!", "assignee_id" => "oUnPjZ2k2yuhftbWF7873o" ]) ));
</Tab>
<Tab name="Ruby"> ```ruby require 'net/http' require 'uri'
</Tab> </Tabs>
Success response
If successful, the endpoint returns a
200response with a JSON body with the following parameters:<Prop.List> <Prop name="thread" type="Thread" required mode="output"> A discussion thread on a design.
</Prop> </Prop.List>
Example response
Error responses
400 Bad Request
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
403 Forbidden
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
404 Not Found
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
Create Comment
Create a new comment on a design.
<Warning> This API is deprecated, so you should use the Create thread API instead. </Warning>
<Warning> This API is currently provided as a preview. Be aware of the following:
Create a new top-level comment on a design. For information on comments and how they're used in the Canva UI, see the Canva Help Center. A design can have a maximum of 1000 comments.
HTTP method and URL path
POST https://api.canva.com/rest/v1/comments
This operation is rate limited to 20 requests per minute for each user of your integration.
Authentication and authorization
This endpoint requires a valid access token that acts on behalf of a user.
Scopes
The access token must have all the following scopes (permissions):
comment:writeHeader parameters
<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a
Bearertoken.</Prop>
<Prop name="Content-Type" type="string" required> Indicates the media type of the information sent in the request. This must be set to
application/json.</Prop> </Prop.List>
Body parameters
<Prop.List> <Prop name="attached_to" type="CommentObjectInput" required> An object containing identifying information for the design or other object you want to attach the comment to.
</Prop>
<Prop name="message" type="string" required> The comment message. This is the comment body shown in the Canva UI.
</Prop>
<Prop name="assignee_id" type="string" deprecated> Lets you assign the comment to a Canva user using their User ID. You must mention the assigned user in the
message. </Prop> </Prop.List>Example request
Examples for using the
/v1/commentsendpoint:<Tabs storageKey="example.language" disableContentTransition> <Tab name="cURL">
sh curl --request POST 'https://api.canva.com/rest/v1/comments' \ --header 'Authorization: Bearer {token}' \ --header 'Content-Type: application/json' \ --data '{ "attached_to": { "design_id": "DAFVztcvd9z", "type": "design" }, "message": "Great work [oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP]!", "assignee_id": "oUnPjZ2k2yuhftbWF7873o" }'</Tab><Tab name="Node.js"> ```js const fetch = require("node-fetch");
</Tab>
<Tab name="Java"> ```java import java.io.IOException; import java.net.URI; import java.net.http.*;
</Tab>
<Tab name="Python"> ```py import requests
</Tab>
<Tab name="C#"> ```csharp using System.Net.Http;
</Tab>
<Tab name="Go"> ```go package main
</Tab>
<Tab name="PHP"> ```php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.canva.com/rest/v1/comments", CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array( 'Authorization: Bearer {token}', 'Content-Type: application/json', ), CURLOPT_POSTFIELDS => json_encode([ "attached_to" => [ "design_id" => "DAFVztcvd9z", "type" => "design" ], "message" => "Great work [oUnPjZ2k2yuhftbWF7873o:oBpVhLW22VrqtwKgaayRbP]!", "assignee_id" => "oUnPjZ2k2yuhftbWF7873o" ]) ));
</Tab>
<Tab name="Ruby"> ```ruby require 'net/http' require 'uri'
</Tab> </Tabs>
Success response
If successful, the endpoint returns a
200response with a JSON body with the following parameters:<Prop.List> <Prop name="comment" type="ParentComment" required mode="output"> Data about the comment, including the message, author, and the object (such as a design) the comment is attached to.
</Prop> </Prop.List>
Example response
Error responses
400 Bad Request
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
403 Forbidden
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
404 Not Found
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
Create Reply
Reply to a comment on a design.
<Warning> This API is currently provided as a preview. Be aware of the following:
Creates a reply to a comment or suggestion thread on a design. To reply to an existing thread, you must provide the ID of the thread which is returned when a thread is created, or from the
thread_idvalue of an existing reply in the thread. Each thread can have a maximum of 100 replies created for it.For information on comments and how they're used in the Canva UI, see the Canva Help Center.
HTTP method and URL path
POST https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}/replies
This operation is rate limited to 20 requests per minute for each user of your integration.
Authentication and authorization
This endpoint requires a valid access token that acts on behalf of a user.
Scopes
The access token must have all the following scopes (permissions):
comment:writeHeader parameters
<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a
Bearertoken.</Prop>
<Prop name="Content-Type" type="string" required> Indicates the media type of the information sent in the request. This must be set to
application/json.</Prop> </Prop.List>
Path parameters
<Prop.List> <Prop name="designId" type="string" required> The design ID. </Prop>
<Prop name="threadId" type="string" required> The ID of the thread. </Prop> </Prop.List>
Body parameters
<Prop.List> <Prop name="message_plaintext" type="string" required> The comment message of the reply in plaintext. This is the reply comment shown in the Canva UI.
</Prop> </Prop.List>
Example request
Examples for using the
/v1/designs/{designId}/comments/{threadId}/repliesendpoint:<Tabs storageKey="example.language" disableContentTransition> <Tab name="cURL">
sh curl --request POST 'https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}/replies' \ --header 'Authorization: Bearer {token}' \ --header 'Content-Type: application/json' \ --data '{ "message_plaintext": "Thanks!" }'</Tab><Tab name="Node.js"> ```js const fetch = require("node-fetch");
</Tab>
<Tab name="Java"> ```java import java.io.IOException; import java.net.URI; import java.net.http.*;
</Tab>
<Tab name="Python"> ```py import requests
</Tab>
<Tab name="C#"> ```csharp using System.Net.Http;
</Tab>
<Tab name="Go"> ```go package main
</Tab>
<Tab name="PHP"> ```php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}/replies", CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array( 'Authorization: Bearer {token}', 'Content-Type: application/json', ), CURLOPT_POSTFIELDS => json_encode([ "message_plaintext" => "Thanks!" ]) ));
</Tab>
<Tab name="Ruby"> ```ruby require 'net/http' require 'uri'
</Tab> </Tabs>
Success response
If successful, the endpoint returns a
200response with a JSON body with the following parameters:<Prop.List> <Prop name="reply" type="Reply" required mode="output"> A reply to a thread.
</Prop> </Prop.List>
Example response
Error responses
400 Bad Request
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
403 Forbidden
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
404 Not Found
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
Create Reply (Deprecated)
Reply to a comment on a design.
<Warning> This API is deprecated, so you should use the Create reply API instead. </Warning>
<Warning> This API is currently provided as a preview. Be aware of the following:
Creates a reply to a comment in a design. To reply to an existing thread of comments, you can use either the
idof the parent (original) comment, or thethread_idof a comment in the thread. Each comment can have a maximum of 100 replies created for it.For information on comments and how they're used in the Canva UI, see the Canva Help Center.
HTTP method and URL path
POST https://api.canva.com/rest/v1/comments/{commentId}/replies
This operation is rate limited to 20 requests per minute for each user of your integration.
Authentication and authorization
This endpoint requires a valid access token that acts on behalf of a user.
Scopes
The access token must have all the following scopes (permissions):
comment:writeHeader parameters
<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a
Bearertoken.</Prop>
<Prop name="Content-Type" type="string" required> Indicates the media type of the information sent in the request. This must be set to
application/json.</Prop> </Prop.List>
Path parameters
<Prop.List> <Prop name="commentId" type="string" required> The ID of the comment. </Prop> </Prop.List>
Body parameters
<Prop.List> <Prop name="attached_to" type="CommentObjectInput" required> An object containing identifying information for the design or other object you want to attach the comment to.
</Prop>
<Prop name="message" type="string" required> The reply comment message. This is the reply comment body shown in the Canva UI.
</Prop> </Prop.List>
Example request
Examples for using the
/v1/comments/{commentId}/repliesendpoint:<Tabs storageKey="example.language" disableContentTransition> <Tab name="cURL">
sh curl --request POST 'https://api.canva.com/rest/v1/comments/{commentId}/replies' \ --header 'Authorization: Bearer {token}' \ --header 'Content-Type: application/json' \ --data '{ "attached_to": { "design_id": "DAFVztcvd9z", "type": "design" }, "message": "Thanks!" }'</Tab><Tab name="Node.js"> ```js const fetch = require("node-fetch");
</Tab>
<Tab name="Java"> ```java import java.io.IOException; import java.net.URI; import java.net.http.*;
</Tab>
<Tab name="Python"> ```py import requests
</Tab>
<Tab name="C#"> ```csharp using System.Net.Http;
</Tab>
<Tab name="Go"> ```go package main
</Tab>
<Tab name="PHP"> ```php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.canva.com/rest/v1/comments/{commentId}/replies", CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array( 'Authorization: Bearer {token}', 'Content-Type: application/json', ), CURLOPT_POSTFIELDS => json_encode([ "attached_to" => [ "design_id" => "DAFVztcvd9z", "type" => "design" ], "message" => "Thanks!" ]) ));
</Tab>
<Tab name="Ruby"> ```ruby require 'net/http' require 'uri'
</Tab> </Tabs>
Success response
If successful, the endpoint returns a
200response with a JSON body with the following parameters:<Prop.List> <Prop name="comment" type="ReplyComment" required mode="output"> Data about the reply comment, including the message, author, and the object (such as a design) the comment is attached to.
</Prop> </Prop.List>
Example response
Error responses
400 Bad Request
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
403 Forbidden
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
404 Not Found
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
Get Thread
Get metadata for a comment thread.
<Warning> This API is currently provided as a preview. Be aware of the following:
Gets a comment or suggestion thread on a design. To retrieve a reply to a comment thread, use the Get reply API. For information on comments and how they're used in the Canva UI, see the Canva Help Center.
HTTP method and URL path
GET https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}
This operation is rate limited to 100 requests per minute for each user of your integration.
Authentication and authorization
This endpoint requires a valid access token that acts on behalf of a user.
Scopes
The access token must have all the following scopes (permissions):
comment:readHeader parameters
<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a
Bearertoken.</Prop> </Prop.List>
Path parameters
<Prop.List> <Prop name="designId" type="string" required> The design ID. </Prop>
<Prop name="threadId" type="string" required> The ID of the thread. </Prop> </Prop.List>
Example request
Examples for using the
/v1/designs/{designId}/comments/{threadId}endpoint:<Tabs storageKey="example.language" disableContentTransition> <Tab name="cURL">
sh curl --request GET 'https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}' \ --header 'Authorization: Bearer {token}'</Tab><Tab name="Node.js"> ```js const fetch = require("node-fetch");
</Tab>
<Tab name="Java"> ```java import java.io.IOException; import java.net.URI; import java.net.http.*;
</Tab>
<Tab name="Python"> ```py import requests
</Tab>
<Tab name="C#"> ```csharp using System.Net.Http;
</Tab>
<Tab name="Go"> ```go package main
</Tab>
<Tab name="PHP"> ```php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}", CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array( 'Authorization: Bearer {token}', ), ));
</Tab>
<Tab name="Ruby"> ```ruby require 'net/http' require 'uri'
</Tab> </Tabs>
Success response
If successful, the endpoint returns a
200response with a JSON body with the following parameters:<Prop.List> <Prop name="thread" type="Thread" mode="output"> A discussion thread on a design.
</Prop>
<Prop name="comment" type="Comment" deprecated mode="output"> The comment object, which contains metadata about the comment. Deprecated in favor of the new
threadobject.</Prop> </Prop.List>
Example response
Error responses
403 Forbidden
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
404 Not Found
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
Get Reply
Get a comment reply.
<Warning> This API is currently provided as a preview. Be aware of the following:
Gets a reply to a comment or suggestion thread on a design. For information on comments and how they're used in the Canva UI, see the Canva Help Center.
HTTP method and URL path
GET https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}/replies/{replyId}
This operation is rate limited to 100 requests per minute for each user of your integration.
Authentication and authorization
This endpoint requires a valid access token that acts on behalf of a user.
Scopes
The access token must have all the following scopes (permissions):
comment:readHeader parameters
<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a
Bearertoken.</Prop> </Prop.List>
Path parameters
<Prop.List> <Prop name="designId" type="string" required> The design ID. </Prop>
<Prop name="threadId" type="string" required> The ID of the thread. </Prop>
<Prop name="replyId" type="string" required> The ID of the reply. </Prop> </Prop.List>
Example request
Examples for using the
/v1/designs/{designId}/comments/{threadId}/replies/{replyId}endpoint:<Tabs storageKey="example.language" disableContentTransition> <Tab name="cURL">
sh curl --request GET 'https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}/replies/{replyId}' \ --header 'Authorization: Bearer {token}'</Tab><Tab name="Node.js"> ```js const fetch = require("node-fetch");
</Tab>
<Tab name="Java"> ```java import java.io.IOException; import java.net.URI; import java.net.http.*;
</Tab>
<Tab name="Python"> ```py import requests
</Tab>
<Tab name="C#"> ```csharp using System.Net.Http;
</Tab>
<Tab name="Go"> ```go package main
</Tab>
<Tab name="PHP"> ```php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}/replies/{replyId}", CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array( 'Authorization: Bearer {token}', ), ));
</Tab>
<Tab name="Ruby"> ```ruby require 'net/http' require 'uri'
</Tab> </Tabs>
Success response
If successful, the endpoint returns a
200response with a JSON body with the following parameters:<Prop.List> <Prop name="reply" type="Reply" required mode="output"> A reply to a thread.
</Prop> </Prop.List>
Example response
Error responses
403 Forbidden
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
404 Not Found
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
List Replies
List the replies to a comment on a design.
<Warning> This API is currently provided as a preview. Be aware of the following:
Retrieves a list of replies for a comment or suggestion thread on a design.
For information on comments and how they're used in the Canva UI, see the Canva Help Center.
HTTP method and URL path
GET https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}/replies
This operation is rate limited to 100 requests per minute for each user of your integration.
Authentication and authorization
This endpoint requires a valid access token that acts on behalf of a user.
Scopes
The access token must have all the following scopes (permissions):
comment:readHeader parameters
<Prop.List> <Prop name="Authorization" type="string" required> Provides credentials to authenticate the request, in the form of a
Bearertoken.</Prop> </Prop.List>
Path parameters
<Prop.List> <Prop name="designId" type="string" required> The design ID. </Prop>
<Prop name="threadId" type="string" required> The ID of the thread. </Prop> </Prop.List>
Query parameters
<Prop.List> <Prop name="limit" type="integer"> The number of replies to return.
</Prop>
<Prop name="continuation" type="string"> If the success response contains a continuation token, the list contains more items you can list. You can use this token as a query parameter and retrieve more items from the list, for example
?continuation={continuation}.</Prop> </Prop.List>
Example request
Examples for using the
/v1/designs/{designId}/comments/{threadId}/repliesendpoint:<Tabs storageKey="example.language" disableContentTransition> <Tab name="cURL">
sh curl --request GET 'https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}/replies' \ --header 'Authorization: Bearer {token}'</Tab><Tab name="Node.js"> ```js const fetch = require("node-fetch");
</Tab>
<Tab name="Java"> ```java import java.io.IOException; import java.net.URI; import java.net.http.*;
</Tab>
<Tab name="Python"> ```py import requests
</Tab>
<Tab name="C#"> ```csharp using System.Net.Http;
</Tab>
<Tab name="Go"> ```go package main
</Tab>
<Tab name="PHP"> ```php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.canva.com/rest/v1/designs/{designId}/comments/{threadId}/replies", CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array( 'Authorization: Bearer {token}', ), ));
</Tab>
<Tab name="Ruby"> ```ruby require 'net/http' require 'uri'
</Tab> </Tabs>
Success response
If successful, the endpoint returns a
200response with a JSON body with the following parameters:<Prop.List> <Prop name="items" type="Reply[]" required mode="output"> A reply to a thread.
</Prop>
<Prop name="continuation" type="string" mode="output"> If the success response contains a continuation token, the list contains more items you can list. You can use this token as a query parameter and retrieve more items from the list, for example
?continuation={continuation}.</Prop> </Prop.List>
Example response
Error responses
403 Forbidden
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response
404 Not Found
<Prop.List> <Prop name="code" type="string" required mode="output"> A short string indicating what failed. This field can be used to handle errors programmatically. For a complete list of error codes, see Error responses. </Prop>
<Prop name="message" type="string" required mode="output"> A human-readable description of what went wrong. </Prop> </Prop.List>
Example error response