Skip to content

Generate a single-use user login link

Request

Security
BearerAuth
Path
identifierstringrequired
Enum:"id""email""UID"
Example:email
identifier_valuestringrequired
Example:john.smith@example.org
Bodyapplication/json

It may be necessary to redirect a user to our platform and automatically authenticate them. Using this endpoint your system can receive a URL which will authenticate the user.

If accessing via an organisation level token you will need to provide an organisation group id in order to indicate which group the user belongs to.

organisation_group_idinteger
Example:1
curl -i -X POST \
  https://propello-cloud.redocly.app/_mock/openapi/v3/user/login-url/email/john.smith@example.org \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "organisation_group_id": 1
  }'

Responses

OK

Bodyapplication/json
statusinteger
Example:200
timestampstring
Example:"1970-01-30T00:00:00.000000Z"
dataobject
Response
{ "status": 200, "timestamp": "1970-01-30T00:00:00.000000Z", "data": { "login_url": "https://example.yourperx.com/auth-token/BkfEhiym5mvKYSrAp5iQ0YnRTB9mdo3r9kLXe6EuEhTPoAONLNIJ8TNzGerJVwgX" } }