Workflow HTTP Operation 401 JWT Required

Hi All,

I’ve tried as well. All works with Postman

curl command:

curl --location --request POST 'https://<tenant>.api.identitynow.com/beta/sources/<SOURCEID>/load-accounts' \
--header 'Authorization: Bearer <REDACTED>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "disableOptimization": true
  }'

However, my test workflow does not:

{
	"name": "TEST",
	"description": "",
	"modified": "2024-05-24T17:04:39.869109823Z",
	"modifiedBy": {
		"type": "IDENTITY",
		"id": "<REDACTED>",
		"name": "<REDACTED>"
	},
	"definition": {
		"start": "HTTP Request",
		"steps": {
			"End Step - Success": {
				"displayName": "",
				"type": "success"
			},
			"HTTP Request": {
				"actionId": "sp:http",
				"attributes": {
					"authenticationType": "OAuth",
					"jsonRequestBody": {
						"disableOptimization": true
					},
					"method": "post",
					"oAuthClientId": "<REDACTED>",
					"oAuthClientSecret": "$.secrets.<REDACTED>",
					"oAuthCredentialLocation": "oAuthInHeader",
					"oAuthTokenUrl": "https://<REDACTED>.api.identitynow.com/oauth/token",
					"requestContentType": "json",
					"requestHeaders": {
						"Content-Type": "application/json"
					},
					"url": "https://<REDACTED>.api.identitynow.com/beta/sources/86cb9b1cfb9842089cd182a20df2544e/load-accounts"
				},
				"description": null,
				"displayName": "Unoptimized Aggregation",
				"nextStep": "End Step - Success",
				"type": "action",
				"versionNumber": 2
			}
		}
	},
	"creator": {
		"type": "IDENTITY",
		"id": "<REDACTED>",
		"name": "<REDACTED>"
	},
	"trigger": {
		"type": "SCHEDULED",
		"attributes": {
			"cronString": "30 */2 * * *",
			"frequency": "cronSchedule",
			"timeZone": "America/Chicago"
		}
	}
}

In case it helps, Dominick and I are in Frankfurt eu-central-1

It would be very helpful if there were a way for us to get a meaningful error message or view the request response