Fax API v3.0

RESTful API for eFax Services

Authentication

Access Token is required in order to access Fax API functions. Click here for OAuth2 authentication instruction.
Put a valid Access Token in each HTTP Request Header:
Authorization: Bearer {access_token}

Endpoints

FunctionEndpoint
Send
POST https://fax.maxmddirect.com/api/fax/{fax_number}

Send eFax to multiple recipients with multiple documents

Sample Codes:

HTTP Request Header

Authorization: Bearer {accessToken}

Content-Type: application/json

Request Body (format: application/json)

NameTypeDescription
NoPageHeader String Optional, if set to 1 then the fax is sent without page headers. The default is 0 (add headers to pages). This is option is intended for sending fax content Proprietary and Confidential, NativeFAX, LLC. 2018 6that was recently created where each page contains an informative page header.
SenderCompany String Optional, values that are used to populate fields in cover page.
SenderName String Optional, values that are used to populate fields in cover page.
SenderFaxNumber String Optional, values that are used to populate fields in cover page.
SenderVoiceNumber String Optional, values that are used to populate fields in cover page.
Subject String Optional, values that are used to populate fields in cover page.
Recipients RecipientObject[] List of Recipient objects with the following parameters
Address String Required, The fax number to be dialed.
Name String Optional, set a name associated with this recipient. The name is used for cover page creation.
Prefix Integer Optional, the type of recipient
  • 0 = To
  • 1 = Cc
  • 2 = Bcc
CallerId String Optional set the caller id (ANI) for the call when the the fax is sent.
Documents DocumentObject[] List of Document objects with the following parameters
DocumentPart Integer Required, Specifies how the document is to be treated.
  • 0 = CoverMessage
  • 1 = Document
DocumentType Integer Specifies the type of document being supplied.
Required when DocumentPart = 1. Optional when DocumentPart = 0
  • 0 = Unknown
  • 1 = TIFF
  • 2 = RTF
  • 3 = PDF
  • 4 = HTML
  • 5 = TEXT
Name String Specifies the name of the document.
Required when DocumentPart = 1. Optional when DocumentPart = 0
ContentText String for Xml/Json posts, specifies the text content of the document.
Required when DocumentPart = 0. Optional when DocumentPart = 1
ContentData String for Xml/Json posts, specifies the text content of the document. using Base64 encoding
Required when DocumentPart = 1. Optional when DocumentPart = 0
PaperSize StringOptional, specifies how the content should be converted to conform to a specified paper size, in particular the page length. The page width of the fax message is specified by the Resolution setting at the message level. The page width for an entire fax message must remain the same, and it is limited to widths that are supported by the receiving fax device (the most commonly supported width is 215mm that corresponds roughly to Letter or A4 paper size). The page length is more flexible and can be unique for each page.
  • Letter
  • Legal
  • GovernmentLetter
  • GovernmentLegal
  • Tabloid
  • A3
  • A4
  • A5
  • B3
  • B4
  • B5
  • C3
  • C4
  • C5

HTTP Response Code

HTTP Code Description
200 Success.
400 Bad Request. Invalid action. Or some parameter is missing or invalid.
401 Unauthorized. No valid access token is found at request.
403 Forbidden. Permission denied for the requested action
404 Endpoint is not found
500 Server Error.

Error Response Body (format: application/json)

NameTypeDescription
error String Error message
description String Error description

Success Response Body (format: application/json)

NameTypeDescription
Username String MaxMD Username
FromFax String Fax number used in sending fax
ToRecipientList RecipientObject[] List of Recipient Objects
Address String The fax number has been dialed.
Name String Name associated with this recipient.
Prefix Integer The type of recipient
  • 0 = To
  • 1 = Cc
  • 2 = Bcc
CallerId String The caller id (ANI) for the call when the the fax is sent.
MessageHandle String Unique message identifier to retrieve message information
description String Description