Overview
Authentication (also sometimes referred to as just Auth) is required when the service you’re calling via an HTTP request action needs to know that you are allowed to access its data.
Tines references
Before getting started, we recommend familiarizing yourself with the surrounding functionality this article covers:
Make it happen
Scenario
Using the Simple Weather API (which requires an API token), ask for weather data for a specific city by providing the city's name or postal code.
Navigate to your Credentials page.
Click + New > Simple Weather API.
Once the credential is created, navigate to your storyboard.
In the storyboard, pull in an HTTP Request Action.
Name the action something relevant, like “Get Dublin Weather.”
Delete the Payload section of the action.
For the URL of the action, type
https://v1.simple-weather-api.com/api/public/weather?location=Dublin&key=
. After thekey=
value, add a value pill via the + icon > Value option. Insert the following into the pill:CREDENTIAL.simple_weather_api
.Change the Method of the action to
GET
.Click Run to run the action.
See the results in the action’s Events panel!