{
  "opencollection": "1.0.0",
  "info": {
    "name": "Canva Connect Assets Comments API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://www.canva.com/api/oauth/authorize",
      "accessTokenUrl": "https://api.canva.com/rest/v1/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Comments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Canva Create a Comment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.canva.com/rest/v1/comments",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://www.canva.com/api/oauth/authorize",
              "accessTokenUrl": "https://api.canva.com/rest/v1/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Creates a new top-level comment on a design. Supports mentioning users using the [user_id:team_id] format in the message text."
        },
        {
          "info": {
            "name": "Canva Create a Reply to a Comment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.canva.com/rest/v1/comments/:commentId/replies",
            "params": [
              {
                "name": "commentId",
                "value": "500123",
                "type": "path",
                "description": "The parent comment ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://www.canva.com/api/oauth/authorize",
              "accessTokenUrl": "https://api.canva.com/rest/v1/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Creates a reply to an existing comment thread on a design."
        }
      ]
    }
  ],
  "bundled": true
}