Join the organization you were invited to
const url = 'https://api.global.stillbox.example/v1/invitations/oinv-7k2m9q4x8w3z5r6t/accept';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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/oinv-7k2m9q4x8w3z5r6t/accept \ --header 'Authorization: Bearer <token>'You must be signed in with the address the invitation was sent to. Your session switches to it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”You’re a member, acting in that organization
object
object
Out of free hours and credits; sandboxes can’t run until credits are added or the week resets.
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.
How many people belong to the organization.
object
Every organization the person belongs to; empty for an API key no person created.
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.
Invitations waiting for the person’s answer.
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
{ "org": { "role": "owner" }, "orgs": [ { "role": "owner" } ], "invitations": [ { "role": "owner" } ]}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"}No such sandbox in your organization (or no such file)
object
Example
{ "code": "not_found"}