This page provides a reference for New Relic Synthetics actions available in the workflow automation actions catalog. These actions let you trigger on-demand test runs for existing monitors, manage maintenance window downtimes, and read monitor details directly from a workflow definition.
Prerequisites
Before using New Relic Synthetics actions in workflow automation, ensure you have:
- A New Relic account with appropriate permissions to access Synthetics monitors.
- The entity GUID of each monitor you want to target. You can find a monitor's GUID in New Relic under Synthetics > [monitor name] > Settings.
Start an automated test
The action identifier is newrelic.synthetics.startAutomatedTest.
Triggers an on-demand Synthetics automated test run for one or more monitors and returns a batchId to poll for results using newrelic.synthetics.getAutomatedTestResult.
Important
Only scripted API, scripted browser, step, and simple browser monitor types are supported. SIMPLE (ping) monitors are rejected by the API with an incompatible monitor type error.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
tests | List | Required. List of monitors to test. Each entry requires a |
|
tests[].monitorGuid | String | Required. Entity GUID of the monitor to run. Must be a scripted or browser-based monitor type. |
|
tests[].config.isBlocking | Boolean | Optional. If |
|
tests[].config.overrides.location | String | Optional. Run the test from this location instead of the monitor's configured locations. |
|
tests[].config.overrides.startingUrl | String | Optional. Override the URL the monitor starts from — for example, to point a production monitor at a staging environment for this run. |
|
tests[].config.overrides.domain | List | Optional. Redirect requests from one domain to another for this run only. Each entry requires |
|
tests[].config.overrides.secureCredential | List | Optional. Swap which stored secure credential a script's |
|
config | Map | Optional. Batch-level metadata attached to the test run. All fields are descriptive only and do not affect how the test runs. Supported fields: |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Example |
|---|---|---|
| Boolean |
|
| String | Populated only if the call fails at the HTTP/transport level. |
| Object | Pass the |
Workflow example |
|---|
|
Get automated test result
The action identifier is newrelic.synthetics.getAutomatedTestResult.
Fetches the status and per-monitor results of a Synthetics automated test batch by its batchId. Polling immediately after startAutomatedTest may return a transient "No automated test results found" error — add a short wait step before polling.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
accountId | Integer | Required. New Relic account ID. |
|
batchId | String | Required. The batch ID returned by |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Example |
|---|---|---|
| Boolean |
|
| String | Populated only if the call fails at the HTTP/transport level. |
| Object |
|
Workflow example |
|---|
|
Create a monitor downtime
The action identifier is newrelic.synthetics.createMonitorDowntime.
Schedules a one-time Synthetics monitor downtime (maintenance window) for one or more specific monitors. The API echoes back a resolved timezone label (such as Pacific Standard Time) rather than the submitted IANA name.
Important
monitorGuids is nullable in the GraphQL schema but required in practice — omitting it throws a server error. There is no account-wide downtime mode; downtimes always target specific monitors.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
accountId | Integer | Required. New Relic account ID. |
|
name | String | Required. Display name for the downtime. |
|
startTime | String | Required. Start time as a NaiveDateTime (no timezone offset), interpreted using the |
|
endTime | String | Required. End time as a NaiveDateTime (no timezone offset), interpreted using the |
|
timezone | String | Required. IANA timezone name used to interpret |
|
monitorGuids | List | Required. Entity GUIDs of the monitors to silence during the downtime. Must include at least one GUID. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Example |
|---|---|---|
| Boolean |
|
| String | Populated only if the call fails at the HTTP/transport level. |
| Object | |
Workflow example |
|---|
|
Edit a monitor downtime
The action identifier is newrelic.synthetics.editMonitorDowntime.
Edits an existing Synthetics monitor downtime identified by its entity GUID.
Important
monitorGuids is required on every edit call. The API does not preserve the existing list when this field is omitted — it clears it to empty instead. Always pass the full desired set of monitor GUIDs.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
guid | String | Required. Entity GUID of the downtime to edit. |
|
monitorGuids | List | Required. Full set of monitor entity GUIDs the downtime should apply to. The API clears this list to empty if omitted rather than preserving the existing value. |
|
startTime | String | Required. Start time as a NaiveDateTime (no timezone offset), interpreted using the |
|
endTime | String | Required. End time as a NaiveDateTime (no timezone offset), interpreted using the |
|
timezone | String | Required. IANA timezone name used to interpret |
|
name | String | Optional. New display name for the downtime. Omit to leave unchanged. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Example |
|---|---|---|
| Boolean |
|
| String | Populated only if the call fails at the HTTP/transport level. |
| Object | |
Workflow example |
|---|
|
Delete a monitor downtime
The action identifier is newrelic.synthetics.deleteMonitorDowntime.
Deletes a Synthetics monitor downtime identified by its entity GUID.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
guid | String | Required. Entity GUID of the downtime to delete. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Example |
|---|---|---|
| Boolean |
|
| String | Populated only if the call fails at the HTTP/transport level. |
| Object | |
Workflow example |
|---|
|
Get a monitor
The action identifier is newrelic.synthetics.getMonitor.
Fetches the full details of a Synthetics monitor by its entity GUID, including current status, load time percentiles, and monitor configuration.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
guid | String | Required. Entity GUID of the monitor to fetch. |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Example |
|---|---|---|
| Boolean |
|
| String | Populated only if the call fails at the HTTP/transport level. |
| Object | |
Workflow example |
|---|
|
List monitors
The action identifier is newrelic.synthetics.listMonitors.
Searches Synthetics monitors for an account with optional name and reporting-status filters, and cursor-based pagination.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
accountId | Integer | Required. New Relic account ID to search for monitors in. |
|
name | String | Optional. Case-insensitive contains match against the monitor name. |
|
reporting | Boolean | Optional. Filter to monitors that are ( |
|
cursor | String | Optional. Pagination cursor from a previous call's |
|
selectors | List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes all output fields returned by this action.
Output | Type | Example |
|---|---|---|
| Boolean |
|
| String | Populated only if the call fails at the HTTP/transport level. |
| Object |
|
Workflow example |
|---|
|