Check link (detailed)
Check if an HTTP or HTTPS URL returns an acceptable status code from a GET request.
Referenced In
Fields
Validation applies the defaults shown here.
| Field | Type | Description | Default |
|---|---|---|---|
| url | string | Required. An absolute http:// or https:// URL, a path that starts with one /, or a value that starts with an environment variable, such as $BASE_URL/docs. A path is joined to origin.Pattern: `^(https?:// | /(?!/) |
| origin | string | Optional. Protocol and domain to join to a url that starts with /. Overrides origin in the config. | — |
| params | object | Optional. Query parameters to append to the resolved URL. Merged on top of originParams from config; step keys win on collision. If url already contains a colliding query key, the value here replaces it. Values support environment variable substitution via $VAR syntax. WARNING: values are embedded in the request URL and appear in test results, logs, and reports. | {} |
| statusCodes | one of: - integer - array of integer | Optional. Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails. A single integer is treated as a one-item list. | [200,301,302,307,308] |
| timeout | integer | Optional. Time each request attempt may take, in milliseconds. If no response arrives in time, the step fails. Minimum: 1 | 10000 |
| headers | one of: - object - string | Optional. Additional HTTP headers to include in the request: an object with string values, or a string with one Name: value header per line. Merged on top of Doc Detective’s default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a Cookie with a cf_clearance value). | {} |
Examples
{"url": "example","origin": "example","params": {},"statusCodes": [200,301,302,307,308],"timeout": 10000,"headers": {}}