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

## Changes

- **2026-08-07** `06cac6a7c5bc` — 3 info
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `500`
- **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-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/e0acd2155cad/schema)
