General Information
...
Service | API | Method |
---|---|---|
urac | /join/validate | GET |
Data Model: %Link to Data Model%Models: Users, Tokens
Workflow: %Link to Architecture Page%
...
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
token | BodyQuery | YES | String | N/A | Generated by Urac and email to user after registration is completed. |
Output
...
Valid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": { "..." } } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result":false, "errors":{ "codes":[400406], "details":[ { "code":400406, "message":"ProblemInvalid withor thetoken providedhas passwordexpired." } ] } } |
Error Codes
Code | Description | 400 | Database Error
---|---|
406 | Invalid or token has expired. |
407 | Problem validating Request. Please try again. |
Example (CURL)
...
Request
Code Block | ||||
---|---|---|---|---|
| ||||
> CURL -X POSTGET http://127.0.0.1:4000/.../urac/join/validate?token=abcdef |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{
"result": true,
"data": {
"_id": "57063608622c47b5c097d19b",
"..."
}
} |