We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

API Keys

You may have noticed that there is an issue with our webhook handler: it's not secure!

Anyone can send a request to our webhook handler, and we'll process it. That means that if Chirpy users figured out our API documentation, they could simply upgrade their account without paying!

Assignment

Luckily, Polka has a solution for this: API keys. Polka provided us with an API key, and if a request to our webhook handler doesn't use that API key, we should reject the request. This ensures that only Polka can tell us to upgrade a user's account.

Your Polka key: f271c81ff7084ee5b99a5091b42d486e

  1. Authorization: ApiKey THE_KEY_HERE
    

    You'll need to strip out the ApiKey part and the whitespace and return just the key.

Run and submit the CLI tests.