Skip to main content
GET
Subscribe to a thread's new messages in realtime (WebSocket)

Authorizations

Authorization
string
header
required

API Key Authentication

Use your API key in the Authorization header:

Key Types:

Secret Keys (Server-Side Only):

  • Format: tybrite_sk_live_* (production) or tybrite_sk_test_* (sandbox)
  • Full read/write access to all endpoints
  • ⚠️ NEVER expose in client-side code or public repositories
  • Required for: write operations, authentication, payment verification, AI recommendations

Publishable Keys (Client-Safe):

  • Format: tybrite_pk_live_* (production) or tybrite_pk_test_* (sandbox)
  • Read-only access (GET requests only, plus POST semantic search)
  • ✅ Safe for client-side JavaScript, mobile apps, and public code
  • Allowed for: browsing products, search, CMS content, pricing queries

Endpoint-Specific Requirements:

  • Authentication endpoints (/v1/auth/*): Secret key required
  • Payment verification (POST /v1/payments/verify): Secret key required
  • AI Recommendations (POST /v1/recommendations): Secret key required
  • Semantic Search (POST /v1/search): Both key types allowed (read-only operation)
  • All write operations: Secret key required
  • All read operations: Both key types allowed

Using a publishable key for restricted operations returns 403 Forbidden.

Headers

x-auth-token
string

Header form of auth_token, for non-browser clients that can set request headers on the handshake.

x-external-auth
string

Header form of external_auth.

x-idp-token
string

Header form of idp_token.

Path Parameters

id
string<uuid>
required

The conversation to receive realtime messages for.

Query Parameters

api_key
string

Your publishable key, supplied as a query parameter for the WebSocket handshake (browsers cannot set the Authorization header on a WebSocket). May also be sent as the Authorization: Bearer header from non-browser clients.

auth_token
string

Session token of a customer signed in through Galactic Core. Supply this (or external_auth) to authorize the subscription. May also be sent as the x-auth-token header.

external_auth
string

Signed identity assertion for a customer authenticated with your own identity provider. Supply exactly one customer credential (auth_token, external_auth, or idp_token) to authorize the subscription. May also be sent as the x-external-auth header.

idp_token
string

A raw token from your own identity provider (e.g. a Firebase ID token). Galactic Core forwards it to the store's configured Auth verifier, which validates it and returns the identity. Fail-closed: if the verifier rejects the token or is unreachable, the connection is not authorized. Supply exactly one customer credential (auth_token, external_auth, or idp_token). May also be sent as the x-idp-token header.

Response

Switching Protocols — the WebSocket is established. New-message frames follow on the socket.