Authentication
Every request to the StopBounceAI API must include a valid API key.
Discover with AI
Bearer Token
Include your API key in the Authorization header of every request using the Bearer scheme:
http
Authorization: Bearer YOUR_API_KEY
Keep your key secret
Your API key grants full access to your account credits and billing. Never commit it to version control, never embed it in client-side code (browser, mobile app), and never share it. Always call the API from your backend server.
Key Format
All API keys follow this format:
text
sbai_live_<32 alphanumeric characters>
Example: sbai_live_xk7m2n9p4q8r1t5v3j9eABCDEFGH
Permissions
Each key has a set of permission scopes that restrict what endpoints it can call. Permissions are assigned when you create the key in the dashboard.
| Permission | Grants access to |
|---|---|
| verify | POST /v1/bulk - bulk email verification. |
| find | GET /v1/find - email finder. |
Generating & Managing Keys
Create and manage keys in your dashboard under API Keys in the sidebar. You can have multiple active keys - one per environment (staging, production) or per integration.
| Action | Behaviour |
|---|---|
| Create key | Full key shown once at creation. Copy it immediately - it cannot be retrieved later. Only the masked prefix is stored. |
| Regenerate key | Issues a new key value with the same name and permissions. The old value is immediately invalidated. New full key shown once. |
| Revoke key | Permanently deletes the key. All requests using it will receive 401 immediately. |
Request Header Reference
| Header | Required | Value |
|---|---|---|
| Authorization | Yes | Bearer sbai_live_<key> |
| Content-Type | POST only | application/json - required for POST /v1/bulk. |
bash
curl -X POST "https://api.stopbounceai.com/v1/bulk" \
-H "Authorization: Bearer sbai_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"emails":["test@example.com"]}'Authentication Errors
| HTTP Status | Error Code | Cause |
|---|---|---|
| 401 | unauthorized | Missing Authorization header, key does not start with sbai_live_, or key has been revoked. |
json
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}