You can generate Testsigma API key by logging in to Testsigma App and navigating to Configuration-->Api Keys.
For more info visit Testsigma documentation.