Legacy Dev Forum Posts

 View Only

Sign Up

Email Reply Attachments Issue

  • 1.  Email Reply Attachments Issue

    Posted 06-05-2025 18:29

    JavierVRT | 2023-12-07 11:57:49 UTC | #1

    Hi,

    I'm trying to attach uploaded files to an Email Reply, but that email is received without them.

    I follow instructions described for uploading files at this post: https://developer.genesys.cloud/analyticsdatamanagement/contentmanagement/uploaddocuments

    After that, I can see uploaded documents in my workspace.

    Then I call POST /api/v2/conversations/emails/{conversationId}/messages with various items in attachments array like this:

    {
          "attachmentId": "20dde1e3-fba4-47e5-b292-28bd9090a3c1",
          "name": "Prueba.pdf",
          "contentUri": "/api/v2/contentmanagement/documents/20dde1e3-fba4-47e5-b292-28bd9090a3c1/content",
                      "contentType": "application/pdf",
          "contentLength": 257022,
          "inlineImage": false
        }

    Finally I receive an 200 OK result with the same data that I previously have sent in attachments array.

    But target email receives email reply with no attachments. If I call GET /api/v2/conversations/emails/{conversationId}/messages I get message info without data in attachments property.

    What can I do?


    vpirat | 2023-12-07 17:32:20 UTC | #2

    Hi Javier,

    Thanks for reaching us.

    It looks like you're not using the right Api for emails. Please have a look to this document: https://developer.genesys.cloud/analyticsdatamanagement/uploads/upload-email-attachments

    Your url should be a POST to /uploads/postino-attachments including the conversationId and file content within the body.

    Once done, query again your draft and it should include the attachment.

    Hope this helps,

    Regards, V.P.


    JavierVRT | 2023-12-21 11:33:07 UTC | #3

    It works! Thanks!


    system | 2024-01-20 11:33:15 UTC | #4

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 23570