# HTTP Request - GET

**URL:** <https://developer.sailpoint.com/discuss/t/http-request-get/21405>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, sailpoint-identity-security\
**Created:** [November 21, 2023, 7:42pm UTC](https://developer.sailpoint.com/discuss/t/http-request-get/21405 "2023-11-21T19:42:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![questjj](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/questjj/32/25216_2.png) [@questjj](https://developer.sailpoint.com/discuss/u/questjj)\
**Post date:** [November 21, 2023, 7:42pm UTC](https://developer.sailpoint.com/discuss/t/http-request-get/21405/1 "2023-11-21T19:42:23Z")

</div>

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](https://global.discourse-cdn.com/sailpoint/original/2X/5/564d768a2e22afaf1020719165c9adca00c522c3.png)

And some super weird SAML output

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/2/2fc21aaac501636e2e25359063a3a387bda3ab9d.png)

Any idea what im doing wrong? Works fine from postman

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/4/428981d663608d144f734ca3511952db332aad37.png)

```auto
{
	"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"
			]
		}
	}
}

```

---

<div class="post-metadata">

**Author:** ![briane\_bullock](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@briane\_bullock](https://developer.sailpoint.com/discuss/u/briane_bullock)\
**Post date:** [November 27, 2023, 4:52am UTC](https://developer.sailpoint.com/discuss/t/http-request-get/21405/2 "2023-11-27T04:52:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![questjj](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/questjj/32/25216_2.png) [@questjj](https://developer.sailpoint.com/discuss/u/questjj)\
**Post date:** [November 29, 2023, 12:30am UTC](https://developer.sailpoint.com/discuss/t/http-request-get/21405/3 "2023-11-29T00:30:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [December 14, 2023, 8:37pm UTC](https://developer.sailpoint.com/discuss/t/http-request-get/21405/4 "2023-12-14T20:37:39Z")

</div>

> [@questjj](#):
>
> `"url": "https://xxxx.identitynow.com/v3/campaigns",`

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.

---

<div class="post-metadata">

**Author:** ![questjj](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/questjj/32/25216_2.png) [@questjj](https://developer.sailpoint.com/discuss/u/questjj)\
**Post date:** [December 27, 2023, 8:55pm UTC](https://developer.sailpoint.com/discuss/t/http-request-get/21405/5 "2023-12-27T20:55:08Z")

</div>

Doh - how did I miss that. Thanks Colin.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [February 25, 2024, 8:55pm UTC](https://developer.sailpoint.com/discuss/t/http-request-get/21405/6 "2024-02-25T20:55:20Z")

</div>

Closed on February 25, 2024, 8:55pm UTC

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