Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General Information

...

ServiceAPIMethod
urac/join/validateGET


Data Model: %Link to Data Model%

Workflow: %Link to Architecture Page%

Input

Models: UsersTokens

workflow: Validate Join Flow


Input

...

Type: application/json
NameSourceMandatoryTypeSpecial FormatDescription
 
token
Body
QueryYESStringN/A
 

...

Generated by Urac and email to user after registration is completed.


Output

...

Valid Response

Code Block
languagejs
titleValid Response Sample
{
	"result": true,
	"data": {
		"..."	
	}
}

...

true
}


Invalid Response

Code Block
languagejs
titleError Response Sample
{
    "result":false,
    "errors":{
        "codes":[400406],
        "details":[
            {
                "code":400406,
                "message":"ProblemInvalid withor thetoken providedhas passwordexpired."
            }
        ]
    }
}



Error Codes

 



Code
Description
400Database Error
406Invalid or token has expired.
407Problem validating Request. Please try again.


Example (CURL)

...

Request

Code Block
languagebash
titleCalling Validate API

...

 > CURL -X 

...

GET http://127.0.0.1:4000

...

/urac/join/validate?token=abcdef

Response

Code Block
languagejs
titleValidate API

...

response
{
	"result": true,
	"data": 

...

true
}