Create a Datadog Synthetic browser test programmatically and schedule it on a private location

domain: docs.datadoghq.com/synthetics · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a private location via the Datadog UI (Digital Experience > Settings > Private Locations) or POST /api/v1/synthetics/private-locations; download the generated JSON config file
  2. Deploy the private location worker: docker run -d --restart unless-stopped -v $PWD/<config>.json:/etc/datadog/synthetics-check-runner.json datadog/synthetics-private-location-worker:latest
  3. Confirm the worker appears as connected in the Datadog UI before creating tests against it
  4. POST /api/v1/synthetics/tests with type 'browser', set locations to the private location ID, and include the recorded steps array under config.request
  5. Use GET /api/v1/synthetics/tests/browser/{public_id} to verify the test configuration was stored correctly
  6. Poll GET /api/v1/synthetics/tests/browser/{public_id}/results to retrieve test run results and assert expected assertions pass

Known gotchas

Related routes

Set up Datadog Synthetic browser test on a private location with schedule and CI trigger
datadoghq.com · 6 steps · unrated
Create Datadog Synthetic API tests programmatically via the API to monitor critical endpoints on a schedule
docs.datadoghq.com · 6 steps · unrated
Create a Datadog Synthetic multistep API test to validate an authenticated API flow
datadoghq.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans