Get invitation SSO availability REST API
POST
/api/auth/sso/invite
const url = 'http://127.0.0.1:25737/api/auth/sso/invite';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"invite_token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:25737/api/auth/sso/invite \ --header 'Content-Type: application/json' \ --data '{ "invite_token": "example" }'Returns whether the team targeted by an unconsumed invitation has an enabled and entitled SSO configuration for the invited email domain. Invalid, expired, and non-SSO invitations return enabled=false without exposing team or provider details.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
invite_token
required
string
Examplegenerated
{ "invite_token": "example"}Responses
Section titled “Responses”Invitation SSO availability
Media typeapplication/json
object
enabled
required
boolean
Examplegenerated
{ "enabled": true}