Authorization header. No request will succeed without a valid key, so the first step before making any call is generating one in the dashboard.
Get your API key
Go to the dashboard
Visit api.pinaivu.com and sign in to your account.
Use your key in requests
Pass your API key in theAuthorization header as a Bearer token on every request.
Keep your key secure
Your API key grants full access to your Pinaivu account. Follow these practices to protect it:- Never commit your key to version control. Add
.envfiles to.gitignoreand avoid hardcoding keys in source files. - Use environment variables. Reference your key via
PINAIVU_API_KEY(or any name you choose) rather than inlining it in code. - Rotate immediately if compromised. If you suspect a key has been exposed, return to the API Keys section of the dashboard and revoke it, then generate a new one.
- Grant least privilege. If you are building a multi-user product, use separate keys per environment (development, staging, production) so a leaked key limits blast radius.
Authentication errors
| Status | Meaning | Resolution |
|---|---|---|
401 Unauthorized | The Authorization header is missing or the key is malformed. | Ensure your request includes Authorization: Bearer sk-pnv-... with a valid key. |
403 Forbidden | The key is valid but does not have permission to perform this action, or the key has been revoked. | Check that the key is active in the dashboard. Revoked keys must be replaced with a new one. |
429 Too Many Requests | You have exceeded your rate limit or usage quota. | Wait for the rate-limit window to reset, or review your plan limits in the dashboard. |