Using web services Data Actions integration (PureCloud service)

Hi, I'm trying to use these custom actions to be called by Architect by means of a Call Data Action every time a given incoming email interaction hits a given IVR profile/flow.

I was able to make a couple of actions, the first one for retrieving a PureCloud access token (client credentials auth) and the second one to add a contact to a Dialer contact list. They work well separately, however for the second action I'm hard-coding the access token in the action configuration.
So I'm wondering if there's a way from Architect to store the access token retrieved with the first action in a "global variable" and keep on using that token for the second action until its expiration, once the token expires I invoke the first action to retrieve a new token again. I'm asking because I'd think it's not good to get a new token every time this whole process is triggered in Architect by an incoming interaction or maybe this is not the best approach for what I'm trying to do.

Thanks,
Henry

Unfortunately, there's no way around this currently without using an intermediary web service to cache and manage the auth token. You are limited to 50 tokens per oauth client, so your IVR would max out at 50 concurrent calls that are making API requests. Beyond 50 concurrent, older auth tokens will be expired and those API requests will fail.

This is a known use case that is being considered for future enhancements.

Thanks Tim for the information, I'll try to find a way to do it based on what you suggested or try another approach.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.