Check whether the session behind an access token is still valid.
const url = 'https://session-api.sudomimus.com/introspect';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"accessToken":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://session-api.sudomimus.com/introspect \ --header 'Content-Type: application/json' \ --data '{ "accessToken": "example" }'Returns the current effective status of the session identified by a signed access token. No client-auth JWT is required. The access token’s own expiry is intentionally ignored because the response describes the underlying session rather than token validity.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Signed access credential identifying the session to inspect; its own exp is intentionally ignored.
Examplegenerated
{ "accessToken": "example"}Responses
Section titled “Responses”Status of the session behind the access token.
object
Example
{ "status": "active"}Access token missing, malformed, or with an invalid signature.
Error response body. A missing, malformed, or structurally invalid JSON
request body returns InvalidBody. Documented status-only failures have
an empty response body.
object
Examplegenerated
{ "reason": "example", "message": "example"}default
Section titled “default”Error response.
Error response body. A missing, malformed, or structurally invalid JSON
request body returns InvalidBody. Documented status-only failures have
an empty response body.
object
Examplegenerated
{ "reason": "example", "message": "example"}