Execute a REST API call to an external source. The REST API Call workflow task is located in the Application section of the Workflow toolbox.

Create a connection string to the destination endpoint to use the Rest API call workflow object. To do this:

  1. Open the Configure menu and navigate to the Connection Strings section.
  2. Select + to create a new connection string.
  3. Select Rest API from the dropdown in Provider.

Connection String: The connection string is in a JSON format with two primary components, the base URL and a Header. 

The base URL is the URL to the destination, and the Header is used to define the authorization.

Sample connection string using an apikey for authentication:

{
Url:"http://my_sample_url.com ",
Headers:
{
apikey: "7abEtJvCPcrR7MP"
}
}

Sample connection string using basic authentication:

{URL:"http://my_sample_url.com ",

Headers:

{Authorization: "Basic bXlzYW1wbGV1aWQ6YW5kcGFzc3dvcmQ="

}

}

  1. Create a new process in Explorer. 
  2. Drag the Rest API Call object onto the canvas; it can be found in the workflow toolbox under the Application menu toolbox under the Application menu.
  3. Highlight the Rest API call object and select the pencil icon to edit the properties. 
  4. Select the connection string created earlier in the Properties dialog box..
    The Rest API call workflow object supports these verbs:
    • Get
    • Put
    • Post
    • Delete
  5. The path determines the resource you are requesting. For example, if you use the Alteryx REST API (https://YourAlteryxSite/api/v1), you can use the path to tell the workflow job to run.  A path of /v1/workflows/{appId}/jobs/ triggers the execution of an Alteryx job outside Anaplan.