What an invitation is for
const url = 'https://api.sloose.com/invitations/k3f%E2%80%A6';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sloose.com/invitations/k3f%E2%80%A6The organisation, the role and the invited address behind a link, so the account app can show them before the person signs in. Needs no authentication: the token is the secret, and this answers nothing the email did not already say.
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”The invitation.
object
The organisation’s name, or “a team” when it could be read as coming from Sloose.
The inviter’s name, or “Someone at …” when it could be read as coming from Sloose or the inviter has gone.
Example
{ "role": "operator"}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 was withdrawn (INVITATION_REVOKED), already used (INVITATION_USED) or has expired (INVITATION_EXPIRED). A used one also carries orgId, orgName and acceptedAt, so the page can tell a member who opens it again that they are already in (#730).
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 restore switch is on (code: MAINTENANCE): every route but /health and /robots.txt is refused before anything is read, except the operator’s own POST /staff/people/{id}/delete with the ADMIN_TOKEN. Sloose is down for maintenance. Please try again in a few minutes.
object
Example
{ "code": "MAINTENANCE"}Headers
Section titled “Headers”Seconds until asking again is worth it (300 while the switch is on).