---
title: "Extract Genome From Agent"
method: POST
path: "/v1/genomes/extract-from-agent/{agent_id}"
tags: ["Agent Environment", "genomes"]
---

# Extract Genome From Agent

`POST /v1/genomes/extract-from-agent/{agent_id}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/vijilai/apis/vijil-console-api-combined/docs/v1/genomes/extract-from-agent/:agent_id/post.ts> (a function with typed inputs; its response is checked against the schema)

Extract a genome from an existing agent and seed it in Darwin.

Fetches the agent config, builds a Genome model from it, and seeds
the genome in Darwin via POST /v1/genomes.

## Path parameters

- `agent_id` string, uuid, required

## Response `201`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/vijilai/apis/vijil-console-api-combined.md) - [All operations](https://skmtc.dev/vijilai/apis/vijil-console-api-combined/llms.txt) - [OpenAPI document](https://skmtc.dev/vijilai/apis/vijil-console-api-combined/revisions/a8b2ee2b2d06?raw)
