

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Webhooks
incomplete
2: Webhooks Review
incomplete
3: API Keys
incomplete
This lesson's interactive features are locked, please to keep using them
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!
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
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.