---
title: "Cli Invite User"
method: POST
path: "/v1/cli/invite"
tags: ["v1-cli"]
---

# Cli Invite User

`POST /v1/cli/invite`

## Request

- Base URL: `https://api.tryardent.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tryardent.com/v1/cli/invite`
- Auth: none declared

Invite a user to the organization via CLI.

Uses API key auth to determine org_id.
Sends invite email via Supabase.

Body:
    email: Email address to invite
    role: Role to assign (owner/admin/member/viewer), defaults to "member"

Returns:
    success: True if invite sent
    email: The invited email
    role: The role they'll receive

## Response `200`

Successful Response

- unknown

---

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