Skip to main content

checkLink

Check if a URL returns an acceptable status code from a GET request.

Fields

FieldTypeDescriptionDefault
idstringOptional. ID of the step.Generated UUID
descriptionstringOptional. Description of the step.
actionstringRequired. Action to perform.
urlstringRequired. URL to check.
originstringOptional. Protocol and domain to navigate to. Prepended to url.
statusCodesarray of integersOptional. Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails.[200,201,202]

Examples

{
"action": "checkLink",
"url": "https://www.google.com"
}
{
"action": "checkLink",
"url": "https://www.google.com",
"statusCodes": [
200
]
}
{
"action": "checkLink",
"url": "/search",
"origin": "www.google.com",
"statusCodes": [
200
]
}