---
title: "Get target YAML"
method: GET
path: "/workspaces/{workspace_domain}/targets/{id}/yaml"
tags: ["Target API"]
---

# Get target YAML

`GET /workspaces/{workspace_domain}/targets/{id}/yaml`

## Path parameters

- `workspace_domain` string, required
- `id` string, required

## Response `200`

- TargetYamlView
  - `url` string — API endpoint to GET this object
  - `html_url` string — Web URL to view this object in Buddy.works
  - `yaml` string — The Base64-encoded YAML definition of the target

## Changes

- **2026-08-25** `fa785a68f09d` — 2 info
  - the security scope `TARGET_READ` was added to the endpoint's security scheme `oauth2`
  - the security scope `TARGET_INFO` was removed from the endpoint's security scheme `oauth2`
- **2026-07-31** `bf56ba86dd4d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/buddy/apis/buddy-api/changes/workspaces/:workspace_domain/targets/:id/yaml/get.md)

---

[API](https://skmtc.dev/buddy/apis/buddy-api.md) · [All operations](https://skmtc.dev/buddy/apis/buddy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/buddy/buddy-api/revisions/fa785a68f09d/schema)
