AI

Get in-session context for a session (internal service-to-service)

Internal-only endpoint consumed by the session-intelligence microservice to pull authoritative cohort/session context for in-session AI nudges. Authenticated by the shared-secret x-internal-key header (NOT coach bearer auth). Returns the session's topic, guide content, duration, and group participant roster. Field names match session-intelligence's StartSessionData/ParticipantContext so the caller maps them directly. Responds 503 when INTERNAL_API_KEY is not configured (the internal surface is unavailable; callers should fall back to the legacy path) and 401 when the key is missing or incorrect.

get/api/ai/in-session-context/{sessionId}

Request

  • Base URL
    https://api.production.yourmedley.com
  • Auth
    none declared. Required headers: x-internal-key

Path parameters

sessionIdstring uuid required

The session whose context to fetch.

Headers

x-internal-keystring required

Shared internal service-to-service secret (matches INTERNAL_API_KEY).

Response

In-session context for the session.

successboolean

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.