Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/auth/registerAuthentication

Register Tenant Workspace

Provisions a new multi-tenant workspace with a unique store subdomain, default MAIN outlet, and an approved owner user assigned username `admin` and the `System Owner` role (`Cache-Control: no-store`).

Authentication: Public endpoint — no Bearer token required.

Request

Provide the following fields in the request payload.

Body application/json
namestringrequired

Store owner display name.

emailstring (email)required

Owner email address used for authentication.

phonestringrequired

Active owner phone or WhatsApp number.

storeNamestringrequired

Primary business or store display name.

subdomainstringrequired

Unique lowercase tenant subdomain slug.

citystringrequired

City or business region.

businessCategoryenum('retail' | 'fnb' | 'fashion' | 'electronics', ...)required

Primary business vertical.

plannedOutletsenum('1' | '2' | '3' | '4', ...)required

Initial planned outlet count bracket.

passwordstringrequired

Account password (minimum 8 characters).

notestring | nulloptional

Optional store setup context note.

verificationMethodenum('direct' | 'otp' | 'activation')optionaldefault: direct

Selected onboarding flow.

Responses

Select a status code to inspect schema.

Workspace tenant, owner user (admin / System Owner), and MAIN outlet created.application/json
successenum('true')

Indicates the API operation succeeded.

messagestring

Human-readable response status message.

dataobject

data field.

data.tenantobject

tenant field.

data.tenant.idstring (uuid)

id field.

data.tenant.namestring

name field.

data.tenant.subdomainstring

subdomain field.

data.tenant.citystring | null

city field.

data.tenant.businessCategorystring | null

businessCategory field.

data.tenant.plannedOutletCountstring | null

plannedOutletCount field.

data.userobject

user field.

data.user.idstring (uuid)

id field.

data.user.emailstring (email)

email field.

data.user.usernamestring

username field.

data.user.namestring | null

name field.

data.user.phonestring | null

phone field.

data.user.rolestring

role field.

data.outletobject

outlet field.

data.outlet.idstring (uuid)

id field.

data.outlet.namestring

name field.

data.outlet.codestring

code field.

POST/api/auth/register
curl -X POST "https://api.invoger.com/api/auth/register" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Budi Santoso", "email": "owner@tokobuah.com", "phone": "081234567890", "storeName": "Toko Buah Segar", "subdomain": "toko-buah-segar", "city": "Jakarta Selatan", "businessCategory": "retail", "plannedOutlets": "1", "password": "••••••••", "note": "Main store opening setup", "verificationMethod": "otp" }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Store workspace registered successfully",
  "data": {
    "tenant": {
      "id": "t1a2b3c4-0000-4000-8000-000000000001",
      "name": "Toko Buah Segar",
      "subdomain": "toko-buah-segar",
      "city": "Jakarta Selatan",
      "businessCategory": "retail",
      "plannedOutletCount": "1"
    },
    "user": {
      "id": "e4f8b910-1234-4567-89ab-cdef01234567",
      "email": "owner@tokobuah.com",
      "username": "admin",
      "name": "Budi Santoso",
      "phone": "081234567890",
      "role": "System Owner"
    },
    "outlet": {
      "id": "o1a2b3c4-0000-4000-8000-000000000001",
      "name": "Toko Buah Segar",
      "code": "MAIN"
    }
  }
}