Read the issuer's public keys
GET
/api/federation/jwks
const url = 'https://forge.example.com/api/federation/jwks';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://forge.example.com/api/federation/jwksThe RSA keys the issuer signs with, as a JSON Web Key Set, each named by its kid. A new key is listed seven days before it signs, and the one before stays seven days after it stops. 404 while the instance has no issuer. Cacheable for an hour.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
keys
required
Array<object>
object
kty
required
string
use
required
string
alg
required
string
kid
required
string
n
required
string
e
required
string
Example generated
{ "keys": [ { "kty": "example", "use": "example", "alg": "example", "kid": "example", "n": "example", "e": "example" } ]}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}