---
title: "PUT /agents/{agentId}/publicAccess"
method: PUT
path: "/agents/{agentId}/publicAccess"
tags: ["Agent"]
---

# PUT /agents/{agentId}/publicAccess

`PUT /agents/{agentId}/publicAccess`

## Request

- Base URL: `https://www.taskade.com/api/v1`
- URL: `https://www.taskade.com/api/v1/agents/{agentId}/publicAccess`
- Auth: OAuth 2 and HTTP bearer
  - Authorization code: `https://www.taskade.com/oauth2/authorize`
  - Token URL: `https://www.taskade.com/oauth2/token`

Enable public access in the agent

## Path parameters

- `agentId` string, required

## Response `200`

Public access successfully enabled

- object: Public access successfully enabled
  - `ok` true, required
  - `publicUrl` string, uri, required

## Other responses

- `4XX`: Error description

---

[API](https://skmtc.dev/taskade/apis/taskade-public-api-v1.md) - [All operations](https://skmtc.dev/taskade/apis/taskade-public-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/taskade/apis/taskade-public-api-v1/revisions/55e17fe72d22?raw)
