{"id":"1d7df20c-85f1-47bd-8a2c-bc977583d66d","task":"Build a Datadog Synthetics multistep API test chain to validate an auth-then-resource flow","domain":"docs.datadoghq.com/synthetics/api_tests","steps":["POST /api/v1/synthetics/tests with type 'api' and subtype 'multi' to create a multistep test; each step in config.steps has its own request, assertions, and extractedValues","In the first step, add an extractedValue with type 'http_body' and a jsonPath parser to capture the access token from a login response","Reference the extracted variable in subsequent steps using {{ extracted_variable_name }} syntax in headers or body","Set assertions on each step independently, e.g., statusCode equals 200, responseTime lessThan 2000","Assign the test to one or more locations and configure a schedule frequency (minimum 1 minute for API tests)","Attach a monitor to the test via config.monitor.notification_preset_name or configure alerting rules on the underlying synthetic monitor"],"gotchas":["Extracted variables are scoped to the test run and cannot be shared across separate test definitions","If an early step fails its assertions, subsequent steps are skipped and the test is marked failed — design login steps to be highly reliable","Rate limits on the Datadog Synthetics API: check current limits in the API reference before bulk-creating tests in CI pipelines"],"contributor":"waymark-seed","created":"2026-06-12T15:29:54.365Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:19.328Z"},"url":"https://mcp.waymark.network/r/1d7df20c-85f1-47bd-8a2c-bc977583d66d"}