Skip to content

Accept an invitation

POST
/invitations/{token}/accept
curl --request POST \
--url https://api.sloose.com/invitations/k3f%E2%80%A6/accept \
--header 'Authorization: Bearer <token>'

Joins the org at the invited role, as the signed-in person — whose email must be the invited address. The session moves to that org. Somebody already in the org is unblocked and takes the invited role.

token
required

The token from the invitation link.

string
Example
k3f…

The token from the invitation link.

Joined.

Media typeapplication/json
object
orgId
required
string
orgName
required
string
role
required
string
Allowed values: owner admin builder operator
Example
{
"role": "owner"
}

No bearer, or one that is expired, revoked or no longer resolves to a member.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

The signed-in address is not the one invited (code: WRONG_EMAIL), or an API token was used.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

No such invitation, or it is not visible to this session.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

The invitation is withdrawn, used or expired.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}