GET
/
users
/
{userId}
/
sso
curl --request GET \
--url 'https://YOURSITE.konstant.ly/openapi/v1/users/1234567890/sso' \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
    "url": "https://YOURSITE.konstant.ly/sso/login/abcdef123456789"
}
Generate a temporary SSO URL that allows direct login for a specific user.

Request Headers

X-API-KEY
string
required
API Key. Go to your Konstantly site > Settings > API and copy the value from there.

URL Parameters

userId
string
required
User API ID

Response

url
string
required
SSO URL that can be used for direct login. The URL expires in 30 seconds.

Error Responses

404
object
Not Found error response
curl --request GET \
--url 'https://YOURSITE.konstant.ly/openapi/v1/users/1234567890/sso' \
--header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{
    "url": "https://YOURSITE.konstant.ly/sso/login/abcdef123456789"
}