preview
We're still working on this feature, but we'd love for you to try it out!
This feature is currently provided as part of a preview program pursuant to our pre-release policies.
This page provides a comprehensive reference for HTTP actions available in the workflow automation actions catalog. These actions enable you to make HTTP requests (GET, POST, PUT, DELETE) to external APIs and services as part of your workflow definitions.
Prerequisites
Before using HTTP actions in workflow automation, ensure you have:
- Target API endpoint URLs.
- Any required authentication credentials (API keys, tokens, etc.).
- Understanding of the API request/response formats.
팁
HTTP actions support secret syntax for any header value, allowing you to securely pass sensitive data like API keys. See secrets management for more information.
HTTP actions
Perform an HTTP GET call to retrieve data from an API endpoint.
팁
This supports secret syntax for any header value.
Input Field | Optionality | Type | Description |
|---|---|---|---|
url | Required | String | The target URL for the request. The scheme must be included: |
urlParams | Optional | Map | The query parameters to append to the URL. Takes a stringified JSON object. |
headers | Optional | Map | The headers to add to the request. Takes a stringified JSON object. |
selectors | Optional | List | The selectors to get only the specified parameters as output. |
Output Field | Type | Description |
|---|---|---|
responseBody | String | The body of the response. |
statusCode | Integer | The HTTP status code of the response. |
Workflow example |
|---|
Example inputs: Example outputs: |
Performs an HTTP POST call to send data to an API endpoint.
팁
This supports secret syntax for any header value.
Input Field | Optionality | Type | Description |
|---|---|---|---|
url | Required | String | The target URL for the request. The scheme must be included: |
urlParams | Optional | Map | The query parameters to append to the URL. Takes a stringified JSON object. |
headers | Optional | Map | The headers to add to the request. Takes a stringified JSON object. |
body | Optional | String | The request body. |
selectors | Optional | List | The selectors to get only the specified parameters as output. |
Output Field | Type | Description |
|---|---|---|
responseBody | String | The body of the response. |
statusCode | Integer | The HTTP status code of the response. |
Workflow example |
|---|
Example inputs: Example outputs: |
Performs an HTTP PUT request to update data at an API endpoint.
팁
If you need to pass sensitive data to an input, for example an Api-Key header, you can use values stored via the secretsManagementCreateSecret NerdGraph mutation.
Example:
{ "headers": "{\"Api-Key\": \"${{ :secrets:NR_API_KEY }}\"}"}Input Field | Optionality | Type | Description |
|---|---|---|---|
url | Required | String | The target URL for the request. The URL must include the scheme (for example, https:// or http://). Example: |
urlParams | Optional | Map | The query parameters to append to the URL. Takes a stringified JSON object. |
headers | Optional | Map | The headers to add to the request. Takes a stringified JSON object. |
body | Optional | String | The request body. |
selectors | Optional | List | The selectors to get only the specified parameters as output. |
Output Field | Type | Description |
|---|---|---|
responseBody | String | The body of the response. |
statusCode | Integer | The HTTP status code of the response. |
Workflow example |
|---|
Example inputs: Example outputs: |
Performs an HTTP DELETE request to remove data at an API endpoint.
팁
If you need to pass sensitive data to an input, for example an Api-Key header, you can use values stored via the secretsManagementCreateSecret NerdGraph mutation.
Example:
{ "headers": "{\"Api-Key\": \"${{ :secrets:NR_API_KEY }}\"}"}Input Field | Optionality | Type | Description |
|---|---|---|---|
url | Required | String | The target URL for the request. The URL must include the scheme (for example, https:// or http://). Example: |
urlParams | Optional | Map | The query parameters to append to the URL. Takes a stringified JSON object. |
headers | Optional | Map | The headers to add to the request. Takes a stringified JSON object. |
selectors | Optional | List | The selectors to get only the specified parameters as output. |
Output Field | Type | Description |
|---|---|---|
responseBody | String | The body of the response. |
statusCode | Integer | The HTTP status code of the response. |
Workflow example |
|---|
Example inputs: Example outputs: |