/api/auth/registerRegister
Create a new tenant, owner user, and start the free trial.
URL: https://api.actiwapi.com/api/auth/register
Auth: None
Request example
{
"name": "Jane Doe",
"email": "owner@acme.com",
"password": "SecurePass123!",
"businessName": "Acme Corp"
}Code examples
curl -X POST "https://api.actiwapi.com/api/auth/register" \
-H "Content-Type: application/json"
-d '{ "name": "Jane Doe", "email": "owner@acme.com", "password": "SecurePass123!", "businessName": "Acme Corp"}'Response example201
{
"success": true,
"data": {
"accessToken": "eyJhbG...",
"refreshToken": "eyJhbG...",
"expiresIn": "7d",
"user": {
"id": "uuid",
"email": "owner@acme.com",
"name": "Jane Doe",
"role": "owner",
"tenantId": "uuid",
"tenantName": "Acme Corp"
}
}
}