GET
/v2/keys/{projectId}

Path Parameters

projectId*string

Query Parameters

certs?boolean

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.

curl -X GET "https://api.descope.com/v2/keys/string"
{  "keys": [    {      "alg": "string",      "e": "string",      "kid": "string",      "kty": "string",      "n": "string",      "use": "string"    }  ]}
export interface Response {keys?: Sessionv1[]}export interface Sessionv1 {alg?: stringe?: stringkid?: stringkty?: stringn?: stringuse?: string}
Was this helpful?