Creates a new service that you can use to set default configuration values.
Fax API (3.0)
This document provides a detailed user guide and reference documentation on the Fax REST API.
If you have questions please contact us via our support portal and a team member will be happy to assist.
You must create an account on our support portal if you do not have one.
Sinch has a global server that will route your call to the appropriate geography region automatically:
https://fax.api.sinch.com/In general we retain fax logs and media for 13 months and you can access that via the API.
Find error codes and explanations here.
The Fax API allows you to send and receive faxes. You can send faxes to a single recipient or to multiple recipients. You can also receive faxes and download them.
To send a TEST Outbound fax you can send a fax TO +19898989898. This will emulate all aspects of a real fax without charging your account.
Webhooks allow you to get updates in real-time about the status of your faxes. Webhooks are triggered by events such as the completion of a fax, and transmit information about the state of that fax to you via HTTP(S) or email. HTTP webhooks are multipart/form-data POST requests, and should be processed like form submissions.
The Emails endpoint allows you to configure the Fax to Email functionality. Fax to Email allows you to send an email and then receive a fax on your Sinch number or send a fax and have it sent to your email address. The service supports sending incoming faxes to multiple email addresses and having many numbers associated with one email address.
You can add cover pages to Sinch Fax either via the API or the Build dashboard.
A Fax service can have 0 or more cover pages configured.
A fax service identifies a set of configuration values. You can specify the service as a part of an API request or by associating a Sinch number with a service.
This can be useful if you want to point a group of numbers to a particular incoming fax URL, or want to set the storage strategy for some of your numbers but not all of them.
You can manage all your fax services and their settings via the Dashboard.
To send a TEST Inbound fax event in the Dashboard, enter the IncomingWebhookUrl on the Incoming tab and click Save. Then click the SEND TEST REQUEST button. This will emulate all aspects of a real INCOMING fax event without charging your account.
A friendly name for the service. Maximum is 60 characters.
The URL to which Sinch will post when someone sends a fax to your Sinch number. To accept incoming faxes this must be set and your Sinch phone number must be configured to receive faxes.
The content type of the webhook.
| Enum Value | Description |
|---|---|
| multipart/form-data | The webhook will be sent as a multipart/form-data request. Files are sent as attachments to the body. |
| application/json | The webhook will be sent as a JSON request. Files are sent as base64 encoded strings in the JSON object. |
If set to true this is the service used to create faxes when no serviceId is specified in the API endpoints.
One of your Sinch numbers connected to this service or any of your verified numbers.
The number of times to retry sending a fax if it fails. Default is 3. Maximum is 5.
The number of seconds to wait between retries if the fax is not yet completed.
Determines how documents are converted to black and white on OUTBOUND faxes only. Image conversion is not done on INBOUND faxes. Defaults to value selected on Fax Service object.
| Enum Value | Description |
|---|---|
| HALFTONE | Converts the image to halftone. |
| MONOCHROME | Converts the image to monochrome. |
If set to true, barcodes will be detected on incoming faxes.
If set to true, you will receive a webhook notification for each page sent on an outbound fax.
The resolution for the fax. If this is set at the service, this applies to all faxes sent using that service. If this is set on the fax, this will override the service setting.
| Enum Value | Description |
|---|---|
| FINE | Most commonly accepted fax resolution at 200 dpi. |
| SUPERFINE | Higher but less commonly accepted fax resolution at 400 dpi. May be required when sending small text or detailed images. |
- v3.0 of the Fax APIhttps://fax.api.sinch.com/v3/projects/YOUR_project_id/services
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://fax.api.sinch.com/v3/projects/YOUR_project_id/services \
-H 'Content-Type: application/json' \
-d '{
"name": "Default service",
"incomingWebhookUrl": "https://yourserver/incomingFax",
"webhookContentType": "multipart/form-data",
"defaultForProject": false,
"defaultFrom": "string",
"numberOfRetries": 3,
"retryDelaySeconds": 60,
"imageConversionMethod": "HALFTONE",
"coverPageId": "string",
"saveOutboundFaxDocuments": true,
"saveInboundFaxDocuments": true,
"scanIncomingBarcodes": false,
"inProgressNotifications": false,
"resolution": "FINE"
}'The newly created service
A friendly name for the service. Maximum is 60 characters.
The URL to which Sinch will post when someone sends a fax to your Sinch number. To accept incoming faxes this must be set and your Sinch phone number must be configured to receive faxes.
The content type of the webhook.
| Enum Value | Description |
|---|---|
| multipart/form-data | The webhook will be sent as a multipart/form-data request. Files are sent as attachments to the body. |
| application/json | The webhook will be sent as a JSON request. Files are sent as base64 encoded strings in the JSON object. |
If set to true this is the service used to create faxes when no serviceId is specified in the API endpoints.
One of your Sinch numbers connected to this service or any of your verified numbers.
The number of times to retry sending a fax if it fails. Default is 3. Maximum is 5.
The number of seconds to wait between retries if the fax is not yet completed.
Determines how documents are converted to black and white on OUTBOUND faxes only. Image conversion is not done on INBOUND faxes. Defaults to value selected on Fax Service object.
| Enum Value | Description |
|---|---|
| HALFTONE | Converts the image to halftone. |
| MONOCHROME | Converts the image to monochrome. |
If set to true, barcodes will be detected on incoming faxes.
If set to true, you will receive a webhook notification for each page sent on an outbound fax.
The resolution for the fax. If this is set at the service, this applies to all faxes sent using that service. If this is set on the fax, this will override the service setting.
| Enum Value | Description |
|---|---|
| FINE | Most commonly accepted fax resolution at 200 dpi. |
| SUPERFINE | Higher but less commonly accepted fax resolution at 400 dpi. May be required when sending small text or detailed images. |
{ "id": "01GVRB50KEQFFE1SGMPFRNBG6J", "name": "Default service", "incomingWebhookUrl": "https://yourserver/incomingFax", "webhookContentType": "multipart/form-data", "defaultForProject": false, "defaultFrom": "string", "numberOfRetries": 3, "retryDelaySeconds": 60, "imageConversionMethod": "HALFTONE", "coverPageId": "string", "saveOutboundFaxDocuments": true, "saveInboundFaxDocuments": true, "scanIncomingBarcodes": false, "inProgressNotifications": false, "projectId": "ae00f005-e392-44dc-b3f5-a657a2684dg3", "resolution": "FINE" }
- v3.0 of the Fax APIhttps://fax.api.sinch.com/v3/projects/YOUR_project_id/services
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://fax.api.sinch.com/v3/projects/YOUR_project_id/services?pageSize=20&page=string'List of services, or an Error
{ "services": [ { … } ], "page": 0, "totalPages": 0, "pageSize": 0, "totalItems": 0 }
- v3.0 of the Fax APIhttps://fax.api.sinch.com/v3/projects/YOUR_project_id/services/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://fax.api.sinch.com/v3/projects/YOUR_project_id/services/{id}'The requested service, or an Error
A friendly name for the service. Maximum is 60 characters.
The URL to which Sinch will post when someone sends a fax to your Sinch number. To accept incoming faxes this must be set and your Sinch phone number must be configured to receive faxes.
The content type of the webhook.
| Enum Value | Description |
|---|---|
| multipart/form-data | The webhook will be sent as a multipart/form-data request. Files are sent as attachments to the body. |
| application/json | The webhook will be sent as a JSON request. Files are sent as base64 encoded strings in the JSON object. |
If set to true this is the service used to create faxes when no serviceId is specified in the API endpoints.
One of your Sinch numbers connected to this service or any of your verified numbers.
The number of times to retry sending a fax if it fails. Default is 3. Maximum is 5.
The number of seconds to wait between retries if the fax is not yet completed.
Determines how documents are converted to black and white on OUTBOUND faxes only. Image conversion is not done on INBOUND faxes. Defaults to value selected on Fax Service object.
| Enum Value | Description |
|---|---|
| HALFTONE | Converts the image to halftone. |
| MONOCHROME | Converts the image to monochrome. |
If set to true, barcodes will be detected on incoming faxes.
If set to true, you will receive a webhook notification for each page sent on an outbound fax.
The resolution for the fax. If this is set at the service, this applies to all faxes sent using that service. If this is set on the fax, this will override the service setting.
| Enum Value | Description |
|---|---|
| FINE | Most commonly accepted fax resolution at 200 dpi. |
| SUPERFINE | Higher but less commonly accepted fax resolution at 400 dpi. May be required when sending small text or detailed images. |
{ "id": "01GVRB50KEQFFE1SGMPFRNBG6J", "name": "Default service", "incomingWebhookUrl": "https://yourserver/incomingFax", "webhookContentType": "multipart/form-data", "defaultForProject": false, "defaultFrom": "string", "numberOfRetries": 3, "retryDelaySeconds": 60, "imageConversionMethod": "HALFTONE", "coverPageId": "string", "saveOutboundFaxDocuments": true, "saveInboundFaxDocuments": true, "scanIncomingBarcodes": false, "inProgressNotifications": false, "projectId": "ae00f005-e392-44dc-b3f5-a657a2684dg3", "resolution": "FINE" }
A friendly name for the service. Maximum is 60 characters.
The URL to which Sinch will post when someone sends a fax to your Sinch number. To accept incoming faxes this must be set and your Sinch phone number must be configured to receive faxes.
The content type of the webhook.
| Enum Value | Description |
|---|---|
| multipart/form-data | The webhook will be sent as a multipart/form-data request. Files are sent as attachments to the body. |
| application/json | The webhook will be sent as a JSON request. Files are sent as base64 encoded strings in the JSON object. |
If set to true this is the service used to create faxes when no serviceId is specified in the API endpoints.
One of your Sinch numbers connected to this service or any of your verified numbers.
The number of times to retry sending a fax if it fails. Default is 3. Maximum is 5.
The number of seconds to wait between retries if the fax is not yet completed.
Determines how documents are converted to black and white on OUTBOUND faxes only. Image conversion is not done on INBOUND faxes. Defaults to value selected on Fax Service object.
| Enum Value | Description |
|---|---|
| HALFTONE | Converts the image to halftone. |
| MONOCHROME | Converts the image to monochrome. |
If set to true, barcodes will be detected on incoming faxes.
If set to true, you will receive a webhook notification for each page sent on an outbound fax.
The resolution for the fax. If this is set at the service, this applies to all faxes sent using that service. If this is set on the fax, this will override the service setting.
| Enum Value | Description |
|---|---|
| FINE | Most commonly accepted fax resolution at 200 dpi. |
| SUPERFINE | Higher but less commonly accepted fax resolution at 400 dpi. May be required when sending small text or detailed images. |
- v3.0 of the Fax APIhttps://fax.api.sinch.com/v3/projects/YOUR_project_id/services/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
-u <username>:<password> \
'https://fax.api.sinch.com/v3/projects/YOUR_project_id/services/{id}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Default service",
"incomingWebhookUrl": "https://yourserver/incomingFax",
"webhookContentType": "multipart/form-data",
"defaultForProject": false,
"defaultFrom": "string",
"numberOfRetries": 3,
"retryDelaySeconds": 60,
"imageConversionMethod": "HALFTONE",
"coverPageId": "string",
"saveOutboundFaxDocuments": true,
"saveInboundFaxDocuments": true,
"scanIncomingBarcodes": false,
"inProgressNotifications": false,
"resolution": "FINE"
}'The updated service, or an Error
A friendly name for the service. Maximum is 60 characters.
The URL to which Sinch will post when someone sends a fax to your Sinch number. To accept incoming faxes this must be set and your Sinch phone number must be configured to receive faxes.
The content type of the webhook.
| Enum Value | Description |
|---|---|
| multipart/form-data | The webhook will be sent as a multipart/form-data request. Files are sent as attachments to the body. |
| application/json | The webhook will be sent as a JSON request. Files are sent as base64 encoded strings in the JSON object. |
If set to true this is the service used to create faxes when no serviceId is specified in the API endpoints.
One of your Sinch numbers connected to this service or any of your verified numbers.
The number of times to retry sending a fax if it fails. Default is 3. Maximum is 5.
The number of seconds to wait between retries if the fax is not yet completed.
Determines how documents are converted to black and white on OUTBOUND faxes only. Image conversion is not done on INBOUND faxes. Defaults to value selected on Fax Service object.
| Enum Value | Description |
|---|---|
| HALFTONE | Converts the image to halftone. |
| MONOCHROME | Converts the image to monochrome. |
If set to true, barcodes will be detected on incoming faxes.
If set to true, you will receive a webhook notification for each page sent on an outbound fax.
The resolution for the fax. If this is set at the service, this applies to all faxes sent using that service. If this is set on the fax, this will override the service setting.
| Enum Value | Description |
|---|---|
| FINE | Most commonly accepted fax resolution at 200 dpi. |
| SUPERFINE | Higher but less commonly accepted fax resolution at 400 dpi. May be required when sending small text or detailed images. |
{ "id": "01GVRB50KEQFFE1SGMPFRNBG6J", "name": "Default service", "incomingWebhookUrl": "https://yourserver/incomingFax", "webhookContentType": "multipart/form-data", "defaultForProject": false, "defaultFrom": "string", "numberOfRetries": 3, "retryDelaySeconds": 60, "imageConversionMethod": "HALFTONE", "coverPageId": "string", "saveOutboundFaxDocuments": true, "saveInboundFaxDocuments": true, "scanIncomingBarcodes": false, "inProgressNotifications": false, "projectId": "ae00f005-e392-44dc-b3f5-a657a2684dg3", "resolution": "FINE" }
- v3.0 of the Fax APIhttps://fax.api.sinch.com/v3/projects/YOUR_project_id/services/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
'https://fax.api.sinch.com/v3/projects/YOUR_project_id/services/{id}'The service removed from the project, or an Error
- v3.0 of the Fax APIhttps://fax.api.sinch.com/v3/projects/YOUR_project_id/services/{id}/numbers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://fax.api.sinch.com/v3/projects/YOUR_project_id/services/{id}/numbers?pageSize=20&page=string'The list of numbers, or an Error
{ "numbers": [ { … } ], "page": 0, "totalPages": 0, "pageSize": 0, "totalItems": 0 }