Console
Auth — SSO

Create SSO Token

Creates a short-lived Single Sign-On token and returns the hosted login URL. Redirect the user to that URL, then poll sso_check to receive the session token.

POST /api/vaneltonid/sso_create.php
Requires Authorization: AppID:AppKey header — WebKey not accepted

Request body

FieldTypeRequiredDescription
redirect_uristringoptionalURL to redirect the user to after authorization. Receives ?sso=TOKEN appended. Omit for desktop apps that use polling without a redirect.

Success response 200

{
  "success": true,
  "sso_token": "a3f9...64chars",
  "expires_in": 600,
  "login_url": "https://vaneltonmedia.com/login?sso=a3f9...64chars"
}

Response fields

FieldTypeDescription
sso_tokenstring64-character token — pass to sso_check.php
expires_innumberSeconds until the token expires (always 600 — 10 minutes)
login_urlstringFull URL to redirect the user to. Opens the Vanelton ID hosted login page with the token pre-filled.

Errors

CodeCause
401Missing, malformed, or invalid AppID:AppKey credentials
After creating the token, redirect the user to login_url and begin polling sso_check every 3 seconds. The token expires in 10 minutes if not authorized.