Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

General Information


ServiceAPIMethod
urac/joinPOST


Data Models: UsersTokens

Input


NameSourceMandatoryTypeSpecial FormatDescription
usernameBodyYESStringalphanumeric with _ , - characters only 
passwordBodyYESStringN/A 
firstNameBodyYESStringN/A 
lastNameBodyYESStringN/A 
emailBodyYESStringN/A 

 

Output


Valid Response

Valid Response Sample
{
	"result": true,
	"data": "..."
}

 

Invalid Response

Error Response Sample
{
    "result":false,
    "errors":{
        "codes":[402],
        "details":[
            {
                "code":402,
                "message":"User account already exists."
            }
        ]
    }
}



Error Codes


 

Code
Description
402User account already exists.
403Database Error


Example (CURL)


Request

Calling Join API
 > CURL -X POST http://127.0.0.1:4000/urac/join -d 'username=john&password=johnpassword&firstName=John&lastName=Doe&email=johndoe@domain.com'

Response

Join API response
{
	"result": true,
	"data": "819b0aed-edd8-47d5-ada0-9e5f93cb8248"
}
  • No labels