Check Username
General Information
Service | API | Method |
---|---|---|
urac | /checkUsername | GET |
Data Model: Users
Workflow: Check Username Flow
Input
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
username | Query | YES | String | N/A | username or email |
Output
Valid Response
Valid Response Sample
{ "result": true, "data": true //true or false }
Invalid Response
Error Response Sample
{ "result":false, "errors":{ "codes":[400], "details":[ { "code":400, "message":"Database connection error" } ] } }
Error Codes
Code | Description |
---|---|
400 | Database connection error |
Example (CURL)
Request
Calling YOUR API
> CURL -X GET http://127.0.0.1:4000/urac/checkUsername?username=john
Response
YOUR API response
{ "result": true, "data" : true }