Skip to navigation

Fax

View as Markdown

The Dropbox Fax API sends outbound faxes, receives inbound faxes, and manages the fax lines those faxes use. Fax endpoints are part of the Dropbox Sign API at https://api.hellosign.com/v3.

To send faxes or purchase fax lines, contact support to upgrade to the Fax API plan: Submit a Ticket.

Authentication

Fax endpoints use the same API key authentication as the rest of the Dropbox Sign API. Pass the API key as the username of an HTTP Basic request and leave the password empty. See Authentication for key management and rotation.

curl "https://api.hellosign.com/v3/fax/list" \
-u "YOUR_API_KEY:"

Send Fax accepts test_mode. Set it to true to create a fax without delivering it to the recipient. You can review Fax API requests, including test-mode requests, on the API Dashboard.

Send a fax

Send Fax creates a fax and starts transmission. The request requires a recipient, which is a phone number in E.164 format or an email address, and the documents to fax. Provide the documents with either files or file_urls:

  • files — documents to upload and fax
  • file_urls — URLs Dropbox Fax downloads and faxes

Use one of those fields on a request. Either field can include multiple documents.

Optional fields set the fax title, the sending fax number (sender, used when recipient is a phone number), and cover page text (cover_page_to, cover_page_from, and cover_page_message).

A 200 response means the fax was accepted. It does not mean the fax was delivered. Delivery depends on the recipient line, and the transmission status_code changes after the response returns. Use Get Fax or a callback to learn the outcome.

curl -X POST 'https://api.hellosign.com/v3/fax/send' \
-u 'YOUR_API_KEY:' \
-F 'files[0]=@mutual-NDA-example.pdf' \
-F 'test_mode=1' \
-F 'recipient=16690000001' \
-F 'sender=16690000000' \
-F 'title=Quarterly statement' \
-F 'cover_page_to=Recipient Name' \
-F 'cover_page_from=Sender Name' \
-F 'cover_page_message=Please find the attached documents.'

The response fax object includes:

FieldDescription
fax_idID used to retrieve, download, or delete the fax
titleTitle submitted with the fax
senderSender email on the fax
files_urlURL for the fax files
test_modetrue when the fax was created in test mode
created_atUnix timestamp for when the fax was created
transmissionsOne entry per recipient, with recipient, sent_at, and status_code

Check status

Get Fax returns one fax by fax_id. List Faxes returns the faxes your account can access. List results are paginated with page (default 1) and page_size (default 20, maximum 100).

Each transmission status_code is one of:

StatusDescription
transmittingThe fax is still being sent
successThe fax was sent
error_busyThe recipient line returned a busy signal
error_no_answerThe recipient line did not pick up
error_disconnectedThe recipient line disconnected or was unreachable
error_could_not_faxThe fax could not be delivered, usually because of a bad connection
error_bad_destinationThe recipient line is blocked or invalid
error_unknownThe transmission failed for an unknown reason

The Fax reference also documents on_hold when the account is unconfirmed, and error_file when the submitted file cannot be processed. An unconfirmed account is also reported by the fax_on_hold callback.

Download and delete

Download Fax Files returns the documents for a fax_id. Delete Fax removes that fax.

Whether completed faxes are kept can be turned on or off from the Fax API Settings page.

Fax API setting that controls whether completed faxes are deleted

Callbacks

Fax events are POSTed to the callback URL configured on the Fax API Settings page. The payload and the required response match Dropbox Sign events: respond with HTTP 200 and a body of Hello API Event Received.

Fax API callback URL setting

Event typeDescription
fax_receivedAn inbound fax was received
fax_sentThe outbound fax was sent
fax_on_holdThe outbound fax was placed on hold
fax_busyThe recipient line returned a busy signal
fax_no_answerThe recipient line did not pick up
fax_disconnectedThe recipient line disconnected before the fax was sent
fax_blacklistedThe recipient line is blocked or invalid

Schemas and examples for these events are in the Account Callback and App Callback references. Event names are also listed in the Events overview.

A fax_sent callback uses this shape:

{
"event": {
"event_time": "1738001529",
"event_type": "fax_sent",
"event_hash": "950d3bdf03a30d520dfa6ac51a952ff93fe3a4d9754dd1412b6aec36206c1e81",
"event_metadata": {
"related_signature_id": null,
"reported_for_account_id": "63522885f9261e2b04eea043933ee7313eb674fd",
"reported_for_app_id": null
}
},
"transmission": {
"test_mode": false,
"signature_request_id": "",
"title": "Example Fax",
"original_title": "Example Fax",
"subject": null,
"message": "Please read",
"metadata": {},
"created_at": 1738001529,
"is_complete": false,
"is_declined": false,
"has_error": false,
"files_url": "https://api.hellosign.com/v3/fax/files/9c2c7e8c2ed1839f75a9a0227ce2954b1d7c3407",
"cc_email_addresses": [],
"final_copy_uri": "/v3/transmission/final_copy/9c2c7e8c2ed1839f75a9a0227ce2954b1d7c3407",
"template_ids": [],
"custom_fields": [],
"attachments": [],
"response_data": [],
"signatures": []
}
}

Verify event.event_hash the same way as other Dropbox Sign events. The steps are in Event hash verification.

Fax lines

A fax line is a phone number that can send and receive faxes. Purchase and manage lines with the Fax Line endpoints.

  1. Call Get Available Area Codes with a country of US, CA, or UK. Filter further with state (United States), province (Canada), or city.
  2. Call Purchase Fax Line with that area_code and country. city and account_id are optional. account_id assigns the new line to a specific account.
  3. Use the returned number with the other fax line endpoints.
ActionEndpoint
Get one fax lineGet Fax Line
List fax linesList Fax Lines
Grant accessAdd User to Fax Line
Revoke accessRemove Fax Line Access
Delete a lineDelete Fax Line

List Fax Lines accepts page, page_size, account_id, and show_team_lines. Set show_team_lines to include lines that belong to other members of your team.

Endpoint index

ActionEndpoint
Send a faxPOST /fax/send
Get a faxGET /fax/{fax_id}
List faxesGET /fax/list
Download fax filesGET /fax/files/{fax_id}
Delete a faxDELETE /fax/{fax_id}
List area codesGET /fax_line/area_codes
Purchase a fax linePOST /fax_line/create
Get a fax lineGET /fax_line
List fax linesGET /fax_line/list
Delete a fax lineDELETE /fax_line
Add a userPUT /fax_line/add_user
Remove a userPUT /fax_line/remove_user

Field-level request and response schemas are on the Fax and Fax Line reference pages.