Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions messaging-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2109,6 +2109,32 @@ paths:
schema:
"$ref": "#/components/schemas/ErrorResponse"

"/v2/bot/chat/markAsRead":
post:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#mark-as-read
tags:
- messaging-api
operationId: markMessagesAsReadByToken
description: "Mark messages from users as read by token"
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/MarkMessagesAsReadByTokenRequest"
example:
markAsReadToken: nz0x74mZT2mRn...
required: true
responses:
"200":
description: "OK"
"400":
description: "An invalid markAsReadToken is specified. Tokens must be used by the bot that received them via Webhook."
content:
"application/json":
schema:
"$ref": "#/components/schemas/ErrorResponse"

components:
securitySchemes:
Bearer:
Expand Down Expand Up @@ -5828,6 +5854,16 @@ components:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#display-a-loading-indicator-response
type: object
MarkMessagesAsReadByTokenRequest:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#mark-as-read-request-body
required:
- markAsReadToken
type: object
properties:
markAsReadToken:
type: string
description: "Token used to mark messages as read."

# Error response
ErrorResponse:
Expand Down
3 changes: 3 additions & 0 deletions webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ components:
properties:
replyToken:
type: string
markAsReadToken:
Copy link
Contributor

@Yang-33 Yang-33 Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be in MessageContent, and not in MessageEvent? because https://developers.line.biz/en/reference/messaging-api/#message-event explains it as message.markAsReadToken

type: string
description: "Token used to mark the message as read"
message:
$ref: "#/components/schemas/MessageContent"

Expand Down