---
title: "Save agent to catalog"
method: POST
path: "/v3/ai-agents/{agent_id}/save-to-catalog"
tags: ["v3", "ai-agents"]
---

# Save agent to catalog

`POST /v3/ai-agents/{agent_id}/save-to-catalog`

## 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/ai-agents/{agent_id}/save-to-catalog`
- Auth: HTTP bearer

Save an existing agent's configuration as a global catalog template. Super admin only.

## Path parameters

- `agent_id` string, uuid, required

## Headers

- `mentium-workspace-id` string, nullable

## Request body

- SaveAgentToCatalogRequest: Request body for saving an existing agent to the catalog.
  - `name` string, nullable: Override the agent's name in the catalog entry
  - `description` string, nullable: Override the agent's description
  - `is_published` boolean: Whether the entry is immediately visible

## Response `201`

Successful Response

- AgentCatalogEntryResponse: Response schema for a single catalog entry. Mirrors AIAgentResponse for draft handling: has_draft + draft expose any unpublished changes so the same lifecycle adapter can drive both flows.
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `agent_type` string, required
  - `model` string, required
  - `system_prompt_template` string, required
  - `user_prompt_template` string, nullable, required
  - `temperature` number, nullable, required
  - `max_tokens` integer, nullable, required
  - `reasoning_effort` string, nullable, required
  - `tools` string[], required
  - `type_config` object, nullable, required
  - `is_published` boolean, required
  - `is_system_agent` boolean: True when the entry is a system agent installed into workspaces for Chat.
  - `created_by_user_id` string, required
  - `source_agent_id` string, nullable, required
  - `source_organization_id` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `has_draft` boolean: True when the entry has unpublished draft changes.
  - `draft` object, nullable: Staged draft changes parsed from the draft row's YAML.

## 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)
