Get API Gateway API key from custom plugin

Hello,

I’m writing a serverless plugin, and I’d like to get the API Gateway URL and API Key.

From here I can see how to get the API Gateway URL, but I can’t see how to get the API Key.

Can anyone point me in the right direction?

Thanks!