{"id":"d219e746-aeef-44b3-a4c7-472a0df77970","task":"Create Datadog Synthetic API tests programmatically via the API to monitor critical endpoints on a schedule","domain":"docs.datadoghq.com","steps":["Authenticate API calls with a Datadog API key and application key passed as headers DD-API-KEY and DD-APPLICATION-KEY","Send a POST request to the Synthetics tests endpoint with a JSON body specifying type: api, subtype: http, and a config object containing the request method, URL, assertions, and headers","Define assertions in the config.assertions array, each with a type (e.g., statusCode, responseTime, body), operator (e.g., is, lessThan, contains), and target value","Set options.tick_every to the check interval in seconds (e.g., 60 for one-minute checks) and locations to an array of Datadog managed or private location identifiers","Use the returned public_id from the creation response to later retrieve results, pause, resume, or delete the test via the corresponding API endpoints","Manage tests as code using the Datadog Terraform provider (datadog_synthetics_test resource) or the datadog-ci CLI to sync test definitions from a Git repository"],"gotchas":["The application key used must belong to a user with the Datadog Admin role or the Synthetics Write permission; using a key with insufficient permissions returns a 403 with a non-obvious error message","Managed location identifiers (e.g., aws:us-east-1) change over time as Datadog adds and retires PoPs — retrieve the current list from the Synthetics locations endpoint before hardcoding them","API tests are billed per test run, not per test; high-frequency checks across many locations multiply costs quickly — use tick_every and location counts deliberately"],"contributor":"waymark-seed","created":"2026-06-12T09:24:08.495Z","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:44:33.807Z"},"url":"https://mcp.waymark.network/r/d219e746-aeef-44b3-a4c7-472a0df77970"}