News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Fax attachments download using C#
Tags: sdk
Sep 24, 2018 at 2:16pm   •   5 replies  •  0 likes

Could you help me with RingCentral Fax API.

I need C# code to download fax attachments . I'am using sandbox account and I found this API in APi Explorer /restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/{messageId}/content/{attachmentId}

5 Answers
answered on Sep 27, 2018 at 6:18am  
When I inspect the attachment:

{ id: 1111,
      type: 'RenderedDocument',
      contentType: 'application/pdf' }

You can see that type is RenderedDocument

The attachment is not the original file from the fax sender.  And it might be the result of the merging of multiple files.

There is no name for the attachment file. We only know that it's a PDF.

answered on Sep 27, 2018 at 2:24am  
Please check for filename also.

answered on Sep 27, 2018 at 2:07am  
I think all of them are of ".pdf" extension, regardless of their original format.  This is because before sending the fax, RingCentral server will pre-render the content to PDF format. So the receiver side always get PDF files.

Let me double check though.

answered on Sep 27, 2018 at 1:13am  
Hi, I have another problem. Filename is always null. I need filename with extension.
In this case filename is NULL

rc = new RestClient(RingCentralAppKey, RingCentralAppSecretKey,false);
                await rc.Authorize(RingCentralUsername, RingCentralExtension, RingCentralPassword);
                var account = rc.Restapi().Account();
                var extension = account.Extension();
                var response = await extension.MessageStore().List();
                var messages = response.records;
                // fax
                var message = messages.Where(m => m.type == "Fax" && m.messageStatus != "SendingFailed" && m.attachments != null && m.attachments.Length > 0);
                foreach (var m in message)
                    var messageResponse = await extension.MessageStore([0].id).Get();
                    var content =;
                    var file = new DocumentModel
                        FileName = m.attachments[0].filename,//this is null
                        FileContent = content

answered on Sep 24, 2018 at 5:54pm  


A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us