Struggling with custom apps

I am trying to build a custom app for a program (endpoint) I deployed in Azure and that works perfectly on Postman

I did below setting but when ever I try connect, I am hit with " Status Code Error: 405".

I think Make needs to make a detailed video on the process, a new user but struggled to find any good video or source on the topic.

This is basically an endpoint URL, with an authorization header (API key) and a post method, in which I send a json type body with text that includes text and a json payload and the API will remove extra text (usually from AI) and return only the json payload as a response

cURL would look something like below for reference:

curl -X POST https://<your-app-name>.azurewebsites.net:port/jsonclean \
-H "Authorization: Bearer <API key>" \
-d '{"text": "your json string"}'

Base:

{
	// Default request configuration
	"type": "text",
	"baseUrl": "https://<your-app-name>.azurewebsites.net", // Default base URL for all modules and RPCs.
	"headers": { // Default HTTP headers for all modules and RPCs.
		"Authorization": "Bearer {{connection.apiKey}}" // Authorization by API key, which user will provide in the connection as parameter.
	},

	"log": {
		"sanitize": [ // Excludes sensitive parameters from logs.
			"request.headers.authorization" // Omit HTTP header "Authorization".
		]
	}
}

Connection-Communication:

{
	// Request
	"url": "https://<your-app-name>.azurewebsites.net/jsonclean", // Absolute URL to the API endpoint which validates credentials
	"headers": { // Additional HTTP headers
		"Authorization": "Bearer {{parameters.apiKey}}" // Authorizes user by API key, provided by user during the connection creation.
	},
	"body": "text",

	"log": {
		"sanitize": [ // Excludes sensitive parameters from logs.
			"request.headers.authorization" // Omit HTTP header "Authorization".
		]
	}
}

Connection-Parameters:

[
    {
        "name": "apiKey",
        "type": "text",
        "label": "API Key",
        "required": true
    }
]

Moduel/ Action - Communication:

{
	// Request to API endpoint with parameter "id" defined in Mappable parameters.
	"url": "/jsonclean", // Relative to base URL
	"method": "POST", // Additional HTTP headers
	"qs": { }, // Query string
	"body": { },

	// Response handling
	"response": {
		"output": "{{body}}" // Return JSON response body as an output bundle.
	}
}

All other are empty

Hi @Samer_H ,

Welcome to Make Community!

We have seen your screenshots, and based on our observations, if you are using an API key connection, you can remove everything from the “Connection-Communication” section. Simply insert [] or {} inside the communication.

Please make this adjustment and try to establish the connection.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
| Book Live Implementation
Visit us here
Youtube Channel

1 Like

This topic was automatically closed after 31 days. New replies are no longer allowed.