How do I configure an API key?
1. Install base_rest_auth_api_key from https://github.com/OCA/rest-framework
2. In developer mode, navigate to Settings -> Technical -> Auth API Key
3. Create a new key, choosing a name for the key, the Odoo user account for which the key shall authenticate, and an arbitrary string for the key.
(!) Be sure to create a secure key for sensitive systems. This may be automated with openssl, for example:
[mand@MrHat: ~] ☺ > openssl rand -hex 16 217c9a683d785467602aeb6a2ba50281
or with the Python secrets module:
>>> import secrets
>>> secrets.token_urlsafe(16)
'zs9XYCbTPKvux46UJckflw'