The File endpoint in AnswerPal is used for secure uploading, downloading, and management of attachments related to ticket messages. Use these endpoints to upload files, list attachments, delete them, and provide secure download links to end users or customer representatives.
The File API in AnswerPal is not a generic storage service but is designed to handle attachments for ticket messages. Files can be uploaded by customer representatives or end users, listed per message, deleted, and securely downloaded using a unique access token.
[
{
"ticketMessageAttachmentID": 123,
"messageID": 456,
"fileName": "invoice.pdf",
"contentType": "application/pdf",
"createdDateTime": "2024-04-22T10:00:00Z",
"isEndUserProvided": false,
"isCustomerRepProvided": true,
"accessToken": "b7e2f3c8-6c7c-4a1d-9b3a-7f3d2a8b9e5d"
}
]
{
"ticketMessageAttachmentID": 124,
"messageID": 456,
"fileName": "screenshot.png",
"contentType": "image/png",
"createdDateTime": "2024-04-22T10:05:00Z",
"isEndUserProvided": true,
"isCustomerRepProvided": false,
"accessToken": "d3f2c7a8-4b3d-4e1d-9b3a-8f7d2c3b1e5d"
}
Property | Type | Description |
---|---|---|
ticketMessageAttachmentID | int | Unique identifier for the attachment. |
messageID | int | The ID of the message this attachment belongs to. |
fileName | string | The original name of the uploaded file. |
contentType | string | The MIME type of the file (e.g., “application/pdf”, “image/png”). |
createdDateTime | DateTime | The date and time when the attachment was uploaded (ISO 8601 format). |
isEndUserProvided | bool | True if the file was uploaded by an end user; false otherwise. |
isCustomerRepProvided | bool | True if the file was uploaded by a customer representative; false otherwise. |
accessToken | string | Unique token used for secure download of the file (used in /api/File/{accessToken}). |
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