Every request to the Whisul API must include a valid API key. Whisul uses Bearer token authentication — you pass your key in theDocumentation Index
Fetch the complete documentation index at: https://docs.whisul.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header of each request. This page explains how to get your key, how to use it, and what to do if authentication fails.
Get your API key
- Go to whisul.com and sign up for an account.
- After logging in, open your dashboard.
- Locate the API Keys section and copy your key.
Pass your key in requests
Include your API key in theAuthorization header using the Bearer scheme on every API request:
YOUR_API_KEY with the key you copied from your dashboard.
Handle 401 Unauthorized errors
If your API key is missing, malformed, or invalid, the API returns a401 Unauthorized response. Common causes:
- You forgot to include the
Authorizationheader - The header value is not formatted as
Bearer YOUR_API_KEY - Your key was regenerated and the old one is no longer valid
401 error, verify that:
- The
Authorizationheader is present in your request - The value starts with
Bearerfollowed by your key (note the space afterBearer) - The key matches the one currently shown in your Whisul dashboard
Security best practices
Follow these practices to keep your key secure:- Use environment variables. Store your key in an environment variable such as
WHISUL_API_KEYand read it at runtime. - Add your key file to
.gitignore. If you use a.envfile locally, make sure it is listed in.gitignorebefore you commit. - Rotate your key if exposed. If you accidentally publish your key, go to your Whisul dashboard and regenerate it immediately. The old key will stop working as soon as you do.
- Restrict usage to server-side code. Never expose your API key in front-end JavaScript or mobile apps where users can inspect it.