---
title: "Fetch agent + global setup scripts for Docker entrypoint"
method: GET
path: "/api/agents/{id}/setup-script"
tags: ["Agents"]
---

# Fetch agent + global setup scripts for Docker entrypoint

`GET /api/agents/{id}/setup-script`

## Path parameters

- `id` string, required

## Response `200`

Setup scripts

- object
  - `setupScript` string, nullable, required
  - `globalSetupScript` string, nullable, required

## Other responses

- `404` — Agent not found

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/0375890be8c4/schema)
