Summary of Contents for Multitech FaxFinder FF240-IP
Page 1
COPYRIGHT AND TECHNICAL SUPPORT FaxFinder® Web Services API FF240-IP, FF240, FF440, FF840 Developer Guide Multi-Tech Systems, Inc. FaxFinder Web Service API Developer Guider...
Page 2
The Knowledge Base provides immediate access to support information and resolutions for all Multi-Tech products. Visit http://www.multitech.com/kb.go. Support Portal To create an account and submit a support case directly to our technical support team, visit: https://support.multitech.com Support Business Hours: M-F, 9am to 5pm CT...
Examples Examples included in this document are also available through the Multi-Tech System Developer Resources website at multitech.net. This site includes a developer forum. Additional Information For more information about these functions, consult your FaxFinder Administrator Guide or Help File.
FAXING Faxing Scheduling a Fax An application can schedule a fax by posting the schedule fax XML to the ofax resource. If the fax is scheduled successfully, a response is returned with the scheduled entries. Notes: Place each file that you want to attach as fax pages in an attachment element. ...
FAXING <approval_time></approval_time> </fax_entry> </response> Viewing Fax Entries Query all_users=true|false Parameters An Admin level user can set this option to query all users instead of just faxes belonging to the authenticated user. complete_limit=LIMIT Limit the number of completed faxes returned in a general query (/ffws/v1/ofax) to LIMIT.
FAXING Rescheduling a Fax Entry Query at=TIME Parameters TIME := now | DATETIME_UTC_URLENCODED DATETIME_UTC_URLENCODED := YYYY-MM-DDTHH%3AMM%3ASS PUT /ffws/v1/ofax/FAXKEY/ENTRYKEY?at=TIME HTTP/1.1 HTTP Request Line HTTP Response 202 Accepted Attempting to reschedule faxes. There is no guarantee that all Status Codes entries will be rescheduled. For instance, entries that are sending when the reschedule is received will not be rescheduled.
USER FUNCTIONS User Functions Viewing User Information HTTP Request GET /ffws/v1/users/USERNAME HTTP/1.1 Line HTTP Response 200 OK Shows user information. Status Codes 403 Forbidden Authenticated user does not have permission to view data associated with username. 404 Not Found No user found with that username. Example GET /ffws/v1/users/admin HTTP/1.1 content-type: application/xml...
USER FUNCTIONS Example GET /ffws/v1/verify HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= ----------------------------------- HTTP/1.1 200 OK content-type: application/xml <?xml version=”1.0” encoding=”UTF-8”?> <response> <message>Verified</message> </response> Adding a User HTTP Request POST /ffws/v1/users HTTP/1.1 Line HTTP Response 200 OK Created user. Status Codes 403 Forbidden Authenticated user does not have permission to change data associated with username.
USER FUNCTIONS <max_attempts>2</max_attempts> <interval>600</interval> <receipt>never</receipt> <receipt_attachment>none</receipt_attachment> </user> </response> Editing a User HTTP Request PUT /ffws/v1/users/USERNAME HTTP/1.1 Line HTTP Response 200 OK Modified successfully. Status Codes 403 Forbidden Authenticated user does not have permission to change data. 404 Not Found User not found. 400 Bad Request The provided XML is not valid.
CONTACT AND GROUP FUNCTIONS Contact and Group Functions Viewing Contacts Query limit=LIMIT Parameters Limit the number of results to LIMIT. offset=OFFSET Skip OFFSET entries from the start. Only valid when limit is specified. name=SUBSTR fax_number=SUBSTR phone_number=SUBSTR organization=SUBSTR Search for contacts by field name. If you specify more than one, they are concatenated with AND.
CONTACT AND GROUP FUNCTIONS Adding New Contacts HTTP Request POST /ffws/v1/contacts/USERNAME HTTP/1.1 Line HTTP Response 200 OK Created Status Codes 403 Forbidden Authenticated user does not have permission to change data associated with username. 404 Not Found No user found with that username. 400 Bad Request The provided XML is not valid.
CONTACT AND GROUP FUNCTIONS Example GET /ffws/v1/contact_oids/admin HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= ----------------------------------- HTTP/1.1 200 OK content-type: application/xml <?xml version=”1.0” encoding=”UTF-8”?> <response> <message>Success</message> <oids>1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,34,35</oids> </response> Viewing Groups Query limit=LIMIT Parameters Limit the number of results to LIMIT. offset=OFFSET Skip OFFSET entries from the start. Only valid when limit is specified. name=SUBSTR description=SUBSTR Search for groups by field name.
CONTACT AND GROUP FUNCTIONS Example POST /ffws/v1/contact_groups/admin HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= <?xml version=”1.0” encoding=”UTF-8”?> <contact_group> <name>New Group from API</name> <description>Can I create one from the API</description> <contact>https://dot3/ffws/v1/contacts/admin/23</contact> <contact>https://dot3/ffws/v1/contacts/admin/24</contact> <contact>https://dot3/ffws/v1/contacts/admin/25</contact> <contact>https://dot3/ffws/v1/contacts/admin/26</contact> </contact_group> ---------------------- <?xml version=”1.0” encoding=”UTF-8”?> <response> <message>Created</message> <contact_group> <contact_group_url>https://dot3/ffws/v1/contact_groups/admin/14</contact_group_url>...
CONTACT AND GROUP FUNCTIONS Example PUT /ffws/v1/contact_groups/admin/6 HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= <?xml version=”1.0” encoding=”UTF-8”?> <contact_group> <contact_group_url>https://172.16.128.5/ffws/v1/contact_groups/admin/4</contact_group_url> <name>Change name</name> <description>change description</description> <contact>https://172.16.128.5/ffws/v1/contacts/admin/1</contact> <contact>https://172.16.128.5/ffws/v1/contacts/admin/2</contact> <contact>https://172.16.128.5/ffws/v1/contacts/global_contact_list/3</contact> </contact_group> ----------------------------------- HTTP/1.1 200 OK content-type: application/xml <?xml version=”1.0” encoding=”UTF-8”?> <response> <message>Modified</message> </response> Deleting Groups HTTP Request DELETE /ffws/v1/contact_groups/USERNAME/id HTTP/1.1 Line...
Page 21
CONTACT AND GROUP FUNCTIONS Example GET /ffws/v1/contact_group_oids/admin HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= ----------------------------------- HTTP/1.1 200 OK content-type: application/xml <?xml version=”1.0” encoding=”UTF-8”?> <response> <message>Success</message> <oids>1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,34,35</oids> </response> FaxFinder Web Services API Developer Guide...
FAX STATUS Fax Status Viewing Modem, Channel, System, Printer, and Share Status HTTP Request GET /ffws/v1/status HTTP/1.1 Line GET /ffws/v1/status/MODEM HTTP/1.1 (FF240, FF440, or FF840) GET /ffws/v1/status/CHANNEL HTTP/1.1 (FF240-IP) GET /ffws/v1/status/SYSTEM HTTP/1.1 GET /ffws/v1/status/PRINTER HTTP/1.1 GET /ffws/v1/status/SHARE HTTP/1.1 HTTP Response 200 OK Shows status information.
FAX STATUS Example GET /ffws/v1/channel_status/1 HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= <?xml version=”1.0” encoding=”UTF-8”?> <response> <message>Success</message> <channel_status> <channel_number>1</channel_number> <state>Waiting for Ring</state> <pages_sent_recd>0</pages_sent_recd> <baud_rate></baud_rate> <fax_number></fax_number> <ecm></ecm> <line_encoding></line_encoding> <resolution></resolution> <remote_id></remote_id> <modulation></modulation> </channel_status> </response> Viewing Modem Status (FF240, FF440, FF840) HTTP Request GET /ffws/v1/modem_status HTTP/1.1 Line GET /ffws/v1/modem_status/MODEM HTTP/1.1 (where MODEM is a number from 1-24 depending on FaxFinder model and if using an Expansion Module.)
LOG FUNCTIONS Line HTTP Response 200 OK Shows status for currently inbound faxes. Status Codes 400 Bad Request The provided XML is not valid. FF240, FF440, or FF840 Example GET /ffws/v1/inbound_status HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= <?xml version=”1.0” encoding=”UTF-8”?> <response>...
Page 27
FAX STATUS Use with class. Limits sending faxes to specified number. If sending_limit is not specified, class returns ten sending faxes. HTTP Request GET /ffws/v1/outbound_status HTTP/1.1 Line HTTP Response 200 OK Shows status for currently outbound faxes. Status Codes 404 Not Found No current outbound faxes found.
LOG FUNCTIONS Logs Viewing Inbound Fax Logs Query limit=LIMIT Parameters Limit the number of results to LIMIT. index=INDEX (Must be used with limit) Index indicates where to start reading the data in the database. Use to page through data. include_call_info=true|false Set to true to include call details.
LOG FUNCTIONS <status>pass</status> <remote_id>POTS modem - 5739</remote_id> <size>24298</size> <pages>1</pages> <resolution>Fine</resolution> <baud_rate>14400</baud_rate> <width>1728</width> <height>Variable</height> <data_compression>mh</data_compression> <error_correction>on</error_correction> <init_time>2013-07-24T17:25:49</init_time> <off_hook_time>2013-07-24T18:49:36</off_hook_time> <connect_time>2013-07-24T18:49:49</connect_time> <elapsed_time>25</elapsed_time> <scan_line_time>0</scan_line_time> </call_entry> <location>//172.16.0.5/share/archive/inbound/user1/fax_inbound_20131023_135211_recv0000.tif</location> </inbound_fax_entry> </response> Viewing Outbound Fax Logs Query limit=LIMIT Parameters Limit the number of results to LIMIT. index=INDEX (Must be used with limit) Index indicates where to start reading the data in the database.
LOG FUNCTIONS Viewing Call Log Query limit=LIMIT Parameters Limit the number of results to LIMIT. index=INDEX (Must be used with limit) Index indicates where to start reading the data in the database. Use to page through data. HTTP Request GET /ffws/v1/call_log HTTP/1.1 Line 200 OK Shows call logs.
LOG FUNCTIONS Viewing Inbound or Outbound Log Count HTTP Request GET /ffws/v1/outbound_log_count HTTP/1.1 Line GET /ffws/v1/inbound_log_count HTTP/1.1 HTTP Response 200 OK Shows current T38 configuration. Status Codes 400 Bad Request The provided XML is not valid. Example GET /ffws/v1/outbound_log_count HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= -----------------------------------...
FAXFINDER CONFIGURATION FaxFinder Configuration Viewing Inbound Routes HTTP Request GET /ffws/v1/routes HTTP/1.1 Line GET /ffws/v1/routes/global HTTP/1.1 GET /ffws/v1/routes/lines HTTP/1.1 (FF240, FF440, or FF840) GET /ffws/v1/routes/lines/line_number HTTP/1.1 (FF240, FF440, or FF840) GET /ffws/v1/routes/default HTTP/1.1 (FF240-IP only) GET /ffws/v1/routes/recipients HTTP/1.1 GET /ffws/v1/routes/recipients/ID HTTP/1.1 200 OK Shows inbound routes.
Page 36
FAXFINDER CONFIGURATION <recipients> <recipient> <recipient_id>1</recipient_id> <extension>1234</extension> <description>Yoda</description> <destination> <type>Email</type> <value>test2@email</value> </destination> </recipient> </recipients> </response> FF240, FF440, or FF840 Example Inbound Routes for Lines GET /ffws/v1/routes/lines HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= ----------------------------------- HTTP/1.1 200 OK content-type: application/xml <?xml version=”1.0” encoding=”UTF-8”?> <response>...
FAXFINDER CONFIGURATION Example PUT /ffws/v1/routes/global HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= <?xml version=”1.0” encoding=”UTF-8”?> <global> <destination> <type>User</type> <value>admin</value> </destination> <destination> <type>Email</type> <value>newb@mts.test</value> </destination> <destination> <type>Notify</type> <value>new_fax@mts.test</value> </destination> </global> Viewing Store and Forward (T.37) Settings HTTP Request GET /ffws/v1/t37 HTTP/1.1 Line 200 OK Shows current store and forward settings.
FAXFINDER CONFIGURATION Editing Store and Forward (T.37) Settings HTTP Request PUT /ffws/v1/t37 HTTP/1.1 Line HTTP Response 200 OK Store and forward setting successfully changed. Status Codes 400 Bad Request The provided XML is not valid. Example PUT /ffws/v1/t37 HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= <?xml version=”1.0”...
FAXFINDER CONFIGURATION <fax_debugging>false</fax_direction> </modem> ----------------------------------- HTTP/1.1 200 OK content-type: application/xml <?xml version=”1.0” encoding=”UTF-8”?> <response> <message>Modified</message> </response> Viewing SIP Settings (FF240-IP only) HTTP Request GET /ffws/v1/sip HTTP/1.1 Line HTTP Response 200 OK Shows current SIP configuration. Status Codes 400 Bad Request The provided XML is not valid.
FAXFINDER CONFIGURATION Editing SIP Settings (FF240-IP only) HTTP Request PUT /ffws/v1/sip HTTP/1.1 Line HTTP Response 200 OK SIP settings successfully changed. Status Codes 400 Bad Request The provided XML is not valid. Example PUT /ffws/v1/sip HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= <?xml version=”1.0”...
FAXFINDER CONFIGURATION Viewing Add Global Contacts Status of Non-Admin Users HTTP Request GET /ffws/v1/user_options HTTP/1.1 Line HTTP Response 200 OK Current status of global contacts. Status Codes 400 Bad Request The provided XML is not valid. Example GET /ffws/v1/user_options HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= -----------------------------------...
FAXFINDER CONFIGURATION About FaxFinder Viewing Information about the FaxFinder HTTP Request Line GET /ffws/v1/about HTTP/1.1 HTTP Response Status 200 OK Success Codes Example GET /ffws/v1/verify HTTP/1.1 content-type: application/xml authorization: Basic YWRtaW46YWRtaW4= ----------------------------------- HTTP/1.1 200 OK content-type: application/xml <?xml version=”1.0” encoding=”UTF-8”?> <response>...
ELEMENTS Elements General Status Codes Be aware that other Status Codes that do not pertain specifically to the resource requested may be returned. See RFC 2616 for a listing of all possible codes. Some FFWS general errors: Error Description 401 Unauthorized Authorization required.
Page 47
ELEMENTS <!-- default: “” --> <!-- required: no --> <!-- value: string --> <organization>Sender Org</organization> <!-- Sender phone number --> <!-- default: “” --> <!-- required: no --> <!-- value: string --> <phone_number>218-555-3333</phone_number> <!-- Sender fax number --> <!-- default: “” --> <!-- required: no -->...
Page 48
ELEMENTS <!-- application/postscript --> <!-- text/plain --> <!-- image/tiff --> <!-- required: yes if location == inline --> <!-- value: string --> <content_type>text/plain</content_type> <!-- Content encoding --> <!-- Must be set to base64 --> <!-- required: yes if location == inline --> <!-- value: string -->...
ELEMENTS <!-- scheduled to send as soon as possible. --> <!-- Format: %FT%T --> <!-- required: no --> <!-- value: string --> <schedule_all_at>2008-08-07T20:30:00</schedule_all_at> </schedule_fax> Fax Entry Element This element represents an actual fax that will be sent. Some of the elements are the same as elements provided in schedule_fax.
Page 50
ELEMENTS <preview>https://172.16.0.13/ffws/v1/data/preview/00000FD1-0000.pdf</preview> <cover_page> <enabled>false</enabled> <url></url> <subject></subject> <comments></comments> </cover_page> <sender> <username>admin</username> <name></name> <organization></organization> <phone_number></phone_number> <fax_number></fax_number> <email_address></email_address> </sender> <recipient> <name>test recipient</name> <organization>test org</organization> <fax_number>5816</fax_number> <phone_number></phone_number> </recipient> <max_tries>3</max_tries> <priority>3</priority> <try_interval>300</try_interval> <receipt>failure</receipt> <receipt_attachment>failure</receipt_attachment> <pages>6</pages> <approver>_SYSTEM_</approver> <approval_time>2009-01-30T04:43:28</approval_time> <!-- Modem level information included when include_modem_info=true. --> <!-- A modem entry is added for each attempt and is only available -->...
ELEMENTS User Element This element represents a user registered on the FaxFinder. <!-- Describes a User --> <user> <!-- Url of this user --> <!-- value: string --> <user_url>https://192.168.2.1/ffws/v1/users/admin</user_url> <!-- Full name of user --> <!-- required: yes --> <!-- value: string --> <name>Administrator</name>...
ELEMENTS Contact Element This element represents a user contact. <!-- Describes a Contact --> <contact> <!-- URL of this contact --> <!-- value: string --> <contact_url>https://192.168.2.1/ffws/v1/contacts/admin/1</contact_url> <!-- Contact Name --> <!-- required: yes --> <!-- value: string --> <name>contact name</name> <!-- Contact Fax number -->...
ELEMENTS Inbound Routing Fax Element This element represents an inbound route. <!-- Describes global route destination--> <global> <destination> <!-- Describes destination option--> <!-- required: yes --> <!-- Can be one of: --> <!--Email --> <!--Notify --> <!-- User -> <!--Notify User --> <!--Share -->...
Page 54
ELEMENTS <!-- For Notify User value = username --> <!-- For Share value = network share folder--> <!-- For Sftp value = SFTP server --> <!-- For Print value = printer name --> <!-- For Trash no value needed--> <value>cla@mts.test</value> </destination>...
Page 55
ELEMENTS <type>Email</type> <!-- Additional information required based on type --> <!--For Email value = the email address --> <!-- For Notify value = the email address --> <!-- For User value = username - -> <!-- For Notify User value = username --> <!-- For Share value = network share folder-->...
Need help?
Do you have a question about the FaxFinder FF240-IP and is the answer not in the manual?
Questions and answers