API Overview
Use JWT authentication and tenant-scoped JSON endpoints
API overview
SmartWMS exposes an HTTPS JSON API. Authentication uses JWT Bearer tokens. Tenant data routes include the tenant UUID in the path.
Base addresses
https://api.smartwms.one/api/v1/auth
https://api.smartwms.one/api/v1/tenant/{tenantId}
The Tenant Code used at login and the tenantId UUID used in data routes are different values. Obtain tenantId from the authenticated user's user.tenantId response. A route to another tenant does not grant access to it.
Example read request
curl 'https://api.smartwms.one/api/v1/tenant/YOUR_TENANT_UUID/products?page=1&pageSize=25' -H 'Authorization: Bearer YOUR_JWT_TOKEN' -H 'Accept: application/json'
Common responses contain success, data and message; validation failures can include errors. Collection data commonly contains items, totalCount, page, pageSize and totalPages. Check the contract for the particular endpoint rather than assuming every response is paginated.
Errors and limits
Handle HTTP status as well as the response body. Typical statuses include 400 (invalid input), 401 (authentication required/expired), 403 (access denied), 404 (missing route/record) and 429 (rate limit).
Current application limits are per client IP: tenant API/global fallback 600 requests/minute, authentication 10, strict registration/reset operations 5 and admin 100. These are not Starter/Business/Enterprise plan quotas. Do not depend on the previously described X-RateLimit-* headers. Use backoff for 429 responses.
Clients
Use a standard HTTP client for your language. This guide does not promise separately maintained official JavaScript, Python, .NET or PHP SDKs. Start with Authentication and the implemented endpoints.