XentrDeveloper Docs
API ReferenceAdmin onboarding

Onboard a new customer in one shot

Creates org (trial 30d), first factory, magic-link signup invite, and queues a pre-flashed-edge shipment for ops. Returns the invite link so the operator can share via Lark/WhatsApp if email bounces.

POST
/admin/onboard
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api.xentr.ai/admin/onboard" \  -H "Content-Type: application/json" \  -d '{    "customerEmail": "plant.manager@acme-precision.com",    "companyName": "Acme Precision Mfg",    "factoryName": "Detroit Plant",    "machines": [      {        "archetype": "cnc",        "count": 4      },      {        "archetype": "mill",        "count": 2      },      {        "archetype": "andon",        "count": 1      }    ]  }'
{
  "organizationId": "string",
  "organizationSlug": "string",
  "factoryId": "string",
  "factorySlug": "string",
  "inviteLink": "string",
  "trialEndsAt": "2026-05-26T14:30:00.000Z",
  "pendingShipmentId": "string"
}