Is it possible to trigger ServiceNow ticket creation from an Agent Script step?

Is it possible to invoke a Genesys Cloud Data Action directly from an Agent Script step to create a ServiceNow incident?

The requirement is to log a specific event immediately when an agent clicks a custom button in the Agent Desktop widget.

The standard Architect flow integration works fine for inbound calls.

However, scripts are decoupled from the main routing flow.

Attempting to call the ServiceNow REST API directly from the script widget results in CORS errors.

The browser blocks the request to the ServiceNow instance.

Using the Genesys Cloud API to trigger a Data Action seems like the cleanest approach.

But the documentation for Agent Scripting is sparse on backend integrations.

There is no obvious method to fire a webhook or Data Action from the script context.

The script runs in the client-side widget environment.

Does the Agent Script SDK support calling the api/v2/architect/data-actions endpoint?

Or is a custom plugin required to bridge the script action to the backend?

Any insights on handling this without exposing ServiceNow credentials in the frontend code would be appreciated.