---
title: "Get generated agent config source"
method: GET
path: "/orgs/{orgID}/projects/{projectID}/agent-configs/{agentConfigID}/generated-source"
tags: ["Configs and Profiles"]
---

# Get generated agent config source

`GET /orgs/{orgID}/projects/{projectID}/agent-configs/{agentConfigID}/generated-source`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/agent-configs/{agentConfigID}/generated-source`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session`

Rebuilds a source from the config's compiled_definition, for configs saved without a source.

## Path parameters

- `orgID` string, required
- `projectID` string, required
- `agentConfigID` string, required

## Query parameters

- `source_format` 'yaml' | 'json'

## Response `200`

Generated agent config source.

- AgentConfigGeneratedSource
  - `source` string, required

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `409`: The request conflicts with current resource state or idempotency history.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-10-14** `536fb85b8cb7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/projects/:projectID/agent-configs/:agentConfigID/generated-source/get.md)

---

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