Authentication
WazzAPI supports two authentication mechanisms depending on your use case.API Key Authentication
API key authentication is the standard method for programmatic access and server-to-server integrations.This is the recommended method for most developers building backend integrations.
How It Works
Include your API key in theAuthorization header of every request:
Authentication Header
Example Request
cURL
Managing Keys
You can create and manage API keys from the Dashboard.- Keys are scoped to your organization.
- Keys respect your subscription limits.
- You can revoke keys at any time if compromised.
Session Authentication
Session-based authentication is used exclusively for the WazzAPI web dashboard. If you are building an extension or a frontend that runs within the WazzAPI dashboard context, the session is handled automatically via cookies. You do not need to manually handle tokens.Troubleshooting
Common authentication errors:| Error Code | Meaning | Solution |
|---|---|---|
401 Unauthorized | Invalid or missing key | Check your Authorization header format. |
403 Forbidden | Insufficient permissions | Verify the key belongs to the correct organization. |
