Skip to main content

Using API Keys

Requests can be authenticated using an API key by setting the X-API-Key header in the request. If an invalid API key is provided, the server will return a 401 Unauthorized status code.

For example, to use an API key within cURL:

curl -X GET "https://cloud.shellhub.io/api/" -H "X-API-Key: $SHELLHUB_API_KEY"