Send JWT public key via API endpoint

API toolWorkato

What it does

When someone makes a GET request to the /jwks endpoint, this automation returns the JWT public key in the response payload. The endpoint responds in real-time with the key needed to verify tokens.

Who it's for

Engineering teams who need to expose a JWT public key for token verification across systems.

How teams use this

Verify tokens across microservices

Expose the JWT public key via this endpoint so other services can fetch it and validate incoming tokens without storing the key locally. Each service calls /jwks when it needs to verify a signature.

Support token validation in third-party apps

Let external applications and partners call this endpoint to retrieve the public key for verifying tokens issued by this system. The endpoint stays the same and only the caller changes.

Add key rotation metadata to the response

Include additional fields in the JSON payload such as key ID, algorithm, and expiration date so callers know which key version to use and when to refresh. Only the response structure needs to expand.

How it works

  1. Receive the GET request. Listen for incoming GET requests to the /jwks endpoint. The Workato Api Platform receives the request in real-time and passes it to the next step.
  2. Return the JWT public key. Send a 200 response back to the caller with a JSON payload that includes the jwt_pub project property so the requester can verify tokens.