accessToken GUID. When a client requests /api/File/{accessToken}, AnswerPal looks up the attachment by token and returns the file data with the stored content type. The endpoint is intentionally anonymous so attachment links can be embedded in chat, email, screenshots and generated message content without a representative JWT.GET /api/File/{accessToken:guid} – Publicimage/png, image/jpeg, image/gif, image/webp, image/svg+xml, application/pdf and text/plain are returned without a download filename so the browser can display them inline.application/octet-stream and download.bin.GET /api/TicketMessages/{id}/attachments – TicketAccessPOST /api/TicketMessages/{id}/attachments – TicketAccessDELETE /api/TicketMessages/{id}/attachments/{attachmentId} – TicketAccessGET /api/File/{accessToken:guid} is marked Public. Possession of the GUID token is what grants file access.accessTokenGET /api/File/{accessToken:guid}.fileDatacontentTypeapplication/octet-stream when missing.fileNamedownload.bin when missing.ticketMessageAttachmentID, messageIDfileName, contentType, fileSizeBytes, createdDateTimeisEndUserProvided, isCustomerRepProvided, convertedFromAttachmentID, contentIdaccessTokenhttps://api.answerpal.eu/api/File/ to retrieve the binary file.GET https://api.answerpal.eu/api/File/11111111-2222-3333-4444-555555555555GET /api/TicketMessages/987/attachments
Authorization: Bearer <token>
[
{
"ticketMessageAttachmentID": 41,
"messageID": 987,
"fileName": "invoice.pdf",
"contentType": "application/pdf",
"fileSizeBytes": 58214,
"accessToken": "11111111-2222-3333-4444-555555555555"
}
]
Download or view:
https://api.answerpal.eu/api/File/11111111-2222-3333-4444-555555555555https://api.answerpal.eu/api/File/{accessToken} without requiring a logged-in representative session.AnswerPal: AI-powered customer service solutions to elevate your support and communication effortlessly.
For all support, sales, and partnership inquiries, email us at info@answerpal.eu
AnswerPal
Bisschoppenhoflaan 380
2100 Antwerp
Belgium
+32.36416685
BE 0862.692.858