Skip to content

getJSONWebKeySet

GET
/jwks
curl --request GET \
--url http://localhost:4000/api/auth/jwks

Get the JSON Web Key Set

Public keys for verifying ID tokens and JWT access tokens.

JSON Web Key Set retrieved successfully

Media typeapplication/json
object
keys
required

Array of public JSON Web Keys

Array<object>
object
kid
required

Key ID uniquely identifying the key, corresponds to the ‘id’ from the stored Jwk

string
kty
required

Key type (e.g., ‘RSA’, ‘EC’, ‘OKP’)

string
alg
required

Algorithm intended for use with the key (e.g., ‘EdDSA’, ‘RS256’)

string
use

Intended use of the public key (e.g., ‘sig’ for signature)

string | null
Allowed values: sig
n

Modulus for RSA keys (base64url-encoded)

string | null
e

Exponent for RSA keys (base64url-encoded)

string | null
crv

Curve name for elliptic curve keys (e.g., ‘Ed25519’, ‘P-256’)

string | null
x

X coordinate for elliptic curve keys (base64url-encoded)

string | null
y

Y coordinate for elliptic curve keys (base64url-encoded)

string | null

Example

{
"keys": [
{
"use": "sig"
}
]
}

Bad Request. Usually due to missing parameters, or invalid parameters.

Media typeapplication/json
object
message
required
string

Example generated

{
"message": "example"
}

Unauthorized. Due to missing or invalid authentication.

Media typeapplication/json
object
message
required
string

Example generated

{
"message": "example"
}

Forbidden. You do not have permission to access this resource or to perform this action.

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Not Found. The requested resource was not found.

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Too Many Requests. You have exceeded the rate limit. Try again later.

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Internal Server Error. This is a problem with the server that you cannot fix.

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}