API ReferenceSession
POST
/v1/auth/try-refreshAuthorization
Descope Project ID:Refresh JWT AuthorizationBearer <token>
Project ID:Refresh JWT as bearer token.
In: header
Request Body
application/json
externalToken?string
Refresh the current session if it is valid, will not fail if the refresh token is missing or invalid
curl -X POST "https://api.descope.com/v1/auth/try-refresh" \ -H "Content-Type: application/json" \ -d '{}'{ "sessionJwt": "string", "refreshJwt": "string", "cookieDomain": "string", "cookiePath": "string", "cookieMaxAge": 0, "cookieExpiration": 0, "sessionExpiration": 0, "externalToken": "string", "claims": {}, "tenantSSOID": "string", "trustedDeviceJwt": "string", "nextRefreshSeconds": 0, "cookieName": "string", "sessionCookieName": "string", "sessionCookieDomain": "string", "knownDeviceJwt": "string", "ssoAuthenticationOnly": true, "externalPasskey": true}/** * This is a copy of JWTResponse with all fields optional * This is used so in case an empty response is returned, it won't send zero values */export interface Response {sessionJwt?: stringrefreshJwt?: stringcookieDomain?: stringcookiePath?: stringcookieMaxAge?: numbercookieExpiration?: number/** * For convenience, we use the same field numbers as in JWTResponse * optional userv1.ResponseUser user = 7; * optional bool firstSeen = 8; * optional IDPResponse idpResponse = 11; */sessionExpiration?: numberexternalToken?: stringclaims?: {}tenantSSOID?: stringtrustedDeviceJwt?: stringnextRefreshSeconds?: numbercookieName?: stringsessionCookieName?: stringsessionCookieDomain?: stringknownDeviceJwt?: stringssoAuthenticationOnly?: booleanexternalPasskey?: boolean} Was this helpful?
Logout POST
IDP SSO Logout from the session and delete the session and refresh cookies. For a SAML app with Single Logout on, it also takes a SAML LogoutRequest (and the LogoutResponses of a front-channel logout) over the HTTP-Redirect (GET) or HTTP-POST (POST) binding, and answers with a signed LogoutResponse.
Inbound Apps (OAuth) API Overview
REST API reference for Descope's OAuth 2.0 authorization server used by Inbound Apps — authorize, token, revoke, and userinfo endpoints.