TIS Training API Documentation
  • Welcome!
  • Quick Start
  • Managing Users
  • Single Sign On (SSO)
    • General Options
    • Role and Group Mappings
    • Connection Types
      • Microsoft Entra ID (Formerly Azure AD)
      • Google Workspace
      • OpenID Connect (OIDC)
      • SAML (Security Assertion Markup Language)
  • SCORM Packages
  • Webhooks
  • API Reference
    • Users
      • 🔵GET users
      • 🔵GET users/seats
      • 🟢POST users
      • 🟠PUT users
      • 🟢POST users/password
      • 🟡PATCH users/enable
      • 🟡PATCH users/disable
      • 🔴DELETE users
    • Results
      • 🔵GET results
      • 🔵GET results/group
    • Groups
      • 🔵GET groups
      • 🟢POST groups/users
      • 🔴DELETE groups/users
    • 🔵GET courses
    • 🔵GET filters
    • 🟢POST login
    • â›”Standard Error Format
  • Webhook Reference
    • Standard Structure
    • Course Complete
    • Multi-Course Complete
  • OpenAPI Specification
Powered by GitBook
On this page
  • URL
  • Parameters
  • Responses
  1. API Reference

POST login

Generates a url that will log a user in automatically when navigated to. Valid for 5 minutes.

If a user has joined more than one organisation they will not be able to switch until logging out and logging back in using the standard login screen.

URL

POST https://training.tapintosafety.com.au/api/v2/login

Parameters

Query Parameters

Name
Type
Description

userIdentifier*

string

The identifier of the user to generate the login URL for. Can be the users email or Id.

* required

curl https://training.tapintosafety.com.au/api/v2/login \
    -X POST                                             \
    -G -d "userIdentifier=alicesmith@example.com"       \
    -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&orgId=00000000-0000-0000-0000-000000000000

400 - Bad Request

Error Code: INVALID_MODEL

userIdentifier has 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.

PreviousGET filtersNextStandard Error Format

Last updated 8 months ago

🟢