> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mage.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish agent

> Mark an agent live by upserting an API trigger.

Only in Mage Pro.

Try our fully managed solution to access this advanced feature.

[Get started for free](https://cloud.mage.ai/sign-up?source=agents-api)

```http theme={"system"}
POST /api/agents/{agent_uuid}/publish
```

Publishing upserts an API trigger for the backing pipeline, sets `status` to `published`, and writes endpoint metadata to the agent YAML file.

```json theme={"system"}
{
  "agent_publish": {
    "uuid": "customer_support_agent_a1b2",
    "status": "published",
    "endpoint": {
      "enabled": true,
      "pipeline_schedule_id": 42,
      "streaming_run_path": "/api/agents/customer_support_agent_a1b2/runs",
      "token_present": true
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.