URL=YOUR_API_ENDPOINT API_KEY=YOUR_API_KEY # open API echo "Open API" curl $URL -w "\n" # with API key echo "With API key" curl -H "x-api-key: $API_KEY" $URL -w "\n" # custom Authorizer with Basic Auth echo "Custom Authorizer" curl -H "Authorization: webinar" $URL -w "\n"