---
title: "Download agent code"
method: GET
path: "/v1/admin/agent-versions/{agent_version_id}/code"
tags: ["admin"]
---

# Download agent code

`GET /v1/admin/agent-versions/{agent_version_id}/code`

Get a presigned S3 URL to download agent source code for any version, regardless of release state.

## Path parameters

- `agent_version_id` string, uuid, required — Agent version ID

## Response `200`

Successful Response

- AdminAgentCodeResponse
  - `download_url` string, required — Presigned S3 download URL
  - `agent_version_id` string, uuid, required — Agent version the code belongs to
  - `agent_name` string, required — Name of the agent

## Other responses

- `404` — Agent version not found
- `422` — Validation Error

---

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