ServiceNow REST API 403 on GC Data Action with JWT

Is it possible to pass a dynamic JWT from Genesys Cloud Data Actions to ServiceNow without hitting a 403 Forbidden error on the /api/now/table/incident endpoint? The integration works locally via Postman but fails in production when triggered by the digital channel webhook.

{
 "short_description": "{{conv.shortDescription}}",
 "caller_id": "{{conv.customer.id}}"
}

According to the docs, they say the JWT token must be refreshed dynamically within the Data Action script because static tokens expire too quickly for high-volume integrations.

const token = await getFreshToken();
headers['Authorization'] = `Bearer ${token}`;

This approach prevents the 403 error caused by token expiration during concurrent loads.

The root of the issue is that JWT generation requires server-side logic, which standard Architect flows cannot execute directly. You must route the request through a middleware service to handle the token refresh before calling ServiceNow.