Traders Room β Sign Up API
TheΒ Sign Up API allows external systems to register new clients in the platform.
It supports:
-
Creating a new user
-
Passing marketing / affiliate data
-
Passing business / routing configuration
-
Optional email notification
-
Optional instant login via autologin link
π― Use Cases
-
Partner platforms
-
Affiliate systems
-
Landing pages / funnels
-
External onboarding flows
π Endpoint
POST /tradersroom/api/auth/signup
π Authentication
All external requests must include an API key.
Header
x-api-key: <your-api-key>
βοΈ Request Format
Headers
| Header | Required | Value |
|---|---|---|
| Content-Type | β | application/json |
| x-api-key | β | Provided by platform |
| Origin | β | Your domain |
π₯ Request Body
Required Fields
{
"email": "[email protected]",
"phone": "+1234567890",
"firstName": "Jane"
}
π Full Field Reference
π§ Basic Information
| Field | Type | Required | Description |
|---|---|---|---|
| string | β | User email | |
| phone | string | β | Phone number |
| firstName | string | β | First name |
| middleName | string | β | Middle name |
| lastName | string | β | Last name |
| gender | string | β | Gender |
| dateOfBirth | string | β | Date of birth (ISO format) |
| nationality | string | β | Nationality |
| passport | string | β | Passport |
π Contact Information
| Field | Type | Required | Description |
|---|---|---|---|
| additionalPhone | string | β | Secondary phone |
π’ Affiliate & Marketing
| Field | Type | Required | Description |
|---|---|---|---|
| affiliateID | string | β | Affiliate identifier |
| subID | string | β | Affiliate sub-id |
| campaignId | string | β | Campaign identifier |
| sourceId | string | β | Traffic source |
| meta | string | β | Additional metadata |
| externalId | string | β | External system user ID |
π’ Business / Routing Configuration
| Field | Type | Required | Description |
|---|---|---|---|
| project | string | β | Project identifier |
| desk | string | β | Desk identifier |
| manager | string | β | Manager (id / email / name) |
| status | string | β | Client status |
| state | string | β | Client state (active, live, etc.) |
| type | string | β | Client type |
| companyFeeGroup | string | β | Fee group |
| processed | boolean | β | Used in custom flows |
π‘οΈ Verification & Permissions
| Field | Type | Required | Description |
|---|---|---|---|
| verificationLevel | string | β | Verification level |
| verificationStatus | string | β | Verification status |
| allowToCreateAsset | boolean | β | Allow asset creation |
| agreements | array | β | Signed agreements |
βοΈ Traders Room Options
| Field | Type | Required | Description |
|---|---|---|---|
| sendEmail | boolean | β | Send registration email |
π¦ Nested Objects
billing
{
"billing": {
"country": "US",
"region": "NY",
"city": "New York",
"postcode": "10001",
"address": "Wall Street 1"
}
}
| Field | Type |
|---|---|
| country | string |
| region | string |
| city | string |
| postcode | string |
| address | string |
agreements
{
"agreements": [
{
"label": "Terms and Conditions",
"ip": "127.0.0.1",
"signedAt": "2026-01-01T12:00:00Z"
}
]
}
| Field | Type | Description |
|---|---|---|
| label | string | Agreement name |
| ip | string | Signing IP |
| signedAt | string | ISO date |
π€ Responses
β Success β With Autologin
{
"id": "user-uuid",
"url": "https://your-domain/autologin/uuid/"
}
-
URL allows instant login
-
Valid for a short time only
β Success β Without Autologin
{
"id": "user-uuid"
}
β Error Responses
400 β Invalid Request
{
"message": "Email, phone and first name are required",
"providerStatus": 400
}
401 β Unauthorized
{
"message": "Invalid secret key",
"providerStatus": 401
}
500 β Server Error
{
"message": "Internal server error",
"providerStatus": 500
}
π‘ Example Requests
Basic Registration
curl -X POST "https://your-domain/tradersroom/api/auth/signup" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"email": "[email protected]",
"phone": "+1234567890",
"firstName": "Jane"
}'
Full Example
curl -X POST "https://your-domain/tradersroom/api/auth/signup" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"email": "[email protected]",
"phone": "+1234567890",
"firstName": "Jane",
"lastName": "Doe",
"affiliateID": "AFF-123",
"subID": "SUB-1",
"campaignId": "CMP-456",
"sourceId": "facebook_ads",
"project": "default",
"desk": "sales",
"sendEmail": true
}'
β οΈ Important Notes
-
Each request creates a new user
-
Email should be unique
-
Autologin link is temporary
-
Store returned
idin your system -
API key must be kept secure
-
Some system fields are automatically managed and cannot be overridden
π Recommended Integration Flow
-
Collect user data
-
Call Sign Up API
-
Handle response:
-
If
urlexists β redirect user -
Otherwise β show success message
-
-
Store user ID
No Comments