What an invitation offers
GET
/api/v1/invite/{token}
const url = 'http://localhost:3000/api/v1/invite/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/invite/exampleNo key needed.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”token
required
string
From the invitation link
Responses
Section titled “Responses”The invitation
Media typeapplication/json
object
data
required
object
email
required
Who it was meant for
string
organization
required
string
resource
required
string
label
required
string | null
scope
required
string
invitedBy
required
string
expiresAt
required
string format: date-time
signUp
required
No account has this email yet
boolean
Example
{ "data": { "resource": "organization", "scope": "read" }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}