Register a new account. Partner rep accounts are provisioned by TEMS RECO admins, not via self-signup — this endpoint is for the general end-customer account type.
| Parameter | In | Type | Description |
|---|---|---|---|
| fullName * | body | string | 2–100 characters |
| email * | body | string | Must be a valid, unique email |
| password * | body | string | Minimum 6 characters |
| phone * | body | string | |
| address * | body | string | |
| lga * | body | string | |
| state * | body | string | |
| accountType * | body | "home" | "business" |
Request
curl -X POST https://api.temsreco.com/api/auth/signup \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"fullName": "Ada Lovelace",
"email": "ada@example.com",
"password": "a-strong-password",
"phone": "+2348000000000",
"address": "12 Providence Street",
"lga": "Eti-Osa",
"state": "Lagos",
"accountType": "business"
}'Response
{
"success": true,
"message": "Account created",
"data": {
"user": { "_id": "...", "fullName": "Ada Lovelace", "email": "ada@example.com", "role": "user", "...": "..." },
"accessToken": "eyJhbGciOi..."
}
}