Authentication
To access any endpoint in the Lua API, you need to authenticate your requests using a bearer token. This guide explains how to use bearer token authentication with our API.
Bearer Token
You can find your API token in the Lua Settings » API.
To authenticate your requests, include your bearer token in the Authorization header:
Example request with bearer token
curl https://lua.sh/api/v1/links \
-H "Authorization: Bearer YOUR_API_KEY"