curl --request POST \
--url https://www.tryunleashx.com/api/v1/global/users/onboard \
--header 'Content-Type: application/json' \
--header 'token: <token>' \
--data '
{
"email_id": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"company_name": "<string>"
}
'{
"message": "<string>",
"data": {
"registration_id": 123,
"user_id": 123,
"company_id": 123,
"workspace_id": 123,
"customer_salt": "<string>"
}
}Onboard a new user/customer into the portal. Creates a complete account setup including registration, company, user, and workspace in a single API call.
curl --request POST \
--url https://www.tryunleashx.com/api/v1/global/users/onboard \
--header 'Content-Type: application/json' \
--header 'token: <token>' \
--data '
{
"email_id": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>",
"company_name": "<string>"
}
'{
"message": "<string>",
"data": {
"registration_id": 123,
"user_id": 123,
"company_id": 123,
"workspace_id": 123,
"customer_salt": "<string>"
}
}/users/onboard
Content-Type: application/json
Authentication: Required (API token)
{
"email_id": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Corp"
}
| Parameter | Type | Required | Description |
|---|---|---|---|
email_id | string | Yes | Email address of the user to onboard. Also accepts email. |
first_name | string | Yes | First name of the user. Also accepts firstName. |
last_name | string | Yes | Last name of the user. Also accepts lastName. |
company_name | string | Yes | Company name for the new account. Also accepts companyName. |
email_id must not already be registered in the system.company_name must be unique — it cannot match an existing company.customer_salt is auto-generated and returned in the response. This can be used later to generate API tokens via the Get Token by Customer ID endpoint.{
"message": "User onboarded successfully",
"data": {
"registration_id": 101,
"user_id": 55,
"company_id": 12,
"workspace_id": 8,
"customer_salt": "048372910564"
}
}
| Field | Type | Description |
|---|---|---|
registration_id | number | ID of the registration record created. |
user_id | number | ID of the newly created user. |
company_id | number | ID of the newly created company. |
workspace_id | number | ID of the default workspace created for the user. |
customer_salt | string | Unique 12-digit customer identifier. Use this to generate API tokens. |
| Error | Description |
|---|---|
EMAIL_ALREADY_REGISTERED | The email is already associated with an account. |
WORKFLOW_NAME_ALREADY_REGISTERED | The company name is already taken. |
COMPANY_DOMAIN_ALREADY_REGISTERED | The email domain is already registered. |
curl -X POST https://www.tryunleashx.com/api/v1/global/users/onboard \
-H "Content-Type: application/json" \
-H "Authorization: <api_key>" \
-d '{
"email_id": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Corp"
}'
API token for authentication
Email address of the user to onboard. Also accepts 'email'.
First name of the user. Also accepts 'firstName'.
Last name of the user. Also accepts 'lastName'.
Company name for the new account. Must be unique. Also accepts 'companyName'.
Was this page helpful?