Skip to main content

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

  • Optional email notification

  • Optional instant login via autologin link


🎯 Use Cases

This endpoint is intended for:

  • Partner platforms

  • Affiliate systems

  • Landing pages / funnels

  • External onboarding flows


🌐 Endpoint

POST /tradersroom/api/auth/signup

🔐 Authentication

External requests must include an API key.

Header

x-api-key: <your-api-key>

Errors

CaseResponse
Missing API key401 — Secret key is required
Invalid API key401 — Invalid secret key

⚙️ Request Format

Headers

HeaderRequiredValue
Content-Typeapplication/json
x-api-keyProvided by platform
OriginYour domain

📥 Request Body

Required Fields

{
  "email": "[email protected]",
  "phone": "+1234567890",
  "firstName": "Jane"
}

Optional Fields

{
  "lastName": "Doe",
  "affiliateID": "AFF-123",
  "campaignId": "CMP-456",
  "sourceId": "facebook_ads",
  "externalId": "your-system-id",
  "dateOfBirth": "1990-01-01",
  "sendEmail": true,
  "billing": {
    "country": "US",
    "city": "New York",
    "address": "Wall Street 1"
  }
}

Field Reference

FieldTypeRequiredDescription
emailstringUser email
phonestringPhone number
firstNamestringFirst name
lastNamestringLast name
sendEmailbooleanSend welcome email
affiliateIDstringAffiliate identifier
campaignIdstringMarketing campaign
sourceIdstringTraffic source
externalIdstringYour internal user ID
dateOfBirthstringYYYY-MM-DD
billingobjectAddress information

📤 Responses

✅ Success — With Autologin

{
  "id": "user-uuid",
  "url": "https://your-domain/autologin/uuid/"
}
  • url allows automatic login

  • Link is short-lived and should be used immediately


✅ 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"
  }'

Registration with Marketing Data

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",
    "affiliateID": "AFF-123",
    "campaignId": "CMP-456",
    "sourceId": "facebook_ads",
    "sendEmail": true
  }'

⚠️ Important Notes

  • Each request creates a new user

  • Ensure unique email per user

  • Autologin links are temporary

  • Store returned id for future reference

  • API key must be kept secure


📊 Integration Flow (Recommended)

  1. Collect user data on your side

  2. Call Sign Up API

  3. Receive response:

    • If url exists → redirect user

    • If not → show success message

  4. Store user ID in your system