{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canva/json-schema/canva-get-reply-response-schema.json",
  "title": "GetReplyResponse",
  "description": "Successful response from a `getReply` request.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canva-comment-api-openapi.yml#/components/schemas/GetReplyResponse",
  "properties": {
    "reply": {
      "$ref": "#/$defs/Reply"
    }
  },
  "required": [
    "reply"
  ],
  "type": "object",
  "$defs": {
    "CommentContent": {
      "description": "The content of a comment thread or reply.",
      "properties": {
        "plaintext": {
          "description": "The content in plaintext.\nAny user mention tags are shown in the format `[user_id:team_id]`.",
          "type": "string"
        },
        "markdown": {
          "description": "The content in markdown.\nAny user mention tags are shown in the format `[user_id:team_id]`",
          "type": "string"
        }
      },
      "required": [
        "plaintext"
      ],
      "type": "object"
    },
    "Reply": {
      "description": "A reply to a thread.\n\nThe `author` of the reply might be missing if that user account no longer exists.",
      "properties": {
        "id": {
          "description": "The ID of the reply.",
          "type": "string"
        },
        "design_id": {
          "description": "The ID of the design that the thread for this reply is attached to.",
          "type": "string"
        },
        "thread_id": {
          "description": "The ID of the thread this reply is in.",
          "type": "string"
        },
        "author": {
          "$ref": "#/$defs/User"
        },
        "content": {
          "$ref": "#/$defs/CommentContent"
        },
        "mentions": {
          "additionalProperties": {
            "$ref": "#/$defs/UserMention"
          },
          "description": "The Canva users mentioned in the comment thread or reply.",
          "type": "object"
        },
        "created_at": {
          "description": "When the reply was created, as a Unix timestamp\n(in seconds since the Unix Epoch).",
          "format": "int64",
          "type": "integer"
        },
        "updated_at": {
          "description": "When the reply was last updated, as a Unix timestamp\n(in seconds since the Unix Epoch).",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "content",
        "created_at",
        "design_id",
        "id",
        "mentions",
        "thread_id",
        "updated_at"
      ],
      "type": "object"
    },
    "TeamUser": {
      "description": "Metadata for the user, consisting of the User ID, Team ID, and display name.",
      "properties": {
        "user_id": {
          "description": "The ID of the user.",
          "type": "string"
        },
        "team_id": {
          "description": "The ID of the user's Canva Team.",
          "type": "string"
        },
        "display_name": {
          "description": "The name of the user as shown in the Canva UI.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "User": {
      "description": "Metadata for the user, consisting of the User ID and display name.",
      "properties": {
        "id": {
          "description": "The ID of the user.",
          "type": "string"
        },
        "display_name": {
          "description": "The name of the user as shown in the Canva UI.",
          "type": "string"
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    },
    "UserMention": {
      "description": "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`).",
      "properties": {
        "tag": {
          "description": "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`).",
          "type": "string"
        },
        "user": {
          "$ref": "#/$defs/TeamUser"
        }
      },
      "required": [
        "tag",
        "user"
      ],
      "type": "object"
    }
  }
}