This documentation is currently under development. Certain sections are not yet complete and will be added shortly.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invitations

Activate access and get a just-in-time password-change ticket

post
/api/invitations/activate

Only works for a valid link. Marks the invitee's e-mail as verified and returns the page where they choose a password. A link can be activated once: from then on it resolves to "used", which the activation page turns into a sign-in. Once the password is set, the success page leads back to the back-office.

Body

Request body carrying an invitation link's token.

tokenstring · min: 1Required

Token from the invitation e-mail's link. A token that cannot be used is not an error, it resolves to invalid.

Responses
200

Ticket created.

Where to send the invitee to choose a password.

ticketUrlstring · min: 1Required

Password-change page for the invitee. Valid for 15 minutes; redirect to it immediately.

post/api/invitations/activate
POST /api/invitations/activate HTTP/1.1
Host: app.neostore.cloud
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "token": "text"
}
{
  "ticketUrl": "text"
}

Send a new link for this invitation

post
/api/invitations/resend

Works for a valid or an expired link (state "valid" or "expired"): issues a new link, which makes every previous link invalid, and sends the "Welcome, new link" e-mail.

Body

Request body carrying an invitation link's token.

tokenstring · min: 1Required

Token from the invitation e-mail's link. A token that cannot be used is not an error, it resolves to invalid.

Responses
204

A new link was issued and sent.

No content

post/api/invitations/resend
POST /api/invitations/resend HTTP/1.1
Host: app.neostore.cloud
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "token": "text"
}

No content

Get what this invitation link currently means

post
/api/invitations/status

Changes nothing, but emits the tenant's User:InvitationOpened event whenever the link resolves to a user.

Body

Request body carrying an invitation link's token.

tokenstring · min: 1Required

Token from the invitation e-mail's link. A token that cannot be used is not an error, it resolves to invalid.

Responses
200

State resolved; an unusable link is a 200 with state: invalid, not an error.

What an invitation link currently means.

statestring · min: 1Required

valid: the latest link, not expired, ready to activate. expired: the latest link has timed out and the user has never set a password; a new link can be sent. used: the access is already activated (the link was spent, or the user already has a password), so the page should offer to sign in. invalid: the link cannot be used, for example because the access was removed or a newer link has been sent.

tenantNamestring · nullableOptional

Display name of the tenant the invitation grants access to. Null when state is invalid.

rolestring · nullableOptional

Name of the role the invitation grants on that tenant. Null when state is invalid.

maskedEmailstring · nullableOptional

The invitee's e-mail with the local part hidden, e.g. j***@brand.com, so the page can say who the link is for without disclosing the address. Null when state is invalid.

languagestring · nullableOptional

The invitee's stored back-office language, for the page to display in. Null when none is stored or state is invalid.

post/api/invitations/status
POST /api/invitations/status HTTP/1.1
Host: app.neostore.cloud
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "token": "text"
}
{
  "state": "text",
  "tenantName": null,
  "role": null,
  "maskedEmail": null,
  "language": null
}

Last updated