Invite someone to the account
invite_memberUse this when the user wants to give a person access to their FlareWarden account: a teammate at a role (admin, editor or viewer), or a client who should see only some sites (a monitor-only invitation with sites). Emails the person an invitation link and returns exactly who was emailed; inviting the same address again replaces its pending invitation of the same kind (a site invitation only one for exactly the same sites) and emails it again. Owners and admins only; an admin cannot invite an admin. Not for changing the role of someone already on the team: use change_member_role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | For an account invitation: admin (everything but billing), editor (manages monitors in their scope) or viewer (sees everything and gets alerts). Leave out for a monitor-only invitation. | |
| Yes | The address to invite, exactly as the user gave it. | ||
| level | No | For a monitor-only invitation: view (default) or edit. | |
| scope | No | For an account invitation: which monitors the role covers. Default all. | |
| sites | No | For a monitor-only invitation: the sites to share, each by id, name or part of its URL. The person sees only these sites. | |
| site_checks | No | For a monitor-only invitation: which checks of each site are shared. Default all. | |
| idempotency_key | No | Optional. Send the same key again after a lost reply and the change is not made twice. |