Connections
When building the Connections component, you will set up the form that appears when the user clicks Create a connection in a module.
You will define the parameters the user has to input and how these are handled by the apps engine to verify the authentication parameters.
The Connections component sets up the details needed to authenticate with the API and ensures everything works when the user enters their credentials in the scenario editor.
It has three main jobs:
Getting any relevant information from the user that adds the connection (credentials, API key, etc.)
Processing the authentication
Checking if the authentication works by making a test API call
You set this up in the Communication tab, while the Parameters tab holds the information the user needs to provide.
The code in the Communication tab is divided into three sections:
The code in the Parameters tab contains only one parameter: apiKey
. This is the information the user has to provide in the scenario. Note that the parameter is used in the Communication tab using the notation {{parameters.name}}
.
Set up connections for your Geocodify custom app
To set up the connections for your custom app:
In the Connections component, click Create Connection.

Fill in the details of your connection.
Label: Geocodify API key
Type: API Key

Click Save.
Select the Parameters tab and remove the default parameter that is present.
Copy and paste the following code:
[
{
"name": "apiKey",
"label": "API Key",
"type": "password",
"help": "Enter the API Key provided by Geocodify. For details, see the [Geocodify account documentation](https://geocodify.com/account).",
"required": true,
"editable": true
}
]
name
Required. Internal name of the parameter. Use it when you want to retrieve the parameter
label
Parameter name as displayed in the module.
type
Required. Data type of the parameter.
help
Instructions for the user displayed in the module setup. Supports Markdown for text formatting.
required
Specifies if the parameter is required.
editable
(Only for the connection) Specifies if the user can edit and modify the connection from the Connections page in Make.
Click Save changes.
In the Communication tab, remove the code present.
Copy and paste the following code:
{
// Request
"url": "https://api.geocodify.com/v2/geocode", // Absolute URL to the API endpoint which validates credentials
"qs": { // Query parameters
"api_key": "{{parameters.apiKey}}" // Authorizes user by api key, provided by user during the connection creation.
},
"response": {
"error": { // Error handling
"message": "[{body.meta.code}}] {body.meta.error_detail}}" // On error, returns error details
}
},
"log": {
"sanitize": [ // Excludes sensitive parameters from logs.
"request.qs.api_key" ] // Omit query string apy_key
}
}
"url": "https://api.geocodify.com/v2/geocode",
"qs": {
"api_key": "{{parameters.apiKey}}"
},
Request that the apps engine makes to validate the credentials.
url: Absolute URL of the endpoint that is used for validation.
qs: Query string.
api_key: Key of the qs parameter as specified by the API docs. This means that it will use the apiKey that the user provides.
"response": {
"error": {
"message": "[{body.meta.code}}] {body.meta.error_detail}}"
}
},
Instructions on how to display any error: [error code] error message.
This information is typically present in the API docs. Since it isn’t available in this case, you need to retrieve it manually.
Send a request with incorrect credentials in Postman, then check the response body to identify where the error code and message appear.
If available, it's good practice to include the status code in the error response.
"log": {
"sanitize": [
"request.qs.api_key" ]
}
Indicates to omit the api_key parameter present in the query string of the request from the log.
Click Save changes.
Continue to set up the Base.
Last updated