N25 | 2018-06-01 07:36:22 UTC | #1
We have been thinking for some time of a possibility in doing API calls from one Purecloud org to another, say getting a list of skills from the called org and using that data on the caller org's IVR. Technically it could be possible but so far we've been stumped on how to implement it, particularly on the authorization and request URL side of the configuration.
Is this even possible, though? Thanks in advance!
tim.smith | 2018-06-01 12:46:46 UTC | #2
Org authorization allows users from one org to log in to another org. See the documentation for more information: About authorized organizations.
N25 | 2018-06-04 03:38:41 UTC | #3
Thanks Tim for the information, however how would you use that org authorization method in a data action? Sorry, I may not be clear on my question as we were thinking about doing those org to org API calls through a data action and not just from a user.
tim.smith | 2018-06-04 13:19:55 UTC | #4
N25, post:3, topic:2939
how would you use that org authorization method in a data action?
You wouldn't. Authorized orgs are only for users, and a Data Action cannot authenticate as a user.
If you need to use Data Actions, you'll need to generate client credentials in each org and then use the appropriate set of credentials to access the org you want when you make API requests. Depending on exactly what you're doing, this may be better suited to building a middleware web service to handle all of the credentials so that the data action calls your service and then your service calls the PureCloud APIs.
N25 | 2018-06-05 00:23:53 UTC | #5
Thanks Tim, we were hoping that we could all do these just through Purecloud but I would have to agree that a middleware would be a more elegant solution.
system | 2018-07-06 00:23:55 UTC | #6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 2939