1Multi-Tech Systems, Inc. FaxFinder Web Service API Developer Guider
LEGAL NOTICES AND CONTACT INFORMATION
FaxFinder Web Services API Developer Guide
2
FaxFinder Web Services API Developer Guide
Country
By Email
By Phone
Europe, Middle East, Africa:
support@multitech.co.uk
+(44) 118 959 7774
U.S., Canada, all others:
support@multitech.com
(800) 972-2439 or (763) 717-5863
FF240, FF440, FF840, FF240-IP
S000578, Version 1.1.02
Copyright
This publication may not be reproduced, in whole or in part, without prior expressed written permission from Multi-Tech Systems, Inc. All rights reserved.
Multi-Tech Systems, Inc. makes no representations or warranties with respect to the contents hereof and specifically disclaims any implied warranties of
merchantability or fitness for any particular purpose. Furthermore, Multi-Tech Systems, Inc. reserves the right to revise this publication and to make
changes from time to time in the content hereof without obligation of Multi-Tech Systems, Inc. to notify any person or organization of such revisions or
changes. Check Multi-Tech’s web site for current versions of our product documentation.
Trademarks
Multi-Tech Registered Trademarks: FaxFinder, Multi-Tech, and the Multi-Tech logo.
All other products and technologies are the trademarks or registered trademarks of their respective holders.
Contacting Multi-Tech
Knowledge Base
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
World Headquarters
Multi-Tech Systems, Inc.
2205 Woodale Drive
Mounds View, Minnesota 55112
Phone: 763-785-3500 or 800-328-9717
Fax: 763-785-9874
Warranty
To read the warranty statement for your product, please visit: http://www.multitech.com/warranty.go.
CONTENTS
3
FaxFinder Web Services API Developer Guide
Contents
General Information ..................................................................................................................................................5
Additional Information ........................................................................................................................................................ 5
Scheduling a Fax .................................................................................................................................................................. 6
Aborting a Fax Entry ............................................................................................................................................................ 9
Rescheduling a Fax Entry .................................................................................................................................................. 10
User Functions ......................................................................................................................................................... 11
Viewing User Information ................................................................................................................................................. 11
Verify User ......................................................................................................................................................................... 11
Adding a User .................................................................................................................................................................... 12
Editing a User .................................................................................................................................................................... 13
Contact and Group Functions ................................................................................................................................... 14
Adding New Contacts ........................................................................................................................................................ 15
Viewing Groups ................................................................................................................................................................. 17
Creating a New Group ....................................................................................................................................................... 18
Editing Groups ................................................................................................................................................................... 19
Deleting Groups ................................................................................................................................................................ 20
Viewing Group IDs ............................................................................................................................................................. 20
Fax Status ................................................................................................................................................................ 23
Viewing Modem, Channel, System, Printer, and Share Status ......................................................................................... 23
Viewing Channel Status (FF240-IP only) ........................................................................................................................... 24
Viewing Modem Status (FF240, FF440, FF840) ................................................................................................................. 25
Viewing Inbound Fax Status .............................................................................................................................................. 25
Viewing Outbound Fax Status ........................................................................................................................................... 26
Viewing Store and Forward (T.37) Settings....................................................................................................................... 38
Editing Store and Forward (T.37) Settings ........................................................................................................................ 39
Viewing Modem Settings (FF240, FF440, or FF840) ......................................................................................................... 39
Editing Modem Settings (FF240, FF440, or FF840) ........................................................................................................... 40
Viewing Add Global Contacts Status of Non-Admin Users ............................................................................................... 44
About FaxFinder ...................................................................................................................................................... 45
Viewing Information about the FaxFinder ........................................................................................................................ 45
Elements ................................................................................................................................................................. 46
General Status Codes ........................................................................................................................................................ 46
Schedule Fax Element ....................................................................................................................................................... 46
Fax Entry Element ............................................................................................................................................................. 49
User Element ..................................................................................................................................................................... 51
Contact Element ................................................................................................................................................................ 52
Group Element .................................................................................................................................................................. 52
Inbound Routing Fax Element ........................................................................................................................................... 53
GENERAL INFORMATION
5
FaxFinder Web Services API Developer Guide
General Information
This document illustrates the HTTP/XML communication between the FaxFinder Web Service (FFWS) and a client.
FFWS provides an interface to FFx40 and FF240-IP FaxFinders for client applications. Client applications can use
FFWS for sending faxes, managing contacts and monitoring fax status.
Authorization
All request requiring authorization must have the Authorization header set using Basic authentication. If this is not
set or the username or password are incorrect then “401 Unauthorized” is returned. See RFC 2617 for
implementation
HTTPS
The server supports HTTPS. Secure requests can be sent to the default HTTPS port 443.
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
FaxFinder Web Services API Developer Guide
6
Faxing
Limits
Request size: 36MB
Maximum Recipients per Fax: 400
Query Parameters
None
HTTP Request Line
POST /ffws/v1/ofax HTTP/1.1
HTTP Response
Status Codes
201 Created
The fax has been created successfully.
400 Bad Request
Invalid request. The fax has not been scheduled. The response
message may provide more details.
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.
Inline attachments are attachments with the file contents inserted in the content tag.
Use base64 to encode inline attachments.
Unless the file basename is not unique among the attachments, the attachment name can usually be set to the
file basename.
The name is used primarily for error responses, so if you want to know which attachment failed, make this field
unique.
Set the attachment content type to match the type of the file being transferred. For Example, if attaching a PDF,
set the content type to “application/pdf”. FaxFinder uses content type to convert the file into fax pages. It does
not attempt to guess the content type.
all_users=true|false
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. By default the limit is 10. Faxes displayed in the completed list are (pre)viewable
and reschedulable.
class=pending|sending|complete
Retrieve faxes by class.
include_modem_info=true|false
Include modem level information in the response (init_time, connect_time, ...).
Requesting this information increases the response size. Modem information only
exists after the modem has completed at least one full attempt.
HTTP Request
Line
GET /ffws/v1/ofax HTTP/1.1
GET /ffws/v1/ofax/FAXKEY HTTP/1.1
GET /ffws/v1/ofax/FAXKEY/ENTRYKEY HTTP/1.1
at=TIME
TIME := now | DATETIME_UTC_URLENCODED
DATETIME_UTC_URLENCODED := YYYY-MM-DDTHH%3AMM%3ASS
HTTP Request
Line
PUT /ffws/v1/ofax/FAXKEY/ENTRYKEY?at=TIME HTTP/1.1
HTTP Response
Status Codes
202 Accepted
Attempting to reschedule faxes. There is no guarantee that all
entries will be rescheduled. For instance, entries that are
sending when the reschedule is received will not be
rescheduled.
400 Bad Request
The fax specified could not be rescheduled. The user may not be
the owner of the fax or the fax could not be found
1
2
3
4
5
6
PUT /ffws/v1/ofax/0000001B/0000?at=2008-08-09T22%3A30%3A00 HTTP/1.1
content-type: application/xml
authorization: Basic YWRtaW46YWRtaW4=
Search for contacts by field name. If you specify more than one, they are
concatenated with AND.
order=field name
Sort contacts by field name. Not available for FFx30 models.
HTTP Request
Line
GET /ffws/v1/contacts/USERNAME HTTP/1.1
GET /ffws/v1/contacts/USERNAME/ID HTTP/1.1
GET /ffws/v1/contacts/global_contact_list HTTP/1.1
GET /ffws/v1/contacts/global_contact_list/ID HTTP/1.1
HTTP Response
Status Codes
200 OK
Shows contact information.
403 Forbidden
Authenticated user does not have permission to view data
associated with username.
404 Not Found
No user found with that username.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GET /ffws/v1/contacts/admin HTTP/1.1
content-type: application/xml
authorization: Basic YWRtaW46YWRtaW4=
-----------------------------------
HTTP/1.1 200 OK
content-type: application/xml
<?xmlversion=”1.0”encoding=”UTF-8”?>
<response>