Archive or unarchive a chat
POST /v0/archive-chat
Archive or unarchive a chat. Set archived=true to move to archive, archived=false to move back to inbox. Use POST /v1/chats/{chatID}/archive
instead.
Request Body
Section titled “Request Body ”object
The identifier of the chat to archive or unarchive (accepts both chatID and local chat ID)
Example
!NCdzlIaMjZUmvmvyHU:beeper.com
True to archive, false to unarchive
Responses
Section titled “ Responses ”Tool executed successfully
object
Invalid request parameters
object
Error message
Error code
Additional error details
object
Access token is missing or invalid
object
Error message
Error code
Additional error details
object
Access token does not have the required scope
object
Error message
Error code
Additional error details
object
Resource not found
object
Error message
Error code
Additional error details
object
Unprocessable entity - validation error
object
Error message
Error code
Additional error details
object
Too many requests - rate limit exceeded
object
Error message
Error code
Additional error details
object
Internal server error
object
Error message
Error code
Additional error details