Skip to content

Invite someone by email

POST
/invitations
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.

Media typeapplication/json
object
email
required
string
role

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.

string
Allowed values: owner member auditor

The invitation; it was emailed if this region sends email

Media typeapplication/json
object
id
required
string
email
required
string
role
required

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.

string
Allowed values: owner member auditor
org_id
required
string
org_name
required
string
invited_by_name
required
string
url
required

The console page where the invited person answers. It only works for them, signed in.

string
accepted

The invited person has already joined.

boolean
emailed

In the answer to an invitation just sent, whether it was emailed; the region may have no mail sender.

boolean
created_at
required
string format: date-time
expires_at
required
string format: date-time

Example

{
"role": "owner"
}

The request is invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

Only an owner can do this (owner_only), or the invitation is for another address (not_invited)

Media typeapplication/json
object
code
required
string
message
required
string

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)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}