> ## Documentation Index
> Fetch the complete documentation index at: https://docs.searchcompany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Architecture for the Invite Member endpoint

## Purpose

Invites a user to join an organization as an admin via Clerk.

## Request Body

```json theme={null}
{
  "organization_id": "org_abc123",
  "email_address": "new@member.com",
  "role": "org:admin"
}
```

## Response Format

```json theme={null}
{
  "status": "success",
  "message": "Invitation sent to new@member.com",
  "invitation_id": "inv_..."
}
```

## Redirect URLs

After accepting, users are redirected based on environment:

* DEV: `http://localhost:3000/account?invited=true`
* STAGING: `https://staging.searchcompany.ai/account?invited=true`
* MAIN: `https://app.searchcompany.ai/account?invited=true`

## Code Location

```
src/app/apis/settings_team/invite/routes.py
```
