Skip to main content
All CollectionsHow-tosHTTP Request Action Examples
HTTP request action example - Request with authorization
HTTP request action example - Request with authorization

This article provides an example of how to build a simple API request that utilizes authorization via the HTTP request action.

Angela Ruhstorfer avatar
Written by Angela Ruhstorfer
Updated yesterday

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.

  1. Navigate to your Credentials page.

  2. Click + New > Simple Weather API.

  3. Once the credential is created, navigate to your storyboard.

  4. In the storyboard, pull in an HTTP Request Action.

  5. Name the action something relevant, like “Get Dublin Weather.”

  6. Delete the Payload section of the action.

  7. For the URL of the action, type https://v1.simple-weather-api.com/api/public/weather?location=Dublin&key=. After the key= value, add a value pill via the + icon > Value option. Insert the following into the pill: CREDENTIAL.simple_weather_api.

  8. Change the Method of the action to GET.

  9. Click Run to run the action.

  10. See the results in the action’s Events panel!

Did this answer your question?