Skip to main content
Solved

How can I see the fax send status beside on status from logs as queued? (I am using free trial and sandbox as of now)

  • January 12, 2023
  • 1 reply
  • 187 views

I am applying the send fax on javascript api and I get already the status of 'Queued'. So, I am wondering how can I see the status like if it is already sent. Do you guys have an example to easily understand where to get the status? Thank you so much for answering everyone :)

Best answer by PhongVu

After sending a fax, you can detect the message status and the message id from the response. The status is normally in "Queued" as you already saw. You can use the message id and call this API to detect the latest status. E.g.

async function read_message(messageId){
    var resp = await platform.get('/restapi/v1.0/account/~/extension/~/message-store/' + messageId)
    var jsonObj = await resp.json()
    console.log(jsonObj)
}

1 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • Answer
  • January 12, 2023

After sending a fax, you can detect the message status and the message id from the response. The status is normally in "Queued" as you already saw. You can use the message id and call this API to detect the latest status. E.g.

async function read_message(messageId){
    var resp = await platform.get('/restapi/v1.0/account/~/extension/~/message-store/' + messageId)
    var jsonObj = await resp.json()
    console.log(jsonObj)
}