---
title: "Add Member"
method: POST
path: "/apps/{app_id}/members"
---

# Add Member

`POST /apps/{app_id}/members`

## Request

- Base URL: `https://api.xhostd.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xhostd.com/apps/{app_id}/members`
- Auth: none declared

Invite a user (neutral). See :func:`membership.invite_member`.

## Path parameters

- `app_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Request body

- AddMemberRequest
  - `username_or_email` string, required
  - `role` 'admin' | 'member', required

## Response `200`

Successful Response

- InviteResponse
  - `status` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xhostd/apis/xhostd-public.md) · [All operations](https://skmtc.dev/xhostd/apis/xhostd-public/llms.txt) · [OpenAPI document](https://skmtc.dev/xhostd/apis/xhostd-public/revisions/bf439c4d1789?raw)
