You have 2 options for using the API key for authentication:
- Basic authentication using your username and API Key
- Using a dedicated header (X-JFrog-Art-Api) with your API Key
For example:
curl -uadmin:AKCp2WXCNDRsYwX8vd83KsxEnh1tMs6Qp1Dm8M7oDtA464Nz3kmjgrZRnbtJAXm2AfDEpMhfJ -ocommons-collections-3.1.jar http://localhost:8081/artifactory/jcenter/apache-collections/commons-collections/3.1/commons-collections-3.1.jar
or
curl -H "X-JFrog-Art-Api: AKCp2WXCNDRsYwX8vd83KsxEnh1tMs6Qp1Dm8M7oDtA464Nz3kmjgrZRnbtJAXm2AfDEpMhfJ" -ocommons-collections-3.1.jar http://localhost:8081/artifactory/jcenter/apache-collections/commons-collections/3.1/commons-collections-3.1.jar