Accept an invitation
const url = 'https://api.sloose.com/invitations/k3f%E2%80%A6/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.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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The token from the invitation link.
Example
k3f…The token from the invitation link.
Responses
Section titled “Responses”Joined.
object
Example
{ "role": "owner"}No bearer, or one that is expired, revoked or no longer resolves to a member.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The signed-in address is not the one invited (code: WRONG_EMAIL), or an API token was used.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}No such invitation, or it is not visible to this session.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}The invitation is withdrawn, used or expired.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}