Facebook

FAX REST API for developers

Implement FAX into your workflow and build apps that send FAX with our redundant SSL FAX API. Signup for a free API key and send your first fax in minutes.

Every developer account receives 3 euro of FREE credit and can start sending immediately.



#SENDING A FAX via API is super simple
#!/bin/bash

base_url='https://fax.to/api/v2'
action='/fax'
fax_number='+441224459292'
document_id='112601'

curl -X POST "$base_url$action" \
-d api_key=$key \
-d fax_number=$fax_number \
-d document_id="$document_id"

<?php

$params = [
	'fax_number' => '+441224459292',
	'document_id' => '112601'
];

$defaults = [
	CURLOPT_URL => 'https://fax.to/api/v2/fax?api_key=API_KEY',
	CURLOPT_POST => true,
	CURLOPT_POSTFIELDS => $params
];

$ch = curl_init();
curl_setopt_array($ch, $defaults);

$response = curl_exec($ch);

echo $response;

import urllib
import urllib2

params = {
    'api_key': 'API_KEY',
    'fax_number': '+441224459292',
    'document_id': '112601'
}

url = 'https://fax.to/api/v2/fax?' + urllib.urlencode(params)

request = urllib2.Request(url)
request.add_header('Accept', 'application/json')
request.add_header('Content-Type', 'multipart/form-data')
request.add_data('')
response = urllib2.urlopen(request)
									

require "net/http"
require "uri"

uri = URI.parse("https://fax.to/api/v2/fax")
params = {
    'api_key' => 'API_KEY',
    'fax_number' => '+441224459292',
    'document_id' => '112601',
}

response = Net::HTTP.post_form(uri, params)

puts response.body
									

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class FaxPostExample
    {
        public void main
        {
            var apiInstance = new FaxApi();
            var apiKey = API_KEY;
            var faxNumber = +441224459292;
            var documentId = 56;
            var tsiNumber = +441224459292;
            var file = new System.IO.Stream();
            var deleteFile = 1;  // int? | Whether to delete file after fax transaction. (put 1 to delete) (optional)

            try
            {
                apiInstance.FaxPost(apiKey, faxNumber, documentId, tsiNumber, file, deleteFile);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FaxApi.FaxPost: " + e.Message );
            }
        }
    }
}
								

Have a look at the API Docs or download the Fax SDK's code samples for your environment to reduce development time.

API Docs Get SDK's GIT

Get your key!