Validate Token v2
get
/jderest/v2/orchestrator/jde-validate-session
Determine if the the token passed is still valid.
Request
Header Parameters
-
jde-AIS-Auth: string
Token
-
jde-AIS-Auth-Device: string
Device Name
Response
Supported Media Types
- application/json
- application/xml
200 Response
Successful Execution - Token is Valid
400 Response
Bad Request - Invalid JSON Input
403 Response
Token is Invalid
415 Response
Invalid Content-Type Header - Must use application/json
444 Response
Invalid Token
Root Schema : ServiceErrorResponse
Type:
objectError Response
Show Source
-
errorText:
string
-
exception:
string
The class of the exception if an exception was thrown.
-
exceptionId:
string
ExceptionId, only if an exception record was written to the F980060
-
message:
string
Details about the error.
-
status:
string
Allowed Values:
[ "ERROR", "WARNING" ]Status determined by exception handling -
timeStamp:
string
The timestamp indicating the time the error message was returned.
-
type:
string
Optional type of error
-
userDefinedErrorText:
string
Optional error text added to an orchestration step.
500 Response
Server Failed to Process Request
Root Schema : ServiceErrorResponse
Type:
objectError Response
Show Source
-
errorText:
string
-
exception:
string
The class of the exception if an exception was thrown.
-
exceptionId:
string
ExceptionId, only if an exception record was written to the F980060
-
message:
string
Details about the error.
-
status:
string
Allowed Values:
[ "ERROR", "WARNING" ]Status determined by exception handling -
timeStamp:
string
The timestamp indicating the time the error message was returned.
-
type:
string
Optional type of error
-
userDefinedErrorText:
string
Optional error text added to an orchestration step.
Examples
Example Request
Send the AIS token in the jde-AIS-Auth header (and jde-AIS-Device if applicable) to validate the AIS Server session and associated HTML Server session.
curl "https://ais_server_url/jderest/v2/orchestrator/jde-validate-session" -H "Accept: application/json" -H "jde-AIS-Auth:044MyjuQDgaZAYfKd0ZEAUqM6x1LcnwBAblOqcGLL9KN98=MDE5MDEyNjU0MzUyNzQ1ODIwMjE1MTY5NTEwLjcxLjYyLjEyMzE3NTcxMDA0NjI3OTI="
Example Response - Valid
The following example shows the contents of the response body when the session (token) is valid. The HTTP status code will be 200.
{"isValidSession":true}
Example Response - Invalid
The following example shows one possible value for the response body when the token is invalid. It is best to use the status code for consistent determination of token validity. Anything other than a 200 status is an invalid token.
{"message":"Invalid Token","exception":"Exception","timeStamp":"2025-09-19T20:16:27.934+0000"}