Skip to content

Call an HTTP service and set reusable values

Configure an external request or create named values for later steps.

What it is

Advanced steps can call a public HTTP service or define named values. Later steps can use a response status, body, JSON fields or the values you defined.

Before you start

For HTTP, know the service's address, request method and expected request fields. The address must be public. Use the service's own documentation to determine its request requirements.

Steps

  1. Add Call another app from Advanced.
  2. Select its block.

An HTTP request configuration with a fictional public URL

In this image: 1. Choose the HTTP method. 2. Enter the destination address.

  1. Choose Method.
  2. Fill Address (URL).
  3. Enter Headers (optional) as one “Name: value” per line when needed.
  4. Fill Message with the request body for methods that use one.
  5. Add Set values when you want reusable named values.

Named values prepared for later steps

In this image: 1. Define one named value per line.

  1. Enter one “name: value” line in Values for each value.
  2. Connect the following step.
  3. Wait for Saved.

Tips

Date & time adds or subtracts minutes, hours, days, weeks or months from a date (empty means now) and gives it in the format you choose, plus date, time, weekday and ISO. Text tools cleans spaces, changes case, keeps the first line, picks the first email, phone, number or link, replaces a word or counts characters. HTTP supports GET, POST, PUT, PATCH and DELETE. A JSON object or list in the body is sent as JSON; otherwise the text is sent as the body. GET uses the URL rather than a request body. Results include status, body and parsed JSON. Follow an HTTP step with a condition on its status when you need to distinguish success from an error response. For example, Set values can contain venue: Bella Café; later fields can insert the venue value with {x}.

Common problems

Address rejected: local, private or invalid addresses cannot be called. No response: check the service and request format. HTTP error status but step completed: inspect status explicitly; receiving an HTTP response is different from its business success. Named value missing: put a colon between each name and value and connect the receiving step after Set values. HTTP calls can still be made during Try it.

Related articles