From Haasonline Software Wiki
Obtaining the API
To create the API keys for your BitMEX account you need to login and navigate to the Account & Security page.
The API Keys can be found on the left side menu under Miscellaneous.
Be aware you MUST select the "Order" checkbox before you proceed.