sapi_live_<256-bit-secret>
Authentication & Security
API keys are strictly server-to-server organization credentials authenticated via HMAC-SHA-256.
Authorization Header
Pass your secret key in the Authorization Bearer header over HTTPS. Keys are displayed only once at creation or rotation.
Authorization: Bearer sapi_live_REPLACE_ME
CORS Policy (Server-to-Server Only)
Cross-origin browser requests to api.socialapi.tr are denied with HTTP 403 CORS_DENIED. Never bundle sapi_live_ keys into frontend code or mobile apps.
Key Scopes
| Scope | Permitted Endpoints |
|---|---|
| * | All Instagram and X (Twitter) endpoints |
| instagram:read | All /v1/instagram/* endpoints |
| twitter:read | All /v1/twitter/* endpoints |
Operational Controls
- Restrict each key to specific IPv4/IPv6 addresses or CIDR blocks using IP allowlists.
- Rotate or revoke compromised keys immediately; Redis key caches are invalidated instantaneously.
- Suspended organizations fail authentication with HTTP 403 ORGANIZATION_SUSPENDED.