Skip to content

Act in another of your organizations

POST
/me/org
curl --request POST \
--url https://api.global.stillbox.example/v1/me/org \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "org_id": "example" }'

For browser sessions only; an API key always belongs to one organization.

Media typeapplication/json
object
org_id
required
string

Example generated

{
"org_id": "example"
}

The session now acts in that organization

Media typeapplication/json
object
org
required
object
id
required
string
name
required
string
limited
required

Out of free hours and credits; sandboxes can’t run until credits are added or the week resets.

boolean
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
members
required

How many people belong to the organization.

integer
user
object
id
required
string
email
required
string
name
required
string
orgs
required

Every organization the person belongs to; empty for an API key no person created.

Array<object>
object
id
required
string
name
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
invitations
required

Invitations waiting for the person’s answer.

Array<object>
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

{
"org": {
"role": "owner"
},
"orgs": [
{
"role": "owner"
}
],
"invitations": [
{
"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"
}

No such sandbox in your organization (or no such file)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}