Hi Kellyn,
I'm afraid I don't have faxing setup in my org, so I can't test to be sure, but I believe that /api/v2/conversations/faxes requires a user context in order to run. It works in API Explorer because you are connected with your Genesys Cloud user credentials. It doesn't work with the Data Action because that is running using a Client Credentials OAuth client context. We have a few "agentless" API (email, SMS), but not for fax.
If you have a 3rd party fax system, then it might support email-to-fax and with that you can use the agentless email API to send that email to that system and it would then send out that fax.
------------------------------
Jim Crespino
Senior Director, Developer Evangelism
Genesys
https://developer.genesys.com------------------------------
Original Message:
Sent: 10-30-2024 15:21
From: Kellyn DuBois
Subject: Send fax from Architect Flow
I have a requirement to send a fax to a customer from an inbound flow. The customer wants to load specific forms to the document section and give the caller the option to select a form and then have it faxed to them. I am using the /api/v2/conversations/faxes.
In the API explorer, I can put in a phone number and document ID and it sends the fax. The return in API Explorer includes an ID (not sure what i can do with this id, but it implies that the call was successful). My user gets a fax confirmation email.
I then created a data action. It returns green and an id in the output contracts. However, it does not send a fax. An outbound interaction is created, but its only 2 seconds long and again, no fax is received. I put my data action into an inbound flow and again, I receive an id when complete, but fax never sends.
I opened a ticket with Genesys support and was told this functionality is available, but my data action must not be working correctly and to pose my question to the forum.
Because my data action returns green with the id in the output contract, it appears my data action is functioning correctly, but i would expect it to send the fax. what is wrong with my data action?
#API/Integrations
------------------------------
Kellyn DuBois
Lead Software Developer
------------------------------