Check Global Username Availability
An overview of the Check Global Username Availability endpoint.
Endpoint Description
This endpoint validates the availability of a username across the R1 Discover platform, ensuring uniqueness for new user or admin account creation. It serves to prevent username conflicts by verifying that no existing user or admin has already registered the requested username.
HTTP Method
GET/api/v1/users/check-userame/global/{username}
Headers
Content-Type:
application/json
Accept:
application/json
Authorization:
Bearer {token}
URL Parameters
username (string): The desired username to check for availability.
Request Examples
curl --request GET \
--get "https://api.r1learning.com/api/v1/users/check-username/global/xyz123" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer {token}"
Response Examples
{
"error": 0,
"message": "Username 'john_doe' is available"
}
Notes
Authorization Required: Ensure the provided Bearer token is valid and has sufficient privileges to create an admin.
Data Validation: Usernames must be checked prior to creating new accounts to ensure they are not in use. Ensure to encode the username in the URL if it includes special characters or spaces.
Last updated