Palbase Messaging · API
/messaging/conversations/{conversation_id}/messages/{message_id}Remove a message
for=everyone (the default): its writer removes a message for everyone within 48 hours (a group's admins at any time). for=me: anyone removes it for themselves.
Called by a signed-in user of your app, with their token and the publishable key.
Path
conversation_idstring (uuid) · requiredThe conversation.message_idstring (uuid) · requiredThe message.Query
for"everyone" | "me" · optionaleveryone (default) or me.curl -X DELETE "https://<your-ref>.palbase.studio/messaging/conversations/<conversation_id>/messages/<message_id>" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN"Responses
200The message, removed for everyone
204Removed for the reader
400`for` is everyone or me (`invalid_for`)
401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)
403Not its writer or a group's admin (`not_yours`), or past 48 hours (`delete_window_passed`)
404No such message (`message_not_found`)
429Over the project's request limit; Retry-After says when to try again
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation DeleteMessage of messaging's contract.