Artifactory allows authentication for REST API calls using your API key as an alternative to your username and password in two ways: either by using the X-JFrog-Art-API
header with which you can specify an API key , or through basic authentication using your username and API key (instead of your password). For more details, refer to the REST API documentation.
Artifactory version
To use your API key for authentication, it must be generated using Artifactory 4.4.3 or later. If generated prior to 4.4.3, you must regenerate your API key and use the new key as a password for basic authentication.