Fax Cost API Reference

This defines the Fax API:

  • Request - Get the cost of fax.
  • Response - ensure that your request to the Fax API was successful.

Request


A Fax API request looks like:

https://fax.to/api/v2/fax/{document_id}/costs?api_key=xxxxx&fax_number+123456789

This request contains:

Parameters


The following table shows the parameters you use in the request:

Parameter Description Required
fax_number Fax Number. For example, fax_number=+123456789. Yes.
document_id If you want to use existing document you need to specify the document_id. For example, document_id=10. Yes.

Authentication information


The following table shows the information for authentication:

Parameter Description Required
api_key Your Key. For example, api_key=f@x2r0ckkz. Yes.

You find your Key in Dashboard.

Security


To ensure privacy, you must use HTTPS for all Faxto API requests.

Encoding


You submit all requests with a POST or GET call using UTF-8 encoding and URL encoded values.

Response


We support JSON ONLY responses


{
  "status": "success",
  "cost": 0.10
}
	

Keys and Values

Key Value Response Type
status The status of the API request JSON
cost The cost of fax for the fax number specified JSON

Response Messages

HTTP Status Code Reason
200 Successful response
401 Unauthorized.
403 Rate limit exceeded
404 Resource not Found
500 Internal server error