Authentication
API authentication and security
API authentication
Sign in with company code
POST /api/v1/auth/login
Content-Type: application/json
{
"tenantCode": "YOUR_COMPANY_CODE",
"email": "operator@example.com",
"password": "YOUR_PASSWORD"
}
For a successful normal login, data.token is the access token, data.refreshToken is the refresh token, data.expiresAt is its expiry and data.user.tenantId is the UUID to use in tenant routes.
If twoFactorRequired is true, finish the two-factor flow; do not assume a usable access token is already present. Email verification and legal-acceptance flags can also require action in the user flow.
Read tenant data
GET /api/v1/tenant/YOUR_TENANT_UUID/products?page=1&pageSize=25
Authorization: Bearer YOUR_JWT_TOKEN
Use the tenant UUID associated with the signed-in user. The company code is not a substitute for this UUID. The current WMS data API does not use the previously described X-Tenant-Id header for tenant selection.
Refresh
POST /api/v1/auth/refresh
Content-Type: application/json
{
"refreshToken": "YOUR_REFRESH_TOKEN"
}
Store the newly returned tokens and expiry after refresh. Use expiresAt rather than assuming a fixed session duration; the deployment can configure token lifetime. If refresh fails, authenticate again. Do not retry a write blindly when its outcome is uncertain.
Credential handling
There is no customer-facing WMS API-key issuance screen in the current interface. Credentials entered for external integrations authenticate to those external providers; they are not WMS API access keys.
Keep passwords and tokens out of source code, URLs, screenshots and logs. Assign an integration only the roles/permissions it needs. For browser login and missing company codes, see Creating an Account.