List pending fax approvals
curl --request POST \
--url https://api.amplify.xyz/v1/faxes/pending-approval \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sort_by": "Newest"
}
'import requests
url = "https://api.amplify.xyz/v1/faxes/pending-approval"
payload = { "sort_by": "Newest" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sort_by: 'Newest'})
};
fetch('https://api.amplify.xyz/v1/faxes/pending-approval', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amplify.xyz/v1/faxes/pending-approval",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'sort_by' => 'Newest'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.amplify.xyz/v1/faxes/pending-approval"
payload := strings.NewReader("{\n \"sort_by\": \"Newest\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.amplify.xyz/v1/faxes/pending-approval")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sort_by\": \"Newest\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amplify.xyz/v1/faxes/pending-approval")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sort_by\": \"Newest\"\n}"
response = http.request(request)
puts response.read_body{
"status": 1,
"message": "Pending Approval Fax Rerive SuccessFully.",
"data": [
{
"job_id": "01M1PEZPK67Z4RQ5Y82JZF3BCF",
"is_read": false,
"fax_type": "outbound",
"sender": "+14084132233",
"receiver": "+14084132233",
"pages": 1,
"fax_status": "pending_approval",
"created_at": 1788534052,
"updated_at": 1788534054
}
],
"meta": {
"total": 1,
"next_cursor": "",
"previous_cursor": "",
"limit": 20
}
}Manage faxes
List pending fax approvals
Retrieve faxes waiting for approval.
POST
/
v1
/
faxes
/
pending-approval
List pending fax approvals
curl --request POST \
--url https://api.amplify.xyz/v1/faxes/pending-approval \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sort_by": "Newest"
}
'import requests
url = "https://api.amplify.xyz/v1/faxes/pending-approval"
payload = { "sort_by": "Newest" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sort_by: 'Newest'})
};
fetch('https://api.amplify.xyz/v1/faxes/pending-approval', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amplify.xyz/v1/faxes/pending-approval",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'sort_by' => 'Newest'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.amplify.xyz/v1/faxes/pending-approval"
payload := strings.NewReader("{\n \"sort_by\": \"Newest\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.amplify.xyz/v1/faxes/pending-approval")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sort_by\": \"Newest\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amplify.xyz/v1/faxes/pending-approval")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sort_by\": \"Newest\"\n}"
response = http.request(request)
puts response.read_body{
"status": 1,
"message": "Pending Approval Fax Rerive SuccessFully.",
"data": [
{
"job_id": "01M1PEZPK67Z4RQ5Y82JZF3BCF",
"is_read": false,
"fax_type": "outbound",
"sender": "+14084132233",
"receiver": "+14084132233",
"pages": 1,
"fax_status": "pending_approval",
"created_at": 1788534052,
"updated_at": 1788534054
}
],
"meta": {
"total": 1,
"next_cursor": "",
"previous_cursor": "",
"limit": 20
}
}Retrieve pending fax approvals for the authenticated account. Use
limit and cursor to page through results and sort_by to select the supported sort order.
Each pending fax includes its job_id, read state, direction, sender and receiver, page count, status, and creation and update times.
When there are no pending approvals, the API omits the data property.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
