π’POST login/autostart
Generates a url that will log a user in automatically when navigated to. Valid for 5 minutes.
URL
POST https://training.tapintosafety.com.au/api/v2/login/autostartParameters
Query Parameters
userIdentifier*
string
The identifier of the user to generate the login URL for. Can be the users email or Id.
courseId*
string
The ID of the course that should be started automatically. This must be formatted as a full and valid GUID, and a course with the given ID must exist.
* required
curl https://training.tapintosafety.com.au/api/v2/login \
-X POST \
-G -d "[email protected]" \
-d "courseId=00000000-0000-0000-0000-000000000000" \
-H "Authorization: Bearer $APIKey" \
-H "Content-Length: 0"Responses
200 - OK
A URL to pass to the user being logged in.
JSON is not returned for this response. Instead, the body will be the URL to pass to the user.
https://training.tapintosafety.com.au/account/login?token=sampleToken&userId=00000000-0000-0000-0000-000000000000&moduleId=https://training.tapintosafety.com.au/account/login?token=sampleToken&userId=00000000-0000-0000-0000-000000000000&moduleId=00000000-0000-0000-0000-000000000000&orgId=00000000-0000-0000-0000-000000000000400 - Bad Request
Error Code: INVALID_MODEL
The userIdentifier or courseId have not been specified.
400 - Bad Request
Error Code: USER_NOT_FOUND
A user could not be found with the specified userIdentifier
400 - Bad Request
Error Code: USER_LOCKOUT
The user specified is currently locked out of the organisations training.
400 - Bad Request
Error Code: COUSRE_NOT_FOUND
A course could not be found with the specified courseId
Last updated