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

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.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/versions/da68bf029e4c/schema)
