# Invite a teammate

`POST /v1/orgs/{orgId}/invitations`

Emails a person a link to join this organization with the given role.

Requires: permission members:invite; second factor for browser sessions

## Request body

- `email` (string (email), required): 
- `role_key` (string, required): 
- `delivery` (enum): How an invitation reaches the invitee. `screen` sends no email and returns the link to the sender instead; it is only accepted in test environments (staging, local) and refused in production, which always emails. One of email, screen.

```json
{
  "email": "ada@acme-robotics.example",
  "role_key": "role key",
  "delivery": "email"
}
```

Errors: already_member, insufficient_rank, invalid_email, unknown_role

```bash
curl -X POST "https://sandbox-api.payezy.io/v1/orgs/$ORG_ID/invitations" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "ada@acme-robotics.example",
  "role_key": "role key",
  "delivery": "email"
}'
```
