Chat

Delete a chat message

Deletes a message for everyone: participants see a removed-message placeholder instead of its text and files, and a pin on it is lifted. File URLs already handed out keep working. An API key can delete only the messages that same key sent. Messages typed in the dashboard (its owner's included), messages another key sent and system messages return 400.

delete/chat/threads/{chatId}/messages/{messageId}

Request

  • Base URL: https://viral.app/api/v1
  • URL: https://viral.app/api/v1/chat/threads/{chatId}/messages/{messageId}
  • Auth: API key in header x-api-key

Path parameters

chatIdstring required
messageIdstring required

Response

OK

chatIdstring required
messageIdstring required
deletedAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.