Can action tokens be created by the Keycloak REST API?

I need to create password reset emails from my application but can’t use the keycloak email templates because the email should contain application runtime information that keycloak doesn’t know.

My plan is to create the action token and link in the backend of my application and send an email with that link directly from my backend. (Server Developer Guide)

How do I create the action tokens? To my surprise, I can’t find a REST API endpoint for this use case. Is there a reason why such an endpoint doesn’t exist?

Your observation is correct. There are no REST endpoints for creating and fetching action tokens. You can extend the server to add those. Here is the documentation for adding custom REST endpoints: Server Developer Guide