---
title: "Publish Agent"
method: POST
path: "/api/agents/{agent_id}/publish"
tags: ["public"]
---

# Publish Agent

`POST /api/agents/{agent_id}/publish`

## Request

- Base URL: `https://api.parlel.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.parlel.com/api/agents/{agent_id}/publish`
- Auth: none declared

Mint a public slug for an agent the caller owns.

Idempotent. Re-publishing an already-public agent returns the existing slug
and leaves ``published_at`` alone: that timestamp is the publication date
shown on the page, and churning it on every POST would make the page claim
it was published today every time the owner reopened the dialog.

## Path parameters

- `agent_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- PublishRequest: Explicit consent to expose this agent's brief and findings.
  - `confirm_public` boolean, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/parlel/apis/parlel-api.md) · [All operations](https://skmtc.dev/parlel/apis/parlel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/parlel/apis/parlel-api/revisions/4d41a8f5cfc9?raw)
