Skip to main content
This endpoint decodes and validates the JWT supplied in the X-OTAS-USER-TOKEN header. On success it returns the full user profile associated with the token. This is useful for verifying that a stored token is still valid and for resolving the current user’s identity without re-authenticating.
The JWT is read exclusively from the X-OTAS-USER-TOKEN request header. No request body is required or expected.

Request

Method: POST
URL: http://localhost:8000/api/user/v1/authenticate/
Authentication: X-OTAS-USER-TOKEN header

Headers

string
required
Signed JWT returned by /api/user/v1/login/ or /api/user/v1/create/.

Response

integer
required
1 on success, 0 on failure.
string
required
user_authenticated on success.
object

Example

Error responses