---
title: "Share an agent with a teammate"
method: PUT
path: "/v1/personal-agents/{id}/shares/{memberId}"
tags: ["Agents"]
---

# Share an agent with a teammate

`PUT /v1/personal-agents/{id}/shares/{memberId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/personal-agents/{id}/shares/{memberId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

An owner can add managers and collaborators. Managers can only add collaborators.

## Path parameters

- `id` string, required
- `memberId` string, required

## Request body

- SetPersonalAgentShare
  - `role` 'manager' | 'collaborator', required

## Response `200`

People with access to the agent.

- PersonalAgentShareList
  - `owner` PersonalAgentPerson, required
    - `memberId` string, required
    - `name` string, required
  - `items` PersonalAgentShare[], required
    - `memberId` string, required
    - `name` string, required
    - `role` 'manager' | 'collaborator', required
    - `createdAt` string, date-time, required

## Other responses

- `403`: You cannot make this change.
- `404`: Not found.

## Changes

- **2026-11-26** `bc0092687a7b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/personal-agents/:id/shares/:memberId/put.md)

---

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