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 org, 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 inviter’s name.
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).
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"}