In order to access Nearmap imagery with an API key, you must first set up an API application.
Only Nearmap Administrators can set up API applications, so if you are not an administrator, you'll need to ask your administrator to do this for you. Once there is an API application, you can set up your own API key within it.
For more information check out the articles in this section: API Key Authentication.