GET
/v2/keys/{projectId}

Get public key for session token validation (V2)

This API endpoint will return the public key needed to handle the session token JWT validation. projectId is provided as a GET parameter, so this endpoint can be executed with a browser.

This endpoint differentiates from Token Validation Key (V1) as the data is returned in JSON format rather than an array.

Try it

/v2/keys/{projectId}

Authorization

Path Parameters

projectId
Required
string

Status codeDescription
200OK
curl -X GET "https://api.descope.com/v2/keys/string"

{
  "keys": [
    {
      "alg": "string",
      "e": "string",
      "kid": "string",
      "kty": "string",
      "n": "string",
      "use": "string"
    }
  ]
}

Was this helpful?