Skip to content

Gateway Headers Reference

All headers injected or expected by the SlaunchX gateway layer on the WEB chain.

Secure Channel Headers

HeaderRequiredDescription
X-SC-Session-IdConditionalSecure Channel session ID. Required for endpoints that accept encrypted payloads.
X-SC-VersionConditionalSecure Channel protocol version. Sent alongside X-SC-Session-Id.

Content-Type for Secure Channel

When Secure Channel is active, the request body contains a binary SCv2 envelope, but the Content-Type header remains application/json;charset=UTF-8. The gateway detects encrypted payloads by inspecting the binary magic bytes, not the Content-Type.

Gateway Headers (WEB Chain)

HeaderRequiredDescription
X-Request-IdRequiredUnique request identifier (UUID). Used for tracing and idempotency.
X-PORTAL-ACCESS-CODERequiredPortal access code. Identifies which portal the request is entering through.
X-Workspace-IdConditionalWorkspace context. Required for workspace-scoped operations.
X-LOCALEOptionalResponse locale override (e.g., en, zh).
X-Client-HashRequiredClient device fingerprint. Must remain stable across the session.
User-AgentRequiredClient user agent string.
Accept-LanguageOptionalPreferred response language.

Cloudflare Headers

These headers are injected by Cloudflare and forwarded by the gateway. In local development, you must set them manually.

HeaderRequiredDescription
CF-Connecting-IPRequiredClient IP address (set by Cloudflare).
cf-ipcountryRequiredClient country code (ISO 3166-1 alpha-2).
Cf-RayRequiredCloudflare ray ID for request tracing.
X-Forwarded-ProtoRequiredForwarded protocol (https).
cf-regionOptionalClient region.
cf-ipcityOptionalClient city.
cf-iplatitudeOptionalClient latitude.
cf-iplongitudeOptionalClient longitude.
cf-postal-codeOptionalClient postal code.
cf-timezoneOptionalClient timezone.

Authentication Headers

HeaderRequiredDescription
AuthorizationConditionalBearer <JWT>. Required for authenticated endpoints.
Exposed-Credential-CheckOptionalIndicates the credential has been checked against breach databases.

SlaunchX Internal Documentation