# Create invite

Invites a person by email with a role (approvers also need a team). Console session or API key with members:manage; only grantable roles are accepted (403 ROLE_NOT_GRANTABLE) and the invite expires after 7 days.

`POST /v1/invites`

Invites a person by email with a role (approvers also need a team). Console session or API key with members:manage; only grantable roles are accepted (403 ROLE_NOT_GRANTABLE) and the invite expires after 7 days.

Requires permission `members:manage`.

## Request body

```json
{
  "email": "owner@example.com",
  "role": "finance"
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.

Example 200 response:

```json
{
  "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
  "email": "owner@example.com",
  "role": "finance",
  "dev_link": "string"
}
```
