Get invitation details by token
GET
/api/v1/invitations/{token}
const url = 'http://localhost:3000/api/v1/invitations/example';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/exampleRetrieves invitation details using the token from the invitation email. No authentication required.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” token
required
string
Invitation token from the email
Responses
Section titled “ Responses ”Invitation details retrieved successfully
Media type application/json
object
token
required
Invitation token
string
email
required
Email address the invitation was sent to
string format: email
organizationName
required
Name of the organization being invited to
string
organizationSlug
required
URL-friendly slug of the organization
string
invitedByName
Name of the user who sent the invitation
string
expiresAt
required
When the invitation expires
string format: date-time
userExists
required
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.
boolean
Example
{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "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