Generate an authentication token for the SDK using user and organization details.
| Parameter | Description |
|---|---|
| api_key | Authentication key issued by Tartan. Note: This key is secret and should be kept safe. |
| The email of your corporate whose data you wish to retrieve. | |
| org_name | The corporate’s organisation name. |
| fullname | The name of the HR admin at the corporate organisation. |
| remote_org_id (optional) | A unique identifier that allows you to bypass validation checks for corporates with multiple domains. It ensures a consistent org_id is provided for the same organization, regardless of domain variations. This is a client-defined identifier that Tartan uses to link users to a corporate. Refer to API workflow section of this page for a detailed explanation of this API workflow. |
| corporate_reference_data (optional) | Additional reference data for the corporate organization. Can include custom fields like unique_id or other metadata. |
| data_model_flags (optional) | Configuration flags to control which data fields are enabled/disabled in the SDK. Contains nested objects for different field categories. |

data_model_flags parameter allows you to control which data fields are enabled or disabled in the SDK. This gives you granular control over the data collection process.
gender: -1 (mandatory enabled) or 1 (enabled)dob: -1 (mandatory enabled) or 1 (enabled)dependentDetails_mobileNumber: -1 (mandatory enabled) or 1 (enabled)ctc_deductions_misc: -1 (mandatory enabled) or 1 (enabled)ctc_deductions_esi: -1 (mandatory enabled) or 1 (enabled)-1: Field is enabled and required0: Field is disabled1: Field is enabled and optionalThe user's email address.
The name of the organization.
The user's full name.
A unique identifier for the remote organization.
Additional reference data for the corporate organization.
Configuration flags to control which data fields are enabled/disabled in the SDK.