For partners, follow this link for your partner API key.
For affiliates, click the "API Access" link in your affiliate menu.
Your partner or affiliate API keys should be sent in the api_key and api_secret fields in API calls.
See the OAuth2 Developer Guide for detailed registration and implementation information.