Invite to space (by email)
invite_to_spaceGrant a person access to a tela space by email; existing accounts are added, and new users receive an invitation email to join on signup.
Instructions
Give a person access to a space by EMAIL ADDRESS — space owner only, write scope. Two outcomes, and the response tells you which happened: if a tela account already uses that address they are added right away and returns {member}; if nobody has that address yet, tela SENDS THEM AN EMAIL INVITATION (an outward action reaching a third party) and returns {invite} — they get the space automatically when they sign up with that address. Role is owner|editor|viewer (default viewer). Use this to onboard someone who has no tela account; to add an existing user you already know by username, or to change/remove access, use the app's space sharing UI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | owner | editor | viewer (default viewer) | |
| Yes | the person's email address | ||
| space_id | Yes | space to share (caller must be its owner) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invite | No | ||
| member | No |