---
title: "Unpublish Custom Agent"
method: POST
path: "/agent/{custom_agent_id}/unpublish"
deprecated: true
---

# Unpublish Custom Agent

`POST /agent/{custom_agent_id}/unpublish`

## Request

- Base URL: `https://api.tellers.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tellers.ai/agent/{custom_agent_id}/unpublish`
- Auth: none declared

> **Deprecated.**

Take a published assistant, or one of its copies, down.

What comes down depends on which id is given, so the caller can be as
broad or as narrow as they need:

* the **assistant's** id — everything: the live copy and any submission
  still under review;
* a **posted** copy's id — only the live one, leaving a pending
  submission queued;
* a **pending** copy's id — only the submission, withdrawing it while
  the live version stays up.

The slug stays on the assistant either way, so publishing again reuses
the same public URL.

## Path parameters

- `custom_agent_id` string, uuid, required

## Headers

- `x-api-key` string, nullable
- `authorization` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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