restCall
The restCall task is a powerful and flexible task for obtaining and posting data to and from external API data sources. If a specialized adapter is not available, restCall is typically the first task to consider for interacting with an external data source.
Potential use case
You are developing an employee on-boarding automation that creates user accounts in external systems via API. One restCall task retrieves the list of users from an API-accessible data store. Another restCall task creates user accounts via API calls to the external systems.
Properties
Example 1 — GET request
uriis statically set tohttps://deckofcardsapi.com/api/deck/new/shuffle/?verbisGETuser,password,headers, andbodyare not required by this APIresponseHeadersistrue

The outgoing response contains deck information. Because responseHeaders is true, the response also includes header data such as content-type.
Example 2 — POST request
uriishttps://petstore.swagger.io/v2/petverbisPOSTuser,password, andheadersare not requiredbodyis required by this API:
responseHeadersisfalse

The response confirms the pet record was created. The exact content varies by API.
Example 3 — GET request with headers
uriishttps://api.sunrise-sunset.org/json?lat=33.791570&lng=-84.389510&date=todayverbisGETuser,password, andbodyare not requiredheadersis{"Content-Type": "application/json; charset=utf-8"}responseHeadersistrue

The response contains sunrise and sunset time information for the Itential home office in Atlanta, GA: