curl --request GET \
--url https://api.mintfax.com/v1/webhooks/attempts/{attempt} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mintfax.com/v1/webhooks/attempts/{attempt}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mintfax.com/v1/webhooks/attempts/{attempt}', 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.mintfax.com/v1/webhooks/attempts/{attempt}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mintfax.com/v1/webhooks/attempts/{attempt}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mintfax.com/v1/webhooks/attempts/{attempt}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mintfax.com/v1/webhooks/attempts/{attempt}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "wha_01J9XYZQ8KH7B3R0WXAZP8VW6F",
"event_id": "<string>",
"webhook_endpoint_id": "<string>",
"attempt_number": 123,
"status_code": 123,
"succeeded_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"error_class": "<string>",
"error_message": "<string>",
"parent_attempt_id": "<string>"
}Retrieve a Webhook Attempt
curl --request GET \
--url https://api.mintfax.com/v1/webhooks/attempts/{attempt} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mintfax.com/v1/webhooks/attempts/{attempt}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mintfax.com/v1/webhooks/attempts/{attempt}', 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.mintfax.com/v1/webhooks/attempts/{attempt}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mintfax.com/v1/webhooks/attempts/{attempt}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mintfax.com/v1/webhooks/attempts/{attempt}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mintfax.com/v1/webhooks/attempts/{attempt}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "wha_01J9XYZQ8KH7B3R0WXAZP8VW6F",
"event_id": "<string>",
"webhook_endpoint_id": "<string>",
"attempt_number": 123,
"status_code": 123,
"succeeded_at": "2023-11-07T05:31:56Z",
"failed_at": "2023-11-07T05:31:56Z",
"error_class": "<string>",
"error_message": "<string>",
"parent_attempt_id": "<string>"
}Authorizations
API key as Bearer token. Use an account key (mfx_acct_...) for
/account/* endpoints, and an environment key (mfx_test_... for
sandbox, mfx_live_... for live) for /environment/*, /faxes,
/webhooks, and /events.
Path Parameters
The attempt public id
Response
WebhookAttemptResource
Webhook attempt identifier (wha_-prefixed ULID).
"wha_01J9XYZQ8KH7B3R0WXAZP8VW6F"
Event identifier this attempt delivered (evt_-prefixed ULID).
Webhook endpoint identifier that received this attempt.
Attempt number (1-indexed).
HTTP status code returned by the endpoint; null when the request never completed.
UTC timestamp when the attempt succeeded; null if it failed or is in flight.
UTC timestamp when the attempt failed terminally; null if it succeeded or is in flight.
Exception class name when delivery failed transport-level; null otherwise.
Failure description; null when the attempt succeeded.
Identifier of the prior attempt this one retried; null for the initial delivery.