ReplySparrow Docs

Unibox

Download a unibox message attachment

Downloads an attachment from a unibox message, returned as base64 with its MIME type. Each call fetches the attachment live from the connected LinkedIn account (through Unipile). Needs the inbox:read scope.

To keep that account healthy, download each attachment once and cache it on your side rather than calling this endpoint repeatedly. Limited to 10 downloads per minute per workspace (429 with a Retry-After header beyond that). Attachment ids are listed in each message's attachments. Only seats connected through Unipile have downloadable attachments.

gethttps://app.replysparrow.com/api/v1/unibox/messages/{message_id}/attachments/{attachment_id}

Authorizations

Authorizationstringheaderrequired

Your API key from Settings → API, sent as Bearer <token>.

Path Parameters

message_idstringrequired

Message id

attachment_idstringrequired

Attachment id, from the message's attachments

Response

application/json

Attachment downloaded successfully, returned as base64 with its MIME type

base64stringrequired

File contents, base64-encoded

mime_typestringrequired

MIME type of the file

Download a unibox message attachment
curl --request GET \  --url https://app.replysparrow.com/api/v1/unibox/messages/string/attachments/string \  --header 'Authorization: Bearer <token>'
{  "base64": "iVBORw0KGgoAAAANSUhEUgAA…",  "mime_type": "image/png"}