---
title: "Invite User"
method: POST
path: "/api/v1/team/invitations"
tags: ["team", "team"]
---

# Invite User

`POST /api/v1/team/invitations`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/team/invitations`
- Auth: none declared

Send user invitation (owner/admin only).

Creates an invitation and sends an email to the specified address.
The invited user will receive a link to join the company.

## Headers

- `Authorization` string

## Request body

- InviteUserRequest: Request to invite a user to the team.
  - `email` string, email, required: Email address of the user to invite
  - `role` 'owner' | 'admin' | 'member' | 'viewer': Company roles for team management. Validated at API layer via Pydantic, stored as VARCHAR in DB.

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
