HTTP Methods

Since our API is RESTful, each API call requires a specific HTTP method to indicate the type of operation to be performed. The client libraries will use the appropriate method for the desired operation, so the method only has to be specified when interacting with the Phaxio API at the HTTP level, such as when using curl:

curl -X DELETE https://api.phaxio.com/v2.1/faxes/123456/file \
  -u 'API_KEY:API_SECRET'

Method Simulation

Some HTTP clients don’t support all HTTP methods. In such cases, the POST method can be used, with the method for the API call passed in the _method parameter:

curl https://api.phaxio.com/v2.1/faxes/123456/file
  -F '_method=DELETE' \
  -u 'API_KEY:API_SECRET'