Community
How can I call onifyElevatedApiRequest by javascript?
4 months ago by Dennis
I am trying to replicate this call with the Connector to onifyElevatedApiRequest in javascript?
I assumed this was gonna work:
const forfragan = {
url: '/my/config/settings',
query: { tag: 'azure' },
role: 'flow'
}
try {
let result = await environment.services.onifyElevatedApiRequest(forfragan);
but I get "Request failed: Error: Missing authentication (401).
Also, what is "role" - it is not in the list of arguments on https://support.onify.co/docs/workflows-2
Maybe the Connector automatically includes some header + authorization that is needed to be added manually in js?