Help Center/ API Gateway/ FAQs/ API Policies/ Why Am I Seeing "Public key does not exist" When an API Bound to a JWT Authentication Policy Is Called?
Updated on 2025-10-31 GMT+08:00

Why Am I Seeing "Public key does not exist" When an API Bound to a JWT Authentication Policy Is Called?

  • If the public key of the JWT authentication policy is obtained in scheduled mode, check whether the entered JWKS_URI remote service is running properly and whether the JWKS public key response is returned. In addition, check whether the returned public key complies with the correct JWKS format.
  • Ensure the kid in the request token matches one of the public keys in the JWKS. The gateway uses kid to locate the key; if no match is found, the error will occur.