Before you begin make sure you have Streak extension established for your Gmail account.
Go to your Gmail account and click to "Streak" extension button
2. Go to "Integrations" in the right side drop-down menu
3. Scroll down the page until the "Streak API" tab. Click "Create New Key" and copy the API key provided