Skip to content

Gateway Headers Reference

The Consumer portal uses two sets of headers depending on the integration chain.

WEB Chain Headers

These headers are used for browser, mobile app, and portal-driven flows on /web/v1/consumer/** endpoints.

Authentication

HeaderDescription
AuthorizationBearer <jwt> — JWT access token from login
X-SC-Session-IdSecure Channel session ID (required for encrypted endpoints)

Gateway Context

HeaderDescription
X-PORTAL-ACCESS-CODEConsumer portal access code
X-Client-HashClient device fingerprint
X-Request-IdUnique request identifier (UUID)
CF-Connecting-IPClient IP address
Cf-RayCloudflare ray ID
cf-ipcountryClient country code
X-Forwarded-ProtoProtocol (https)
User-AgentClient user agent
X-LOCALERequest locale
Accept-LanguageAccepted language
X-Workspace-IdWorkspace context (for workspace-scoped operations)

Geo/CF Headers (injected by CDN)

HeaderDescription
cf-regionClient region
cf-ipcityClient city
cf-iplatitudeClient latitude
cf-iplongitudeClient longitude
cf-postal-codeClient postal code
cf-timezoneClient timezone

API Chain Headers

These headers are used for server-to-server flows on /api/v1/consumer/** endpoints, authenticated with API keys.

Authentication

HeaderDescription
X-Api-KeyAPI key identifier
X-SignatureHMAC signature of the request
X-TimestampUnix timestamp (60s validity window)
X-NonceUnique request identifier for replay protection

Signature Computation

signature = HMAC-SHA256(apiSecret, method + path + timestamp + nonce + bodyHash)

Common Headers

HeaderConstantUsed by
X-SC-Session-IdSESSION_ID_HEADERSCv2
X-SC-VersionVERSION_HEADERSCv2
Content-Typeapplication/jsonAll requests

SlaunchX Internal Documentation