API Authentication
Keep the key private: Send requests to https://api.luaprotect.dev/v1 from your server or a trusted terminal. Do not embed the API key in distributed client code.
Authorization: Bearer LUAP-YOUR_API_KEY_HERE
Step 1: Create API Key
Open API Keys in your dashboard. Create a key with only the scopes required by your integration. Store the value as an environment variable.
Step 2: Authenticate Requests
curl -H "Authorization: Bearer $LUAPROTECT_API_KEY" https://api.luaprotect.dev/v1/me
If the request fails: A 401 means the key is missing or invalid. A 403 can mean its scope, plan, or account status blocks access. A 429 means the current rate limit was reached.