Get invitation details by token
const url = 'http://localhost:3000/api/v1/invitations/%3Cinvitation-token%3E';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 http://localhost:3000/api/v1/invitations/%3Cinvitation-token%3ERetrieves invitation details using the token from the invitation email. No authentication required.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
<invitation-token>Invitation token from the email
Header Parameters
Section titled “Header Parameters”UUID of the organization (tenant) the request acts in. It selects the tenant and grants nothing: the server checks membership or an open tenant switch. Not needed for global operations. A malformed value returns 400. API keys are fixed to their own organization; another organization returns 403. The x-organization-source header grants nothing.
Responses
Section titled “Responses”Invitation details retrieved successfully
object
Invitation token
Email address the invitation was sent to
Name of the organization being invited to
URL-friendly slug of the organization
Name of the user who sent the invitation
When the invitation expires
True when a user with this email already exists. The accept form should skip the password field in that case — credentials are preserved and the existing user is just added to the new tenant.
Example
{ "token": "<invitation-token>", "email": "newuser@example.com", "organizationName": "Acme Corporation", "organizationSlug": "acme-corporation", "invitedByName": "Admin User", "expiresAt": "2024-06-27T10:30:00Z", "userExists": false}Invalid or expired token
Invitation not found