How Basic Auth Works
You Base64-encode the stringusername:password and pass the result in the Authorization header on every request:
Making a Request with Basic Auth
The easiest way to use Basic Auth is to let curl handle the encoding for you with the-u flag:
Constructing the Header Manually
If you need to build the header yourself — for example, in a script or HTTP client that does not handle Basic Auth natively — you can Base64-encode your credentials and include them directly:Staff Account Requirements
For a staff account to authenticate successfully, it must haveactive: true set in its configuration. Requests from inactive accounts are rejected regardless of whether the credentials are correct.
Unlike JWT, Basic Auth requires credentials to be verified server-side on every request, which adds overhead. For production applications with frequent API calls, use JWT tokens instead.
