Fetch the public signing keys for one application's tokens.
const url = 'https://session-api.sudomimus.com/applications/example/jwks.json';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://session-api.sudomimus.com/applications/example/jwks.jsonReturns the public JWK Set for application access and refresh tokens.
Select the key whose kid matches the JWT JOSE header. Unknown kid
values should trigger one immediate refresh before rejection. The set
contains no private key material and at most 32 keys.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Stable public application identifier carried by token aud.
Responses
Section titled “Responses”Public JWK Set for the application.
object
object
Base64url-encoded RSA modulus.
Base64url-encoded RSA public exponent.
Stable signing-key identifier copied into JWT JOSE headers.
Example
{ "keys": [ { "kty": "RSA", "use": "sig", "alg": "RS256" } ]}Headers
Section titled “Headers”Public cache lifetime bounded by the signing-key prepublication window.
The required application anchor path parameter is missing.
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"}Reason ApplicationNotFound — the application anchor is unknown.
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"}