HTTP Request - GET

Im writing a basic workflow to get my feet wet and running into an issue retrieving the expected json result from /campaigns?filters=status eq “ACTIVE”
Input of the Http Request
image

And some super weird SAML output

Any idea what im doing wrong? Works fine from postman

{
	"name": "PrototypeCampaignNotifications",
	"description": "",
	"modified": "2023-11-21T19:07:31.287489287Z",
	"modifiedBy": {
		"type": "IDENTITY",
		"id": "xxxx",
		"name": "xxxxx"
	},
	"definition": {
		"start": "HTTP Request",
		"steps": {
			"End Step — Success": {
				"type": "success"
			},
			"HTTP Request": {
				"actionId": "sp:http",
				"attributes": {
					"authenticationType": "OAuth",
					"jsonRequestBody": {},
					"method": "get",
					"oAuthClientId": "xxxx",
					"oAuthClientSecret": "$.secrets.xxxx",
					"oAuthCredentialLocation": "oAuthInHeader",
					"oAuthTokenUrl": "https://xxxx.api.identitynow.com/oauth/token/",
					"requestContentType": "json",
					"requestHeaders": {
						"Accept": "application/json"
					},
					"url": "https://xxxx.identitynow.com/v3/campaigns",
					"urlParams": {
						"filters": "status eq \"ACTIVE\""
					}
				},
				"nextStep": "HTTP Request 1",
				"type": "action",
				"versionNumber": 3
			},
			"HTTP Request 1": {
				"actionId": "sp:http",
				"attributes": {
					"authenticationType": null,
					"jsonRequestBody.$": "$.hTTPRequest.body",
					"method": "post",
					"requestContentType": "json",
					"url": "https://webhook.site/xxxxx"
				},
				"description": "WebHook Debug",
				"nextStep": "End Step — Success",
				"type": "action",
				"versionNumber": 2
			}
		}
	},
	"creator": {
		"type": "IDENTITY",
		"id": "xxxxxxxxxxxxxx",
		"name": "xxxxxxxx"
	},
	"trigger": {
		"type": "SCHEDULED",
		"attributes": {
			"cronString": "0 4 * * 0",
			"frequency": "weekly",
			"timeZone": "America/New_York",
			"weeklyDays": [
				"Sunday"
			],
			"weeklyTimes": [
				"1969-12-31T09:00:00.000Z"
			]
		}
	}
}

Have you added the appropriate scope to the PAT or API key you’re using in your workflow?

yeah, im getting 200 status, just odd response payloads.

The issue is in the Request URL. You need to use xxx.api.identitynow.com instead of xxx.identitynow.com. The api is important so that you target the API endpoint and not the IDN UI.

Doh - how did I miss that. Thanks Colin.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.