---
title: "Invite an external member into the agent-fs shared org"
method: POST
path: "/api/fs/members/invite"
tags: ["FS"]
---

# Invite an external member into the agent-fs shared org

`POST /api/fs/members/invite`

The API server performs the invite with its own bootstrap credentials (which are API-only and never served over HTTP), provisioning the shared org/drive first when needed. Intended for the cloud control plane's Connect-to-Drive flow. No keys are returned; the invitee obtains their own key via agent-fs registration.

## Request body

- object
  - `email` string, email, required
  - `role` 'viewer' | 'editor' | 'admin'

## Response `200`

Invite state ({ orgId, invited })

## Other responses

- `400` — Invalid body
- `500` — Provisioning or invite failed

## Changes

- **2026-07-17** `6def47ac4a8e` — 1 info
  - endpoint added
- **2026-07-02** `0c910612f9ac` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/fs/members/invite/post.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
