How to Create API-key Enabled Server Actions?

The latter part of this may help where I discuss that.