Your API requests are authenticated using the account's private API key. If you do not include your key when making an API request or use an incorrect one, we return an error. You can view your API keys in the ImageKit.io dashboard under the developer's tab.
You can provide the private API key in a curl request as:
curl https://api.imagekit.io/v1/files \-u your_private_api_key:# The colon prevents curl from asking for a password.
You can also use the "Authorization" header and provide base64 encoded value of the string
If you encode
your_private_api_key: using base64, you will get
curl https://api.imagekit.io/v1/files \-H 'Authorization: Basic eW91cl9wcml2YXRlX2FwaV9rZXk6'