---
title: "Get available subtests for a multistep test"
method: GET
path: "/api/v2/synthetics/api-multistep/subtests/{public_id}"
tags: ["Synthetics"]
---

# Get available subtests for a multistep test

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

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/synthetics/api-multistep/subtests/{public_id}`
- 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 tests that can be added as subtests to a given API multistep test.
The current test is excluded from the list since a test cannot be a subtest of itself.

## Path parameters

- `public_id` string, required

## Response `200`

OK

- SyntheticsApiMultistepSubtestsResponse: Response containing the list of available subtests for an API multistep test.
  - `data` SyntheticsApiMultistepSubtestData[]: List of API tests that can be added as subtests.
    - `attributes` SyntheticsApiMultistepSubtestAttributes: Attributes of a Synthetic API multistep subtest.
      - `name` string: Name of the subtest.
      - `public_id` string: The public ID of the subtest.
    - `id` string: The public ID of the subtest.
    - `type` 'subtest': Type of the subtest resource.

## Other responses

- `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)
