Hi Julian,
Thank you for reaching out to the Front Developer Q&A community. It sounds like you're trying to integrate Front with your software to save emails and attachments using the API. I understand this can be a bit challenging, especially if you're not familiar with the technical details.
To access attachments through Front's API, you can use the attachments endpoint provided by Front. This endpoint allows you to retrieve attachment data from conversations. Once you have the attachment data, you can use your software's API to upload these files to your desired location.
Here are some steps you might consider:
- Use the GET /conversations/{conversation_id}/messages endpoint to list messages within a conversation. This will include metadata about attachments.
- For each message, check the attachments field to see if there are any files associated with it.
- Use the GET /attachments/{attachment_id} endpoint to download the actual file data.
- Once you have the file data, you can use your software's API to upload the files to your desired location.
If you're looking for a way to expose a file location directly from Front, you might need to implement a custom solution that involves downloading the files first and then saving them to a location accessible by your third-party API.
I hope this helps! If you have any further questions or need more detailed guidance, feel free to ask.