Authentication and Users
Every operation below is generated from the OpenAPI v2 specification and includes parameters, request fields, response fields, errors, and examples.
Create and use an API key
Sign in to your NWMS installation and open My account (Мой аккаунт) → API keys (API-ключи). Name the key after your integration and choose no expiration or a date and time. Select Create API key, then copy and store the full token securely. The secret is shown once, at creation.
Send the key in the Authorization: Bearer YOUR_TOKEN header for API v1 or v2. A key created in the profile requires no prior POST /api/login request. Existing integrations can continue to obtain an access_token through POST /api/login.
The key uses the owner's current permissions and data scope. All keys share the user's rate limits. The key list shows the date and time the API last accepted each key. Check the API response to confirm the operation's result.
An expired or revoked key returns 401. If you receive 403, check the owner's permissions. To rotate a key, create a new one, update the integration, verify a request, then delete the old key. POST /api/logout revokes the token sent with that request.
Account
Get current user
| operationId | getCurrentUser |
|---|---|
| Tag | Account |
| Security | bearerAuth |
Returns one account when it exists and is visible to the authenticated account.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/me" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
This operation has no path, query, or header parameters.
Request body
No request body.
Responses
200 Successful response.
Successful response.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | User |
Authenticated or visible NWMS user. | |
||
data.id |
yes | integer:int64 |
readOnly | min: 1 | 1001 |
|
data.created_at |
no | string:date-time | null |
"2026-07-14T10:30:00Z" |
|||
data.updated_at |
no | string:date-time | null |
"2026-07-14T10:30:00Z" |
|||
data.name |
yes | string |
"Client Manager" |
|||
data.email |
yes | string:email |
"client.manager@nwms.cloud" |
|||
data.language |
no | string | null |
"en" |
|||
data.storage_id |
no | string | null |
"default" |
|||
data.domain_id |
no | integer:int64 | null |
min: 1 | 3 |
||
data.warehouse_id |
no | integer:int64 | null |
min: 1 | 42 |
||
data.parent_id |
no | integer:int64 | null |
min: 1 | 15 |
||
data.data_scope |
no | string | null |
"domain" |
|||
data.roles |
no | array<string> |
|
|||
data.roles[] |
no | string |
"clients" |
|||
data.domain |
no | object | null |
|
|||
data.domain.id |
yes | integer:int64 |
min: 1 | 3 |
||
data.domain.name |
yes | string |
"Demo Domain" |
|||
data.warehouse |
no | object | null |
|
|||
data.warehouse.id |
yes | integer:int64 |
min: 1 | 42 |
||
data.warehouse.name |
yes | string |
"Warehouse Sofia" |
|||
meta |
yes | ResponseMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | "v2" |
||
meta.deleted |
no | boolean |
true |
|||
meta.id |
no | integer:int64 | null |
min: 1 | 1001 |
||
meta.command_replayed |
no | boolean |
True when an idempotent cross-dock command returned the original successful result. | false |
||
meta.crossdock_configuration |
no | object | null |
|
|||
meta.crossdock_configuration.physical_warehouse_id |
yes | integer:int64 |
min: 1 | 42 |
||
meta.crossdock_configuration.enabled |
yes | boolean |
true |
|||
meta.crossdock_configuration.process_version |
yes | string |
"direct_order_v1" |
Response examples
success
{
"data": {
"id": 15,
"name": "Client Manager",
"email": "client.manager@nwms.cloud",
"language": "en",
"storage_id": "default",
"domain_id": 3,
"warehouse_id": 42,
"parent_id": null,
"data_scope": "domain",
"roles": [
"clients"
],
"domain": {
"id": 3,
"name": "Demo Domain"
},
"warehouse": {
"id": 42,
"name": "Warehouse Sofia"
},
"created_at": "2026-07-14T09:00:00Z",
"updated_at": "2026-07-14T09:30:00Z"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
Unauthorized
Authentication is required.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
AUTH_REQUIRED
{
"message": "Authentication is required.",
"error": "AUTH_REQUIRED"
}
403 Forbidden
Forbidden
The authenticated account is not allowed to perform this action.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
FORBIDDEN
{
"message": "The authenticated account is not allowed to perform this action.",
"error": "FORBIDDEN"
}
429 Rate limit exceeded
TooManyRequests
Rate limit exceeded. Inspect limit_type and honor Retry-After.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"API write request limit exceeded for this user." |
|||
error |
yes | string |
"RATE_LIMITED" |
|||
limit_type |
yes | enum |
enum: general, write, batch | The quota that rejected the request. | "write" |
|
limit |
yes | integer |
min: 1 | Allowed requests per minute for this quota. | 120 |
|
retry_after |
yes | integer |
min: 0 | Seconds to wait before retrying. | 30 |
500 Internal server error
InternalServerError
An unexpected server error occurred.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
INTERNAL_SERVER_ERROR
{
"message": "An unexpected server error occurred.",
"error": "INTERNAL_SERVER_ERROR"
}
Users
List users
| operationId | listUsers |
|---|---|
| Tag | Users |
| Security | bearerAuth |
Returns users visible to the authenticated account. Use documented query parameters for filtering, sorting, and pagination.
Unknown read parameters are ignored. per_page is silently capped; use meta.per_page. Date-only boundaries follow the installation's stored calendar dates; ISO timestamps are serialized in UTC. The default general API limit is 600/minute; a user-specific override may apply. Its bucket is shared by authenticated user, not by shop/domain; Retry-After is returned on throttling.
Unknown read parameters are ignored. per_page is silently capped; use meta.per_page. Date-only boundaries follow the installation's stored calendar dates; ISO timestamps are serialized in UTC. The default general API limit is 600/minute; a user-specific override may apply. Its bucket is shared by authenticated user, not by shop/domain; Retry-After is returned on throttling.
Unknown read parameters are ignored. per_page is silently capped; use meta.per_page. Date-only boundaries follow the installation's stored calendar dates; ISO timestamps are serialized in UTC. The default general API limit is 600/minute; a user-specific override may apply. Its bucket is shared by authenticated user, not by shop/domain; Retry-After is returned on throttling.
Unknown read parameters are ignored. per_page is silently capped; use meta.per_page. Date-only boundaries follow the installation's stored calendar dates; ISO timestamps are serialized in UTC. The default general API limit is 600/minute; a user-specific override may apply. Its bucket is shared by authenticated user, not by shop/domain; Retry-After is returned on throttling.
Unknown read parameters are ignored. per_page is silently capped; use meta.per_page. Date-only boundaries follow the installation's stored calendar dates; ISO timestamps are serialized in UTC. The default general API limit is 600/minute; a user-specific override may apply. Its bucket is shared by authenticated user, not by shop/domain; Retry-After is returned on throttling.
Unknown read parameters are ignored. per_page is silently capped; use meta.per_page. Date-only boundaries follow the installation's stored calendar dates; ISO timestamps are serialized in UTC. The default general API limit is 600/minute; a user-specific override may apply. Its bucket is shared by authenticated user, not by shop/domain; Retry-After is returned on throttling.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/users" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
page |
query | no | integer:int64 |
form | true | min: 1 | Page number. The same filter may also be sent as filter[page] where supported by the Laravel query adapter. |
1 |
per_page |
query | no | integer:int64 |
form | true | min: 1 max: 500 |
Number of records per page. Default is 50; maximum is 500. The same filter may also be sent as filter[per_page] where supported by the Laravel query adapter. |
50 |
sort |
query | no | string |
form | false | pattern: ^-?[A-Za-z0-9_]+(,-?[A-Za-z0-9_]+)*$ | Comma-separated sort fields. Prefix with - for descending order. Allowed fields: id, name, email, domain_id, warehouse_id, created_at, updated_at. Default: -id. The same filter may also be sent as filter[sort] where supported by the Laravel query adapter. |
"-id" |
id |
query | no | integer:int64 |
form | true | min: 1 | Filter by id using exact matching. The same filter may also be sent as filter[id] where supported by the Laravel query adapter. |
1001 |
domain_id |
query | no | integer:int64 |
form | true | min: 1 | Filter by domain_id using exact matching. The same filter may also be sent as filter[domain_id] where supported by the Laravel query adapter. |
3 |
warehouse_id |
query | no | integer:int64 |
form | true | min: 1 | Filter by warehouse_id using exact matching. The same filter may also be sent as filter[warehouse_id] where supported by the Laravel query adapter. |
42 |
parent_id |
query | no | integer:int64 |
form | true | min: 1 | Filter by parent_id using exact matching. The same filter may also be sent as filter[parent_id] where supported by the Laravel query adapter. |
1 |
data_scope |
query | no | string |
form | true | Filter by data_scope using exact matching. The same filter may also be sent as filter[data_scope] where supported by the Laravel query adapter. |
"domain" |
|
name |
query | no | string |
form | true | Filter by name using partial text matching. The same filter may also be sent as filter[name] where supported by the Laravel query adapter. |
"Coffee" |
|
email |
query | no | string |
form | true | Filter by email using partial text matching. The same filter may also be sent as filter[email] where supported by the Laravel query adapter. |
"client.manager@nwms.cloud" |
|
id_from |
query | no | number:float |
form | true | Lower inclusive numeric boundary for id. The same filter may also be sent as filter[id_from] where supported by the Laravel query adapter. |
19.99 |
|
id_to |
query | no | number:float |
form | true | Upper inclusive numeric boundary for id. The same filter may also be sent as filter[id_to] where supported by the Laravel query adapter. |
19.99 |
Request body
No request body.
Responses
200 Successful response.
Successful response.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | array<User> |
|
|||
data[] |
no | User |
Authenticated or visible NWMS user. | |
||
data[].id |
yes | integer:int64 |
readOnly | min: 1 | 1001 |
|
data[].created_at |
no | string:date-time | null |
"2026-07-14T10:30:00Z" |
|||
data[].updated_at |
no | string:date-time | null |
"2026-07-14T10:30:00Z" |
|||
data[].name |
yes | string |
"Client Manager" |
|||
data[].email |
yes | string:email |
"client.manager@nwms.cloud" |
|||
data[].language |
no | string | null |
"en" |
|||
data[].storage_id |
no | string | null |
"default" |
|||
data[].domain_id |
no | integer:int64 | null |
min: 1 | 3 |
||
data[].warehouse_id |
no | integer:int64 | null |
min: 1 | 42 |
||
data[].parent_id |
no | integer:int64 | null |
min: 1 | 15 |
||
data[].data_scope |
no | string | null |
"domain" |
|||
data[].roles |
no | array<string> |
|
|||
data[].roles[] |
no | string |
"clients" |
|||
data[].domain |
no | object | null |
|
|||
data[].domain.id |
yes | integer:int64 |
min: 1 | 3 |
||
data[].domain.name |
yes | string |
"Demo Domain" |
|||
data[].warehouse |
no | object | null |
|
|||
data[].warehouse.id |
yes | integer:int64 |
min: 1 | 42 |
||
data[].warehouse.name |
yes | string |
"Warehouse Sofia" |
|||
links |
yes | PaginationLinks |
|
|||
links.first |
yes | string:uri | null |
"https://betawms.ffcdek.ru/api/v2/orders?page=1" |
|||
links.last |
yes | string:uri | null |
"https://betawms.ffcdek.ru/api/v2/orders?page=2" |
|||
links.prev |
yes | string:uri | null |
|
|||
links.next |
yes | string:uri | null |
"https://betawms.ffcdek.ru/api/v2/orders?page=2" |
|||
meta |
yes | PaginationMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | "v2" |
||
meta.current_page |
yes | integer:int32 |
min: 1 | 1 |
||
meta.from |
yes | integer:int32 | null |
min: 1 | 1 |
||
meta.last_page |
yes | integer:int32 |
min: 1 | 2 |
||
meta.path |
yes | string:uri |
"https://betawms.ffcdek.ru/api/v2/orders" |
|||
meta.per_page |
yes | integer:int32 |
min: 1 | 50 |
||
meta.to |
yes | integer:int32 | null |
min: 1 | 50 |
||
meta.total |
yes | integer:int32 |
min: 0 | 73 |
Response examples
success
{
"data": [
{
"id": 15,
"name": "Client Manager",
"email": "client.manager@nwms.cloud",
"language": "en",
"storage_id": "default",
"domain_id": 3,
"warehouse_id": 42,
"parent_id": null,
"data_scope": "domain",
"roles": [
"clients"
],
"domain": {
"id": 3,
"name": "Demo Domain"
},
"warehouse": {
"id": 42,
"name": "Warehouse Sofia"
},
"created_at": "2026-07-14T09:00:00Z",
"updated_at": "2026-07-14T09:30:00Z"
}
],
"links": {
"first": "https://betawms.ffcdek.ru/api/v2/users?page=1",
"last": "https://betawms.ffcdek.ru/api/v2/users?page=2",
"prev": null,
"next": "https://betawms.ffcdek.ru/api/v2/users?page=2"
},
"meta": {
"api_version": "v2",
"current_page": 1,
"from": 1,
"last_page": 2,
"path": "https://betawms.ffcdek.ru/api/v2/users",
"per_page": 50,
"to": 50,
"total": 73
}
}
401 Authentication required
Unauthorized
Authentication is required.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
AUTH_REQUIRED
{
"message": "Authentication is required.",
"error": "AUTH_REQUIRED"
}
403 Forbidden
Forbidden
The authenticated account is not allowed to perform this action.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
FORBIDDEN
{
"message": "The authenticated account is not allowed to perform this action.",
"error": "FORBIDDEN"
}
429 Rate limit exceeded
TooManyRequests
Rate limit exceeded. Inspect limit_type and honor Retry-After.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"API write request limit exceeded for this user." |
|||
error |
yes | string |
"RATE_LIMITED" |
|||
limit_type |
yes | enum |
enum: general, write, batch | The quota that rejected the request. | "write" |
|
limit |
yes | integer |
min: 1 | Allowed requests per minute for this quota. | 120 |
|
retry_after |
yes | integer |
min: 0 | Seconds to wait before retrying. | 30 |
500 Internal server error
InternalServerError
An unexpected server error occurred.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
INTERNAL_SERVER_ERROR
{
"message": "An unexpected server error occurred.",
"error": "INTERNAL_SERVER_ERROR"
}
Create a user and assign roles
| operationId | createUser |
|---|---|
| Tag | Users |
| Security | bearerAuth |
Creates a user using the same creation and role assignment permissions as the WMS Users screen. Send a Sanctum Bearer token belonging to an account with access to that screen and permission to create users. Assign role IDs available to that account in WMS. The requested domain, warehouse and effective data scope must stay within the caller's authorized scope.
Supply an existing warehouse ID when needed. Omitting the domain uses the caller's domain. Omitting the warehouse uses the caller's assignment in the same domain, if any. Use an identical JSON body and Idempotency-Key to retry. A successful replay uses the original user ID and returns Idempotency-Replayed. A conflict on the key returns 409. A duplicate email without a successful replay returns 422.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request POST "${NWMS_BASE_URL}/api/v2/users" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}" \
--header "Idempotency-Key: ${NWMS_REQUEST_KEY}" \
--header "Content-Type: application/json" \
--data-binary @request.jsonParameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
Idempotency-Key |
header | no | string |
maxLength: 191 | Optional idempotency key for API v2 write requests. Successful 2xx/3xx responses are replayed for the same key and identical payload for one day. The same key with a different payload returns 409. |
"ord-create-20260714-001" |
Request body
Inline request body required
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | object |
|
|||
data.name |
yes | string |
maxLength: 255 | |
||
data.email |
yes | string:email |
maxLength: 255 | |
||
data.password |
yes | string |
writeOnly | minLength: 1 maxLength: 72 |
Initial password. Length is measured in bytes. | |
data.language |
no | string |
maxLength: 6 | Language code. Defaults to the caller's language. | |
|
data.role_ids |
no | array<integer> |
Role IDs from this installation that the caller may assign in WMS. | |
||
data.role_ids[] |
no | integer |
min: 1 | |
||
data.domain_id |
no | integer |
min: 1 | |
||
data.warehouse_id |
no | integer |
min: 1 | |
||
data.data_scope |
no | enum |
enum: global, domain, warehouse, owner | Requested data scope. Role defaults apply under the WMS policy. | |
|
data.client_billing |
no | object |
Required for a main client account when CDEK client billing defaults are enabled. | |
||
data.client_billing.contractUuid |
yes | string:uuid |
|
|||
data.client_billing.currency_id |
yes | integer |
min: 1 | |
||
data.client_billing.billing_id_center |
yes | integer |
min: 1 | |
||
data.client_billing.billing_id_region |
yes | integer |
min: 1 | |
Request examples
Example
{
"data": {
"name": "Warehouse operator",
"email": "warehouse.operator@example.test",
"password": "<initial-password>",
"language": "rus",
"role_ids": [
10
],
"warehouse_id": 42
}
}
Responses
201 User created or original successful result replayed.
User created or original successful result replayed.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | User |
Authenticated or visible NWMS user. | |
||
data.id |
yes | integer:int64 |
readOnly | min: 1 | 1001 |
|
data.created_at |
no | string:date-time | null |
"2026-07-14T10:30:00Z" |
|||
data.updated_at |
no | string:date-time | null |
"2026-07-14T10:30:00Z" |
|||
data.name |
yes | string |
"Client Manager" |
|||
data.email |
yes | string:email |
"client.manager@nwms.cloud" |
|||
data.language |
no | string | null |
"en" |
|||
data.storage_id |
no | string | null |
"default" |
|||
data.domain_id |
no | integer:int64 | null |
min: 1 | 3 |
||
data.warehouse_id |
no | integer:int64 | null |
min: 1 | 42 |
||
data.parent_id |
no | integer:int64 | null |
min: 1 | 15 |
||
data.data_scope |
no | string | null |
"domain" |
|||
data.roles |
no | array<string> |
|
|||
data.roles[] |
no | string |
"clients" |
|||
data.domain |
no | object | null |
|
|||
data.domain.id |
yes | integer:int64 |
min: 1 | 3 |
||
data.domain.name |
yes | string |
"Demo Domain" |
|||
data.warehouse |
no | object | null |
|
|||
data.warehouse.id |
yes | integer:int64 |
min: 1 | 42 |
||
data.warehouse.name |
yes | string |
"Warehouse Sofia" |
|||
meta |
yes | ResponseMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | "v2" |
||
meta.deleted |
no | boolean |
true |
|||
meta.id |
no | integer:int64 | null |
min: 1 | 1001 |
||
meta.command_replayed |
no | boolean |
True when an idempotent cross-dock command returned the original successful result. | false |
||
meta.crossdock_configuration |
no | object | null |
|
|||
meta.crossdock_configuration.physical_warehouse_id |
yes | integer:int64 |
min: 1 | 42 |
||
meta.crossdock_configuration.enabled |
yes | boolean |
true |
|||
meta.crossdock_configuration.process_version |
yes | string |
"direct_order_v1" |
Response examples
Example
{
"data": {
"id": 123,
"name": "Warehouse operator",
"email": "warehouse.operator@example.test",
"language": "rus",
"storage_id": null,
"domain_id": 3,
"warehouse_id": 42,
"parent_id": null,
"data_scope": null,
"roles": [
"staff"
],
"domain": null,
"warehouse": null,
"created_at": "2026-11-18T18:00:00.000000Z",
"updated_at": "2026-11-18T18:00:00.000000Z"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
Unauthorized
Authentication is required.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
AUTH_REQUIRED
{
"message": "Authentication is required.",
"error": "AUTH_REQUIRED"
}
403 Forbidden
Forbidden
The authenticated account is not allowed to perform this action.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
FORBIDDEN
{
"message": "The authenticated account is not allowed to perform this action.",
"error": "FORBIDDEN"
}
409 Conflict
Conflict
The request conflicts with the current resource state or idempotency key state.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
idempotencyConflict
{
"message": "The idempotency key is already used with a different payload.",
"error": "IDEMPOTENCY_KEY_CONFLICT"
}
422 Validation error
ValidationError
Validation failed.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The given data was invalid." |
|||
error |
no | string |
"VALIDATION_ERROR" |
|||
errors |
yes | object |
{"warehouse_id":["The selected warehouse is invalid."]} |
Response examples
validationError
{
"message": "The given data was invalid.",
"error": "VALIDATION_ERROR",
"errors": {
"warehouse_id": [
"The selected warehouse is invalid."
]
}
}
429 Rate limit exceeded
TooManyRequests
Rate limit exceeded. Inspect limit_type and honor Retry-After.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"API write request limit exceeded for this user." |
|||
error |
yes | string |
"RATE_LIMITED" |
|||
limit_type |
yes | enum |
enum: general, write, batch | The quota that rejected the request. | "write" |
|
limit |
yes | integer |
min: 1 | Allowed requests per minute for this quota. | 120 |
|
retry_after |
yes | integer |
min: 0 | Seconds to wait before retrying. | 30 |
500 Internal server error
InternalServerError
An unexpected server error occurred.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
INTERNAL_SERVER_ERROR
{
"message": "An unexpected server error occurred.",
"error": "INTERNAL_SERVER_ERROR"
}
Get user
| operationId | getUsers |
|---|---|
| Tag | Users |
| Security | bearerAuth |
Returns one user when it exists and is visible to the authenticated account.
HTTP request example (cURL)
Set your server and token. Replace sample IDs with accessible IDs. For requests with a body, save the applicable JSON example below as request.json and replace sample values before sending. Idempotency-Key identifies one logical operation.
curl --globoff --request GET "${NWMS_BASE_URL}/api/v2/users/1001" \
--header "Accept: application/json" \
--header "Authorization: Bearer ${NWMS_TOKEN}"Parameters
| Name | In | Required | Type | Style | Explode | Constraints | Description | Example |
|---|---|---|---|---|---|---|---|---|
id |
path | yes | integer:int64 |
min: 1 | User ID. | 1001 |
Request body
No request body.
Responses
200 Successful response.
Successful response.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
data |
yes | User |
Authenticated or visible NWMS user. | |
||
data.id |
yes | integer:int64 |
readOnly | min: 1 | 1001 |
|
data.created_at |
no | string:date-time | null |
"2026-07-14T10:30:00Z" |
|||
data.updated_at |
no | string:date-time | null |
"2026-07-14T10:30:00Z" |
|||
data.name |
yes | string |
"Client Manager" |
|||
data.email |
yes | string:email |
"client.manager@nwms.cloud" |
|||
data.language |
no | string | null |
"en" |
|||
data.storage_id |
no | string | null |
"default" |
|||
data.domain_id |
no | integer:int64 | null |
min: 1 | 3 |
||
data.warehouse_id |
no | integer:int64 | null |
min: 1 | 42 |
||
data.parent_id |
no | integer:int64 | null |
min: 1 | 15 |
||
data.data_scope |
no | string | null |
"domain" |
|||
data.roles |
no | array<string> |
|
|||
data.roles[] |
no | string |
"clients" |
|||
data.domain |
no | object | null |
|
|||
data.domain.id |
yes | integer:int64 |
min: 1 | 3 |
||
data.domain.name |
yes | string |
"Demo Domain" |
|||
data.warehouse |
no | object | null |
|
|||
data.warehouse.id |
yes | integer:int64 |
min: 1 | 42 |
||
data.warehouse.name |
yes | string |
"Warehouse Sofia" |
|||
meta |
yes | ResponseMeta |
|
|||
meta.api_version |
yes | enum |
enum: v2 | "v2" |
||
meta.deleted |
no | boolean |
true |
|||
meta.id |
no | integer:int64 | null |
min: 1 | 1001 |
||
meta.command_replayed |
no | boolean |
True when an idempotent cross-dock command returned the original successful result. | false |
||
meta.crossdock_configuration |
no | object | null |
|
|||
meta.crossdock_configuration.physical_warehouse_id |
yes | integer:int64 |
min: 1 | 42 |
||
meta.crossdock_configuration.enabled |
yes | boolean |
true |
|||
meta.crossdock_configuration.process_version |
yes | string |
"direct_order_v1" |
Response examples
success
{
"data": {
"id": 15,
"name": "Client Manager",
"email": "client.manager@nwms.cloud",
"language": "en",
"storage_id": "default",
"domain_id": 3,
"warehouse_id": 42,
"parent_id": null,
"data_scope": "domain",
"roles": [
"clients"
],
"domain": {
"id": 3,
"name": "Demo Domain"
},
"warehouse": {
"id": 42,
"name": "Warehouse Sofia"
},
"created_at": "2026-07-14T09:00:00Z",
"updated_at": "2026-07-14T09:30:00Z"
},
"meta": {
"api_version": "v2"
}
}
401 Authentication required
Unauthorized
Authentication is required.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
AUTH_REQUIRED
{
"message": "Authentication is required.",
"error": "AUTH_REQUIRED"
}
403 Forbidden
Forbidden
The authenticated account is not allowed to perform this action.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
FORBIDDEN
{
"message": "The authenticated account is not allowed to perform this action.",
"error": "FORBIDDEN"
}
404 Not found
NotFound
The requested resource was not found or is outside the authenticated account scope.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
NOT_FOUND
{
"message": "The requested resource was not found or is outside the authenticated account scope.",
"error": "NOT_FOUND"
}
429 Rate limit exceeded
TooManyRequests
Rate limit exceeded. Inspect limit_type and honor Retry-After.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"API write request limit exceeded for this user." |
|||
error |
yes | string |
"RATE_LIMITED" |
|||
limit_type |
yes | enum |
enum: general, write, batch | The quota that rejected the request. | "write" |
|
limit |
yes | integer |
min: 1 | Allowed requests per minute for this quota. | 120 |
|
retry_after |
yes | integer |
min: 0 | Seconds to wait before retrying. | 30 |
500 Internal server error
InternalServerError
An unexpected server error occurred.
| Field | Required | Type | Flags | Constraints | Description | Example |
|---|---|---|---|---|---|---|
message |
yes | string |
"The request could not be processed." |
|||
error |
yes | string |
"BAD_REQUEST" |
Response examples
INTERNAL_SERVER_ERROR
{
"message": "An unexpected server error occurred.",
"error": "INTERNAL_SERVER_ERROR"
}