---
title: "Get Existing Draft"
method: GET
path: "/v3/agent-editor/{agent_id}/draft"
tags: ["agent-editor"]
---

# Get Existing Draft

`GET /v3/agent-editor/{agent_id}/draft`

## Request

- Base URL: `https://api.mentium.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mentium.io/v3/agent-editor/{agent_id}/draft`
- Auth: HTTP bearer

Return the existing draft for a published agent, if one exists.

## Path parameters

- `agent_id` string, uuid, required

## Headers

- `mentium-workspace-id` string, nullable

## Response `200`

Successful Response

- ExistingDraftResponse: Response body for the existing-draft lookup endpoint.
  - `draft_id` string, required
  - `yaml_content` string: Current agent.yaml content

## Other responses

- `422`: Validation Error

---

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