---
title: "Get recommended tests for a DEM journey"
method: GET
path: "/api/v2/dem/journeys/{journey_id}/recommended-tests"
tags: ["DEM"]
---

# Get recommended tests for a DEM journey

`GET /api/v2/dem/journeys/{journey_id}/recommended-tests`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/dem/journeys/{journey_id}/recommended-tests`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/dem/journeys/:journey_id/recommended-tests/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve AI-recommended synthetic tests for a DEM journey. Returns an empty list when no recommendation is available.

## Path parameters

- `journey_id` string, required

## Response `200`

OK

- DemRecommendedTestsResponse: Response containing recommended synthetic tests for a DEM journey.
  - `data` DemRecommendedTestData[], required: Recommended synthetic tests for a DEM journey.
    - `attributes` DemRecommendedTestAttributes, required: Attributes of an AI-recommended synthetic test for a DEM journey.
      - `config` DemRecommendedTestConfig, required: The browser test configuration that can be used to create the recommended test.
      - `created_at` string, date-time, required: The time when the recommendation was generated.
      - `name` string, required: The display name of the recommended test.
      - `result_id` string: The identifier of the validating sample run, when available.
      - `session_id` string: The RUM session identifier for the validating sample run, when available.
      - `source` string, required: The pipeline that produced the recommendation.
      - `type` string, required: The type of synthetic test.
      - `variant_id` string: The variant associated with the recommendation, when applicable.
    - `id` string, required: The identifier of the journey associated with the recommendation.
    - `type` 'recommended_tests', required: The type identifier for a recommended synthetic test.

## Other responses

- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/c555647b183a?raw)
