POST
/user/get-login-info
const url = 'https://example.com/user/get-login-info';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"id_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 https://example.com/user/get-login-info \ --header 'Content-Type: application/json' \ --data '{ "id_token": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
GetLoginInfoRequest
object
id_token
required
Id Token
string
Example generated
{ "id_token": "example"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
GetLoginInfoResponse
object
user_id
required
User Id
string
user_email
required
User Email
string
allowed_tenants
required
Example
{ "allowed_tenants": [ { "owner": { "namespace": "user" } } ]}{"detail": "Invalid API Key"}
{"detail": "User not found"}
Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}