Identify with company context
POST
/portal/{companyCodeContext}/identify
const url = 'https://auth.timetonic.com/portal/COMPANY_A/identify';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"userId":"user@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 https://auth.timetonic.com/portal/COMPANY_A/identify \ --header 'Content-Type: application/json' \ --data '{ "userId": "user@example.com" }'Pre-login identification within company context
Parameters
Section intitulée « Parameters »Path Parameters
Section intitulée « Path Parameters »companyCodeContext
required
string
Example
COMPANY_ACompany account code for portal-scoped requests
Request Bodyrequired
Section intitulée « Request Bodyrequired »Media typeapplication/json
object
userId
required
User identifier (email, username, or external ID)
string
Example
user@example.comResponses
Section intitulée « Responses »User identification data
Media typeapplication/json
object
Example
{ "ssoUrl": "/saml/tenant-key/login", "ssoOnly": false, "twoFactor": true, "tcVersion": "1.0"}Validation error
Media typeapplication/json
object
success
boolean
error
string
message
string
errors
object
key
additional properties
Array<string>
Example
{ "success": false, "error": "validation_error", "message": "The given data was invalid", "errors": { "email": [ "The email field is required." ] }}