---
title: "Get parent tests for a subtest"
method: GET
path: "/api/v2/synthetics/api-multistep/subtests/{public_id}/parents"
tags: ["Synthetics"]
---

# Get parent tests for a subtest

`GET /api/v2/synthetics/api-multistep/subtests/{public_id}/parents`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/synthetics/api-multistep/subtests/{public_id}/parents`
- 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` scopes: `synthetics_read`

Get the list of API multistep tests that include a given subtest,
along with their monitor status.

## Path parameters

- `public_id` string, required

## Response `200`

OK

- SyntheticsApiMultistepParentTestsResponse: Response containing the list of parent tests for an API multistep subtest.
  - `data` SyntheticsApiMultistepParentTestData[]: List of parent tests that include this subtest.
    - `attributes` SyntheticsApiMultistepParentTestAttributes: Attributes of a parent API multistep test.
      - `child_name` string: The name of the child subtest.
      - `child_public_id` string: The public ID of the child subtest.
      - `monitor_id` integer: The associated monitor ID.
      - `name` string: Name of the parent test.
      - `overall_state` integer: The overall state of the parent test.
      - `overall_state_modified` string: Timestamp of when the overall state was last modified.
      - `public_id` string: The public ID of the parent test.
    - `id` string: The public ID of the parent test.
    - `type` 'parent_test': Type of the parent test resource.

## Other responses

- `404`: API error response.
- `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/da68bf029e4c?raw)
