Messages
Mark messages as archived
Changed onMarks the given messages as archived. Archived messages are hidden from the default message list in the feed but can still be accessed and unarchived later.
post/v1/messages/batch/archived
Request
- Base URL: https://api.knock.app
- URL: https://api.knock.app/v1/messages/batch/archived
- Auth: HTTP bearer
Request body
Example request
{
"message_ids": [
"2w3YUpTTOxuDvZFji8OMsKrG176",
"2w3YVRbPXMIh8Zq6oBFcVDA5xes"
]
}Response
OK
Example response
[
{
"__typename": "Message",
"actors": [
"user_123"
],
"archived_at": "2025-01-01T00:04:00Z",
"channel_id": "123e4567-e89b-12d3-a456-426614174000",
"clicked_at": null,
"data": {
"foo": "bar"
},
"engagement_statuses": [
"seen",
"archived"
],
"id": "1jNaXzB2RZX3LY8wVQnfCKyPnv7",
"inserted_at": "2021-01-01T00:00:00Z",
"interacted_at": null,
"link_clicked_at": null,
"metadata": {
"external_id": "123e4567-e89b-12d3-a456-426614174000"
},
"read_at": null,
"recipient": "user_123",
"scheduled_at": null,
"seen_at": "2025-01-01T00:01:00Z",
"source": {
"__typename": "NotificationSource",
"categories": [
"collaboration"
],
"key": "comment-created",
"version_id": "123e4567-e89b-12d3-a456-426614174000"
},
"status": "sent",
"tenant": "tenant_123",
"updated_at": "2021-01-01T00:00:00Z",
"workflow": "comment-created"
}
]Changes
- info
added the optional property
///to the response with the status
- info
- breaking
the response property
///became nullable for the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status
- breaking