401 Error on my Custom App

I am building a custom app that connects with go high level to use the get transcript End Point

Here is how i have the app setup:

Base:

{
“baseUrl”: “https://services.leadconnectorhq.com”,

"headers": {                                        
	"Authorization": "Bearer {{connection.apiKey}}",
	"Version": "2021-04-15"  
},

"response": {
	"error": {                                        // Error handling
		"message": "[{{statusCode}}] {{body.error}}"  // On error, returns error message as "[statusCode] error text".
	}
},

"log": {
	"sanitize": [                                   
		"request.headers.authorization" 
	]
}

}

Connections:

Communications:

{
“authorize”: {
“url”: “https://marketplace.leadconnectorhq.com/oauth/chooselocation”,
“qs”: {
“scope”: “conversations/message.readonly locations.readonly”,
“client_id”: “MY CLIENT ID”,
“redirect_uri”: “https://www.make.com/oauth/cb/app”,
“response_type”: “code”
},

	"response": {
		"temp": {
			"code": "{{query.code}}"
		}
	}
},

"token": {
	"url": "https://services.leadconnectorhq.com/oauth/token",
	"method": "POST",
	"body": {
		"code": "{{temp.code}}",                                       
		"client_id": "MY CLIENT ID",
		"grant_type": "authorization_code",                                // Sets the "grant_type" to "authorization_code".
		"redirect_uri": "https://www.make.com/oauth/cb/app",
		"client_secret": "MY CLIENT SECRET"
	},
	"type": "urlencoded",

	// Token response handling
	"response": {
		"data": {
			"accessToken": "{{body.access_token}}"     // Stores the accessToken.
		}
	},

	"log": {
		"sanitize": [                                  // Excludes sensitive parameters from logs.
			"request.body.code",
			"request.body.client_secret",
			"response.body.access_token"
		]
	}
}

}

Module:

Type: Action

Communication:

{
“url”: “/conversations/locations/{{parameters.locationid}}/messages/{{parameters.messageid}}/transcription”,
“method”: “GET”,
“headers”: {“Authorization”: “Bearer {{connection.apikey}}”,
“Version”: “2021-04-15”},

"response": {
	"output": "test"
}

}

Mappable Parameters:

[
{
“name”: “messageid”, // Makes value accesible via “{{parameters.id}}”.
“type”: “text”, // Sends the value as unsigned integer.
“label”: “Message ID”, // Sets the user friendly label visible in the module.
“required”: true // Sets the parameter as mandatory.
},

{
	"name": "locationid",
	"type": "text",
	"label": "Location ID",
	"required": true
}

]

The error i get is attached in this topic, not sure where the problem is coming from

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