Palbase Messaging · API
/messaging/conversations/{conversation_id}/messages/{message_id}/viewOpen a message seen once
The reader opens a message seen a limited number of times: its files and the keys that open them, once (or twice when it allows once more). Once everyone it was for opened it as often as it allows, what it carried goes.
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.curl -X POST "https://<your-ref>.palbase.studio/messaging/conversations/<conversation_id>/messages/<message_id>/view" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN"Responses
200Its files
400Not a message seen once (`not_view_once`)
401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)
403Its writer's (`own_view_once`)
404No such message (`message_not_found`)
410Opened as often as it allows, or its time is up (`already_viewed`)
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 ViewOnce of messaging's contract.