Steps
- Header must be exactly: Authorization: Bearer bpk_live_...
- Check the key was not revoked or rotated in Dashboard → API Keys
- If using Google OAuth directly, your access token expired after 1 hour — refresh it
- With Jhajha, Google tokens refresh automatically; only the API key is needed
Example (bash)
curl https://blogjh.lovable.app/api/public/v1/posts -H "Authorization: Bearer bpk_live_YOUR_KEY"FAQ
Is 401 the same as 403?
No. 401 is bad credentials; 403 is permission or rate limit.
