One envelope, one key
Your server calls the API with a key in the X-API-Key header. Every answer uses the same envelope with an ok flag, a request id and either data or an error. Branch your code on the error code only; the message is written for people. The API is not meant for browsers and does not support cross-origin calls.
You create and revoke keys yourself in the back office: up to five production keys and up to two test keys, with the value shown once. A new production key on an account with real traffic starts answering after 30 minutes, or immediately once a second person confirms it.