Python Fax - Get information about an inbound fax

Download the Python samples fax API zip file.
Download the Modified OSA files.

This is a Python code sample to show how to retrieve information regarding an inbound fax received in InterFAX. This code sample is based on the Python library for InterFAX available on Github.

This sample demonstrates how to retrieve the information of a single fax based on the fax ID - all you need to do in order to change it is to provide a different fax ID.
You can retrieve the fax ID by using the sample code for checking on inbound faxes or by integrating the inbound callback.

  
     # given an InterFAX fax ID
fax_id = '12345'
# retrieve the fax
fax = interfax.inbound.find(fax_id)
# check the status
fax.image_status
# check the number of pages
fax.pages

  

The parameters of the fax are only two of several parameters that you can retrieve in regards to a fax. For a full list, please review our API documentation.

Contact us today

Talk to a member of our team about the benefits InterFAX can bring to your organization's communications processes.

Contact us today