Skip to main content
All CollectionsStepsDestination Steps
HTTP Service Destination Step
HTTP Service Destination Step

An HTTP Service sends output to an HTTP endpoint and web-based application servers to send or update data from it.

Praise Magidi avatar
Written by Praise Magidi
Updated over 7 months ago

The concept of an HTTP (Web) service is an open standard (JSON, XML, SOAP, HTTP, etc.) based web application that communicates with other web applications for the purpose of exchanging data.

In practice, using a protocol such as HTTP to transfer data in machine-readable file formats such as XML and JSON is a standardized way of providing interoperability between disparate applications.

In Synatic, the HTTP Service Destination Step provides this function and generally allows the flow to send or write data to a web-based API.

Illustrated in the below image is a flow where the HTTP Service Destination step is used.

Adding the HTTP Service Destination Step

To add an HTTP Service Destination step, follow these instructions:

1. Click on the highlighted icon as shown in the below image to add an HTTP Service destination step.

2. The below page will appear. Select or search for a Destination step. Select HTTP Service as shown in the image below.


Configuring the HTTP Service destination step

The configuration for this step involves several options and settings as illustrated in the image below.

URL - Enter the URL of the HTTP Service.

HTTP Method - Select the HTTP Method to use. The two most common HTTP methods used are GET and POST. For more information on, click on the following link:

Authentication Method - A connection is required to create an Authentication Method. Click the plus (+) icon outlined in red to select and configure the HTTP Authentication type. The page below appears.

Provide a Connection Name. Click on the outlined dropdown list to select the Auth Type.

  • None - No authentication is required.

  • Basic - Requires a standard username and password.

  • O Auth2 - a protocol for distributed authorization. Generally, OAuth2 provides clients with secure delegated access to server resources on behalf of a resource owner. This Auth Type is used in the Example below.

  • O Auth1 - Access server resources on behalf of a resource owner (such as a different client or an end-user).

  • O Auth2 Client Credential - Secure access to server resources using without impersonating a user/resource owner.

  • Headers - Authorization headers.

Content Type - Content Type refers to the type of format the data has to be sent into the API. There are different MIME types. Below are the available options:

  • Set from Headers Field – Select from the Headers field that is manually set.

  • Multipart/form Data – Each value is sent as a block of data, with a user agent-defined delimiter separating each part. Used when there are 2 different types of data that is being sent to the API such as a file and text or an image and text.

  • Application/x Www form URL encoded – Keys and values are encoded in key-value tuples separated by '&', with a '=' between the key and the value.

Headers - Pass additional information with an HTTP request or response. Click the + icon to add any Headers you want to submit to the HTTP Service. Enter the headers you want to submit.

  • Name - Name of the header.

  • Value - Value of the header.

Response Encoding - Set the encoding when parsing the response data. It is set to Utf8 by default when the HTTP Service Destination step is added. Other options are JSON or Binary.

Keep Headers Checkbox - Save the HTTP response headers to the headers field in the processing object. The metadata can be used for any specific purpose.

Retry - The Retry option is used to set an automatic retry of failed HTTP calls. Select the Enabled checkbox to activate the Retry options.

  • Times - Number of retry attempts.

  • Delay - Delay, in seconds, between attempts.

Follow Redirects checkbox - Instruct the HTTP Service step to obey and follow any redirect it might encounter when selected.

Relax SSL checkbox - Instruct the HTTP Service step to accept self-signed certificates that are otherwise rejected when selected.

Gzip Response checkbox - Set the response back to be compressed using Gzip when selected.

Enable Debug checkbox - Shows debug results when selected.

Example

In this example, OAuth2 is selected as the Authentication Method.

Configure the following fields with the correct values to process successful web requests:

Before beginning the OAuth process, first, register a new app with the service. In addition, register a redirect URI to be used for redirecting users to a web server.

OAuth Provider URL* - The OAuth2 provider URL to call for authentication.

OAuth Token URL* - The OAuth2 provider URL to generate tokens from.

Client ID* - The client id issued by the provider. After registering an app, a client ID is received with an optional a client secret.

Client Secret* - The client secret issued by the provider. The client secret must be kept confidential.

Response Type* - Select the Response type that the request will respond with as either a Code or a Token. This indicates that the server expects to receive an authorization code.

Grant Type* - Select the oAuth2 Grant type to use. Authorization Code is the available option for apps running on a web server, browser-based and mobile apps.

Use Refresh as Token - Use this option if the provider does not support refresh tokens but uses long-lived tokens.

One use Refresh Token - Use this option if the provider does not support using a refresh token more than once.

No Query String - Select this option to avoid sending parameters in the query string.

Scopes - A Scope is a mechanism in OAuth 2.0 that limits an application's access to a user's account. An application can request one or more scopes, and the access token issued to the application will be limited to the scopes granted.

  • Title - The display name.

  • Value - Value of the scope as defined by the provider.

Additional QS Values - Additional Query Strings (QS) to the HTTP Service request by adding parameters. The parameters will not be submitted if the No Query String checkbox is selected.

  • Name - Query string parameter.

  • Value - the query string value.


See Also

Read about other Destination Steps.


Useful Tutorials

Revisit the Getting Started page for a refresher.

Read more about Steps here.

Did this answer your question?