palbaseDocs

Palbase Messaging · API

GET/messaging/conversations/{conversation_id}/messages/{message_id}/attachments/{attachment_id}

Where a message's file is read

A URL reading one of a message's files (encrypted: its key is in the message). A message seen once gives its files by …/view alone.

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.
attachment_idstring (uuid) · requiredThe file.
curl
curl -X GET "https://<your-ref>.palbase.studio/messaging/conversations/<conversation_id>/messages/<message_id>/attachments/<attachment_id>" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN"

Responses

200Where to read it

401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)

403A message seen once (`view_once`)

404No such message or file (`attachment_not_found`)

410The message was removed (`message_removed`)

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 AttachmentURL of messaging's contract.