Getting Started
How to authenticate with the SmartMCA API
All API requests require authentication via an API key sent in the Authorization header.
API keys are created in Settings > API Access in the SmartMCA dashboard. Each key has:
deals:read, merchants:write)live (production data) or test (sandbox)Include your API key as a Bearer token:
curl -H "Authorization: Bearer smca_live_abc123..." \
https://api.smartmca.com/api/public/v1/deals
| Prefix | Environment |
|---|---|
smca_live_ | Production |
smca_test_ | Sandbox/Test |
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid API key |
| 403 | FORBIDDEN | Key lacks required scope |
| 403 | IP_NOT_ALLOWED | Request from unauthorized IP |
| 429 | RATE_LIMITED | Rate limit exceeded |