---
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 })

- object
  - `orgId` string, required
  - `invited` boolean, required

## Other responses

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

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/ef761849166b/schema)
