External Actions
Workflows are the most helpful when they can interact with other applications and systems. The following actions enable Paradym workflows to interact with external systems.
API Action
Name: general/fetch
Description: Call an external API.
Version: v1
Input
The attributes key takes the following input:
Parameter | Type | Description | Required |
---|---|---|---|
method | "GET" , "POST" , "PUT" , "DELETE" | The HTTP Method. | ✅ |
url | string | The URL to call. | ✅ |
payload | object | The data to send with your request. | ❌ |
queryParams | object | The query parameters to add to your request. The object can only contain string values | ❌ |
headers | object | The API headers to add to your request. The object can only contain string values. | ❌ |
Output
Parameter | Type | Description | Required |
---|---|---|---|
your response data | object | Optional response object from your request. | ❌ |
Usage
YAML
actions:
- id: makeApiCall
name: general/fetch@v1
attributes:
method: 'POST'
url: 'http://localhost:4000/ing/risk-analysis'
headers:
x-api-header: any-value
payload:
name: 'John'