Preview social completion REST API
POST
/api/auth/social/preview
const url = 'http://127.0.0.1:25737/api/auth/social/preview';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"completion_token":"example","email":"hello@example.com"}'};
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/social/preview \ --header 'Content-Type: application/json' \ --data '{ "completion_token": "example", "email": "hello@example.com" }'Returns safe provider and observed-email metadata for a still-valid completion token. Provider subjects are never returned.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
completion_token
required
string
email
HitKeep target email required for a first unauthenticated Microsoft link.
string format: email
Examplegenerated
{ "completion_token": "example", "email": "hello@example.com"}Responses
Section titled “Responses”Social completion preview
Media typeapplication/json
object
display_name
required
string
email_confirmation_required
required
Whether this completion requires the user to confirm a HitKeep email before continuing.
boolean
email_verified
required
boolean
flow
required
string
observed_email
string format: email
provider
required
string
Example
{ "flow": "login", "provider": "google"}Completion token invalid, expired, or already consumed
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}