Create a custom API action

Make a custom, authenticated HTTP request to the DataGrail API.

Options

Field Definition Type Required
Request Type One of two supported HTTP request methods (sometimes called verbs) in custom API calls:
  • GET - retrieves data from a web server based on your parameters. This method requests a representation of the specified resource. If a request is successful, you receive a 200 (OK) response message with the requested content.
  • POST - sends data to a web server based on your parameters (for example, uploading a file). Multiple POST requests may result in a different outcome than a single POST, so you should be cautious about unintentionally sending multiple POST requests. If a request is successful, you receive a 200 (OK) response message.
Dropdown TRUE

Input

Field Definition Type Required
Relative URL Specify the relative URL as /api/v2/{insert_remaining_URL}. You can specify query parameters in the relative URL using “?”, or specify the query parameters as an object key pair in the Query input. Example: https://api.datagrail.io/v1{{input.Request.Relative URL}} String FALSE
Query Specify any additional query parameters that should be included in object format (key value pairs). Object FALSE
Headers Specify any headers required in addition to authorization or content-type (these are already handled by this connector). Object FALSE
Body Specify a request body in JSON format. Only available for POST requests. Object FALSE

Output

Field Definition Type
Status Code The result of your HTTP request. See HTTP status codes. Number
Headers A detailed context for the status code, unrelated to the output body. Response headers are dependent on your selected HTTP request option. Note that not all headers are response headers. This will be usually similar to {"Content-type":"application/json"}. Object
Body The data returned from your selected HTTP request (for example, the data from a GET request). Object

Related topics

DataGrail connector

About the elements of Okta Workflows