Invite someone by email
const url = 'https://api.global.stillbox.example/v1/invitations';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"example","role":"owner"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.global.stillbox.example/v1/invitations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "example", "role": "owner" }'The invitation lasts 7 days. Inviting the same address again replaces it.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Owners invite and remove people and manage the organization; members use its sandboxes; auditors read the audit log and see everything else without changing anything, opening terminals or reading files.
Responses
Section titled “Responses”The invitation; it was emailed if this region sends email
object
Owners invite and remove people and manage the organization; members use its sandboxes; auditors read the audit log and see everything else without changing anything, opening terminals or reading files.
The console page where the invited person answers. It only works for them, signed in.
The invited person has already joined.
In the answer to an invitation just sent, whether it was emailed; the region may have no mail sender.
Example
{ "role": "owner"}The request is invalid
object
Example
{ "code": "not_found"}The API key is missing or invalid
object
Example
{ "code": "not_found"}Only an owner can do this (owner_only), or the invitation is for another address (not_invited)
object
Example
{ "code": "not_found"}The change would leave the organization without an owner (last_owner), its seats are full (member_limit), or
the person is already a member (already_member)
object
Example
{ "code": "not_found"}