Authentication & API Keys
Call core endpoints with zero setup, or authenticate with your SmarterDividends Pro or Business API key using Bearer token, X-API-Key header, or query string.
Three Ways to Pass Your API Key
Create and manage API keys from your Account page (/account#api). Keys begin with the sd_ prefix and are displayed only once at creation (we store a cryptographic hash, never the raw key).
Send your key via any of the three methods below. Prefer HTTP headers in production servers so keys do not appear in proxy URL logs; use ?key= only for Google Sheets =IMPORTDATA() or Excel Web queries.
curl -H "Authorization: Bearer sd_YOUR_KEY" \
"https://smarterdividends.com/api/v1/cefs?discount_only=true&sort=zscore_1y"Authentication Responses & Headers
| HTTP Status | Header / Meaning | What To Do |
|---|---|---|
| 200 OK | X-RateLimit-Tier: developer · X-License: commercial · X-API-Access: full | Business API key verified; full depth and commercial license active. |
| 200 OK | X-RateLimit-Tier: pro · X-API-Access: preview | Pro key verified; 5,000/day core quota active; intelligence endpoints in preview mode. |
| 401 Unauthorized | Unknown or revoked API key | Verify the key at /account#api, or omit the header to fall back to free limits. |
| 403 Forbidden | Plan inactive | The key's account no longer has an active Pro or Business API subscription. |
| 429 Too Many Requests | Retry-After header (seconds) | Per-minute or daily/monthly allowance reached. Respect Retry-After before retrying. |
