Check whether a given nickname (login) is already taken or available for use in the system.
Check if Login (Nickname) Is Available
The GET /api/users/ByNickname endpoint checks whether a specific nickname is already registered in the Netevia platform. It returns a boolean indicating availability, making it useful for account creation flows, login recovery, and user management workflows.
This endpoint requires a valid Bearer token and a query parameter containing the nickname to check.
Endpoint
GET /api/users/ByNickname
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint before creating a new user account to verify that the desired nickname is not already in use. It is also useful during account recovery flows to confirm whether a given nickname exists in the system, and for partner-side validation when allowing customers to choose or update their login nickname.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| login | string | Yes | The nickname to look up or check for availability. |
Response
200 OK
Returns a single boolean value.
| Field | Type | Description |
|---|---|---|
| (root) | boolean | true if the nickname is already taken (login exists); false if it is available. |
trueor
falseError Codes
| Code | When it happens |
|---|---|
| 400 | The login query parameter is missing or empty. |
| 401 | Token missing, expired, or invalid. |
| 403 | Insufficient permissions to query user login information. |
| 404 | No matching user or nickname found in the system. |
| 500 | Internal server error. |
Common Mistakes
- Omitting the
loginquery parameter entirely will result in a 400 error; the parameter is required. - Confusing the boolean response semantics:
truemeans the nickname is taken, not that it is free. Build your validation logic accordingly. - Using an expired token — tokens are valid for only 10 minutes; ensure you refresh before making the call.
- Sending the nickname in the request body instead of as a query parameter; this endpoint uses a query string, not a JSON body.
Related Endpoints
POST /api/auth/v2— Obtain a Bearer token using username, password, and partnerId.POST /api/auth/refresh— Refresh an existing Bearer token before it expires.
Example
curl -X GET "https://api.banking.netevia.dev/api/users/ByNickname?login=johndoe" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Accept: application/json"